[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

Subject: Creating an xml doc from another xml doc via xsl
From: "Matthew Cordes" <mcorde61@xxxxxxxxx>
Date: Sun, 9 Apr 2000 13:53:13 -0400
create xml doc
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.