Subject: Re: [xsl] deep "copy-of" a source fragment From: Peter Davis <pdavis152@xxxxxxxxx> Date: Wed, 4 Sep 2002 23:59:12 -0700 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] deep "copy-of" a source f, Terence Kearns | Thread | RE: [xsl] deep "copy-of" a source f, Robert Koberg |
RE: [xsl] A few questions to the ex, Jarno . Elovirta | Date | Canonical XML in Databases (Re: [xs, Peter Davis |
Month |