Can we declare more than one sequence tags in a complex type?

Hi all,
Can we use more than one <sequence> tags in the xml schema?
<xs:complexType name="Demo">
<xs:sequence minoccurs = "1" maxoccurs = "1">
</xs:sequence>
<xs:sequence minoccurs = "0" maxoccurs = "1">
</xs:sequence>
</xs:complexType>
If you observe the above sample xml there are two sequences in one complex type with different values for minoccurs and maxoccurs. Is this xml valid? why I need this is I have an
XML with lot of elements some of them should have minoccurs = "1" maxoccurs = "1" and some other should have the other combination of min and max attributes. I want to
declare it in the sequence rather than declaring beside each individual element. is that possible?
Thanks.

Hi,
Is this xml valid? No, a complexType expects only one child, but you can do this :
<xs:complexType name="Demo">
  <xs:sequence>
    <xs:sequence minOccurs = "1" maxOccurs = "1">
    </xs:sequence>
    <xs:sequence minOccurs = "0" maxOccurs = "1">
    </xs:sequence>
  </xs:sequence>
</xs:complexType>However...
XML with lot of elements some of them should have minoccurs = "1" maxoccurs = "1" and some other should have the other combination of min and max attributes.
I want to declare it in the sequence rather than declaring beside each individual element. is that possible?minOccurs and maxOccurs declared in the sequence apply to the sequence as a whole, not to its individual components.
For example :
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
     <xs:complexType name="Demo">
          <xs:sequence>
               <xs:sequence maxOccurs="1" minOccurs="1">
                    <xs:element name="test1" type="xs:string"/>
                    <xs:element name="test2" type="xs:string"/>
               </xs:sequence>
               <xs:sequence maxOccurs="1" minOccurs="0">
                    <xs:element name="test3" type="xs:string"/>
                    <xs:element name="test4" type="xs:string"/>
               </xs:sequence>
          </xs:sequence>
     </xs:complexType>
     <xs:element name="root" type="Demo"/>
</xs:schema>What you expect will work for the first sequence of elements (test1 and test2) but anyway minOccurs and maxOccurs for elements default to 1, so why bother wrapping them in a sequence?
If I understand what you want correctly, it won't work for the second sequence.
For instance, this will be valid :
<root>
  <test1/>
  <test2/>
  <test3/>
  <test4/>
</root>but this will not :
<root>
  <test1/>
  <test2/>
  <test3/>
</root>

