I am not asking for full XSLT code but simply for some advice on how to convert
from one XML vocab into another (without formatting). I just need some advice on how
to:
* create a new XML file while retaining the old one
* create new elements
* make existing elements sub-nodes of new elements
(The xslt examples that I am familiar with ALL involve XML to HTML transformations
in a web browser.)
Subject:XML to XML transformations Author:steven matthews Date:16 Aug 2006 09:37 AM
THanks again Ivan,
Although this is useful what I really would like to have is some sort of insight into how this can be done programmatically using XSLT.
Nearly all examples in XSLT web sites refer to XML : HTML transformations which I guess is not too surprising since that seems to be the main purpose of XSLT.
I am not looking for code - just some pointers on how to convert one XML vocab into anther XML vocab ...
Subject:XML to XML transformations Author:Tony Lavinio Date:16 Aug 2006 10:34 AM
If you do the mapping using the Stylus Studio XSLT mapper tool,
it will generate the corresponding XSLT in real-time in the lower
portion of the window, so you can see exactly how the mapping
works. This should give you a good idea how to do this on your
own.
As a plus side, you get pre-written XSLT. And if you modify the
XSLT in the lower window, the map in the upper window is updated
accordingly.