The other options is to stick to the XSLT-2.0 semantic for the equivalent function and indeed it seems to do what you expect, e.g. Example 3 inhttp://zvon.org/comp/r/ref-XSLT_2.html#Functions~tokenizebeing clear there So sounds it can be caracterized as a bug :-) but it's a ...
content=line_text[:-1])# Assumes a layout similar to what XmlReporter uses.xslt_path = os.path.relpath('mypy-html.xslt', path) transform_pi = etree.ProcessingInstruction('xml-stylesheet','type="text/xsl" href="%s"'% cgi.escape(xslt_path,True)) root.addprevious(transform_pi) self.sch...
The fn:tokenize function splits a string based on a regular expression. The regular expression syntax used is defined by XML Schema with a few modifications/additions in XQueryXPath/XSLT 2.0. The $pattern argument is a regular expression that represents the separator. The simplest patterns can be...