This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSLT Whitespace ???
- From: "jparlato" <jparlato at mindspring dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 11 Feb 2002 18:00:26 -0500
- Subject: RE: [xsl] XSLT Whitespace ???
- Reply-to: xsl-list at lists dot mulberrytech dot com
You could output the result in <table><tr><td>.... etc.,
then the columns would have alignment.
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ragan, Mitch
Sent: Monday, February 11, 2002 5:36 PM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] XSLT Whitespace ???
How do I insert Whitespace?
XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="//Quote">
<xsl:value-of select="@date"/>
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
Output:
2001-09-15$12.30
2001-10-15$ 14.95
2001-11-15$16.00
Desired Output (with some space between Date and Price):
2001-09-15 $12.30
2001-10-15 $14.95
2001-11-15 $16.00
XML File:
<Quotes>
<Quote symbol="MCDTA" date="2001-09-15">$12.30</Quote>
<Quote symbol="MCDTA" date="2001-10-15">$14.95</Quote>
<Quote symbol="MCDTA" date="2001-11-15">$16.00</Quote>
</Quotes>
Mitch K. Ragan
Boeing Commercial Aircraft Group
Global Electronic Commerce
Senior Systems Analyst
Primary: 425-266-3155
Secondary: 425-237-1735
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list