Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I right or left space fill a string in xslt / native xsd schema?

626111Jan 23 2009 — edited Jan 24 2009
How 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2009
Added on Jan 23 2009
1 comment
4,151 views