XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] DTDs don't have ID or IDREF elements so why does XMLSchema?

Orthogonality, or to put it another way, avoiding arbitrary restrictions. If ID and IDREF are going to be among your set of data types, then why would you want to disallow people from using them on elements.

(Personally, I would have made "IDness" and "IDREFness" properties that are orthogonal to type. I can't see any good reason for disallowing IDs of type integer or date. But the SGML and DTD legacy weighed strongly on the XSD designers.)

Michael Kay
Saxonica

> On 1 Mar 2022, at 23:32, Roger L Costello <costello@mitre.org> wrote:
> 
> Hi Folks,
> 
> DTD only allows attributes to be of type ID and IDREF.
> 
> XML Schema allows both attributes and elements to be of type ID and IDREF. Why? Is there a compelling use case for declaring an element to be of type ID? Is there a compelling use case for declaring an element to be of type IDREF?
> 
> /Roger
> 
> _______________________________________________________________________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS