This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: deep "copy-of" a source fragment
- From: Peter Davis <pdavis152 at attbi dot com>
- To: Terence Kearns <terencek at isd dot canberra dot edu dot au>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 4 Sep 2002 23:59:12 -0700
- Subject: Re: [xsl] deep "copy-of" a source fragment
- References: <3D75ACA1.7060101@cts.canberra.edu.au> <200209040006.15565.pdavis152@attbi.com> <3D76FB1D.90301@cts.canberra.edu.au>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Sorry, that was a mistake on my part. You don't want it to completely ignore
non-matching nodes, you just want it to apply-templates to its children
(therefore not copying the node and "ignoring" it).
<xsl:template match="node()">
<xsl:apply-templates/>
</xsl:template>
Sorry 'bout that.
On Wednesday 04 September 2002 23:35, you wrote:
> <xsl:template match="node()" priority="0"/>
> <xsl:template match="/h:html/h:body//@* | /h:html/h:body//node()">
> <xsl:copy>
> <xsl:apply-templates select="@*"/>
> <xsl:apply-templates select="node()"/>
> </xsl:copy>
> </xsl:template>
> </xsl:stylesheet>
>
> then I get nothing but an xml declaration returned.
>
> If I remove
> <xsl:template match="node()" priority="0"/>
> Then I get just text-nodes again.
--
Peter Davis
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list