[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: processing-instruction()

Subject: Re: processing-instruction()
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 31 Jul 2002 17:03:11 +0200
Re:  processing-instruction()
I read it and found David acknowedged, because the link to NodeTest (http://www.w3.org/TR/xpath#NT-NodeTest) states, that processing-instruction('Literal') is a NodeTest too.

So there is a sentence in XSLT spec saying
processing-instruction('Literal') has priority of 0

and a in the XPATH spec merged with the XSLT spec a sentence saying

processing-instruction('Literal') has priority of -0.5

What about node() and * - do they have the same priority?

Really strange ;-)

Joerg


Jeni Tennison wrote:
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





--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.