Page 1 of 1

XML to text

Posted: Fri Mar 02, 2012 12:14 am
by Marzipan
I'd like to transform a existing XML document to a comma delimited by creating a XSLT. Is there a simple step by step documentation?

Re: XML to text

Posted: Fri Mar 02, 2012 5:19 pm
by adrian
Hello,

There are a couple of topics regarding this on the stackoverflow forums:
http://stackoverflow.com/questions/3653 ... using-xslt
http://stackoverflow.com/questions/9523 ... xml-to-csv

Oxygen has a few helpers when editing XSLT. If you create an XSLT transformation scenario(Document -> Transformation -> Configure Transformation Scenario, New) and pick a name and an input XML file, you will have the XML model of that input file in the XSLT/XQuery input view(Window > Show View > XSLT/XQuery input).
You can then drag and drop elements and attributes from that view into the XSLT file and depending on the context from the XSLT file you will get a popup menu that proposes the insertion of various XSLT instructions.

Regards,
Adrian

Re: XML to text

Posted: Fri Apr 06, 2012 8:24 pm
by mountainbiker
Another resource: XSLT Cookbook