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

Re: regarding newline

Subject: Re: regarding newline
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 11 Jul 2002 11:47:52 +0100
no breaking space
] <!ENTITY space "&#160;"> <!-- 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"/> &#160; <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


Current Thread
  • regarding newline
    • subbu - Thu, 11 Jul 2002 06:13:49 -0400 (EDT)
      • Peter Davis - Thu, 11 Jul 2002 06:41:18 -0400 (EDT)
      • David Carlisle - Thu, 11 Jul 2002 06:48:01 -0400 (EDT) <=
      • <Possible follow-ups>
      • Jarno . Elovirta - Thu, 11 Jul 2002 06:36:30 -0400 (EDT)

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.