Gerry's Home Page CILT XML State the Essence! OMOL Articulate Learners L3D Communications Theory XML Project WebGuide

Threads XML

<?xml version="1.0" ?>

<!-- threaded notes XML data structure -->

<!-- created 9/29/99 by GerryStahl -->

<!-- revised 10/3/99 by GerryStahl -->

<!-- contact: Gerry.Stahl@Colorado.edu -->

 

<!-- To test, open in IE 5.0l -->

<!--This version is recursive. Attributes are used where there is at most

      one instance needed and embedded HTML tags will not be permitted. -->

 

<!DOCTYPE DATASET

[

<!-- DATASET is a collection of NOTEs from a threaded discussion system -->

<!-- a DATASET includes the root NOTE of the threaded discussion -->

<!ELEMENT DATASET          (DESCRIPTION?, COMMENT?, NOTE) >

<!ATTLIST DATASET

          SYSTEM           (WebGuide | JIME | DynaClass | DynaGloss | DynaSources | other)          "WebGuide"

          CREATOR          CDATA          #IMPLIED

          DATE             CDATA          #REQUIRED

          XML_VERSION      CDATA          "1.0" >

<!-- NOTE is a tree of information in a DATASET, recursively containing subtrees -->

<!-- a NOTE may contain as children the root NOTEs of its subtrees -->

<!ELEMENT NOTE             (TITLE, CONTENT, NOTE*) >

<!ATTLIST NOTE

          KIND             CDATA          "Statement"

          AUTHOR           CDATA          "Anonymous"

          CREATED          CDATA          #REQUIRED

          TYPE             CDATA          "Re"

          PERSPECTIVE      CDATA          #IMPLIED

          A1               CDATA          #IMPLIED

          A2               CDATA          #IMPLIED >

<!ELEMENT DESCRIPTION      (#PCDATA) >

<!ELEMENT COMMENT          (#PCDATA) >

<!ELEMENT TITLE            (#PCDATA) >

<!ELEMENT CONTENT          (#PCDATA) >

] >

 

<!-- some sample data for testing -->

<DATASET

         SYSTEM="WebGuide"

         CREATOR="GerryStahl"

         DATE="29/09/1999"

         XML_VERSION="1.0" >

         <DESCRIPTION>"Gerry's perspective from the Research '99 WebGuide"</DESCRIPTION>

         <COMMENT>="This perspective has interesting ideas about WebGuide"</COMMENT>

         <NOTE

                  KIND="Statement"

                  AUTHOR="Anonymous"

                  CREATED="05/25/1999"

                  TYPE="Re"

                  PERSPECTIVE="Gerry's perspective" >

                  <TITLE>"Root note"</TITLE>

                  <CONTENT>"This is the root note"</CONTENT>

                  <NOTE

                           KIND="Discussion"

                           AUTHOR="Gerry"

                           CREATED="05/25/1999"

                           TYPE="Re"

                           PERSPECTIVE="Gerry's perspective" >

                           <TITLE>"A"</TITLE>

                           <CONTENT>"note A is the first real note"</CONTENT>

                           <NOTE

                                    KIND="Comment"

                                    AUTHOR="Gerry"

                                    CREATED="05/25/1999"

                                    TYPE="Re"

                                    PERSPECTIVE="Gerry's perspective" >

                                    <TITLE>"B"</TITLE>

                                    <CONTENT>"note B is a child of note A"</CONTENT>

                           </NOTE>

                  </NOTE>

                  <NOTE

                           KIND="Discussion"

                           AUTHOR="Gerry"

                           CREATED="05/25/1999"

                           TYPE="Re"

                           PERSPECTIVE="Gerry's perspective" >

                           <TITLE>"C"</TITLE>

                           <CONTENT>"This note has a 2 child notes"</CONTENT>

                           <NOTE

                                    KIND="Comment"

                                    AUTHOR="Gerry"

                                    CREATED="05/25/1999"

                                    TYPE="Re"

                                    PERSPECTIVE="Gerry's perspective" >

                                    <TITLE>"D"</TITLE>

                                    <CONTENT>"note D is a child of note C"</CONTENT>

                                    <NOTE

                                             KIND="Conclusion"

                                             AUTHOR="Gerry"

                                             CREATED="05/25/1999"

                                             TYPE="Re"

                                             PERSPECTIVE="Gerry's perspective" >

                                             <TITLE>"E"</TITLE>

                                             <CONTENT>"note E is a child of note D"</CONTENT>

                                    </NOTE>

                           </NOTE>

                           <NOTE

                                    KIND="Comment"

                                    AUTHOR="Gerry"

                                    CREATED="05/25/1999"

                                    TYPE="Re"

                                    PERSPECTIVE="Gerry's perspective" >

                                    <TITLE>"F"</TITLE>

                                    <CONTENT>"note F is a child of note C"</CONTENT>

                           </NOTE>

                  </NOTE>

         </NOTE>

</DATASET>

 

<!--With a proper recursive XSL stylesheet, the sample data above should display like this:

         DataSet: Gerry's perspective from the Research '99 WebGuide

         Comment: This perspective has interesting ideas about WebGuide

         XML file of WebGuide created by Gerry Stahl on 29/09/1999 version 1.0

 

         Statement: Root note (Anonymous, 05/25/1999, in Gerry's perspective) 

            content: This is the root note 

                  Discussion: A (Gerry, 05/25/1999, in Gerry's perspective) 

                     content: note A is the first real note 

                           Comment: B (Gerry, 05/25/1999, in Gerry's perspective) 

                               content: note B is a child of note A 

                  Discussion: C (Gerry, 05/25/1999, in Gerry's perspective) 

                     content: This note has 2 child notes

                           Comment: D (Gerry, 05/25/1999, in Gerry's perspective) 

                               content: note D is a child of note C 

                                    Conclusion: E (Gerry, 05/25/1999, in Gerry's perspective) 

                                        content: note E is a child of note D 

                           Comment: F (Gerry, 05/25/1999, in Gerry's perspective) 

                               content: note F is a child of note C   

 -->

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 January 05, 2004