Re: [xslt] <copy-of> problems

On Tue, 2013-11-12 at 12:26 +0000, Stephen Knox wrote:

    <xsl:stylesheet version="1.0"
     xmlns:xsl=""; xmlns:gmd=""; >
  <xsl:template match="/gmd:MD_Metadata">
     <xsl:copy-of select="@*|node()"/>

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?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]