Re: [xsl] processing-instruction()

Subject: Re: [xsl] processing-instruction()
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 31 Jul 2002 15:48:39 +0100
David C. wrote:
> Other than that it looks OK except
>
> <xsl:template match="node()">
> and
> <xsl:template match="processing-instruction('Eqn')">
>
> have the same default priority so you want to add priority="10" to
> the processing-instruction ones.

Actually, I think the processing-instruction('Eqn') matching template
has a priority of 0 while the node() matching template has a priority
of -0.5:

  ...
  * If the pattern has the form of a QName preceded by a
    ChildOrAttributeAxisSpecifier *or has the form
    processing-instruction(Literal)* preceded by a
    ChildOrAttributeAxisSpecifier, then the priority is 0.
  ...
  * Otherwise, if the pattern consists of just a NodeTest preceded
    by a ChildOrAttributeAxisSpecifier, then the priority is -0.5.
  ...
                      http://www.w3.org/TR/xslt#conflict (my emphasis)

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread