|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Creating an xml doc from another xml doc via xsl
I know it is possible, but I've yet to see any examples on how to create an
xml document from an xml document and a stylesheet. For instance, I have
this xml from a database:
<resultset>
<result>
<name> Matt </name>
<age> 23 </age>
<course> cos-399 </course>
</result>
<result>
<name> Joe </name>
<age> 22 </age>
<course> cos-399 </course>
</result>
</resultset>
and I want to transform it to be
<courses>
<course title="cos-399">
<student>
<name> Matt </name>
<age> 23 </age>
</student>
<student>
<name> Joe </name>
<age> 22 </age>
</student>
</course>
</courses>
Can anyone point out some exmaples? Or explain how to do this?
-matt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








