This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]