From a.omrani at gmail.com Tue Dec 2 12:55:15 2008 From: a.omrani at gmail.com (Azadeh Omrani) Date: Tue Dec 2 13:53:47 2008 Subject: [xsde-users] portability? Message-ID: <183a50e60812020955t2ef227ci6763726c028f3edb@mail.gmail.com> Hello, How can someone generate an application (by xsd/e or xsd) that can be ported easily on several different platforms from Windows to mobile? Bests Azadeh From boris at codesynthesis.com Wed Dec 3 01:50:09 2008 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Dec 3 01:58:55 2008 Subject: [xsde-users] portability? In-Reply-To: <183a50e60812020955t2ef227ci6763726c028f3edb@mail.gmail.com> References: <183a50e60812020955t2ef227ci6763726c028f3edb@mail.gmail.com> Message-ID: <20081203065009.GD12327@karelia> Hi Azadeh, Azadeh Omrani writes: > How can someone generate an application (by xsd/e or xsd) that can > be ported easily on several different platforms from Windows to mobile? XSD/e can be used on a wide range of platforms, including Windows and Windows CE. I suggest that you first try to build a test application for your embedded/mobile platform. This will allow you to determine the optional parts that your target platform supports (e.g., STL, iostream, exceptions, etc). Once you determine the XSD/e configuration that your target platform will need, you can use the same configuration while developing for, say, Windows. Once you are done, you should be able to easily build it for the embedded/mobile platform. Boris From filippo.dellabetta at telecomitalia.it Fri Dec 19 09:39:49 2008 From: filippo.dellabetta at telecomitalia.it (Della Betta Filippo) Date: Fri Dec 19 09:48:45 2008 Subject: [xsde-users] recursive elements Message-ID: <04DCF02F0CBEDE4F9A314586514023ABA4448914C6@GRFMBX702BA020.griffon.local> Dears, I faced some problem against the attached schema files containing recursive elements definition. If I run # xsde.exe cxx-parser --generate-print-impl --no-long-long --cxx-suffix .cpp --hxx-suffix .h xml.xsd # xsde.exe cxx-parser --generate-print-impl --generate-test-driver --root-element resource-lists --no-long-long --cxx-suffix .cpp --hxx-suffix .h --location-map http://www.w3.org/2001/xml.xsd=xml.xsd --namespace-map urn:ietf:params:xml:ns:resource-lists=urn_ietf_params_xml_ns_resource_lists resource-lists_rfc4826.xsd # cl -MDd -Zi -D_DEBUG -nologo -EHsc resource-lists_rfc4826-pdriver.cpp resource-lists_rfc4826-pimpl.cpp resource-lists_rfc4826-pskel.cpp xml-pimpl.cpp xml-pskel.cpp libxsde.lib When I run resource-lists_rfc4826-pdriver.exe rl.xml I got name: oma_buddylist uri: tel:+391111111111 display-nameType: Stefano uri: tel:+392222222222 display-nameType: Gianni name: oma_grantedcontacts name: oma_blockedcontacts name: recursive lang: en display-nameType: recursive list anchor: http://somewhere.com display-nameType: Somewhere ref: tel:+0113333333 uri: tel:+0113333333 display-nameType: Filippo Work missing xml:lang="it" before Gianni and all the list elements at the end I modified resource-lists_rfc4826-pdriver.cpp adding the following list_p.parsers (string_p, display_nameType_p, list_p, externalType_p, entryType_p, entry_refType_p); display_name_p.parsers (lang_p); in parsers initialization code and now I get name: oma_buddylist uri: tel:+391111111111 display-nameType: Stefano uri: tel:+392222222222 lang: it display-nameType: Gianni name: oma_grantedcontacts name: oma_blockedcontacts name: recursive lang: en display-nameType: recursive list anchor: http://somewhere.com display-nameType: Somewhere ref: tel:+0113333333 uri: tel:+0113333333 display-nameType: Filippo Work name: 2nd level lang: en display-nameType: 2nd level display name name: 3rd level lang: en display-nameType: 3rd level display name uri: tel:+394444444444 display-nameType: Filippo Cell that seems right. Am I missing something ? Is something wrong with my command-lines ? Thanks in advance, Filippo Della Betta Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie. Rispetta l'ambiente. Non stampare questa mail se non e' necessario. www.avoicomunicare.it Ogni giorno, il tuo luogo di dialogo. -------------- next part -------------- A non-text attachment was scrubbed... Name: resource-lists_rfc4826.xsd Type: text/xml Size: 3166 bytes Desc: resource-lists_rfc4826.xsd Url : http://codesynthesis.com/pipermail/xsde-users/attachments/20081219/cf6f7b88/resource-lists_rfc4826.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: xml.xsd Type: text/xml Size: 5840 bytes Desc: xml.xsd Url : http://codesynthesis.com/pipermail/xsde-users/attachments/20081219/cf6f7b88/xml.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: rl.xml Type: text/xml Size: 1132 bytes Desc: rl.xml Url : http://codesynthesis.com/pipermail/xsde-users/attachments/20081219/cf6f7b88/rl.bin From boris at codesynthesis.com Fri Dec 19 09:56:27 2008 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Dec 19 10:07:07 2008 Subject: [xsde-users] recursive elements In-Reply-To: <04DCF02F0CBEDE4F9A314586514023ABA4448914C6@GRFMBX702BA020.griffon.local> References: <04DCF02F0CBEDE4F9A314586514023ABA4448914C6@GRFMBX702BA020.griffon.local> Message-ID: <20081219145627.GA13420@karelia> Hi Filippo, Della Betta Filippo writes: > I modified resource-lists_rfc4826-pdriver.cpp adding the following > > list_p.parsers (string_p, > display_nameType_p, > list_p, > externalType_p, > entryType_p, > entry_refType_p); Your change is correct and XSD/e should have generated this in the sample driver implementation. I think this is a bug in the compiler that has something to do with connecting recursive parsers. I will investigate and get back to you. Thanks for reporting this! Boris From boris at codesynthesis.com Tue Dec 23 08:03:57 2008 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Dec 23 08:15:11 2008 Subject: [xsde-users] recursive elements In-Reply-To: <20081219145627.GA13420@karelia> References: <04DCF02F0CBEDE4F9A314586514023ABA4448914C6@GRFMBX702BA020.griffon.local> <20081219145627.GA13420@karelia> Message-ID: <20081223130357.GA20542@karelia> Hi Filippo, Boris Kolpackov writes: > Your change is correct and XSD/e should have generated this in the > sample driver implementation. I think this is a bug in the compiler > that has something to do with connecting recursive parsers. I will > investigate and get back to you. We have fixed this bug and the fix will appear in the next release of XSD/e. It turned out this wasn't related to recursive parsing. Rather, the condition that triggered the bug is the absence of elements and attributes in the extension of the 'listType' type inside the 'list' element. Boris