Re: [xml-dev] Can XML Schemas do this?

From
Elliotte Rusty Harold <>
To
Mike Plusch <>, xml-dev <>
Date
2003-01-20T17:09:38Z
ID
<p04330102ba51dd955448@[192.168.254.4]>
Thread
Re: [xml-dev] Can XML Schemas do this?
At 11:58 AM -0500 1/20/03, Mike Plusch wrote:
>There is always an XML 1.0 representation for
>ConciseXML.  Here is Water Type and Water
>Contract in XML 1.0:
>
><defclass>
>   <field key="person"/>
>   <field key="name"> required string </field>
>   <field key="age"> optional integer </field>
>   <field key="birth"> optional datetime </field>
>   <field key="_precond">
>     <defmethod> <not age.<is optional/>.
>                              <and birth.<is optional/> />
>     </defmethod>
>   </field>
></defclass>


Umm, no, that is not XML 1.0. <not age.<is optional/>. <and birth.<is 
optional/> /> is not well-formed.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold |  | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+