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

RE: Chapter 14 of the XML Bible now online

Subject: RE: Chapter 14 of the XML Bible now online
From: Elliotte Rusty Harold <elharo@xxxxxxxxxxxxxxx>
Date: Tue, 20 Jul 1999 18:20:26 -0400
halloween what does bible say
At 1:59 PM -0600 7/20/99, Mike Brown wrote:

>I have one minor nitpick. Under 'Node Axes' you say:
>
>  Node Types
>
>  As well as the name of a node and the wild card, the
>  axis may be followed by one of these four node-type bases:
>
>    comment()
>    text()
>    processing-instruction()
>    node()
>
>  The comment() node type selects a comment node. The text()
>  node type selects a text node. The processing-
>  instruction() node type selects a processing instruction
>  node, and the node() node type selects any type of node.
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  (The * wild card only selects element nodes.)
>
>
>Section 6.2 of the XSLT spec says:
>
>  node() matches any node other than an attribute node and
>  the root node
>

This is a very tricky point, and I've been wrong about it before; but my
understanding is that the section of the spec you cite applies only to the
more restrictive case of match patterns; whereas the part of my book you're
referring to is discussing select expressions (i.e. full XPath syntax) in
which context node() does include attribute nodes.


+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@xxxxxxxxxxxxxxx | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://metalab.unc.edu/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+



 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.