[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problem processing <strong> etc tags as style

Subject: Re: problem processing <strong> etc tags as style
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Fri, 15 Jun 2007 08:23:34 +0100
Re:  problem processing <strong> etc tags as style
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: 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.