[xsde-users] recursive elements
Della Betta Filippo
filippo.dellabetta at telecomitalia.it
Fri Dec 19 09:39:49 EST 2008
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
More information about the xsde-users
mailing list