W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 1998

XSL Feature Request

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Wed, 23 Dec 1998 20:47:44 -0500
Message-Id: <Version.32.19981223203636.00e10750@CraneSoftwrights.com>
To: XSL Editors <xsl-editors@w3.org>
Hi folks!

Currently, XSL reads:

==============================8<--------------------------------
The position of a node relative to its siblings can be tested.

- first-of-any() succeeds if the node being tested is the first element child

- last-of-any() succeeds if the node being tested is the last element child

- first-of-type() succeeds if the node being tested is the first element
child of its element type

- last-of-type() succeeds if the node being tested is the first element
child of its element type
==============================8<--------------------------------

Would it be possible to have as well (I'm not sure which would be best for
the number expression, zero-origin or one-origin ... programmers expect
zero, non-programmers expect one) the following:

[30] PositionalExpr ::= 'first-of-type' '(' ')'
                      | 'last-of-type' '(' ')'
                      | 'first-of-any' '(' ')'
                      | 'last-of-any' '(' ')'
                      | 'index-of-type' '(' numberExpression ')'
                      | 'index-of-any' '(' numberExpression ')'

- index-of-type(numberExpression) succeeds if the node being tested is the
nth element child of its element type
- index-of-any(numberExpression) succeeds if the node being tested is the
nth element child of its parent's children

... perhaps numberConstant would be better (easier?) than numberExpression?


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

--
G. Ken Holman         mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/s/
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995
Training:   http://www.CraneSoftwrights.com/s/schedule.htm
Resources: http://www.CraneSoftwrights.com/s/resources.htm
Shareware: http://www.CraneSoftwrights.com/s/shareware.htm
Next XSL Training (see training link):   WWW8 - 1999-05-11
Received on Wednesday, 23 December 1998 21:27:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:49 GMT