This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Finding all occurences of a node
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Finding all occurences of a node
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 31 Jan 2001 16:20:42 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> To get everything below <sub1> I am using:
>
> <xsl:template match="child::sub1/child::*">
> <xsl:copy-of select="."/>
> </xsl:template>
>
> But how can I replace all occurences of <myowntag>?
<xsl:copy-of> can only be used to produce an exact copy. If you want to
produce a modified copy, use <xsl:apply-templates>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list