wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes VC:Standalone Document Declaration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "VC:Standalone Document Declaration" Watch "VC:Standalone Document Declaration" New topic
Author

VC:Standalone Document Declaration

Stephen Suen
Ranch Hand

Joined: Oct 30, 2003
Posts: 34
Hi,

XML spec states following VC:Standalone Document Declaration:
"The standalone document declaration MUST have the value "no" if any external markup declarations contain declarations of:
...

element types with element content, if white space occurs directly within any instance of those types."

but why so many tools don't report such error?

sample xml document:

<?xml version='1.0' standalone='yes' ?>
<!DOCTYPE animal SYSTEM "ibm32i04.dtd" [
<!ATTLIST animal xml:space (default|preserve) 'preserve'>
]>
<!-- This is against VC: Standalone Document Declaration in P32
The standalone document declaration has the value "yes", there is an
external markup declaration of element with a element only content type, and
white space occurs directly within the mixed content.
-->
<animal><a>This is a

yellow tiger</a> <b/>
<c/>

</animal>
 
Don't get me started about those stupid light bulbs.
 
subject: VC:Standalone Document Declaration
 
Similar Threads
Standalone parameter
standalone document declaration
Pl help i have test this monday(23rd) Urgent
some notes on xml
XML Notes - I