- From: Peintner, Daniel (ext) <daniel.peintner.ext@siemens.com>
- Date: Fri, 24 Jul 2015 09:12:29 +0000
- To: Rick van Rein <rick@openfortress.nl>, Takuki Kamiya <tkamiya@us.fujitsu.com>
- CC: "public-exi-comments@w3.org" <public-exi-comments@w3.org>
Hi Rick, Taki, all, > PRELOADED STRING TABLES: The enumerated type could indeed help, > interesting suggestion, but it only helps in situations where the XML > syntaxis is not already fixated (by standards, say) In fact you are able to use this approach "almost" as a shared string table across an entire EXI document. Essentially you define your string table with likely/expected values. <xs:simpleType name="stringTable"> <xs:restriction base="xs:string"> <xs:enumeration value="foo"/> <xs:enumeration value="bla"/> <xs:enumeration value="zoo"/> </xs:restriction> </xs:simpleType> Further, instead of using xs:string for your strings in XML schema you may consider typing elements and attributes with "stringTable". e.g., <xs:element name="anElement" type="stringTable" /> <xs:attribute name="anAttribute" type="stringTable" /> <xs:attribute name="anotherAttribute" type="stringTable" /> Hope this helps, -- Daniel ________________________________ Von: Rick van Rein [rick@openfortress.nl] Gesendet: Freitag, 24. Juli 2015 09:53 An: Takuki Kamiya Cc: public-exi-comments@w3.org Betreff: Re: Profile-specific URI/string tables -- Modulo compaction Hello Takuki, Thanks for your detailed answer. PRELOADED STRING TABLES: The enumerated type could indeed help, interesting suggestion, but it only helps in situations where the XML syntaxis is not already fixated (by standards, say), so I'm happy to hear it is taken into consideration for future proposals/versions of EXI. MODULO COMPACTION: I agree that this is not as strong a suggestion. Cheers, -Rick
Received on Friday, 24 July 2015 09:13:11 UTC