XML Experts: Help wanted

(updated April 29, 2004)

Please send your comments on the following XML before its implementation. By replacing a simple file storage sytem with XML, CDAY (both C and PHP) will gain several features:


<?xml version="1.0"?>
<!DOCTYPE cdaylib
[
<!ELEMENT cdaylib (event+)>
<!ELEMENT event (date+, message+, author*, reference*, subject?, geo_relevence*, keywords?)>
<!ELEMENT date EMPTY>
<!ELEMENT message (#PCDATA | search | name)*>
<!ELEMENT author (#PCDATA)>
<!ELEMENT reference (#PCDATA)>
<!ELEMENT subject (#PCDATA)>
<!ELEMENT geo_relevence (#PCDATA)>
<!ELEMENT keywords (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT search (#PCDATA)>

<!ATTLIST event type (birthday|death|holiday|reminder|general) "general">
<!ATTLIST date range (single|beginning|end) "single">
<!ATTLIST date year CDATA #IMPLIED>
<!ATTLIST date month CDATA #IMPLIED>
<!ATTLIST date day CDATA #IMPLIED>
<!ATTLIST date wday CDATA #IMPLIED>
<!ATTLIST date wdayc CDATA #IMPLIED>
<!ATTLIST date holiday CDATA #IMPLIED>
<!ATTLIST message language CDATA #IMPLIED>
<!ATTLIST author url CDATA #IMPLIED>
<!ATTLIST reference url CDATA #IMPLIED>
<!ATTLIST geo_relevence country CDATA #IMPLIED>
<!ATTLIST geo_relevence region CDATA #IMPLIED>

]>

<cdaylib>
 <event type="birthday">
  <date range="single" month="10" year="2007" day="9" />
  <message language="en">Happy Birthday, <name>Andrew</name></message>
  <message language="es">Feliz Cumpeanos, <name>Andrew</name></message>
  <author url="http://cday.sourceforge.net">Andrew himself</author>
  <reference url="mailto:andrewsmom@allmoms.org">Andrew's mom</reference>
  <reference url="http://andrewsmom.allmoms.org">Andrew's mom</reference>  
  <geo_relevence country="us" region="co" />
  </event>
 <event type="general">
  <date range="single" month="10" day="9" wday="3"/>
  <message language="en"><search>Columbus Day</search></message>
  <geo_relevence country="us"/>
  </event>
 <event type="reminder">
  <date range="beginning" month="3" day="28"/>
  <date range="end" month="3" day="31"/>
  <message language="en">"Spring Forward" One hour at 2am, the first Sunday in April</message>
  <geo_relevence country="us"/>
  </event>
 <event type="reminder">
  <date range="single" month="3" wday="1" wdayc="1"/>
  <message language="en">"Spring Forward" One hour at 2am</message>
  <geo_relevence country="us"/>
  </event>  
 </cdaylib>


© 2003-2008 by Andrew Ziem. All rights reserved. Design by Andreas Viklund.

SourceForge.net Logo