Removing HTML markup from XSL

Discussion in 'XML' started by James T Jordan, Aug 8, 2003.

  1. 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>
     
    James T Jordan, Aug 8, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michal A. Valasek

    How to strip HTML markup from string?

    Michal A. Valasek, Aug 9, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    5,276
    Yan-Hong Huang[MSFT]
    Aug 12, 2003
  2. Tim Zych
    Replies:
    2
    Views:
    510
    Tim Zych
    Nov 21, 2005
  3. Replies:
    1
    Views:
    3,613
    A. Bolmarcich
    May 27, 2005
  4. Kourosh
    Replies:
    6
    Views:
    855
    Peter Flynn
    May 17, 2006
  5. Chris  Chiasson
    Replies:
    6
    Views:
    624
    Richard Tobin
    Nov 14, 2006
Loading...

Share This Page