[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: applying xsl to xml to produce different xml
<xsl:template match="/"> <xsl:copy-of select="//authors"/> </xsl:template> Mike Kay > > I would like to apply a stylesheet to an xml doc and produce > a new xml doc with > only part of the original xml. > > for example: > > xml 1: > > <library> > <books> > <title>title 1</title> > <title>title 2</title> > </books> > <authors> > <author>author 1</author> > <author>author 2</author> > </authors> > </library> > > > into > > xml 2: > > <authors> > <author>author 1</author> > <author>author 2</author> > </authors> > > > i would like to return a new xml doc containg only the the > node authors and its > children nodes. i would like to retain the data in its tagged form. > > any suggestions? > > thanks. > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > 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
|