RE: [xsl] Formatting Text Output

Subject: RE: [xsl] Formatting Text Output
From: Ryan Graham <ryan.graham@xxxxxxxxxxxxx>
Date: Wed, 2 Feb 2005 10:18:20 -0700
You can try the string-length() function in conjunction with conditionals...


-----Original Message-----
From: Varley, Roger [mailto:Roger.Varley@xxxxxxxxxxxxxx] 
Sent: Wednesday, February 02, 2005 10:11 AM
To: Xsl-List (E-mail)
Subject: [xsl] Formatting Text Output


I have a requirement that involves incoming customer Purchase Orders in xml
format and I need to extract the relevant data and output that information
in a text file. The item code, description and order quantity need to appear
in columns aligned with the colomn headings. I've got it all working and I'm
seperating the columns with <xsl:text>&#09;....&#09;</xsl:text> to obtain
the required spacing.

The problem that I've got is that the product description is variable length
and therefore the number of &#09; characters that need inserting to line up
the following colomns depends upon the length of the description - and I
can't find any sort of length() function. Any suggestions how I go about


This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive this 
e-mail in error, please notify the sender immediately and destroy it. As its
integrity cannot be secured on the Internet, the Atos Origin group 
liability cannot be triggered for the message content. Although the 
sender endeavours to maintain a computer virus-free network, the sender 
does not warrant that this transmission is virus-free and will not be 
liable for any damages resulting from any virus transmitted.

Current Thread