Subject: Re: [xsl] Converting pseudo-tags in attribute to real tags From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 22 Aug 2007 10:08:05 -0300 |
My problem is that I have an attribute that looks like this:
<sentence text="this is <b>bold</b> text"/>
If I do the following:
<xsl:template match="sentence"> <i> <xsl:value-of select="@text"/> </i> </xsl:template>
Then the result obviously is:
<i>this is <b>bold</b> text</i>
However, I really want the pseudotags within the attribute to become real tags:
<i>this is <b>bold</b> text</i>
How do I do this?
<i> <xsl:value-of select="@text" disable-output-escaping="yes"/> </i>
-- Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Converting pseudo-tags in, Abel Braaksma | Thread | [xsl] Re: sum() over attributes is , Andreas Kemkes |
Re: [xsl] Linking Variable to the P, Abel Braaksma | Date | RE: [xsl] Linking Variable to the P, Yaswanth Kumar Ravel |
Month |