W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2003

Any plan to extend Key and KeyRef element for a better support of XPath?

From: Bruno Fischel <bfische@us.ibm.com>
Date: 13 Oct 2003 13:12:42 +0200
To: www-xml-schema-comments@w3.org
Message-ID: <OFEBAB769A.F38AD01B-ON87256DB2.005F96C6-88256DB2.0064D7CC@us.ibm.com>

Hi all,
I have the following XML fragment:
    <foo name="Region"/>
    <foo name="Country"/>
    <data value="$2,300,450">

I want to use the following key in the definition of the foo elements:
<key name="myKey">
  <selector xpath="."/>
  <field xpath="@name"/>

Now I would like to define the following keyRef for my data elements:
<keyRef name="myKeyRef" ref="myKey">
  <selector xpath="./*"/>
  <field xpath="name()"/>

In the current specification of XML Schema, this keyRef is not valid
because there is no support to the name() function of XPath in field.

Is there any plan to extend the support of XPath in the future 1.1 Schema
specification? I think it would be really useful and at no extra cost for a
schema processor.


IBM Silicon Valley Laboratory
Received on Monday, 13 October 2003 07:16:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:01 UTC