W3C home > Mailing lists > Public > www-forms@w3.org > November 2002

Re: [XForms] ID/IDREF relationships in XML instances

From: <AndrewWatt2001@aol.com>
Date: Mon, 18 Nov 2002 09:06:20 EST
Message-ID: <cd.2074872a.2b0a4ddc@aol.com>
To: XForms@yahoogroups.com
CC: www-forms@w3.org
In a message dated 18/11/2002 13:57:24 GMT Standard Time, 
MSeaborne@origoservices.com writes:

>     <person id="1">
>         <forenames>Harold</forenames>
>         <surname>Biggs</surname>
>         <address address_id="c"/>
>     </person>
> There can be more than one <person>, more than one <address> and more than 
> one person/@address_id can point to one address/@id.


Your problem may be totally unrelated but as I read through your code the 
first thing that struck me is that you are using an illegal value for the id 
attribute on the <person> element.

The value of an ID attribute may not start with a numeric character. So 
id="1" is illegal.

Secondly, the fact that an attribute has the name "id" does not automatically 
make it an ID attribute. There needs to be a DTD/schema which states that. 
You don't state whether such a DTD/schema exists.

Either or both of those possible problems would stop an XML processor 
treating your code as if it had a legal ID attribute present.

I hope that helps a little.

Andrew Watt
Received on Monday, 18 November 2002 09:06:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:07 UTC