[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] space between two prints ?
Subject: RE: [xsl] space between two prints ? From: "Stuart Celarier" <stuart@xxxxxxxxxxx> Date: Wed, 5 Dec 2001 10:52:29 -0800 |
Radek, You can use an <xsl:text> element to introduce a (real) space character: <xsl:value-of select="../HEADER/FROM/STATE"/> <xsl:text> </xsl:text> <xsl:value-of select="../HEADER/FROM/ZIP1"/> or <xsl:value-of select="../HEADER/FROM/STATE" /> <xsl:value-of select="../HEADER/FROM/ZIP1"/> or you can insert a non-breaking space character ( in HTML) if that is more appropriate: <xsl:value-of select="../HEADER/FROM/STATE" /> <xsl:value-of select="../HEADER/FROM/ZIP1"/> For more information on why the white space was removed in your example, read up on white space handling, e.g., in [1]. Cheers, Stuart, stuart@xxxxxxxxxxx, www.ferncrk.com Reference [1] Kay, Michael, "XSLT Programmer's Reference, Second Edition", Wrox Press, 2001. See p. 139, f. -----Original Message----- I would like to hardcode one character space between state and zip ... how can I do that ? I didn't find solution for that simple task yet... <xsl:value-of select="../HEADER/FROM/CITY"/>, <xsl:value-of select="../HEADER/FROM/STATE"/> <xsl:value-of select="../HEADER/FROM/ZIP1"/> appreciate any sugesstion, Radek XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] space between two prints , David Carlisle | Thread | Re: [xsl] space between two prints , Wendell Piez |
Re: [xsl] space between two prints , David Carlisle | Date | RE: [xsl] space between two prints , Jeff Beadle |
Month |