[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Q: pattern selection for outside the context node
At 99/07/09 09:59 -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@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|