[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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
Re: [xsl] problem processing 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" />
Joe http://joe.fawcett.name
----- 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 <root> <mytag> <html> <body> <p> <em> <strong> Some text comes here</strong> </em> </p> </body> </html> </mytag> </root>
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.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] problem processing <strong> e, Vaduvoiu Tiberiu | Thread | [xsl] How to overrite default rende, Karlmarx Rajangam |
Re: [xsl] JDK 1.4 <> 5.0 transforma, Julian Reschke | Date | Re: [xsl] Clarifying mode and built, Florent Georges |
Month |