xsl-list
[Top] [All Lists]

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

2008-07-11 08:22:55
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--