Subject: Re: [xsl] Converting pseudo-tags in attribute to real tags From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 22 Aug 2007 15:04:00 +0200 |
Cheers, -- Abel Braaksma
Hi there,
I'm fairly new to XSLT (but not to XML processing -- I've been using Perl's XML::Twig for ages). So far I've been quite happy with it, but today I've found a problem that I can't find a solution for -- I've checked O'Reilly's XSLT and XSLT cookbook, and the FAQ.
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 hope somebody will be able to help!
Thanks a lot,
Thomas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Converting pseudo-tags in att, Thomas Widmann | Thread | Re: [xsl] Converting pseudo-tags in, G. Ken Holman |
RE: [xsl] Linking Variable to the P, Yaswanth Kumar Ravel | Date | Re: [xsl] Linking Variable to the P, Abel Braaksma |
Month |