From raviraja at qti.qualcomm.com Fri May 13 17:03:53 2016
From: raviraja at qti.qualcomm.com (Rangarajan, Ravi_Sowmian)
Date: Fri May 13 17:04:06 2016
Subject: [xsde-users] Need to set two delimiters, one before and one after
some lists
Message-ID: <2fb646b3550c4e58991a2b24ce134931@nalasexr01e.na.qualcomm.com>
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?
0
or
0
Thank you
Ravi
From boris at codesynthesis.com Sun May 15 19:30:10 2016
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Sun May 15 19:30:21 2016
Subject: [xsde-users] Need to set two delimiters, one before and one
after some lists
In-Reply-To: <2fb646b3550c4e58991a2b24ce134931@nalasexr01e.na.qualcomm.com>
References: <2fb646b3550c4e58991a2b24ce134931@nalasexr01e.na.qualcomm.com>
Message-ID:
Hi Ravi,
Rangarajan, Ravi_Sowmian writes:
>
>
>
>
>
>
> [...]
>
>
> Q1. How to insert second delimiter via code synthesis tool?
Look at the generated API for the class, it will have the delimiter1()
modifiers for the second element.
> 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?
>
> 0
> 0
Yes, you can establish custom mapping for their namespace. See Chapter 8,
"Document Serializer and Error Handling" for details:
http://www.codesynthesis.com/projects/xsde/documentation/cxx/serializer/guide/index.xhtml#8
Boris
From raviraja at qti.qualcomm.com Mon May 16 19:36:39 2016
From: raviraja at qti.qualcomm.com (Rangarajan, Ravi_Sowmian)
Date: Mon May 16 19:36:54 2016
Subject: [xsde-users] Need to set two delimiters, one before and one after
some lists
In-Reply-To:
References: <2fb646b3550c4e58991a2b24ce134931@nalasexr01e.na.qualcomm.com>
Message-ID: <492c34c1eb6f45ed95a5dcf44e50610b@nalasexr01e.na.qualcomm.com>
Hi Boris,
I double checked if any other API with same prefix delimiter existed in generated code - it is not there. There is only one delimiter. Actually, this is not the first time I am encountering this, I have seen this with few other schemas as well. I am not sure if there is any compiler switch/flag that needs to be enabled to get it to generate delimiter1() in addition to delimiter().
I have enclosed a zip with the schema I work with (FDT_r12.xsd), along with its dependencies, just in case you want to look at complete schema to be able to help. Pls. let me know if you think I may be missing any compile-time flag that is preventing generation of second delimiter with name such as delimiter1().
I will go through the manual/guide on how to the custom mapping.
Thank you again
Ravi
-----Original Message-----
From: Boris Kolpackov [mailto:boris@codesynthesis.com]
Sent: Sunday, May 15, 2016 4:30 PM
To: Rangarajan, Ravi_Sowmian
Cc: xsde-users@codesynthesis.com
Subject: Re: [xsde-users] Need to set two delimiters, one before and one after some lists
Hi Ravi,
Rangarajan, Ravi_Sowmian writes:
>
>
>
>
>
>
> [...]
>
>
> Q1. How to insert second delimiter via code synthesis tool?
Look at the generated API for the class, it will have the delimiter1() modifiers for the second element.
> 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?
>
> 0
> 0
Yes, you can establish custom mapping for their namespace. See Chapter 8, "Document Serializer and Error Handling" for details:
http://www.codesynthesis.com/projects/xsde/documentation/cxx/serializer/guide/index.xhtml#8
Boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FdtSchemas.zip
Type: application/x-zip-compressed
Size: 3360 bytes
Desc: FdtSchemas.zip
Url : http://codesynthesis.com/pipermail/xsde-users/attachments/20160516/adaea196/FdtSchemas.bin
From boris at codesynthesis.com Tue May 17 16:00:28 2016
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Tue May 17 16:00:35 2016
Subject: [xsde-users] Need to set two delimiters, one before and one
after some lists
In-Reply-To: <492c34c1eb6f45ed95a5dcf44e50610b@nalasexr01e.na.qualcomm.com>
References: <2fb646b3550c4e58991a2b24ce134931@nalasexr01e.na.qualcomm.com>
<492c34c1eb6f45ed95a5dcf44e50610b@nalasexr01e.na.qualcomm.com>
Message-ID:
Hi Ravi,
Rangarajan, Ravi_Sowmian writes:
> I have enclosed a zip with the schema I work with (FDT_r12.xsd),
> along with its dependencies, just in case you want to look at
> complete schema to be able to help.
It is missing schema-version.xsd. Also, can you include the XSD/e
command line you used to compile it? You can use it to make sure
there are no missing dependencies.
Boris
From raviraja at qti.qualcomm.com Tue May 17 17:44:51 2016
From: raviraja at qti.qualcomm.com (Rangarajan, Ravi_Sowmian)
Date: Tue May 17 17:45:05 2016
Subject: [xsde-users] Need to set two delimiters, one before and one after
some lists
In-Reply-To:
References: <2fb646b3550c4e58991a2b24ce134931@nalasexr01e.na.qualcomm.com>
<492c34c1eb6f45ed95a5dcf44e50610b@nalasexr01e.na.qualcomm.com>
Message-ID: <32aaede0066a483bb2c2a5d6575b2b05@nalasexr01e.na.qualcomm.com>
Hi Boris,
Thanks again for looking into this. Sorry that I have missed schema-version.xsd (which is included now). I have also included below the command used to generate/compile these schemas. Pls. let me know if anything is missing which prevents second delimiter to be included in the APIs.
Thanks
Ravi
-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
-----Original Message-----
From: Boris Kolpackov [mailto:boris@codesynthesis.com]
Sent: Tuesday, May 17, 2016 1:00 PM
To: Rangarajan, Ravi_Sowmian
Cc: xsde-users@codesynthesis.com
Subject: Re: [xsde-users] Need to set two delimiters, one before and one after some lists
Hi Ravi,
Rangarajan, Ravi_Sowmian writes:
> I have enclosed a zip with the schema I work with (FDT_r12.xsd), along
> with its dependencies, just in case you want to look at complete
> schema to be able to help.
It is missing schema-version.xsd. Also, can you include the XSD/e command line you used to compile it? You can use it to make sure there are no missing dependencies.
Boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schema-version.xsd
Type: text/xml
Size: 384 bytes
Desc: schema-version.xsd
Url : http://codesynthesis.com/pipermail/xsde-users/attachments/20160517/721e3be2/schema-version.bin
From boris at codesynthesis.com Wed May 18 11:37:08 2016
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Wed May 18 11:37:16 2016
Subject: [xsde-users] Need to set two delimiters, one before and one
after some lists
In-Reply-To: <32aaede0066a483bb2c2a5d6575b2b05@nalasexr01e.na.qualcomm.com>
References: <2fb646b3550c4e58991a2b24ce134931@nalasexr01e.na.qualcomm.com>
<492c34c1eb6f45ed95a5dcf44e50610b@nalasexr01e.na.qualcomm.com>
<32aaede0066a483bb2c2a5d6575b2b05@nalasexr01e.na.qualcomm.com>
Message-ID:
Hi Ravi,
Rangarajan, Ravi_Sowmian writes:
> codesynthesis/bin/xsd cxx-tree [...]
Ok, so you are using XSD. Since you are posting to the xsde-users
mailing list (which is about XSD/e), I assumed that's what you
are using and everything I've said about delimiter1(), etc.,
applies to XSD/e.
Please re-send your original question to the xsd-users mailing
lists and we will start there from the beginning.
Boris