Author |
Message
|
Omuch |
Posted: Thu Oct 08, 2015 12:22 am Post subject: Generate xsd from DFDL xsd |
|
|
Acolyte
Joined: 23 Mar 2012 Posts: 54
|
Hi
I'm using IIB 9
I have a copybook file of a particular service , and I created new DFDL xsd file from that cpy file.
Now, I want to create xsd file that will be exposed to my counsumers.
I want to create it from the DFDL xsd , that is all elements restrictions will be as they in the DFDL xsd, but without all the annotaions and DFDL stuff that doesn't interset my consuers.
I couldn't find a simple way to do it, I tried to generate XML file from the DFDL file and then to generate xsd from that XML but then i lost all the restrictions of the elements..
Any idea? |
|
Back to top |
|
 |
timber |
Posted: Thu Oct 08, 2015 4:17 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
|
Back to top |
|
 |
ganesh |
Posted: Fri Oct 09, 2015 10:24 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
You will be better off creating a xsd from scratch rather than trying to convert a DFDL model of flat file. |
|
Back to top |
|
 |
timber |
Posted: Fri Oct 09, 2015 4:07 pm Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
@ganesh: why do you say that? |
|
Back to top |
|
 |
ganesh |
Posted: Fri Oct 09, 2015 4:26 pm Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
timber wrote: |
@ganesh: why do you say that? |
Because the xsd generated automatically will have default ibm namespaces and default attribute name that will not confirm to your enterprise naming conventions |
|
Back to top |
|
 |
timber |
Posted: Mon Oct 12, 2015 12:29 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
I think you're assuming that a DFDL xsd is 'generated'. It *may* be generated by on of the wizards in the IIB toolkit, but it could also be constructed using the DFDL editor. Either way, the user is able to choose the names and namespaces in the xsd.
So...I'm still wondering why a DFDL xsd would not conform to enterprise naming conventions. |
|
Back to top |
|
 |
|