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

Errata in XHTML 1.0

  • From: Elliotte Rusty Harold <elharo@m...>
  • To: www-html-editor@w..., xerces-j-dev@x...
  • Date: Sun, 21 May 2000 16:34:02 -0700

xhtml xml space
The ATTLIST declaration of xml:space given several times in the XHTML
1.0 strict DTD may be incorrect. XHTML 1.0 consistently declares it as

  xml:space   (preserve)     #FIXED 'preserve'

For example,

<!ATTLIST style
  %i18n;
  type        %ContentType;  #REQUIRED
  media       %MediaDesc;    #IMPLIED
  title       %Text;         #IMPLIED
  xml:space   (preserve)     #FIXED 'preserve'
  >

<!-- script statements, which may include CDATA sections -->
<!ELEMENT script (#PCDATA)>
<!ATTLIST script
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #REQUIRED
  src         %URI;          #IMPLIED
  defer       (defer)        #IMPLIED
  xml:space   (preserve)     #FIXED 'preserve'
  >

However, section 2.10 of the XML 1.0 spec disallows this:

 When declared, it must be given as an enumerated type whose only
possible values are "default" and "preserve". For example:

      <!ATTLIST poem   xml:space (default|preserve) 'preserve'>

A fixed value of preserve does not seem to be allowed. Some parsers like
Xerces-J 1.10 flag this. Others do not. (Indeed every other version of
Xerces seems to change its mind about this.) I haven't seen any
clarification about whether   "xml:space   (preserve)     #FIXED
'preserve'" qualifies as "an enumerated type whose only possible values
are "default" and "preserve" given that it doesn't allow default as a
value. It is at least an enumerated type whose only possible value is
preserve.

Either XHTML 1.0 or Xerces-J 1.1.0 needs to be fixed here. I don't know
which one. A clarification from the XML folks would be appreciated.

-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://metalab.unc.edu/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ | 
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.