W3C home > Mailing lists > Public > public-xml-id@w3.org > August 2005

Proposal: Subid (Attribute)

From: Benjamin Hartung <acc10-2005-67@gmx.de>
Date: Wed, 10 Aug 2005 09:14:13 +0200 (MEST)
To: public-xml-id@w3.org
Message-ID: <13451.1123658053@www22.gmx.net>

Dear Ladies and Gentlemen,

may I suggest the introduction of an attribute called (for example) "subid"
whereof the id of en element can get automatically derrived by a predifined
mechanism (e.g. extensioning with a dot)? 

Example: 

<rootElement>
 <anElement id="1">
  <anotherElement subid="1">
  </anotherElement>
 </anElement>
</rootElement>

being equal to 

<rootElement>
 <anElement id="1">
  <anotherElement id="1.1">
  </anotherElement>
 </anElement>
</rootElement>

I am not aware that such a mechanism as fundamental XML issue is in place
already. Or am I wrong?

I consider this idea some very helpfull improvement to XML as it simplifies
generating IDs and would allow DOM search by subid resulting in series of
elements (e.g. sort of content by multiple dimensions). 

Thanks in advance for your answer!

Yours sincerely,
Benjamin Hartung, 
Dresden, Germany 
Received on Wednesday, 10 August 2005 07:14:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:50 UTC