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

[no subject]

From: ericmacau@xxxxxxxxx
Date: Wed, 28 Mar 2001 14:59:34 +0800 (CST)
[no subject]
 Hello,

Is it possible to define the Alignment of a Text/Number in XSLT ?

For example,
<item>
<name>Pen</name>
<price>1.25</price>
</item>
<item>
<name>Pencil</name>
<price>0.5</price>
</item>
<item>
<name>Bag</name>
<price>12.38</price>
</item>

If I want the output method as TEXT. How to define the XSL so that the ouput result as following ?

123456789012345678901234567890
---------|---------|---------|-----------
Pen 1.25
Pencil 0.50
Bag 12.38
---------|---------|---------|-----------
123456789012345678901234567890


The <name> is left alignment, and the price is right alignment.
Both node's length is specify. The output length of <name> is 10, and the <price>'s is 8.

Would you please to teach me how to do that ?

Best regards,
Eric

************************************
×îÐÂÍƳö¡°ÖлªµØͼ¡±
http://map.china.com


 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.