|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Generally appending XML document to another one (u
Hi > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Aitor San Juan > Sent: Wednesday, October 01, 2003 8:41 AM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Generally appending XML document to another > one (using XSL) > > > Hello all! > > I am trying to write an XSL as general as possible to > append documents at the end of others. You can see the XML > input file and the XSL I'm working on. The "root" attribute > of the <append> element is the name of the root element to be > kept in the output, and under which all the child elements > are appended. Let me explain myself with the following examples. > Try this: <xsl:template match="append"> <xsl:element name="{@root}"> <xsl:apply-templates/> </xsl:element> </xsl:template> <xsl:template match="file"> <xsl:apply-templates select="document(.)"/> </xsl:template> <xsl:template match="book"> <xsl:copy-of select="."/> </xsl:template> Regards, Americo Albuquerque XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








