Search the web
Sign In
New User? Sign Up
xml-litprog-l · Literate Programming using XML
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Converting XML to Fixed Length Text Data using XSLT   Message List  
Reply | Forward Message #181 of 238 |
Ladies and Gents, I need some guidance and a sample snippet if
possible.
Basically I want to convert an xml file to a fixed length text file.
The following is a sample of what I am trying to do.
Note the data for each element/attribute must be in the exact start
position stated below. For example, if there is a scenario where
child2
does not show on the input xml file, then if child3 is present, it
must
still start in position 39.

Position of data for output file:
field: child1 start 1 length 7
field: att1 start 12 length 5
field: child2 start 27 length 12
field: child3 start 39 length 15
field: att2 start 56 length 3

Input:
<parent att1="foo">
<child1>aChild</child1>
<child2>anotherChild</child2>
<child3 att2="bar">yetAnotherChild</child3>
</parent>

Output:
aChild foo anotherChildyetAnotherChild bar

I would really appreciate any help on this.

Thanks
Garvin Franco
garvin_franco@...




Thu Mar 28, 2002 4:44 pm

francog_98
Offline Offline
Send Email Send Email

Forward
Message #181 of 238 |
Expand Messages Author Sort by Date

Ladies and Gents, I need some guidance and a sample snippet if possible. Basically I want to convert an xml file to a fixed length text file. The following is...
francog_98
Offline Send Email
Mar 28, 2002
4:44 pm

I have the same problem and I'm interested of any solution to it, preferably using XSLT. Rafael ... file. [...]...
Rafael_Amen
Offline Send Email
Apr 4, 2002
11:56 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help