Q: pattern selection for outside the context node

G. Ken Holman gkholman at CraneSoftwrights.com
Fri Jul 9 16:59:49 BST 1999

At 99/07/09 10:00 -0400, Tony Graham wrote:
>At 8 Jul 1999 18:24 -0700, G. Ken Holman wrote:
> > According to 6.1.1 there are 12 axes you can choose from when building a
> > pattern:
>These are good for location paths, but not for patterns.  Section 6.3

My mistake.  The terminology "select pattern" disappeared in the April
working draft, replaced with "node set expression".

However, the context (no pun intended) for the original poster was how to
control the use of <xsl:apply-templates>, not how to match in a template,
which is why I gave the monologue that I did.  I prefixed the enumeration
of axes by drawing on the poster's example of the implicit node set
expression for children.

>But you can't use "." or ".." in a pattern.

Again, you are correct that in the latest working draft the word "pattern"
is restricted to what used to be a "match pattern" and is no longer used as
"select pattern".  The above are allowed in a node set expression, which is
what was needed by the poster.

> > The function id() described in 6.2.2 allows you to, in a location step,
> > refer to a node or nodes with unique identifiers.
>Provided you specify the ID as a literal string.
> > The function key() is similar to id() in that it allows you to refer to a
> > node or nodes elsewhere in the document
>Provided you use literal arguments.

Again correct, in my rush I purposely neglected to include idref() and
keyref() to avoid having to go into detail, thinking that once the reader
navigated to id() and key() in the working draft that these couldn't be

Thank you for highlighting these points, Tony.

........... Ken 

G. Ken Holman                    mailto:gkholman at CraneSoftwrights.com
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Website:  XSL/XML/DSSSL/SGML services, training, libraries, products.
Publications:   Introduction to XSLT (3rd Edition) ISBN 1-894049-00-4
Next instructor-led training:   MS'99 1999-08-16  MT'99 1999-12-05/06

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list