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(_at_)yahoo(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--