XPath 2.0 dynamic generation of CSV file
Posted: Thu Aug 09, 2012 3:55 pm
Hello all,
I have an XML file that is structured similar to this:
I also have an XSLT that I use to extract the /foo/bar/items/item elements as CSV. However, what I would really like to do is make the transformer dynamic so that I can set some params to tell it that I want to extract ./items/* or ./sets/* as CSV.
Is this doable? I would appreciate your thoughts on this please.
This is being built and tested using the IDE but will be end up in a Java application.
--
William
I have an XML file that is structured similar to this:
Code: Select all
<foo>
<bar>
<items>
<item/>
<item/>
<.../>
</items>
<sets>
<set/>
<set/>
<.../>
</sets>
<items>
<item/>
<item/>
<.../>
</items>
<sets>
<set/>
<set/>
<.../>
</sets>
</bar>
</foo>
Is this doable? I would appreciate your thoughts on this please.
This is being built and tested using the IDE but will be end up in a Java application.
--
William