|
next
|
 Subject: tab delimited to XML Author: Tony Lavinio Date: 10 Jan 2006 03:38 PM
|
You didn't state your release. If you are running Stylus Studio 6
Professional, you already have a tool in Convert-to-XML which will
turn the file into XML for you.
Do File|New|Convert to XML, and choose your URB.txt file.
Make the following changes to the properties:
Element Name Source: From First Row
Collapse Consecutive Separators: false
Now, save your definition, like URB.conv.
Do File|New|XSLT Mapper.
For the left (input) side, choose your URB.txt file, and then
check the box that says 'open with adapter', and choose the URB.conv
file you created.
For the right (output) side, choose your .xsd or .dtd file.
Now, draw lines to connect the input to output. The result will
be an XSLT file that you can use to read from the text file and
turn into XML in the format you want.
For more information, look in the on-line documentation under
Convert to XML, or see http://www.stylusstudio.com/xml_mapper.html
|
|
|