XSLTools

Change of XSLForms/Output.py

417:6eb90658c00a
XSLForms/Output.py
     1.1 --- a/XSLForms/Output.py	Sun Nov 20 01:33:10 2005 +0000
     1.2 +++ b/XSLForms/Output.py	Thu Nov 24 16:53:05 2005 +0000
     1.3 @@ -323,7 +323,8 @@
     1.4  
     1.5      Provides a "URL encoded" string created from the merged textual contents of
     1.6      the given 'nodes', with the encoded character values representing characters
     1.7 -    in the optional 'charset' (UTF-8 if not specified).
     1.8 +    in the optional 'charset' (UTF-8 if not specified). Note that / and #
     1.9 +    characters are replaced with their "URL encoded" character values.
    1.10  
    1.11      template:url-encode(./text(), 'iso-8859-1')
    1.12      """
    1.13 @@ -331,7 +332,7 @@
    1.14      l = []
    1.15      for node in nodes:
    1.16          s = libxml2dom.Node(node).nodeValue
    1.17 -        l.append(urllib.quote(s.encode("utf-8")).replace("/", "%2F"))
    1.18 +        l.append(urllib.quote(s.encode("utf-8")).replace("/", "%2F").replace("#", "%23"))
    1.19      output = "".join(l)
    1.20      return output
    1.21