xsl-list
[Top] [All Lists]

RE:

2002-12-11 11:12:51
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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
David
Carlisle
Sent: quarta-feira, 11 de Dezembro de 2002 17:00
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>