ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Generate xsd from DFDL xsd

Post new topic  Reply to topic
 Generate xsd from DFDL xsd « View previous topic :: View next topic » 
Author Message
Omuch
PostPosted: Thu Oct 08, 2015 12:22 am    Post subject: Generate xsd from DFDL xsd Reply with quote

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
View user's profile Send private message
timber
PostPosted: Thu Oct 08, 2015 4:17 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

A DFDL xsd is a valid XSD. Your consumers ( and any other software that uses XSDs ) will not be affected by the DFDL annotations. But you probably knew that already.

You can remove the annotations with an XSLT stylesheet if you really want to:
http://www.oxygenxml.com/archives/xsl-list/200908/msg00073.html
Back to top
View user's profile Send private message
ganesh
PostPosted: Fri Oct 09, 2015 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message
timber
PostPosted: Fri Oct 09, 2015 4:07 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

@ganesh: why do you say that?
Back to top
View user's profile Send private message
ganesh
PostPosted: Fri Oct 09, 2015 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
timber
PostPosted: Mon Oct 12, 2015 12:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Generate xsd from DFDL xsd
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.