This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how do I create new elements in xslt
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 7 Feb 2002 17:38:05 -0000
- Subject: RE: [xsl] how do I create new elements in xslt
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Here is what I am trying to do.
> an xslt file reads in multiple xml files,selects some nodes
> and then before
> printing them out append and inserts some new xml elements in
> this new file
> and then prints it out.How do I get this done,any help be appreciated
There are three ways of creating an element node in the result tree:
xsl-copy (or copy-of) copies elements from the source; a literal result
element copies them from the stylesheet; and xsl:element constructs them
from thin air. One of these will meet your needs.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list