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

RE: generation of flat file from XSL

Subject: RE: generation of flat file from XSL
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 13 Oct 2003 17:39:29 +0100
xsl flat file
> I have worked on generation of a flat file from xml using 
> XSL. I have used  select:value-of for the data and xsl:text 
> to put the commas in the flat file.
> 
> 
> Could some body let me know if the flat file can be generated 
> as  a fixed field length file and 
> the necessary options xsl has.

It can, but you need to do more work. Write a template like:

<xsl:template name="pad">
<xsl:param name="value"/>
<xsl:param name="size"/>
<xsl:variable name="spaces"
 select="'                                            '"/>
<xsl:value-of select="substring(concat($value, $spaces), 1, $size)"/>
</xsl:template>

Michael Kay
   


 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.