This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: needing clarification about XSL transformation
- From: Jirka Kosek <jirka at kosek dot cz>
- To: "Robert P. J. Day" <rpjday at mindspring dot com>
- Cc: Vitaly Ostanin <vyt at vzljot dot ru>, docbook-apps at lists dot oasis-open dot org
- Date: Mon, 03 Mar 2003 17:37:35 +0100
- Subject: Re: DOCBOOK-APPS: Re: needing clarification about XSL transformation
- References: <Pine.LNX.4.44.0303031125530.12396-100000@dell>
"Robert P. J. Day" wrote:
> which agrees with tidwell, but disagrees with kay, and definitely
> disagrees with http://www.w3.org/TR/xslt, which states, (Section 5.2)
>
> "node() matches any node other than an attribute node or the
> root node"
It is correct statement. Note that XPath expression node() (not node
test alone, whole XPath expression) is shorthand of child::node(). You
can't select attribute this way as you aren't using attribute:: axis.
You can't also select root node, because it hasn't parent.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka at kosek dot cz
http://www.kosek.cz