[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: deep "copy-of" a source fragment
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
|
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
|