Peter Murray-Rust Peter at ursus.demon.co.uk
Wed May 7 16:46:17 BST 1997

In message <Pine.OSF.3.93.970507161703.21299B-100000 at edusrv.edu.uni-klu.ac.at> Norbert Mikula writes:
> On Wed, 7 May 1997, Peter Murray-Rust wrote:
> > > >How many PCDATA elements would be expected in the file?
> > > <?XML VERSION="1.0"?>
> > > <!DOCTYPE CML>
> > > <CML>
> > > <XVAR>
> > > This is a variable
> > > </XVAR>
> > > </CML>
> I was running NXP with :
[...examples deleted...]

Norbert's answers agree with what I got and also with the consensus
of the group.  It's clear that WF files can give *different* data from
those with some or all of the ELEMENT declarations.  I do not find the 
behaviour intuitive and believe we have to address it in some manner.

I am sympathetic to trashing the whitespace PCDATA elements, but there is
no clear idea of how.  An application like:
<IMG SRC="dot1">
<IMG SRC="dot2">
may wish the result to have 3 newlines as children (i.e. 5 elements in
all).  But equally an app may be frustrated by the extra elements.  It's
easy to ask for the TEI pointer "DESCENDANT(1,PRE)CHILD(1,*)" and expect to get
the dot1.  This can be criticised as bad style but it's as likely to arise
from ignorance rather than sloppiness.  

There has rightly been concern about the conformance of parsers (esp. their
reaction to errors).  This is an area where I suspect conformance is 


Peter Murray-Rust, domestic net connection
Virtual School of Molecular Sciences

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)

More information about the Xml-dev mailing list