Hi Andris,

On 29.05.2012, at 09:26, Andris Pavenis wrote:

> On 05/25/2012 03:53 PM, Lukas Zeller wrote:
>> As I did not get SyncML TK output I attached yesterdays captured data which 
>> contains 2 sessions:
>> - the first got response with auth challenge but is otherwise OK
>> - the second fails as I wrote yesterday. WBXML and XML messages included 
>> together with HTML log
>> The second session fails because the SyncML document is wrong. The status 
>> for Alert has a<Next>  element at the<Data>  level of the item instead of 
>> inside an<Anchor>  element. This is invalid by the SyncML DTD.
> Is it? Specification (SyncML Representation Protocol, Approved Version 1.2.1 
> – 13 Aug 2007) says that markups inside Data element are required to have 
> namespace specification. From that point of view element Next from namespace 
> syncml:metinf does not seem to be any worse rather than Anchor. Both are 
> members of syncml:metinf namespace. I know that examples in MetInf PDF 
> documentation only use Next and Last inside Anchor.

Not only the examples. The MetInf DTD's root element does not list Next or 
Last, only Anchor does (see below, from the same OMA DS 1.2.1 Aug 13th 2007 
approved package). So strictly speaking the Xperia is wrong, and the SyncML TK, 
which is in fact a hardcoded implementation of the DTD, is right to reject it.

However, of course your patch makes sense - as it works around the problem with 
no side effects. Thanks!

And apparently I was too pessimistic about the xperia - glad to hear it works 
with this workaround in place :-)


<!-- Root Element -->
<!ELEMENT MetInf (FieldLevel?, Format?, Type?, Mark?, Size?, Anchor?, Version?, 
NextNonce?, MaxMsgSize?, MaxObjSize?, EMI*, Mem?)>
<!-- FieldLevel change flag -->
<!ELEMENT FieldLevel EMPTY>
<!-- Format or encoding type -->
<!ELEMENT Format (#PCDATA)>
<!-- Element specific type specification -->
<!ELEMENT Type (#PCDATA)>
<!-- Mark -->
<!ELEMENT Mark (#PCDATA)>
<!-- Byte count -->
<!ELEMENT Size (#PCDATA)>
<!-- Data versioning info -->
<!ELEMENT Anchor (Last?, Next)>
<!ELEMENT Last (#PCDATA)>
<!ELEMENT Next (#PCDATA)>
<!ELEMENT Version (#PCDATA)>
<!ELEMENT NextNonce (#PCDATA)>
<!ELEMENT MaxMsgSize (#PCDATA)>
<!ELEMENT MaxObjSize (#PCDATA)>
<!-- Experimental Meta Information extension -->
<!ELEMENT EMI (#PCDATA)>
<!-- Dynamic Memory -->
<!ELEMENT Mem (SharedMem?, FreeMem, FreeID)>
<!-- Free Memory in the number of identifiers -->
<!ELEMENT FreeID (#PCDATA)>
<!-- Free Memory in bytes -->
<!ELEMENT FreeMem (#PCDATA)>
<!-- Shared Memory -->
<!ELEMENT SharedMem EMPTY>
<!-- End of DTD -->


Best Regards,

Lukas Zeller
_______________________________________________
os-libsynthesis mailing list
[email protected]
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to