[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Breaking paragraphs one linebreaks
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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|