Its possible to override an attribute from parent element?

Hi, there:
I have two elements with corresponding complex types, student and grad_student. grad_student extends student which has an required attribute called "salary". Now if I I want to make "salary" attribute "optional" in for grad_student, how can I do that?
<xsd:complexType name="student">
      <xsd:complexContent>
         <xsd:extension base="xyz:person">
            <xsd:attribute name="sid" type="xsd:ID" use="required"/>
            <xsd:attribute name="salary" type="xsd:string" use="required"/>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>
   <xsd:element name="student" type="xyz:student"/>
   <xsd:complexType name="grad_student">
      <xsd:complexContent>
         <xsd:extension base="xyz:student">
            <xsd:attribute name="s_name" type="xsd:string" use="optional"/>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>
   <xsd:element name="grad_student" type="xyz:grad_student"/>The following fails since salary is inherited and cannot be declared in the
child element again:
<xsd:complexType name="student">
      <xsd:complexContent>
         <xsd:extension base="xyz:person">
            <xsd:attribute name="sid" type="xsd:ID" use="required"/>
            <xsd:attribute name="salary" type="xsd:string" use="required"/>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>
   <xsd:element name="student" type="xyz:student"/>
   <xsd:complexType name="grad_student">
      <xsd:complexContent>
         <xsd:extension base="xyz:student">
            <xsd:attribute name="s_name" type="xsd:string" use="optional"/>
           <xsd:attribute name="salary" type="xsd:string" use="optional"/>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>
   <xsd:element name="grad_student" type="xyz:grad_student"/>regards,
Message was edited by:
jack_wns

Hi Jack,
Did you find a solution for this problem? We have come across the same issue and have not found an answer yet.
Thanks,
Denis

