Project

General

Profile

Bug #563

using xs:ID for id and packageId requires alpha character

Added by Matt Jones almost 18 years ago. Updated almost 18 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
eml - general bugs
Target version:
Start date:
08/20/2002
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
563

Description

It appears that all id's (id and packageId) must contain an alphabetic character
because we have defined them as xs:ID. We might want to consider redefining
them as xs:string because of this limitation, and just rely on the key for
uniqueness. This would mean that in DTD enviroments we wouldn't be able to
establish uniqueness of the keys, but we seem to be moving away from DTD support
anyways so I think we should probably make this change.

As an example:
This validates: <eml packageId="X123">
This does not validate: <eml packageId="123">

History

#1 Updated by Matt Jones almost 18 years ago

Changed xs:ID to xs:string in all schema files. This allows numeric values for
the id values. The only down side of this is that we nbo longer can guarantee
unique id values if using an XML1.0 DTD parser. But we still can guarantee
unique id values using an XML Schema parser because of the "key" we created in
schema.

If there are no comments on this bug, I'll mark it as FIXED in a couple of days.

#2 Updated by Matt Jones almost 18 years ago

No comments have surfaced on the change from xs:ID to xs:string for the
datatypes of our id attributes, so I am marking this bug as FIXED. Now we
completely rely on the XML Schema "key" element to maintain uniqueness of the ids.

#3 Updated by Redmine Admin over 7 years ago

Original Bugzilla ID was 563

Also available in: Atom PDF