- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 28 Feb 2003 12:31:31 +0000
- To: Graham Mann <gmann@adobe.com>
- Cc: xmlschema-dev@w3.org
Graham Mann <gmann@adobe.com> writes: > Hi, > > I'm trying to make a Key that is the combination of an Elements Children's name and ID attribute. > These will then be used by a Keyref that has two attributes to do the match. > > The ID is no problem - but I can't seem to get a permitted XPath expression to return a childs' name as a string. > > <xs:keyref name="Element_rRef" refer="Element_ID"> > <xs:selector xpath=".//Pool/*"/> > <xs:field xpath="@rRef"/> > <xs:field xpath="@Name"/> > </xs:keyref> > This is OK > > <xs:key name="Element_ID"> > <xs:selector xpath="./*"/> > <xs:field xpath="@ID"/> > <xs:field xpath="{name()}"/> > </xs:key> Sorry, the current version of XML Schema doesn't support that kind of dependence. It is somewhat unusual -- what does your data look like? ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Friday, 28 February 2003 07:31:34 UTC