XSL Feature Request

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 UTC