Similar Messages

  • Its possible to open an app from IOS on MAC?

    I have a med app on iphone that i want to open on mac to study. since it have small letters and a lot of stuff, it would be much easier if i open it on mac.
    So, its possible to open an app from IOS on MAC?

    No. The iPhone and Mac are totally different hardware architecture. Software compiled for one will not run on the other.
    Allan

  • Overriding JAXB annotations from parent class

    Helllo everyone, I'm cross posting this here because I origanally asked in the from forum. My apologies...
    I'm attempting to override a JAXB annotation. Internally, we use the field. Externally, we do not want the field to appear as it is an Internal only identifier. I have a class and a subclass. MemberPK is the internal version we use on our internal webservices, and ExternalMemberPK is the one we want to serialize externally.
    When I look at the generated WSDL below, customerID still appears. THANK you, for any help, even if it's just a guess, it could very well push me in the correct direction. I'm using Apache CXF 2.3.1, Sun Java 6 latest on Glassfish latest. Suggestions welcome on 'a better way' to do this as well. Thanks!
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class MemberPK implements Serializable {
    private static final long serialVersionUID = 5L;
    private Integer customerId;
    private String customerName;
    ...other fields
    * @return the customerId
    public Integer getCustomerId() {
    return customerId;
    * @param customerId
    * the customerId to set
    public void setCustomerId(Integer customerId) {
    this.customerId = customerId;
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class ExternalMemberPK extends MemberPK {
    private static final long serialVersionUID = 5L;
    * {@inheritDoc}
    @Override
    @XmlTransient
    public Integer getCustomerId() {
    return customerId;
    }

    Helllo everyone, I'm cross posting this here because I origanally asked in the from forum. My apologies...
    I'm attempting to override a JAXB annotation. Internally, we use the field. Externally, we do not want the field to appear as it is an Internal only identifier. I have a class and a subclass. MemberPK is the internal version we use on our internal webservices, and ExternalMemberPK is the one we want to serialize externally.
    When I look at the generated WSDL below, customerID still appears. THANK you, for any help, even if it's just a guess, it could very well push me in the correct direction. I'm using Apache CXF 2.3.1, Sun Java 6 latest on Glassfish latest. Suggestions welcome on 'a better way' to do this as well. Thanks!
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class MemberPK implements Serializable {
    private static final long serialVersionUID = 5L;
    private Integer customerId;
    private String customerName;
    ...other fields
    * @return the customerId
    public Integer getCustomerId() {
    return customerId;
    * @param customerId
    * the customerId to set
    public void setCustomerId(Integer customerId) {
    this.customerId = customerId;
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class ExternalMemberPK extends MemberPK {
    private static final long serialVersionUID = 5L;
    * {@inheritDoc}
    @Override
    @XmlTransient
    public Integer getCustomerId() {
    return customerId;
    }

  • HT1766 Is it possible to remove icloud settings from my phone and restore it to its original apple settings?

    I would like to know if its possible to remove icloud settings from my 3g apple iphone

    Next time it is best to start your own topic.
    Go to Settings>iCloud - you will need to scroll the settings until you get to the iCloud settings.
    MJ

  • EEWB (attributes from product set type)

    Hi gurus,
    I have a question about EEWB. Could you please help me.
    There is possibility to add components (attributes from product set type) at item level:
    Business object - BUSINESS_TRANSACTION
    Extension Type - ADD_NEW_ITEM_COMPONENT.
    I’ve created an extension with certain set type (it consists of 2 attributes). Everything was ok.  New fields with 2 attributes have been added to new tab in a sales order’s item.
    But then I’ve added 1 new attribute to the same set type. So I think this new attribute is to appear on the same tab with 2 other attributes. But it doesn't’t!
    I’ve regenerated my extension, I’ve recalled wizard for this extension. Nothing has changed. There is still only 2 attribute in the tab.
    So is it normal situation and is it necessary to create a new extension in order new fields to appear in a tab? Or I can do something else without creating the new extension?
    So could you help me and give any solutions. Appreciate any help.
    And thanks in advance.
    Sunny.

    It works already.

  • TFS 2010 Branching - Is it possible to create a child branch with latest version of specific code alone from parent branch?

    Hi,
    QUERY:
    I've  'MAIN' code base as parent branch.
    From 'MAIN' parent branch, I need to create multiple child 'Development' branches (Dev1, Dev2,etc..) for consecutive releases. 
    I don't want Child branch creating with entire code from Parent branch. i.e Each DEVELOPMENT branch should not be a full branch of MAIN.
    Is it possible to create child branches with specific code from Parent.
    For example:
    MAIN  -> Parent branch contain Project1, Project2,...........Project10.
    DEV1  -> Child branch which contains Project2 and Project3 alone.
    DEV2  -> Child branch which contains Project2, Project5, Project6, Project7, Project8 alone.
    NOTE:
    I'm trying to create a 'Basic branching Plan' to maintain the Source Code in TFS, for consecutive release with concurrent development.
    i.e  
    MAIN   <--- FI & RI ----->  Dev1, Dev2, Dev3
    MAIN  <------- RI alone ---| Release1, Release2, Release3
    I'm new to TFS, please advice for the above mentioned branching specific query.
    Also, if possible, please suggest me the best branching strategy according to my need.
    Regards,
    Riswan Babu

    Hi Riswan,
    It's unavailable to branch a folder or team project partly, it always copying the same source code from its parent when you create a branch in your team project. For you requirement, you might try the methods below to see if it works for you:
    1. Since the DEV1 and DEV2 have different, you can have two folders(like MAIN) in your team project and each folder include the projects/solutions you need. No need to create two branches that include different projects
    2. Create two branches from Main, and delete the additional projects that you want to keep. Then develop with the branches separately.
    3. Or create the branches from Main but keep all the content, just modify the projects you need in each branch. The difference will merge back in root branch if you need to merge back finally.
    For release, you can create sub-branches from the two branches you created as you requirement. And you can check the links below for more information about branching and merging:
    http://msdn.microsoft.com/en-us/magazine/gg598921.aspx
    http://vsarbranchingguide.codeplex.com/
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Delta Linked object: reset attribute to inherit from parent

    Hi all,
    I inherited an ESS system where the SAP content had changes made to it.  The SAP supplied Employee Self-Service Role had some of the worksets set to Invisible in Navigation Areas.  I would like to clear the indicator that says that attribute is defined locally and have it back to inherit from parent.  Then I can make the Invisible change in the delta linked role in our custom content folder.
    Is this possible without a program?
    Thanks
    --Amy Smith
    --Haworth

    Hi Gopal,
    That would seem to make sense to me too.  I have one question about that that you may be able to help with. 
    The role I am working with is a delta linked role that points back to the ESS role.  I can remove a workset from my delta linked role.  Later we will want to put that workset back in the role.
    I can link it in pointing to the ESS workset, but the delta link trace will look different and anything done in the ESS role to that workset will not be reflected in my custom role.  So is there a way to tell my delta linked role to undelete the workset so it is still linked back to the ESS role.
    Does this make any sense? 
    --Amy Smith
    --Haworth

  • Is it possible to update master data attributes from an ODS?

    HELLO ALL,
    we have records coming into our ods like the following:
    costcenter1, subcostcentera, subcostcenterb, manager responsible, costs (kf). 
    This is a custom flat file load from a legacy system.
    We would like to just create an update rule from the ODS to the cost center mater data characteristic attributes. 
    Is this possible?
    thank  you

    Yes its possible to update the master data attributes from an ODS.
    Define your master data characteristics as a infoprovider.
    Create a update rule on Characteristic with ODS as a source and do general mapping.
    For step by step, pls refer..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/business-intelligence/g-i/how%20to%20implement%20flexible%20master%20data%20staging

  • Can you let me know if its possible to import a muse site from Business catalyst in to Dreamweaver?

    Can you let me know if its possible to import a muse site from Business catalyst in to Dreamweaver? I have published a site using Muse to Business catalyst but would like to use FTP in dreamweaver to administer and edit.

    I think you could but you wouldn't like what you see in Design View.   Why do you want to do this?
    Nancy O.

  • Its possible to access CommDb from Java?

    Hello.
    The subject above is my question.
    CommDb is a internet database. I want to edit this database like GnuBox does (http://mobile.linux.pt/p800/symbianlinuxhowto).
    Anyone knows if its possible or not? If the answer is yes can you tell me how? Will it work with N6600?
    I thank you in advance!
    Rui
    (BIG HELLO FROM PORTUGAL - Come to visit me in Euro 2004 :) )

    You can't do that with J2ME because of the "sandbox" security model. Maybe on devices that allow access to the filesystem you could find a way to hack it, but the 6600 isn't one of those devices.
    shmoove

  • Is it possible to include attributes from Essbase Cube in HW notifications?

    Hi All,
    I need to include few attributes from Essbase cube and few from db tables in my HW notification. Just wanted to check, is it possible to include attributes from Essbase Cube in HW notifications?

    Hi All,
    I need to include few attributes from Essbase cube and few from db tables in my HW notification. Just wanted to check, is it possible to include attributes from Essbase Cube in HW notifications?

  • HT3696 How its' possible to change from 32 bit to 64 bit Processor for MacMini?

    How its' possible to change from 32 bit to 64 bit Processor for MacMini? Mini?

    You probably have a Core Solo or Core Duo model. You can upgrade the CPU to a 64-bit Core 2 Duo in the T7200-T7600 family.
    iFixit and OWC provide easy-to-follow, step-by-step guides. It's a delicate procedure, but not overly difficult. I'm all thumbs, and I have done it twice.
    Cheers!

  • How can we transfer product attributes from an already existing site?  We have thousands of items and it would be tedious to do them one at a time.  Is this possible through a CSV?

    How can we transfer product attributes from an already existing site?  We have thousands of items and it would be tedious to do them one at a time.  Is this possible through a CSV?

    There are two parts to this:
    1) It may be that you should have an Apple Education Support person helping you with this. If you have enough computers for this to be a problem, you may benefit from a Server, a site license, and an occasional visit from an Education Support Specialist.
    2) The brief answer, if you want Individual Apple_IDs to control each computer, is to buy new copies of Mac OS X under those new Apple_IDs and re-download and re-Install. Mac OS X is customized to the Apple_ID before it is downloaded.

  • MDX: Selecting specific dimension member and its descendants from parent child dimension where dimension member names can be same in dimension hierarchy

    I'm creating a SSRS report using SSAS cube as a source.
    When creating a dataset for the report, I'm having trouble with MDX to select a specific dimension member and its descendants from parent child dimension where dimension member names can be same in dimension hierarchy.
    Lets say for example that I have an account dimension where,
    In level 02 I have company ID:s 101, 102, 103 and so on...
    In level 03 I have Balance sheet
    In level 04 I have some account groups, Assets, Liabilities and so on... and In level 05 I have individual accounts
    How can I select for example company 102:s Assets from level 04 and its descendants?
    Normally in adventure works I would do this if I've wanted Current Assets and its descendants:
    SELECT NON EMPTY { [Measures].[Amount] } ON COLUMNS, NON EMPTY
    { (DESCENDANTS([Account].[Accounts].[Account Level 03].[Current Assets]) ) } ON ROWS
    FROM [Adventure Works]
    But in my Account dimension at level 04 I have Assets member as many times as I have companies in level 02.
    Tuomo

    Hi Tuomo Helminen,
    To this requirement of yours, I would recommend you use Cascading Parameters in Reporting services, you can refer to this FAQ How do I create cascading parameters when using cube database in Reporting Services at this link
    http://blogs.msdn.com/b/sqlforum/archive/2011/04/11/forum-faq-how-do-i-create-cascading-parameters-when-using-cube-database-in-reporting-services.aspx 
    Thanks,
    Challen Fu
    TechNet
    Subscriber Supportinforum
    If you have any feedback on our support, please [email protected]
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Play video from apple tv and audio from macbook , its possible, please ?

    play video from apple tv and audio from macbook , its possible, please ?
    because i dont have airport and i have a micro plugged to my speakers

    If you mean "can I play a video file's video part via AppleTV and the audio part via the Macbook" then the answer is no.
    You could probably play the video on AppleTv and also play it on the Macbook and output the audio, but you would have to do this manually, and 2 applications accessing the same video file might cause stuttering playback issues. Additionally you'd have to manually sync the audio and lip sync problems are annoying at the best of times.
    If you mean "can I watch a video from AppleTV and play separate music via iTunes on the Macbook", then the answer is yes.
    AC

Maybe you are looking for

  • How To Get DVD Player Back?

    I was once dumb about 2 months ago to go under accounts, click on advance options and simply change the name of my account name. I changed it because I didn't like it; it was the first time i've ever done this and had to manual drag and drop everythi

  • IWeb - Main Navigation bar not showing up in Safari

    After publishing my site to a folder and uploading to the net the navigation menu is no where to be found. Yet when I publish to a folder and click on the "view site now" button everything looks normal - anyone else have this problem

  • On my mac with itunes....

    help me i am wondering if i can put dvd's on my macbook and then convert then into itunes then on my ipod?

  • Extraneous html included in Report Export (csv) for Version 3.1

    Hi, I'm not hopeful of anyone being able to resolve my problem, as none of my colleagues are experiencing it, which occurs in my application for all new reports that I have created since the upgrade to 3.1 (from 3.0). I have many existing reports whi

  • Server box config for logging in

    I have two arch boxes, one server one desktop on home network with router. I have SSH and VNC working great and all between them, but I'm wondering how to set up the server so that I don't have to login. Basically if the power goes out and it turns b