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

Displaying Text Nodes

Subject: Displaying Text Nodes
From: siarom egrub <egrubs@xxxxxxxxx>
Date: Wed, 4 Mar 2009 11:49:20 -0800 (PST)
 Displaying Text Nodes
Hi All,

I had an issue where document creators would use a lot of line break "<br />"
tags to break up very long product name in our documents. The product name
should display in the document header on all pages except the first. It was
overflowing into the top border (table style doc). I created the XSL template
below to only output text that appears before the first line break "br />"
tag.

The problem that I am having now is that sometimes there are <superscript>
tags in the product names and the text after the <superscript> tag is not
displaying.

Example:
<para>Access<superscript>&#174;</superscript> Ultrasensitive ESTRADIOL QC<br
/>QC1, QC2</para>

Current Output: Access

Required Output: Access. Ultrasensitive ESTRADIOL QC

Can anyone see what I am missing here or doing wrong?

Please let me know if additional information is needed.


<!--XML -->
<ProdName><title>Product Name</title>
<para>Access<superscript>&#174;</superscript> Ultrasensitive ESTRADIOL QC<br
/>QC1, QC2</para>
</ProdName>

<!--XSL-->
<xsl:template match="ProdName/para" mode="ProdName_BR">
     <xsl:value-of select="text()[not(preceding-sibling::br)] "/>
</xsl:template>


Thanks,
Siarom Egrub

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-2007 All Rights Reserved.