Here's the problem I'm trying to solve. I want one node to be able to refer to multiple other nodes. Like this:
<ranges>
<range localid="0001">2013-05-06</range>
<range localid="0010">2014-01-02</range>
<range localid="0100">2014-03-09</range>
<range localid="1000">2014-11-12</range>
</ranges>
<speakers>
<speaker crossrefs="0011">Sagan</speaker>
<speaker crossrefs="1010">Krauss</speaker>
</speakers>
Using a kind of bitfield would allow my "speaker" nodes to refer to multiple date ranges. But "speaker" is not the only node I'd like to cross-reference in this way. I have lots of other nodes and subnodes, and I'd like to avoid adding a "crossrefs" attribute to every node I create in the schema, which is very much in flux right now anyway, as I add new element types. Is there anything in xml that would allow me to declare "crossrefs" as an optional attribute for every node in the document?
It occurrs to me that this would be just like the "id" attribute that xml allows on every node. I looked at the schema for xml schema, to see how the "id" attribute is defined, but I can't see anything there that looks like the thing I'm looking for. Is there a way to do this?
I had already looked into xml cross-references. The problem with that, at least as far as I understand cross-references, is that I'd have to add a subnode to every node, to have another node that acts as a cross reference. Ugly. Is there a less ugly way to do this sort of thing?
Edit:
It seems that this might be the same as the question I'm asking, but it's so far over my head that I can't tell whether it really is the same.