This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
2.0 feature request
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] 2.0 feature request
- From: DPawson at rnib dot org dot uk
- Date: Mon, 19 Feb 2001 20:44:11 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Straight out of xml query.
http://www.w3.org/TR/xquery/#section-Path-Expressions
However, the right-arrow notation is designed to be easier to read,
especially in path expressions that involve multiple dereferences. For
example, suppose that a given document contains a set of <emp> elements,
each of which contains a "mgr" attribute. The "mgr" attribute is of type
IDREF, and it references another <emp> element that represents the manager
of the given employee. The name of each employee is represented by a <name>
element nested inside the <emp> element.
(Q4) List the names of the second-level managers of all employees whose
rating is "Poor".
/emp[rating = "Poor"]/@mgr->emp/@mgr->emp/name
the -> operator is our old id() function in new clothes.
I think this would be extremely useful.
DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list