[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Embedded bold,italic,anchors etc.
Although you didn't show us what you are doing, I suspect you are probably
doing a xsl:value-of within a template - whereas you should be doing an
xsl:apply-templates to handle the embedded elements.
The value-of will return the concatentated values of all descendent text nodes. The apply-templates will continue applying templates to all child nodes. Hence if you have a template matching on "bold" e.g. <xsl:template match="bold"> <!-- assuming your source file uses bold for bolding --> <b><xsl:apply-templates /></b> <!-- convert to equivalent html bold --> </xsl:template> It would be triggered and give you what you want. Similarly for italic, anchors, etc. Note that I did an apply-templates here to allow bolded text to recursively contain italic and/or anchors. Cheers...Hugh CyberSpace Industries 2000 Inc. Multimedia Promotion XML Training and Consulting http://cyberspace-industries-2000.com ----- Original Message ----- From: "Craig Riley" <craig@xxxxxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, June 11, 2008 7:33 AM Subject: Embedded bold,italic,anchors etc. Hi, -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1495 - Release Date: 6/10/2008 5:11 PM
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|