XML-Data Questions

Henry S. Thompson ht at cogsci.ed.ac.uk
Mon Feb 9 12:45:25 GMT 1998

"Don Park" <donpark at quake.net> wrote on 30 Jan (sorry for late reply):

> I have some questions about the XML-Data spec which affects implementation:
> 1. How are the schemas referenced from XML documents?

Not clear.  Given the NON-official status of XML-Data, a PI seems the
most likely route for now.

> 2. How does one validate XML documents which use XML-Data schema rather than
> DTD?

One doesn't :-)  See previous discussion on this list about validation
-- 'valid' is predicate over document instances and doctypes AS
SPECIFIED IN THE XML SPECIFICATION.  The following extract from my
SGML97 paper (cf. http://www.ltg.ed.ac.uk/~ht/B9H.html) is relevant:

"In our approach, we envisage

 a) the schema DTD, a definition of an XML representation of document
 structure, that is, an old-style DTD for schemata;

 b) a master XML application, the equivalent of the XML parser, which
 is capable of processing pairs of XML documents, where the first, a
 schema, is valid in terms of the schema DTD; the second, an instance,
 has no old-style DTD, but is both well-formed in the XML sense and
 meta-valid in terms of the schema expressed by the first.

 Meta-validity is, of course, [conformance] to the document
 structure constraints contained in the associated schema, which
 [itself is valid per] the schema DTD."

> 3. Current XML-Data does not allow or rather make it easy for enumerated
> attribute values to contain spaces becuase space is used as delimeters.
> Why not use the following structure to define enumerated attribute values?
> <elementType id="Book">
>   <attribute name="ageGrp" type="ENUMERATION">
>     <value>children</value>
>     <value>adult</value>
>     <default>adult</default>
>   </attribute>
> </elementType>

Um, the Enumeration declared value for attributes must consist of
Nmtokens (production 59 in the Proposed Recommendation) so the issue
doesn't arise.  Support for enumerated notation values isn't in
XML-Data yet (if I remember right) but the same constraint obtains there.

Hope this helps.

Henry S. Thompson, Human Communication Research Centre, University of Edinburgh
      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
               Fax: (44) 131 650-4587, e-mail: ht at cogsci.ed.ac.uk  
                      URL: http://www.cogsci.ed.ac.uk/~ht/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list