Re: [xsl] Copying a document except specific root attribute

Subject: Re: [xsl] Copying a document except specific root attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 13 Jun 2005 16:16:05 +0100
  <xsl:template match="/@myRootAttribute"/>


That matches an attribute of the root node called myRootAttribute
but root nodes can not have attributes.

If your attribute is on the top level element then that is

<xsl:template match="/*/@myRootAttribute"/>

/ is not the top level elemment, it is its _parent_.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread