|
<?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" SYSTEM
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
> ]> <DATASET
SYSTEM="WebGuide" CREATE_DATE="July 21, 2000" DESCRIPTION="linked version"
> <NOTE
NOTE_ID="node1"
CREATE_DATE="July 13, 2000"
TITLE="root note"
AUTHOR="Gerry" >
<CONTENT> "This
is the root note."
</CONTENT>
<FIELD
NAME="perspective"
VALUE="gerry's perspective" >
</FIELD> </NOTE> <NOTE
NOTE_ID="node2"
CREATE_DATE="July 14, 2000"
TITLE="leaf note"
AUTHOR="Gerry" >
<CONTENT> "This
is the first leaf note."
</CONTENT>
<FIELD
NAME="perspective"
VALUE="gerry's perspective" >
</FIELD> </NOTE> <LINK
LINK_ID="link1"
CREATE_DATE="July 14, 2000"
AUTHOR="Gerry" >
<FLOCATOR
NOTE_REF="node1" >
</FLOCATOR>
<TLOCATOR
NOTE_REF="node2" >
</TLOCATOR> </LINK> </DATASET> =========================================================
The above sample data includes the linked DTD and sample data consisting of a two-note thread. If the above data is pasted into a text editor, saved as an XML text file with a name like "linked.xml", and then opened in the IE 5 browser, the data will be displayed as follows with data for NODE1, NODE2, and LINK1 -- where LINK1 links NODE1 and NODE1:
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 |