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

RE:

Subject: RE:
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Wed, 11 Dec 2002 18:12:51 -0000
 RE:
Hi.
I don?t know if this can be called a bug but is a problem in MSXML.
MSXML creates 3 text nodes, the first with the text befoure the entity,
the second holding the entity and the third with the rest of the text

see http://www.biglist.com/lists/xsl-list/archives/200211/msg00153.html


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of David
Carlisle
Sent: quarta-feira, 11 de Dezembro de 2002 17:00
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: 


 
 <xsl:value-of select="text()"/>

should return (only) the first text node child of the current node.

entities and character references should all have gone by the time XSLT
sees the input (but at least some versions of msxml have had problems in
this area).

>Which one is right?

The  entity &nbsp; is not treated as text?
It should be the same as doing &#160; or just typing that character
directly, and be merged into the surrounding  text nodes. If it isn't
then it's an msxml bug.


> and how do I get ie to print all the text including
> entities without printing the value of element DOCUMENTREF?

you could try <xsl:copy-of select="node()[not(self::DOCUMENTREF)]"/> to
copy all nodes except that element.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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.