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

RE: differentiation between text() and entities???

Subject: RE: differentiation between text() and entities???
From: zuzmi@xxxxxxxxxxx (Z. Uzmi)
Date: Tue, 13 Jun 2000 16:09:22 -0700
oracle text to html entities
I tried using DOM instead of DTM but now the entities are just eliminated.
For example,

If the input contains "some text©other text"

then I ONLY get "some textother text" as the output?

Any workaround to get "some text©other text" as the output???

Interestingly and surprisingly, if I match on html tag and write html tag to
the output, I get the desired result but I really don't want to write the
output enclosed between <html> and </html>. I am unable to get a good
explanation of this behavior.

Example (note: input file is html):
==================================
Following works for me.
<xsl:template match="html">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>

But the following does not.
<xsl:template match="html">
<some_other_tag>
<xsl:apply-templates/>
</some_other_tag>
</xsl:template>

in either case, i am doing <xsl:value-of select="text()"/> to display the
text. In the first case I get "some text&copy;other text" while in the
latter case I get "some textother text".

How does the processor know what is going to be at the output?????

thanks,
zartash

> 3>[My problem is] Only that XSLT is considering that text ends
> 3>before &nbsp starts, and then considers &nbsp another text
> 3>segment and whatever follows &nbsp as yet
> 3>another text segment.
>
> This is a known bug in Xalan's DTM. Use the DOM to avoid it.
> .................David Marston
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.