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

Un-escape and re-transform

Subject: Un-escape and re-transform
From: Bas Alberts <bas.alberts@xxxxxxxxxxxx>
Date: Tue, 10 Apr 2001 15:54:46 +0200
javascript unescape lt
Hi All

My Content Provider delivers XML files with partially escaped HTML tags, for
example:
<content>
        <web>
                &lt;P>This is text.&lt;/P>
                &lt;P>This is more text.&lt;/P>
        </web>
</content>

My quest is to replace the "&lt;" by the un-escaped "<" character, and then
redo the XSLT for that <P>...</P> bit. I already prepared the template(s)
for <xsl:for-each select="P">.

My guess is, that I can use JavaScript's unescape() function to produce the
"<" and use "<xsl:apply-templates>" to redo the XSLT. But, I have no idea
how to put it all together. Also, I have the suspicion that there shouldn't
be any scripting required at all...?

Can you help me?

Regards,
Bas Alberts

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.