IDREF

Lars Marius Garshol larsga at ifi.uio.no
Sun Mar 22 15:18:12 GMT 1998


* Peter Murray-Rust
|
| Are there any examples of XML documents that use IDREF? 

I've got one at

<URL:http://birk105.studby.uio.no/www_work/xml/sgmlglos.xml>
<URL:http://birk105.studby.uio.no/www_work/xml/glos_xml.dtd>

| The XML-REC (in XML) would appear to do so as there are a number of
| attributes ending in *REF, but since I have not yet found the DTD
| this is guesswork.

Actually, that's one DTD it would be very nice to have for testing
purposes. Is it available anywhere? (Please?)

In my experience ID/IDREF is very nice for simple cross-references
inside a document, since they're so simple to use. (The error handling
need not be Draconian.  nsgmls-like behaviour where the reporting can
be turned off is IMHO sensible for this, since there may be invalid
references while the document is being written.)

| IDREFs are concise and simple to implement(?). 

Compared to XLL, yes, but they do require a parser that reads the
DTD. I've not added them to my own parser yet, but they won't require
much work (unless there are hidden surprises, of course).

-- 
"These are, as I began, cumbersome ways / to kill a man. Simpler, direct, 
and much more neat / is to see that he is living somewhere in the middle /
of the twentieth century, and leave him there."     -- Edwin Brock

 http://www.stud.ifi.uio.no/~larsga/      http://birk105.studby.uio.no/


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list