KAL

HyTime Example

(from Introduction to HyTime , a tutorial by Lloyd Rutledge at DAGS '95.
<!DOCTYPE     book  [
<!ELEMENT     book - O (citation|location|text)*>
< !ATTLIST     book HyTime (HyDoc) #FIXED HyDoc>
<!ELEMENT     (citation|location|text) - O (#PCDATA)>
<!ATTLIST     textid ID #IMPLIED>
<!ATTLIST     citation
  HyTime      (ilink)   #FIXED   ilink
  anchors     IDREFS    #REQUIRED
  anchrole    CDATA     #FIXED  "start end"
  HyNames     NAMES     #FIXED  "anchors linkends">
<!ATTLIST     location
  HyTime      (dataloc) #FIXED   dataloc
  id          ID        #REQUIRED
  locsrc      IDREF     #REQUIRED
  quantum     (norm)    #FIXED   norm
  reftype     CDATA     #FIXED   "locsrc text">
]>
 <book>
 <citation anchors = "frstword lastword">
 <location id = frstword locsrc = phrase>1 1
 <location id = lastword locsrc = phrase>-1 1
 <text id = phrase> this cites this

This example describes links in a hyperbook. The SGML describes the logical structure - book consists of a citation or a location or text (line 2).

The HyTime information is embedded into the lines beginning with <!ATTLIST

It has been said that HyTime's problem is that it was developed before its applications were understood. At the very least, it is hard to read.

If anyone is interested in HyTime, including more information about this example, let me know.


Send questions and comments to: Karen Lemone

What do these buttons mean?