XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Hans-Peter KüchlerSubject: SS5.3.179L: empty element with CDATA
Author: Hans-Peter Küchler
Date: 18 Oct 2004 03:37 PM
Hi,

please have a look at the following XML document:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE root [
<!ELEMENT root EMPTY>
]>
<root><![CDATA[]]></root>

With SS5, this document is not valid, but with .NET, Xerces, XSV this document is valid.
What's the truth? XML spec (http://www.w3.org/TR/REC-xml/#elementvalid) says only:
"1 The declaration matches EMPTY and the element has no content (not even entity references, comments, PIs or white space)."

regards, Hans-Peter

Postnext
Hans-Peter KüchlerSubject: SS5.3.179L: empty element with CDATA, references or other content
Author: Hans-Peter Küchler
Date: 18 Oct 2004 03:54 PM
The next question: Replace root with the following:

<root><!-- kommentar --></root>

This shouldn't be valid?! What's about PI, white space...?

regards, Hans-Peter

Postnext
Tony LavinioSubject: SS5.3.179L: empty element with CDATA, references or other content
Author: Tony Lavinio
Date: 22 Oct 2004 03:47 PM
I'm not sure what you are looking for here. Yes, it's true that only
the internal validator (which is the current Xerces C++ one) and the
MSXML 4.0 DOM parser handle this exactly the way the spec states. I
even added the latest Xerces Java 2.6.2 validator, and got the same
results; I suspect some are not registering content handlers, and so
they don't see comments, etc. in their input events.

You could try posting this message in the various forums assoicated
with those products; you may get an answer there. We provide multiple
engines specifically so that users like yourself can see how your
files are treated by different real-world implementations.

Posttop
Hans-Peter KüchlerSubject: SS5.3.179L: empty element with CDATA, references or other content
Author: Hans-Peter Küchler
Date: 23 Oct 2004 09:22 PM
Originally Posted: 23 Oct 2004 09:21 PM
I wasn't sure about the truth! It could be possible (but improbable;-) that SS fails, because one program differs from three others. Thanks for clarification, Hans-Peter

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.