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

Re: Questions on XML syntax and conformance issues

  • From: richard@c... (Richard Tobin)
  • To: xml-dev@x...
  • Date: 8 Mar 2000 01:19:36 GMT

xml syntax linefeed
In article <XFMail.000307190708.morus.walter@g...>,
Morus Walter <morus.walter@g...> wrote:

>The test suite says test 'valid-sa-094' (from James Clarks test cases) to be
>not wellformed. 

><!ATTLIST doc a1 CDATA "%e;">

The test is wrong.  Some people have interpreted the table in section
4.4 as saying that parameter entities are recognised in attribute
defaults, but this is fixed in erratum 41
(http://www.w3.org/XML/xml-19980210-errata#E41):

 Section 4.4

   Change the definition corresponding to "Reference in DTD" to read:
   "as a reference within either the internal or external subsets of
   the DTD, but outside of an EntityValue, AttValue, PI, Comment,
   SystemLiteral or PubidLiteral." (with suitable links).


>So if I have e.g. a NMTOKENS attribute 'a&#10;b' step one creates a\nb'
>(where \n denotes a linefeed). 
>Now what is step two supposed to do? According to the spec nothing.
>However the testcase sa02 (from the sun test cases) says, that the result
>value for the attribute should be 'a b'.

The test does not match the spec, and I have asked for clarification
(by mailing the xml-editor address given in the spec).  I believe that
the answer *should* be that the normalised result is "a\nb" and that
this should be invalid (but well-formed).  It's invalid in SGML
because the result of expanding a character entity is treated as
character data and not as SPACE.

>If an element is declared empty and denoted by a start and an end tag,
>should it be allowed to have whitespace between the tags?

No.

Did you find an Oasis test that gets this wrong?

>And: if WS is allowed, how about comments or PIs?

Looking at the spec, it appears not.  This seems a little surprising
to me, since content models usually only restrict element and text
content.

-- Richard
-- 
Spam filter: to mail me from a .com/.net site, put my surname in the headers.

"The Internet is really just a series of bottlenecks joined by high
speed networks." - Sam Wilson

***************************************************************************
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.