Zthes

Historical XML DTDs and examples

24th February 2006

The material on this page is of historical interest only. New Zthes XML applications should not use these specifications, but those on the XML schema page.

The Zthes DTD for XML

In versions of the Zthes specifications prior to v1.0, the XML format was described by DTDs (Document Type Definitions) rather than XML Schemas. The following versions were published:

  • Zthes DTD, version 0.3a
    This DTD was supplied by Thomas Place, and was lifted from Appendex B.1 of version 0.3b of the profile. It was put forward not as a ``good'' XML representation of thesaurus information (whatever that might be construed to mean) but as a pragmatically valuable alternative encoding of the Zthes abstract record.
  • Zthes DTD, version 0.5 [changes]
    This version incorporated modifications by the National Library of Australia (26th July 2000): the new <term> element allowed multiple thesaurus terms per XML document.

The URLs of these DTDs can be considered stable, and may be used in document type declarations like this:

<!DOCTYPE Zthes SYSTEM "http://zthes.z3950.org/xml/zthes-05.dtd">
  

Sample Zthes-in-XML documents

  • A small sample for v0.3 of the DTD
    This document was supplied by Thomas Place, and is lifted from Appendex B.2 of version 0.3b of the profile.
  • The 1412-term THATT thesaurus
    This document was originally supplied by Thomas Place, and consided of a sequence of Zthes version 0.3a records. I've made the trivial changes to bring it up to version 0.5 of the DTD, in which it is a single document. See the changes file for v0.5 of the DTD for details.
  • The small sample document from v0.3b of the profile, but reworked for v0.5 of the DTD.
    (This was a totally trivial thing to do, and only involved wrapping the single record in a <term>...</term> pair.)
  • The same small sample document, but using a PUBLIC name string for the DTD rather than a simple SYSTEM location. We use the name string:
    -//z3950.org//DTD Zthes 0.5//EN
        
    (obviously with the appropriate version number in place of the 0.5 part when using a different version.)