W3C home > Mailing lists > Public > public-exi@w3.org > July 2008

RE: [EXI] scope of preserve.lexical

From: John Schneider <john.schneider@agiledelta.com>
Date: Wed, 2 Jul 2008 16:04:20 -0700
To: <santhana@huawei.com>, <public-exi@w3.org>
Message-ID: <01a301c8dc97$f6c95060$640ca8c0@jcsdell8600>
Santhanakrishnan,
 
EXI does not prescribe any particular whitespace handling rules. It simply
defines the grammars an implementation may use to preserve whitespace where
it occurs in the document. 
 
In the case of strict mode, however, the grammars are pruned and do not
provide CH events for representing character data that was not explicitly
declared in the schema. If an application tries to encode insignificant
whitespace in strict mode, the EXI processor is free to generate an error,
ignore the insignificant whitespace, or any other appropriate behavior.
 
    I hope this helps!,
 
    John


  _____  

From: public-exi-request@w3.org [mailto:public-exi-request@w3.org] On Behalf
Of santhanakrishnan
Sent: Tuesday, July 01, 2008 2:05 AM
To: public-exi@w3.org
Subject: [EXI] scope of preserve.lexical


Hi EXI experts
        How the white spaces are taken care by EXI ? Is preserve.lexical is
used for it ?
 
        If so, should preserve.lexical also need to take care of white space
information present all over the XML document or is it enough to consider it
only for element and attribute value information ?
 
        While encoding with strict schema the grammar derived from the
schema may not have productions to take care of whitespace information all
over the XML document? How this case can be handled ?
 
regards
Santhanakrishnan
Received on Wednesday, 2 July 2008 23:05:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 October 2008 18:12:36 GMT