[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Escaped markup 2 temporary tree

Subject: Escaped markup 2 temporary tree
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Wed, 12 Sep 2007 00:39:58 +0200
 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="'&lt;p/>'"/>

<xsl:variable name="b">
<xsl:value-of select="$a" disable-output-escaping="yes"/>

<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?

Jesper Tverskov

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.