This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:text
- From: "Thomas Holz" <thomas dot holz at avitech dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 25 Jan 2002 15:04:07 +0100
- Subject: [xsl] xsl:text
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello people,
after seraching the archive and Mike Kay's book for over an hour, I feel
still at a loss. I try to hard-code one single whitespace, but it seems
imposiible. I tried <xsl:text> </xsl:text> as well as   or   and
even concat (as seen below) but nothing works, not even in conjunction
I'm using MSXML Parser (v3.0 or 4.0) with XMLSpy as editor. The only time I
want to preserve those whitespaces is in all of my <xsl:text> elements, so I
tried <xsl:preserve-space>, but I thin kI'm usin it the wrong way.
I'll include an XSL snippet for you. Hope anybody can help
Thomas
-snip-
<xsl:template match="adlst">
<xsl:text> -AD</xsl:text>
<xsl:for-each select="adid">
<xsl:text> </xsl:text>
<xsl:value-of select="concat(' ', .)"/>
</xsl:for-each>
</xsl:template>
-snip-
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list