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

RE: XSLT Whitespace ???

Subject: RE: XSLT Whitespace ???
From: "jparlato" <jparlato@xxxxxxxxxxxxxx>
Date: Mon, 11 Feb 2002 18:00:26 -0500
xslt whitespace output
You could output the result in <table><tr><td>.... etc.,
then the columns would have alignment.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ragan, Mitch
Sent: Monday, February 11, 2002 5:36 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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


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.