Altova Mailing List Archives
>microsoft.public.xsl Archive Home
>Recent entries
[Thread Prev]
>Thread Next - RE: Adding fixed whitespace to XSLT text output?
Adding fixed whitespace to XSLT text output?
To: NULL
Date: 3/9/2005 5:10:00 PM
Hi all, I'm a newbie to the XPATH/XSLT world, but I think there could be some real value in scaling this learning curve in order to allow my group to set up some source data that could be transformed in a variety of different ways without having to write a new program every time we want to build a new translation for the data. Unfortunately, as a newbie I'm having some trouble with my first transform, and digging around the books and web pages on XPATH/XSLT I've found so far haven't helped much I'm afraid. Here's the issue: I want to take an element from an XML form and turn the text of the element into a fixed-length string of, say, 20 characters. I know I can use the xsl:value-of element to get the text of the XML element I want, but I haven't had any luck finding out how to use XPATH to create the proper string expression to pad the results of the value-of operation with whitespace up to 20 characters. Can anyone help? Thanks in advance!
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

