Thanks also to Martin and Peter for replying to my basic inquiry.
Richard Tobin wrote:
Peter Flynn wrote:
The order of ID values in an IDREFS attribute is not significant in
XML.
The XML specification doesn't say anything explicit about this. But
what it requires parsers to pass to applications is the normalized
(string) value of the attribute, not a list of IDs. And the string
must be in the original order - all that is done to it is whitespace
normalization.
<slapping what="hand on head"/>
I should have remembered this from the XML spec! Thanks for reminding
me that parsers preserve attribute values (with white space
normalization as required) to send to the application. I'm clearly not
an expert on XML parsing, so I appreciate the feedback from those who
are.
The XML Infoset is clear: the [references] property is an ordered
list, and reflects the order in the attribute.
Thanks.
I'll also check out a different approach as suggested by Peter (e.g.,
the TEI <linkGrp>.)
On a related topic, I am confused about what XML 1.0 says about the
"space" between IDs in IDREF, and reconcile that with what is being
said on the Internet (which often says "white space".)
According to Section 3.3.1 of the XML spec, datatype IDREFS must
match the "Names" production. "Names" is defined in Section 2.3 [6]
as follows:
[6] Names ::= Name (#x20 Name)*
Notice this allows only one space character between "Name", not
white space (which can be any number of spaces, carriage returns,
line feeds, and tabs.)
So what am I missing here?
Thanks again.