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 » WTX - Abstract element in xsd

Post new topic  Reply to topic
 WTX - Abstract element in xsd « View previous topic :: View next topic » 
Author Message
Deepali
PostPosted: Fri Apr 19, 2013 4:31 am    Post subject: WTX - Abstract element in xsd Reply with quote

Novice

Joined: 05 Mar 2013
Posts: 19

Hi all,
We are developing a WTX map in which we are using xsd as type tree in output card. In the xsd one element, 'situationType' is of 'Abstract' type. There are some other elements having base as the abstract element.
In output xml we don't want 'situationType' to appear, but need one of the elements(having base of 'situationType').
But we are getting the 'situationType' element as parent tag for the required element. How to resolve this?
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Apr 19, 2013 5:05 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
We are developing a WTX map in which we are using xsd as type tree in output card. In the xsd one element, 'situationType' is of 'Abstract' type. There are some other elements having base as the abstract element.
That question is unlikely to get a helpful answer. Most people are not XML Schema experts, and will not know what an abstract type is. I happen to know, but I'm completely baffled by these words:
Quote:
There are some other elements having base as the abstract element.
My best guess is that substitution groups are being used, but you have not said so.

I suggest that you
a) provide a lot more information about what you are trying to do and
b) post the question in a WTX-specific forum. In this forum, you are likely to get people asking why you are using WTX to do the mapping when WMB has 5 different transformation technologies that you could use.
Back to top
View user's profile Send private message
Deepali
PostPosted: Fri Apr 19, 2013 5:22 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2013
Posts: 19

Thanks kimbert,
Sorry if my question was confusing.

Quote:
There are some other elements having base as the abstract element.


This means that there are some elements(xsd:extension) in xsd having 'base' attribute as 'situationType'. e.g.:
Code:
<xsd:complexType name="StartSituation">
      <xsd:complexContent>
         <xsd:extension base="cbe:[b]SituationType[/b]">
            <xsd:attribute name="successDisposition" use="required">
               <xsd:simpleType>
                  <xsd:restriction base="xsd:string">
                     <xsd:maxLength value="64" />
                  </xsd:restriction>
               </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="situationQualifier" use="required">
               <xsd:simpleType>
                  <xsd:restriction base="xsd:string">
                     <xsd:maxLength value="64" />
                  </xsd:restriction>
               </xsd:simpleType>
            </xsd:attribute>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>


'situationType' element is having 'abstract' attribute true.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Apr 19, 2013 5:35 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

OK. That's a little bit clearer now. Although I still don't see how anybody was supposed to work that out from your original post.

I still think this is a WTX question. You may get lucky and find a WTX expert here, but you are more likely to find one in a WTX forum.
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 » WTX - Abstract element in 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.