[xsl] 2.0 feature request

Subject: [xsl] 2.0 feature request
From: DPawson@xxxxxxxxxxx
Date: Mon, 19 Feb 2001 20:44:11 -0000
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


Current Thread