From: Richard Knapp (gyp_caver_at_yahoo.com)
Date: Mon Dec 31 2001 - 00:48:43 CET
Return-Path: <owner-cavexml-outgoing_at_ethz.ch> Delivered-To: cavexml-archive_at_cartography.ch Received: from localhost (localhost [127.0.0.1]) by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0) with ESMTP id 5CB739C11 for <cavexml-outgoing_at_ethz.ch>; Mon, 31 Dec 2001 01:29:21 +0100 (CET) Received: by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0, from userid 28) id 71FDF9BE3; Mon, 31 Dec 2001 01:29:18 +0100 (CET) Delivered-To: cavexml_at_cartography.ch Received: from localhost (localhost [127.0.0.1]) by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0) with ESMTP id 5CC729C11 for <cavexml_at_cartography.ch>; Mon, 31 Dec 2001 01:29:17 +0100 (CET) Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0) with SMTP id 8DBE99BB2 for <cavexml_at_cartography.ch>; Mon, 31 Dec 2001 01:29:13 +0100 (CET) Received: from slip-12-64-240-156.mis.prserv.net (HELO Muphin) (12.64.240.156) by smtp.mail.vip.sc5.yahoo.com with SMTP; 31 Dec 2001 00:21:13 -0000 From: "Richard Knapp" <gyp_caver_at_yahoo.com> To: "cavexml_at_cartography.ch" <cavexml_at_cartography.ch> Date: Sun, 30 Dec 2001 18:48:43 -0500 (EST) X-Mailer: PMMail 2.20.2300 for OS/2 Warp 4.5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Comments in CaveXML Message-Id: <20011231002913.8DBE99BB2@karmail.ethz.ch> Sender: owner-cavexml_at_karmail.ethz.ch Precedence: bulk Reply-To: cavexml_at_cartography.ch X-Virus-Scanned: by AMaViS perl-11
Is it worth having Comments with a PCDATA element instead of just an attribute with CDATA?
In otherwords, which is better?
<!ELEMENT Comment (#PCDATA)>
<!ATTLIST Comment
xml:lang NMTOKEN #IMPLIED>
or
<!ELEMENT Comment EMPTY>
<!ATTLIST Comment
value CDATA #IMPLED
xml:lang NMTOKEN #IMPLIED>
The second is more in line with other elements in the structure (Name) so it is much easier to code. If
something very complicated needs to be inserted, it might be better to have another element (RAWDATA?)
that has PCDATA instead of the comment.
Comments? (pun _not_ intended)
- Richard Knapp
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
This archive was generated by hypermail 2b30 : Wed Jan 23 2002 - 17:04:47 CET