|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








