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

Re: PCDATA

  • From: Peter@u... (Peter Murray-Rust)
  • To: xml-dev@i...
  • Date: Wed, 07 May 1997 15:44:12 GMT
  • Date: Wed, 07 May 1997 15:30:46 GMT

Re: PCDATA
In message <Pine.OSF.3.93.970507161703.21299B-100000@e...> 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@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

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