Similar Messages

  • Can I specify more than one para tag for master page mapping?

    Hi,
    I want to map the same master page to be used by four different tags. Must I create a new row in the mapping table for each or can I separate the tag names by a comma and a space, for example, "Body, Bullet, Heading1, Note"?
    I tried the latter and expected it to work, but it did not.
    Thanks,
    Sean

    > ... create a new row in the mapping table for each ...
    That works, and has no side effects that I've seen.
    It appears, by the way, that FM applies the MP based on the first para tag found that has a MasterPageMaps table entry, so multiple matches per page, even conflicting, are not a problem, as long as getting the MP for first-found is OK with you.

  • Can't select more than ONE conditional text tag in FrameMaker 10?

    Hi, I work with lots and lots of Conditional Text (CT) tags in FrameMaker. We moved to v10, and now I can't select more than ONE CT tag at a time---this means when I need to apply 10 CT tags to one item, I have to select the item, click one tag, click In, and then click Apply---3 clicks, 10 separate times = 30 clicks! (I used to be able to select the item, select all the CT tags I wanted applied into the In box, and then click Apply.) This is very frustrating. I've tried to click all the Ctrl, Shift, and Alt keys separately and then try and select more than one tag, but nothing works. Please help---this is going to be a nightmare for me if this can't work!
    Please help and show me that I can add more than one tag to an item at a time. Thanks so much!!!

    Unfortunately, this capabiliy wasn't carried over to the Conditional Text pod when the new interface design was created. You're stuck selecting the tags one at a time and then applying a condition. It's a bit faster if you select the conditions sequentially, then you have fewer clicks for applying subsequent tags to the same content.
    I fully agree that this sucks.
    Please fill in a bug report and a wish list item at: FrameMaker Bugs & Wish List
    You can also add/vent to the following thread (that is monitored by Adobe):
    Seeking inputs on desired features in FrameMaker

  • How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    Using text tags
    https://workspaces.acrobat.com/app.html#d=Bi-SZ3cbVCHwiWBBp-7G7g
    but spreadsheets are quite difficult to predict as they don't typically have a page size defined. If you can do this in Word it'll be easier.
    or convert to pdf before uploading to EchoSign.
    You an upload a spreadsheet with multiple tab and place tags on each tab and all will get converted.

  • How can I pass more than one parameters in PDK-URL services?

    Hi all,
    How can I pass more than one parameters in PDK-URL service? All samples on Portal Center shows just one parameter passing.
    <inputParameter class="oracle.portal.provider.v1.URLPortletParameter">
    <name>csz</name>
    <isMandatory>false</isMandatory>
    <displayName>What location do you want a map for (City, State or Zip)?</displayName>
    </inputParameter>
    How can I write the privider.xml file for passing multiple parameters?

    I answer to my question. I've got the answer.
    I repeatly write down the <inputParameter> tags, and it works.

  • Compressor Blu-ray with more than one sequence ?

    Is it possible to create a blu-ray from the "New Batch from template..." of Compressor with more than one sequence ?
    Message was edited by: Rudy A-Traxx

    Thank you, Shawn.  You're confirming everything I thought!
    Just asking . . . perhaps you have a few thoughts here:
    - Is Compressor version 4 any "different" than 3.5 - as far as just dropping in a QT movie master to compress?
    - I guess there's no way to get more than 6 Chapter Markers in Compressor DVD?  I don't see a way, perhaps there is? Or . . . I have to learn toast!  But I can do that!  Just easier if Compressor would do it all!
    Thanks again

  • Can Function Return more than One Values ??

    Hi Experts,
    I would like to ask you Can Function Return more than one values. I Used Function with Out and In out parameter and its working Fine..
    1. what is harm using Out and In out parameter in function
    2. if we can use Out and In out parameter in Function so what is deffernce between procedure and Function.
    3. Is there any Other Way Though which we can return more the One values in Function.
    Please advice me...
    Thanks
    Umesh Goel

    Yes/No.
    You can return multiple value from function. But, in PL/SQL and not in a SQL.
    The following examples demonstrate that -
    SQL*Plus: Release 9.2.0.1.0 - Production on Wed Mar 28 17:41:15 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create or replace package glob
      2  as
      3    b varchar2(20);
      4    c varchar2(20);
      5  end;
      6  /
    Package created.
    SQL>
    SQL> create or replace function test_mul_out(a in number)
      2  return number
      3  is
      4    cursor c1(eno in number)
      5    is
      6      select ename,job,sal
      7   from emp
      8   where empno = eno;
      9  
    10    rec c1%rowtype;
    11    d  number(10);
    12  begin
    13    open c1(a);
    14    loop
    15      fetch c1 into rec;
    16      exit when c1%notfound;
    17       glob.b:= rec.ename;
    18    glob.c:= rec.job;
    19    d:= rec.sal;
    20    end loop;
    21    close c1;
    22    return d;
    23  end;
    24  /
    Function created.
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    zz  number(10);
      3  begin
      4    select test_mul_out(7777)
      5    into zz
      6    from dual;
      7    
      8    dbms_output.put_line('Ename: '||glob.b);
      9    dbms_output.put_line('Job: '||glob.c);
    10    dbms_output.put_line('Sal: '||zz);
    11  end;
    12  /
    Ename: Avik
    Job: CLERK
    Sal: 3456
    PL/SQL procedure successfully completed.
    SQL> Regards.
    Satyaki De.

  • Can you use more than one email address on one account as to enable two or three devices to use imsg????

    Can you use more than one email address on one account as to enable two or three devices to use imsg as when i add new email address's in settings it just says veriyfying and nothing happens????

    If I read your question right, yes.
    My pad has two e mail addresses, and my phone has a phone number as well as a e mail address.  For each device you can add additional 'receive at' addresses in settings.
    Note, when you add a new address, apple will send an e mail to that new address that you need to respond to, to show that it is a valid address.  So look in the inbox of that e mail account for the verification e mail.  Note further, some spam filters think that the verification e mail might be spam, so if it does not show up in your in box, look in any spam file you might have.
    in my case, the verification e mail came within a few minutes of declaring the new address.
    The multiple address are useful if you have more than one device under your apple id, and want to be able to send stuff to that particular device.

  • Can we have more than one trusted system in Oracle Identity Manager?

    Can we have more than one trusted system in Oracle Identity Manager?

    Can we pull employee from one trusted system and in the same way can we pull some contractors from other trusted system simultaniously?
    yes you can. In the schedule task you'll have to put your query in such a way that it brings both data.
    Can both trusted systems can be active at the same time pulling two types of users from two trusted systems?
    You have to run both recon in sequential manner so that it can pull correct data for OIM
    Some where i read in doc that only one target system can be designated as trusted system if it as has more than one the recons will not work properly...
    I don't think that it results into issue. But we have to see the sequence mainly. Otherwise it will results into wrong data

  • Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    You can seach the net for solutions like this one http://appletvvpn.com/how-to-connect-apple-tv-2-to-vpn/ another idea is to use a PC as the control and fit that with a wireless card and set up a ad hoc wireless network that the Apple TV uses. 

  • How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    Hi Nancy,
    This screenshot was only for imagination. A part of the code (not all) is below.  In the code there are some background images but they are not seem in live mode.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="css/my_site.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css"/>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <style>
    #CollapsiblePanel1 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-color: #003366;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel1 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel1 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/international.jpg);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel2 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelContent {
        background-color: blue;
    #CollapsiblePanel3 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel3 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel3 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel4 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel5 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    </style>

  • How can I buy more than one item at a time?

    How can I buy more than one item at a time i iPhote fx a book and a calander? It would be nice to place one order and only pay for the shipping once!

    You can't.
    Regards
    TD

  • Can't print more than one job at a time.

    I am trying to print to either a HP DesignJet 1055cm plotter or a HP LaserJet 5000N. I can't send more than one file at a time. If i don't wait until the current job starts printing, the next one won't print. For example if I sent five files one right after the other, I might get 1, 4 and 5. I don't think it's a printer problem because it happens on two different printers, and it doesn't happen when I print from my PC. Any idea what could cause this?

    My work around is to put all the jobs "on hold" in the print settings or just "stop jobs" on the printer window.
    Then I click on each print job in the que and let them print one at a time. This way I can at least quit the program and move onto the next thing.

  • When I open an event, including flagged items, the photos appear one by one, not as thumbnails, so I can't export more than one phot at a time. How do I get iPhoto to show the thumbnails?

    When I open an event, including flagged items, the photos appear one by one, not as thumbnails, so I can't export more than one phot at a time. How do I get iPhoto to show the thumbnails?
    I've tried rebuilding the thumbnail database, but that hasn't helped.

    What version of iPhoto and system are you running?
    Try moving the Zoom slider at the bottom of the iPhoto window all the way to the left.  Does that let more than one photo display in the window?
    OT

  • Can i open more than one Resultset object

    hi in my program i have to retrive data from three table and the data from three
    table i have to use in another one
    i wanna know that can we open more than one ResultSet object within one
    try{
    }catch{] block ( i means ResultSet rs = st.excuteQuery(query) more than one time for different -different tables)
    or there is any other way to do this

    You can only have one active result set per statement at a time.
    Depending on the driver you are using you might be able to have more than one active statement (and result set) on one connection. Or not.
    Try catch has nothing to do with that.
    If you are nesting result sets then it is likely you should be using a join (SQL) which would then only require one result set.

Maybe you are looking for