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

Re: Compatibility for XML attribute types with schemas

  • From: "Christopher R. Maden" <crism@m...>
  • To: xml-dev <xml-dev@l...>
  • Date: Fri, 12 Oct 2001 22:39:54 -0700

xml attribute type
At 11:48 12-10-2001, Elliotte Rusty Harold wrote:
>Most of the XML simple types in the W3C XML Schema Language -- e.g. 
>NOTATION, NMTOKEN, iD, IDREF, etc. -- carry a compatibility rule; for example:
>
>For compatibility (see Terminology (§1.4) 
><http://www.w3.org/TR/xmlschema-2/#terminology> ) *NMTOKEN* should be used 
>only on attributes.
>
>How important is this? Would it really be a compatibility problem to say 
>that an element must have type NMTOKEN? or be an ID? How would this be 
>incomaptible with standard XML? The resulting document would still be 
>well-formed and perhaps DTD valid. Nothing in the schema would change 
>this. Of course, these constraints could not be used on elements in a DTD. 
>However, netiher could a constraint that an element be required to contain 
>an integer, whihc is acceptable in schemas.

I suspect (with no inside knowledge whatsoever) that it's more of a 
deprecation.  The only reason to use the XML 1.0-derived types is when 
converting a DTD into XSDL (or creating XSDL from which a DTD will be 
derived), in which case these types would only show up in attributes.  I 
suspect that when creating an XSDL from scratch, there will usually be a 
more appropriate type than the XML 1.0 ones.

-Chris
-- 
Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA


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.