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

differentiation between text() and entities???

Subject: differentiation between text() and entities???
From: zuzmi@xxxxxxxxxxx (Z. Uzmi)
Date: Mon, 12 Jun 2000 11:13:55 -0700
differentiation between text() and entities???
Hi,

How does xslt between text() and entities in an xml file? And how to force
it not to do that?
Example:
I have template rule that inserts a <br/> tag after the text. If the input
file has something like following:

some text&nbsp;other text

then my (undesired) output is as follows:

some text<br>&nbsp;<br>other text<br>

while I want the output to be:

some text&nbsp;other text<br>

If I remove the <br/> from my rule altogether, I get the same output as the
input while I want an extra <br> at the end of the text. Any suggestions on
how to force the xslt (i'm using xalan-J) to consider the entities as just
plain text???

Thanks much,
Zartash


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.