[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to create new xml elements using xslt?

Subject: RE: How to create new xml elements using xslt?
From: "Ivan Rubin Ayma" <Iayma@xxxxxxxxxxxx>
Date: Thu, 7 Feb 2002 12:42:37 -0300
create new xml

If you have this xml


and this xml

	<beauty>all changeable</beauty>

and an stylesheet

<xsl:template match="rainbow">
	<!-- do something with the rainbow -->

	<!-- and new things here -->

<xsl:template match="treasure">
	<!-- do something with the treasure -->

	<!-- and new thins here -->

And if you want to have all the control on the matter you can match

<xsl:template match="/">
	<xsl:apply-template select="rainbow"/>
	<xsl:apply-template select="treasure"/>

-----Mensaje original-----
De: Khalid [mailto:k_ali@xxxxxxxxxxxxxxx]
Enviado el: jueves, 07 de febrero de 2002 12:29
Para: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Asunto:  How to create new xml elements using xslt?

Hello,I appologise if this is a duplicate post.
My question is this, how to create new elements?.

I can read 2 xml files and create a single file output with some
selected nodes
from both files,but I want to create some new elements aswell and they
may be
appended in the beginning or at the end of the created document and I
may want
to insert a new element in the middle of the this newly created
Can some one guide me to how to get this done.
btw. I can read 2files and a print a new file with selected elements.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.