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

RE: How do i put whitespace character in xsl file

Subject: RE: How do i put whitespace character in xsl file
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 31 May 2005 22:40:53 +0100
whitespace c
The term "whitespace" in XML generally means one of the four characters x9,
xA, xD, and x20. The term doesn't include other invisible characters such as
non-breaking-space (xA0) or zero-width-space. 

To include a non-breaking-space in your stylesheet (and therefore in the
output) use &#xa0; You can use &nbsp; if you like, but it's not a predefined
entity in XML, so you have to declare it in your DTD.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Frequent Fliers [mailto:frequent_fliers@xxxxxxxxxxx] 
> Sent: 31 May 2005 21:08
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  How do i put whitespace character in xsl file
> 
> hi all, i have the following snippet of code:
> <xsl:if test="attribute::*">(
>                   <xsl:for-each select="@*">
>                     <xsl:value-of select="name()" />:
>                     <xsl:value-of select="." />
>                   </xsl:for-each> )
>                 </xsl:if>
> Now, if i want to put a whitespace after the <xsl:value-of 
> select="." />, i 
> try &nbsp; but this just throws a syntax error.how can i 
> insert a white 
> space?
> thank you very much!
> 
> _________________________________________________________________
> Winks & nudges are here - download MSN Messenger 7.0 today! 
> http://messenger.msn.co.uk

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.