[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] RE:


Subject: [xsl] RE:
From: "Whitney, Dan (FPDG)" <DanW@xxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Dec 2002 12:43:30 -0500

Thanks David that fixed it. Makes it tough when I forget the subject.

Dan

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: December 11, 2002 12:00 PM
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
Keywords