[xsd-users] Need to set two delimiters, one before and one after some lists

Rangarajan, Ravi_Sowmian raviraja at qti.qualcomm.com
Wed May 18 13:16:36 EDT 2016


Hi Boris,
Per your advice, I am posting the original request along with all the schemas involved & compiler options used to the xsd support list. Pls. let us know how we can get the tool to insert two delimiters before/after certain other params and also if there is a way to customize mapping of p1/p2/p3 etc. to specific namespaces.
Thank you
Ravi

==================compile options used=====================
-fPIC  -g -O3 -mmmx -msse -msse2 -Wall -MD -MP -MF ".deps/FLUTE-FDT-3GPP-2012-Extensions.Tpo" -c -o FLUTE-FDT-3GPP-2012-Extensions.o FLUTE-FDT-3GPP-2012-Extensions.cpp ; then mv -f ".deps/FLUTE-FDT-3GPP-2012-Extensions.Tpo" ".deps/FLUTE-FDT-3GPP-2012-Extensions.Po"; else rm -f ".deps/FLUTE-FDT-3GPP-2012-Extensions.Tpo"; exit 1; fi codesynthesis/bin/xsd cxx-tree --generate-inline --generate-ostream --generate-serialization --namespace-map urn:3gpp:metadata:2011:MBMS:scheduleDescription=scheduleDescription_r12 --namespace-map urn:IETF:metadata:2005:FLUTE:FDT=FDT_r12 --hxx-suffix .h --cxx-suffix .cpp --ixx-suffix .i FDT_r12.xsd
=======================================================

========================Begin original post in this thread==============================
Hi Boris,
I have an issue and a question on code synthesis behavior.

With the snippet from one of the schemas we use, I fill in a delimiter before adding Alternate-Content-Location-1 and/or Alternate-Content-Location-2 elements. I need to add a delimiter at the end of these lists. But, if I add a second delimiter, it basically overwrites the first one (effectively only one delimiter is seen in output from code synthesis). I tried to give a sequence of delimiters with two delimiters to the constructor, it adds both those delimiters before the alternate content lists 1 and 2 - not one before these lists and one at the end of these lists per schema.

Manually inserting (post generation) delimiter at the end is an option - it may not be clean and moreover, first delimiter is not always generated with the same tag, for e.g. p1 or p2 or p3 (it varies from time to time).

Q1. How to insert second delimiter via code synthesis tool? (so that it appears at the end of those ACL-1/ACL-2 lists).

Q2. Is there a way to determine when the code synthesis tool will generate with tag p1 or p2 or p3 in a predictable fashion? Or is it arbitrarily using any of these keywords?

    <p1:delimiter>0</p1:delimiter>
or
    <p2:delimiter>0</p2:delimiter>

Thank you
Ravi

<xs:sequence>
<xs:element ref="mbms2007:Cache-Control" minOccurs="0"/>
<xs:element ref="sv:delimiter"/>
<xs:element ref="mbms2012:Alternate-Content-Location-1" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="mbms2012:Alternate-Content-Location-2" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="sv:delimiter"/>
<xs:any namespace="##other" processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Group" type="mbms2005:groupIdType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="MBMS-Session-Identity" type="mbms2005:MBMS-Session-Identity-Type" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FdtSchemas_latest.zip
Type: application/x-zip-compressed
Size: 3726 bytes
Desc: FdtSchemas_latest.zip
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20160518/eea1bb58/FdtSchemas_latest.bin


More information about the xsd-users mailing list