[Home] [By Thread] [By Date] [Recent Entries]
Am 09.05.2019 um 21:42 schrieb Manuel Souto Pico terminolator@xxxxxxxxx:
If you know the escaped markup is an XML fragment then I would try to parse it with the "parse-xml-fragment" function, if it is HTML, then I would look into using David Carlisle's HTML parser implementation done in pure XSLT 2 or use an extension function like the commercial editions of Saxon offer. After parsing, you can then apply normal templates or grouping constructs. As for lookbehind assertions in regular expressions, I don't think the XPath/XSLT/XQuery regular expression syntax supports that. I think Saxon allows a flag on regular expression constructs to drop down to platform specific regular expression implementations, that might work if the Java platform or the .NET platform supports lookbehinds.
|

Cart



