|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: selecting everything below a node
Hi Jorg,
if you don't want to modify parts of it, you can use:
<xsl:copy-of select="/aggregate/content"/>
Adjust the xpath to your needs.
If you want to modify some nodes, use the identity transformation:
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
Then use specific templates to do the modifications.
Regards,
Markus
__________________________
Markus Abt
Comet Computer GmbH
http://www.comet.de
----------
Von: Jorg Heymans
Gesendet: Mittwoch, 6. August 2003 16:43
An: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Betreff: selecting everything below a node
Hi list,
Given following xml
<aggregate>
<request>
many children here
</request>
<content>
..many children here
</content>
</aggregate>
How do I extract the whole <content> tree (nodes + attributes) into a
different document?
Regards
Jorg
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
|

Cart








