This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: how do I create new elements in xslt


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]