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

Re: Q: pattern selection for outside the context node

  • From: "G. Ken Holman" <gkholman@C...>
  • To: XML-Dev Mailing list <xml-dev@i...>
  • Date: Fri, 09 Jul 1999 07:50:30 -0700

search outside context node xslt
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
>states:

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

Thank you for highlighting these points, Tony.

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

--
G. Ken Holman                    mailto:gkholman@C...
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@i...
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@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.