|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: regarding newline
] <!ENTITY space " "> <!-- space -->
160 is not space (32 is) 160 is no breaking space (nbsp in html)
> I did this so that i may just refer to them in my XSL like
> <xsl:value-of select = "@id"/> &space; <xsl:value-of select = "."/>
^^^^^^^^^^
That will produce three characters in the output.
a space a non-break space and a second space.
You would get exactly the same result with
<xsl:value-of select = "@id"/>   <xsl:value-of select = "."/>
> and try to do things like
> <xsl:value-of select = "@id"/> &newline;<xsl:value-of select = "."/>
^^^^^^^^^^^
> nothin seems to happen..
there the text node has two characters, a space and a newline character
so it is just as if you had done
<xsl:value-of select = "@id"/>
<xsl:value-of select = "."/>
and being a white space text node it is removed from the stylesheet.
Note that #160 is _not_ white space. You need to use xsl:text here.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








