Removing HTML markup from XSL

James T Jordan

Usenet Archive
Joined
Aug 8, 2003
Messages
1
Reaction score
0
Hi, I am quite frustrated with the problem I was given to solve. I have xsl as input which outputs html but some of the html is coded like <tag&gt and I need to remove the html formatting from the xsl. I can do this. Where the problem comes in is if the text output ends with a single quote (like line 2 below) in that case I need to also remove line 3 and 4. How can I solve this and have xslt know that I am in a string quote and to know when I come out of the string quote. Thanks Puzzled

1 <xsl:text disable-output-escaping="yes">
2 &lt;font color="#cc0000" &gt;&lt;img src="</xsl:text> 3 <xsl:value-of select="$imagePath"/> 4 <xsl:text disable-output-escaping="yes">arrow.gif"&gt; 5 For the effective date, see the caution above.&lt;img src="</xsl:text> 6 <xsl:value-of select="$imagePath"/><xsl:text disable-output- 7 escaping="yes">rarrow.gif"&gt;&lt;/font&gt;&lt;br&gt;</xsl:text>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top