- From: santhanakrishnan <santhana@huawei.com>
- Date: Fri, 04 Apr 2008 12:38:49 +0530
- To: public-exi@w3.org
- Message-id: <000a01c89622$bc10ef20$4a18120a@china.huawei.com>
Hi EXI experts I believe the in the EXI example discussed in http://www.w3.org/XML/EXI/tutorial/exi-examples.html the prefix encoding is missing as per my understanding of the snippets from the specification highlighted below. "Values of type QName are encoded as a sequence of values representing the URI, local-name and prefix components of the QName in that order, where the prefix component is present only when the preserve.prefixes option is set to true" But in the EXI example encoding discussed in "http://www.w3.org/XML/EXI/tutorial/exi-examples.html" and in other examples in the EXI primer, where the preserve.prefixes fidelity option is also set, the encoding of the prefix is missing for all qnames. For all the element encoding we encode the uri (based on miss or hit accordingly), followed by the qname. But the prefix encoding is not done after this. Also the spec states the rules for determining the effective prefix value. 1) If the prefix is defined, select the m-th prefix value associated with the URI of the QName as the candidate prefix value. Otherwise, there is no candidate prefix value. 2) If the QName value is part of an SE event followed by an associated NS event with an indicator value of 1, the prefix value is the prefix of such NS event. Otherwise, the prefix value is the candidate value, if any, selected in step 1 above. As per the second rule if there is an NS event with indicator set to 1 then the prefix value is taken from such NS event. Event these talk about the selection of the prefix but never say that it need not be encoded in any particular case. Please solve my confusion regarding this. Thanks and Regards Santhanakrishnan _____ From: public-exi-request@w3.org [mailto:public-exi-request@w3.org] On Behalf Of santhanakrishnan Sent: Tuesday, March 25, 2008 8:05 PM To: public-exi@w3.org Subject: [EXI] Encoding qname Hi The section 7.1.7 Qname in the EXI Format 1.0 specification states "Values of type QName are encoded as a sequence of values representing the URI, local-name and prefix components of the QName in that order, where the prefix component is present only when the preserve.prefixes option is set to true" But in the EXI example encoding discussed in "http://www.w3.org/XML/EXI/tutorial/exi-examples.html" and in other examples in the EXI primer, where the preserve.prefixes fidelity option is also set, the encoding of the prefix is missing for all qnames. For all the element encoding we encode the uri (based on miss or hit accordingly), followed by the qname. But the prefix encoding is not done after this. Thanks in advance Santhanakrishnan
Received on Friday, 4 April 2008 07:09:49 UTC