XML to text

Here should go questions about transforming XML with XSLT and FOP.
Marzipan
Posts: 12
Joined: Fri Mar 02, 2012 12:11 am

XML to text

Post 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?
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: XML to text

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
mountainbiker
Posts: 13
Joined: Mon Aug 29, 2011 3:06 pm

Re: XML to text

Post by mountainbiker »

Another resource: XSLT Cookbook
Post Reply