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   You can use 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(_at_)hotmail(_dot_)com]
Sent: 31 May 2005 21:08
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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 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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--