Re: [xsl] Find the root element from an attribute node

Subject: Re: [xsl] Find the root element from an attribute node
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 11 Jul 2008 17:22:29 +0200
Marroc wrote:

<html id="a-4238b08e-10f858ce772--2dd4"
xmlns="http://www.w3.org/1999/xhtml";>

So that element is in the namespace http://www.w3.org/1999/xhtml while the match below
<xsl:template match="/html">

matches an element with local name 'html' in no namespace.


With XSLT 2.0 you could use
  <xsl:template match="/*:html">
to match elements with local name 'html' in any namespace.


--


	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread