[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML-Data Questions

  • From: ht@c... (Henry S. Thompson)
  • To: xml-dev@i...
  • Date: 09 Feb 1998 12:45:01 +0000

data questions
"Don Park" <donpark@q...> 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.

ht
-- 
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@c...  
                      URL: http://www.cogsci.ed.ac.uk/~ht/

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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.