Re: [xslt] <copy-of> problems



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




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