[
Lists Home |
Date Index |
Thread Index
]
- From: Peter@ursus.demon.co.uk (Peter Murray-Rust)
- To: xml-dev@ic.ac.uk
- Date: Wed, 07 May 1997 15:44:12 GMT
- Date: Wed, 07 May 1997 15:30:46 GMT
In message <Pine.OSF.3.93.970507161703.21299B-100000@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:
<PRE>
<IMG SRC="dot1">
<IMG SRC="dot2">
</PRE>
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
non-trivial.
P.
--
Peter Murray-Rust, domestic net connection
Virtual School of Molecular Sciences
http://www.vsms.nottingham.ac.uk/
xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)
|