Escaped markup 2 temporary tree
Hi list Is it possible to convert a variable with escaped markup to a temporary tree? I would like to load an XML document as unparsed-text, do some cleaning with regular expressions, convert it back to XML and then transform it, in one go. The following is only giving me no longer escaped markup, but not a temporary tree: <xsl:variable name="a" select="'<p/>'"/> <xsl:variable name="b"> <xsl:value-of select="$a" disable-output-escaping="yes"/> </xsl:variable> <xsl:sequence select="$b"/> Instead I am using a work around saving "b" with result-document and load it again with the collection() function (nice that we are allowed to do that in Saxon). It solves my problem. But I would like to know if conversion from escaped markup to a temporary tree is possible? If it is not possible, then why not? Cheers Jesper Tverskov www.xmlplease.com
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