RE: applying xsl to xml to produce different xml

Subject: RE: applying xsl to xml to produce different xml
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 2 Dec 1999 18:02:10 -0000
<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


Current Thread