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

Re: processing-instruction()

Subject: Re: processing-instruction()
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 31 Jul 2002 16:28:28 +0100
Re:  processing-instruction()
Joerg,

> 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.

Sure, as is a QName and an NCName:*. The important thing is that the
XSLT spec says:

  **Otherwise**, if the pattern consists of just a NodeTest preceded
  by a ChildOrAttributeAxisSpecifier, then the priority is -0.5.

and the *otherwise* means that this condition only comes into play if
the pattern hasn't been covered by the previous conditions. QNames and
NCName:*s and processing-instruction('Literal')s are covered by the
previous conditions.
  
> What about node() and * - do they have the same priority?

Yep, which is a bit weird, but then the default priorities are fairly
rough -- nothing like as sophisticated as CSS's, for example.

Cheers,

Jeni

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


 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.