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


  • To: <xml-dev@l...>
  • Subject: Wellformed?
  • From: "Jeff Rafter" <lists@j...>
  • Date: Mon, 24 May 2004 21:52:00 -0700

Just a quick sanity check I am tying to work on some conformance and want to
make sure I am correct:

The following is wellformed:

<!DOCTYPE doc [
  <!ENTITY e "<foo bar1:att='att' bar2:att='att'>test</foo>">
<doc xmlns:bar1="http://www.example1.org"

But the following is not:
<!DOCTYPE doc [
  <!ENTITY e "<foo bar1:att='att' bar2:att='att'>test</foo>">
<doc xmlns:bar1="http://www.example.org"

I have even tried:
<!DOCTYPE doc [
  <!ELEMENT doc (child)>
  <!ATTLIST doc xmlns:bar1 CDATA #IMPLIED
                xmlns:bar2 CDATA #IMPLIED>
  <!ELEMENT child (foo)>
  <!ELEMENT foo (#PCDATA)*>
  <!ATTLIST foo bar1:att CDATA #IMPLIED
                bar2:att CDATA #IMPLIED>
  <!ENTITY e "<foo bar1:att='att' bar2:att='att'>test</foo>">
<doc xmlns:bar1="http://www.example1.org"

Basically, I am getting errors (even for the WF files) and the results are
all over the map. I knew that expansion of entity references (and WF
checking therein) was spotty-- but combine that with namespace scoping and
things get downright crazy. It seems that only Xerces handles this the way I
would expect... but then I am not sure that is right. The XML Rec claims
that the literal must be WF on it's own-- is that possible with a colon in
one of the attribute names (without a namespace decl?). Maybe the MSXML
parser which claims that there is an undeclared prefix is more correct.

Pointers to any documents exploring this are very welcome.

Jeff Rafter


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.
First Name
Last Name
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.