Re: [xsl] Question about template priority

Subject: Re: [xsl] Question about template priority
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Feb 2010 12:24:30 -0500
Hi,

At 11:50 AM 2/9/2010, David wrote:
because of following [] expression: it's not _just_ a nodetest.

It doesn't affect your question, but

<!--(1)--><xsl:template match="node()[generate-id(.) = generate-id(root(.)/*[1])]" />

is the same as

<!--(1)--><xsl:template match="/*"/>

What's more, match="/*" also has an implicit priority of 0.5.


Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread