From raviraja at qti.qualcomm.com Wed May 18 13:16:36 2016
From: raviraja at qti.qualcomm.com (Rangarajan, Ravi_Sowmian)
Date: Wed May 18 22:10:59 2016
Subject: [xsd-users] Need to set two delimiters, one before and one after some
lists
Message-ID: <1166edfa7d5942138e0deb812343478d@nalasexr01e.na.qualcomm.com>
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?
0
or
0
Thank you
Ravi
-------------- 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
From boris at codesynthesis.com Thu May 19 16:40:08 2016
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Thu May 19 16:40:14 2016
Subject: [xsd-users] Need to set two delimiters, one before and one after
some lists
In-Reply-To: <1166edfa7d5942138e0deb812343478d@nalasexr01e.na.qualcomm.com>
References: <1166edfa7d5942138e0deb812343478d@nalasexr01e.na.qualcomm.com>
Message-ID:
Hi Ravi,
Rangarajan, Ravi_Sowmian writes:
>
>
>
>
>
>
> [...]
>
C++/Tree flattens the compositor structure which results in simpler to use
API but which also looses ordering information in some cases (unlike, say,
XSD/e's C++/Hybrid which recreates the compositor structure precisely). One
consequence of this flattening is that multiple elements with the same name
are "merged" into a single set of accessors/modifiers. This earlier email
has more information on this:
http://www.codesynthesis.com/pipermail/xsd-users/2010-March/002741.html
In your case, provided you want to continue using C++/Tree, the best
approach is to customize the serialization code for this type and
manually make sure things are done in the correct order.
Boris
From minyoung at naonworks.com Wed May 25 04:05:49 2016
From: minyoung at naonworks.com (=?utf-8?B?7LWc66+87JiB?=)
Date: Wed May 25 19:33:32 2016
Subject: [xsd-users] date_time does not inherit simple_type.
Message-ID:
P{font-size:16px; line-height:16em; margin-left:0; margin-top:0;
margin-right:0; margin-bottom:0; font-family:?? ??;}hello I'm
Minyoung
When i called object typed 'date_time' then I think I can use
'text_context()' function ( described in doc )
but I can not!!!
So, I checked xml-schemahxx (xsd/cxx/parser/) then I
noticed 'date_time class' ONLY inherit time_zone
( compiler game me 'no member' error )
is there something I can not understatnd?
From boris at codesynthesis.com Thu May 26 19:20:33 2016
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Thu May 26 19:20:45 2016
Subject: [xsd-users] date_time does not inherit simple_type.
In-Reply-To:
References:
Message-ID:
Hi,
??? writes:
> When i called object typed date_time then I think I can use
> text_context() function ( described in doc ).
First of all, there is no text_context(). You probably mean text_content().
If so, then the answer is, no, you cannot use it for date_time. This
functionality is for handling mixed content. Please read the manual
for details.
Boris
From Rasiah.Senthurchelvan at ll.mit.edu Tue May 31 11:32:45 2016
From: Rasiah.Senthurchelvan at ll.mit.edu (Senthurchelvan, Rasiah - 1002 - MITLL)
Date: Tue May 31 11:33:01 2016
Subject: [xsd-users] mapping to C++ namespace problem
Message-ID: <06FE43F6C81DA447925023B92188440C063B272E@LLE2K10-MBX01.mitll.ad.local>
When I gave the following command,
$codesynthesis/xsd-4.0.0-x86_64-linux-gnu/bin/xsd cxx-tree
--namespace-map http://some-oms-website.mil/=SomeCppNamespace
/codesynthesis/xsd-4.0.0/examples/cxx/tree/hello/OMS_Extension_IE6_ExportCon
trolled.xsd
I am encountering the following problem:
***.xsd: warning T004: generating parsing functions for 13 global elements
***.xsd: info: use --root-element-* options to specify document root(s)
***.xsd:3:268: error: unable to map XML Schema namespace
'http://some-oms-website.mil/' to C++ namespace
***.xsd:3:268: info: use the --namespace-map or --namespace-regex option to
provide custom mapping
So when I gave the above command I keep getting the same error switching
between 'http://some-oms-website.mil/' and 'http://uas-c2-initiative.mil/'
on the third line indicated as error, over and over again.
Any help is much appreciated.
Thanks,
Rasiah
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5509 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20160531/a4d8fa6e/smime.bin