Fred L. Drake Fred L. Drake, Jr." <fdrake@acm.org
Thu, 24 Sep 1998 14:47:16 -0400 (EDT)

Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

  Since I've not heard any comments other than Jack's regarding the
changes I've suggested to XBEL, I'm attaching a new (complete) DTD
below.  I think Andrew really wants to get an updated version into the 
CVS repository, and I'd like to get it finallized as well.  If there
are no problems with the DTD over the next several days, I'll start on
the documentation.


Fred L. Drake, Jr.	     <fdrake@acm.org>
Corporation for National Research Initiatives
1895 Preston White Dr.	    Reston, VA  20191

Content-Type: text/xml
Content-Description: Proposed XBEL DTD
Content-Disposition: inline;
Content-Transfer-Encoding: 7bit

<!ELEMENT xbel     (title?, (bookmark|folder|url|alias|separator)*)>
<!ATTLIST xbel
            version CDATA   #FIXED "1.0"

<!ELEMENT title	  (#PCDATA)>

<!--=================== Info blocks ===============================-->

<!-- There's an implicit understanding that metadata and appdata will
     not just be #PCDATA but will contain application-specific elements.
     There may be some need for multiple metadata elements tagged
     similarly to the appdata elements.

<!ELEMENT metadata (#PCDATA)>
<!ELEMENT appdata  (#PCDATA)>
<!ATTLIST appdata
	    id		ID    #IMPLIED
	    application CDATA #REQUIRED

<!--=================== Folder ====================================-->

<!ELEMENT folder   (title?,info?,desc?,(bookmark|folder|separator|alias|url)*)>
<!ATTLIST folder
            id	     ID	      #IMPLIED
	    added     CDATA   #IMPLIED
            folded   (yes|no) 'yes'   

<!--=================== URL ======================================-->

<!ELEMENT url        (#PCDATA)>
            id	     ID	      #IMPLIED
	    added    CDATA    #IMPLIED
            href     CDATA    #REQUIRED
            visited  CDATA    #IMPLIED
            modified CDATA    #IMPLIED
            response CDATA    #IMPLIED
            checked  CDATA    #IMPLIED

<!--=================== Bookmark ==================================-->

<!-- a wrapper around an url when it has to contain extra info
     like a description and info blocks

<!ELEMENT bookmark (metadata?, url, desc?, appdata*)>

<!ELEMENT desc       (#PCDATA)>

<!--=================== Separator =================================-->

<!ELEMENT separator EMPTY>

<!--=================== Alias =====================================-->

<!ATTLIST alias
            ref       IDREF    #REQUIRED