Gerry's Home Page CILT XML Proposal & Report XML Document Type Definitions XML Data Export Functions Translation Functions Printing Application XML Client-Server Application

Linked  DTD

<?xml version="1.0" ?>

<!-- threaded notes XML data structure : explicit links version-->

<!DOCTYPE DATASET [

<!--  DATASET is an acyclical directed graph of NOTEs and LINKs -->

<!ELEMENT         DATASET           (NOTE*, LINK*) >

<!ATTLIST         DATASET

XML_VERSION       CDATA             "1.0"    

SOFTWARE          CDATA             #REQUIRED 

CREATOR           CDATA             #IMPLIED  

CREATE_DATE       CDATA             #REQUIRED

DESCRIPTION       CDATA             #IMPLIED  

COMMENT           CDATA             #IMPLIED >

<!ELEMENT         NOTE              (CONTENT, FIELD*) >

<!ATTLIST         NOTE

NOTE_ID           ID                #REQUIRED

NOTE_KIND         CDATA             #IMPLIED

CREATE_DATE       CDATA             #REQUIRED

TITLE             CDATA             #REQUIRED

AUTHOR            CDATA             #REQUIRED >

<!ELEMENT         CONTENT           (#PCDATA) >

<!ELEMENT         FIELD             EMPTY >

<!ATTLIST         FIELD            

NAME              CDATA             #REQUIRED

VALUE             CDATA             #REQUIRED >

<!ELEMENT         LINK              FLOCATOR, TLOCATOR >

<!ATTLIST         LINK

xmlns:xlink       CDATA       #FIXED  "http://www.w3.org/1999/xlink"

xlink:LINK        CDATA       #FIXED  "extended"

INLINE            (true | false)        "false"

xlink:ROLE        CDATA             #IMPLIED

xlink:TITLE       CDATA             #IMPLIED

SHOW              (replace | new | embed)      #IMPLIED

ACTUATE           (auto | user)      #IMPLIED

BEHAVIOR              CDATA             #IMPLIED

CONTENT-ROLE      CDATA             #IMPLIED

CONTENT-TITLE      CDATA             #IMPLIED

LINK_ID           ID                #REQUIRED

LINK_TYPE         CDATA             #IMPLIED

SEQUENCE          CDATA             #IMPLIED

CREATE_DATE       CDATA             #REQUIRED

AUTHOR            CDATA             #REQUIRED >

<!ELEMENT         FLOCATOR          EMPTY >

<!ATTLIST         FLOCATOR

xmlns:xlink       CDATA       #FIXED  "http://www.w3.org/1999/xlink"

xlink:LINK        CDATA         #FIXED  "locator"

ROLE              (from | to)      "from"

NOTE_REF          IDREF      #REQUIRED >

<!ELEMENT         TLOCATOR          EMPTY >

<!ATTLIST         TLOCATOR

xmlns:xlink       CDATA       #FIXED  "http://www.w3.org/1999/xlink"

xlink:LINK        CDATA       #FIXED  "locator"

ROLE              (from | to)      "to"

NOTE_REF          IDREF       #REQUIRED >

]>


==========================================================

Design Rationale:

A DATASET consists of a set of NOTEs and LINKs.

A NOTE consists of 5 attributes, some textual content (possibly including tags referencing multimedia, html links, etc.), and possibly some special additional fields.

A FIELD consists of a name and a value. This allows fields that are particular to a specific application to be preserved. E.g., in the WebGuide system, NOTEs have a "perspective" field.

The format for LINKs follows the XML XLINK specification (see: www.w3.org). Each LINK has an FLOCATOR pointing to the "from" NOTE and a TLOCATOR pointing to the "to" NOTE. The NOTE_REF in the FLOCATOR and the TLOCATOR must contain an IDREF defined by a NOTE's NOTE_ID.

Go to top of this page

Return to Gerry Stahl's Home Page

Send email to Gerry.Stahl@drexel.edu

This page last modified on August 01, 2003