Re: <copy-of> problems

Liam R E Quin <[email protected]> Wed, 13 Nov 2013 07:23:11 +0800
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
On Tue, 2013-11-12 at 12:26 +0000, Stephen Knox wrote:

>     <xsl:stylesheet version="1.0"
>      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gmd="
> http://www.isotc211.org/2005/gmd" >
>   <xsl:template match="/gmd:MD_Metadata">
>      <xsl:copy-of select="@*|node()"/>
>   </xsl:template>
>   </xsl:stylesheet>
> 
> Whereas I was expecting the MD_Metadata root element to also be included.
Your style sheet has copy-of in the context of an MD_Metadata element,
and it does not copy that element, only the children of it.

Maybe you want match="/" instead?

Liam