How do I right or left space fill a string in xslt / native xsd schema?
626111Jan 23 2009 — edited Jan 24 2009How do I right or left space fill a string in xslt / native xsd schema?
The input is coming from a database adapter and the output is a native/flat file written by an FTPAdapter.
My input data looks like 'HELLO' my output data is fixed length 8. I expected the data to look like 'HELLO ', however, it is coming out ' HELLO'. So basically how can I fill this data / left justify right fill with spaces.
excerpt from my flat file output xsd
...
<xsd:element name="FIELDONE" type="xsd:string" nxsd:style="fixedLength" nxsd:length="15" nxsd:paddedBy=" " nxsd:padStyle="tail">
...
I was hopeful that adding the padded by would do it but it didnt change the result. I am considering adding code to add spaces to the data in the database query but am hoping I am just missing something simple!
Thank you for for your review/assistance.
Fellow developer in the trenches!
John