This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Creating an xml doc from another xml doc via xsl
- To: <perl-xml at listserv dot activestate dot com>, <cocoon-users-help at xml dot apache dot org>, <xsl-list at mulberrytech dot com>
- Subject: Creating an xml doc from another xml doc via xsl
- From: "Matthew Cordes" <mcorde61 at maine dot edu>
- Date: Sun, 9 Apr 2000 13:53:13 -0400
- References: <36625.813430555558400.1292@localhost>
- Reply-To: xsl-list at mulberrytech dot com
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