This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Un-escape and re-transform
- To: "'xsl-list at mulberrytech'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Un-escape and re-transform
- From: Bas Alberts <bas dot alberts at group2000 dot nl>
- Date: Tue, 10 Apr 2001 15:54:46 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi All
My Content Provider delivers XML files with partially escaped HTML tags, for
example:
<content>
<web>
<P>This is text.</P>
<P>This is more text.</P>
</web>
</content>
My quest is to replace the "<" 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