Re: memaid 0.4.6-pre

David Calinski <[email protected]> Wed, 12 Nov 2003 22:52:42 +0100
Newsgroups gmane.comp.tools.memaid.devel
Message-ID <[email protected]>
On Wednesday 12 of November 2003 15:27, Peter Bienstman wrote:
> Found the reason why the DTD didn't parse: just change cdata to CDATA in
> the ATTLIST of the memaid element.
>
> I've also changed memaid_data to memaid:
>
> <!DOCTYPE memaid [
> 	<!ELEMENT memaid (item)>
> 	<!ELEMENT item (Q, A)>
> 	<!ELEMENT Q (#PCDATA)>
> 	<!ELEMENT A (#PCDATA)>
> 	<!ATTLIST memaid core_version CDATA ""
> 		time_of_start CDATA "">

I would suggest making time_of_start required without a default value:

	<!ATTLIST memaid core_version CDATA ""
 		time_of_start CDATA #REQUIRED>


Well, I am confused and not sure if we now speak about XML in the core or in 
your widget. :)

But current XML DTD in core I have on my disk is:

<!DOCTYPE memaid [
<!ELEMENT memaid (item)>
<!ELEMENT item (Q, A)>
<!ELEMENT Q (#PCDATA)>
<!ELEMENT A (#PCDATA)>
<!ATTLIST memaid core_version CDATA ""
	time_of_start CDATA #REQUIRED>
<!ATTLIST item id ID #REQUIRED
	tm_t_rpt CDATA #REQUIRED
	stm_t_rpt CDATA #REQUIRED
	tl_l_ivl CDATA #REQUIRED
	rl_ivl CDATA #REQUIRED
	ivl CDATA #REQUIRED
	rp CDATA #REQUIRED
	gr CDATA #REQUIRED>
]>


DC



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/