XFML DTD
Date: Thu, 06 Jun 2002 18:56:16 -0400 From: PeterV <peter@poorbuthappy.com> To: xfml@yahoogroups.com Subject: XFML DTD
Here is a new version of the DTD, comments welcome. Note that I added
<occurrencetypename>, <topicname> and other such elements. That seemed the
best way but correct me if I'm wrong.
<!ELEMENT xfml (occurrencetype | publisher | facet | topic | page)*>
<!ATTLIST xfml
url CDATA #IMPLIED
version CDATA #REQUIRED
copyright CDATA #IMPLIED
language CDATA #IMPLIED
>
<!ELEMENT publisher (name, ordername?, url?)>
<!ELEMENT occurrencetype (name, ordername?)>
<!ELEMENT facet (name, ordername?)>
<!ELEMENT topic (name, ordername?, facetname, parent?, merge*)>
<!ELEMENT merge (#PCDATA)>
<!ELEMENT parent (#PCDATA)>
<!ELEMENT page (name, url, ordername?, publishdate?, publishername*,
occurrence*)>
<!ELEMENT occurrence (topicname, occurrencetypename?)>
<!ELEMENT publishdate (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT ordername (#PCDATA)>
<!ELEMENT url (#PCDATA)>
<!ELEMENT facetname (#PCDATA)>
<!ELEMENT topicname (#PCDATA)>
<!ELEMENT publishername (#PCDATA)>
<!ELEMENT occurrencetypename (#PCDATA)>
Here is a validating XFML file using the above DTD:
<?xml version="1.0"?>
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Peter vd (PBH
inc) -->
<!DOCTYPE xfml SYSTEM "C:\Program Files\Apache
Group\Apache\htdocs\websites\xfml.net\code\htdocs\spec\xfml.dtd">
<xfml url="http://xfml.org/spec/example.xfml" version="0.1">
<!--language and copyright attributes are optional-->
<occurrencetype>
<name>Blog</name>
</occurrencetype>
<occurrencetype>
<name>Mailing list archive</name>
</occurrencetype>
<occurrencetype>
<name>Discussion</name>
</occurrencetype>
<occurrencetype>
<name>Article</name>
</occurrencetype>
<occurrencetype>
<name>Picture</name>
</occurrencetype>
<occurrencetype>
<name>Webpage</name>
</occurrencetype>
<occurrencetype>
<name>Website</name>
</occurrencetype>
<publisher>
<name>XFML.net</name>
<ordername>xfml</ordername>
<url>http://xfml.net</url>
</publisher>
<publisher>
<name>poorbuthappy</name>
<url>htpp://poorbuthappy.com</url>
</publisher>
<facet>
<name>places to go</name>
<ordername>1</ordername>
</facet>
<facet>
<name>things to do</name>
</facet>
<topic>
<name>Colombia</name>
<ordername>colombia</ordername>
<facetname>places to go</facetname>
</topic>
<topic>
<name>Bogota</name>
<ordername>bogota</ordername>
<facetname>places to go</facetname>
<parent>Colombia</parent>
<merge>http://xfml.net/spec/example_merge.xfml#capital of
colombia</merge>
</topic>
<topic>
<name>Diving</name>
<ordername>diving</ordername>
<facetname>things to do</facetname>
</topic>
<page>
<name>Guide to Colombia</name>
<url>http://poorbuthappy.com/colombia</url>
<publishdate>2002-02-21</publishdate>
<publishername>poorbuthappy</publishername>
<occurrence>
<topicname>Bogota</topicname>
<occurrencetypename>Picture</occurrencetypename>
</occurrence>
<occurrence>
<topicname>Diving</topicname>
<occurrencetypename>Discussion</occurrencetypename>
</occurrence>
</page>
</xfml>
Prepared by Robin Cover for The XML Cover Pages archive. See "Exchangable Faceted Metadata Language (XFML) as Fuzzy-Lightweight XTM and RDF."

