Re: (no subject)

Toby Speight (tms@ansa.co.uk)
06 Aug 1998 13:53:37 +0100


Peter> Peter Jones <URL:mailto:peterj@wrox.com>

0> In article
0> <c=GB%a=_%p=Wrox_Press%l=WROX2-980806122539Z-595@mail.wrox.co.uk>,
0> Peter wrote:

Peter> "An XML processor must always pass all characters in a
Peter> document that are not markup through to the application. A
Peter> validating XML processor must also inform the application
Peter> which of these characters constitute whitespace appearing
Peter> in element content. ...

Peter> xml:space...attached to an element to signal an intention
Peter> that in that element, white space should be preserved by
Peter> applications. In valid documents, this attribute, like any
Peter> other must be declared if it is used...

Peter> But according to the first line above, the default XML processing
Peter> is preservation of whitespace. So what is the default mode of
Peter> the processor?

As I see it, parsers should preserve, and applications using those
parsers may use the xml:spcae atttribute to control how they treat the
data received from the parsers.

--