[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: deep "copy-of" a source fragment

Subject: Re: deep "copy-of" a source fragment
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Wed, 4 Sep 2002 23:59:12 -0700
xml deep copy
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.