Re: [xsl] problem processing <strong> etc tags as style

Subject: Re: [xsl] problem processing <strong> etc tags as style
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Fri, 15 Jun 2007 08:23:34 +0100
The value-of instruction will only output the text nodes. If you want to keep the HTML style elements then use:

<xsl:copy-of select="root/mytag/html" />

If you just want the em and strong then you'll need to go further down the tree:

<xsl:copy-of select="root/mytag/html/body/p/em" />


----- Original Message ----- From: "Vaduvoiu Tiberiu" <vaduvoiutibi@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, June 15, 2007 8:14 AM
Subject: [xsl] problem processing <strong> etc tags as style

I have an xml like this
           <strong> Some text comes here</strong>

in my xsl file I have <xsl:value-of select="root/mytag"/>

but in the page that is generated instead of seeing Some text comes here italic bold I only see the text unformatted? So how can I display some text with the style I want when the processor sees the <em> or<b> tags as simple tags? 10x in advance

Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.

Current Thread