What's wrong with my XML Schema?! I can't figure out it..

Here is my schema:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
  xmlns:tns="http://www.epam.com/greenhouse"
  targetNamespace="http//www.epam.com/greenhouse/">
  <element name="greenhouse">
    <complexType>
       <sequence>     
        <element name="flower" type="tns:Flower" minOccurs="1" maxOccurs="unbounded"/>
       </sequence>      
    </complexType>
  </element>
  <complexType name="Flower">
    <sequence>
      <element name="name" type="string"/>
      <element name="soil" type="tns:Soil"/>
      <element name="visual-parameters" type="tns:VisualParameters"/>
      <element name="growing-tips" type="tns:GrowingTips"/>
      <element name="multiplying" type="tns:Multiplying"/>
    </sequence> 
   <attribute name="origin" type="tns:Origin" use="required"/>
  </complexType>
<complexType name="VisualParameters">
   <sequence>
      <element name="body-color" type="string"/>
      <element name="leaf-color" type="string"/>
      <element name="size" type="decimal"/>
    </sequence>
</complexType>
<complexType name="GrowingTips">
   <sequence>
      <element name="preferred-temperature" type="decimal"/>
      <element name="lighting" type="boolean"/>
      <element name="watering" type="float"/>
    </sequence>
</complexType>
<simpleType name="Soil">
  <restriction base="string">
    <enumeration value="podzolic"></enumeration>
    <enumeration value="ground"></enumeration>
    <enumeration value="sod-podzol"></enumeration>
  </restriction> 
</simpleType>
<simpleType name="Multiplying">
  <restriction base="string">
    <enumeration value="byLeaves"></enumeration>
    <enumeration value="byCuttings"></enumeration>
    <enumeration value="bySeeds"></enumeration>
  </restriction>
</simpleType>
<simpleType name="Origin">
  <restriction base="string">
       <pattern value="[A-Z]{1}[a-z]*"/>
  </restriction>
</simpleType>
</schema>When I validate this schema in Eclipse I get the error in this string:
<attribute name="origin" type="tns:Origin" use="required"/>
What is not correct? The error: "src-resolve: Cannot resolve the name 'tns:Origin' to a(n) 'simpleType definition' component."
Edited by: Exaserge on Jun 19, 2008 10:11 PM

OK. But my final schema (without errors) is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.example.org/greenhouse/"
targetNamespace="http://www.example.org/greenhouse/">
  <element name="flowers">
    <complexType>
       <sequence>     
        <element name="flower" type="tns:Flower" minOccurs="1" maxOccurs="unbounded"/>
       </sequence>      
    </complexType>
  </element>
  <complexType name="Flower">
       <sequence>
            <element name="name" type="string" />
            <element name="soil" type="tns:Soil" />
            <element name="visual-parameters" type="tns:VisualParameters" />
            <element name="growing-tips" type="tns:GrowingTips" />
            <element name="multiplying" type="tns:Multiplying" />
       </sequence>
       <attribute name="origin" type="tns:Origin" use="required"></attribute>
  </complexType>
  <complexType name="VisualParameters">
   <sequence>
      <element name="bodyColor" type="string"/>
      <element name="leafColor" type="string"/>
      <element name="size" type="string"/>
    </sequence>
</complexType>
<complexType name="GrowingTips">
   <sequence>
      <element name="preferredTemperature" type="string"/>
      <element name="lighting" type="string"/>
      <element name="watering" type="float"/>
    </sequence>
</complexType>
<simpleType name="Soil">
  <restriction base="string">
    <enumeration value="podzolic"></enumeration>
    <enumeration value="ground"></enumeration>
    <enumeration value="sod-podzol"></enumeration>
  </restriction> 
</simpleType>
<simpleType name="Multiplying">
  <restriction base="string">
    <enumeration value="byLeaves"></enumeration>
    <enumeration value="byCuttings"></enumeration>
    <enumeration value="bySeeds"></enumeration>
  </restriction>
</simpleType>
<simpleType name="Origin">
  <restriction base="string">
       <pattern value="[A-Z]{1}[a-z]*"/>
  </restriction>
</simpleType>
</schema>

Similar Messages

  • I bought 120 gold in Haypi dragon on Mar 12 and 15 2012 , but I havenot received them yet.What is wrong with it ,and when i can reveive them ?

    I bought 120 gold in Haypi dragon on Mar 12 and 15 2012 , but I havenot received them yet.What is wrong with it ,and when i can reveive them ?

    For in-app purchases you should contact the developer's customer support, assuming there is one.

  • With the new update, I can't figure out how to merge duplicate "Faces" files together, so I end up with one location per face.

    With the newest update, I can't figure out how to merge duplicate files in "Faces" (iPhoto).  I have more than one file going for a face, and use to be able to click and drag them into merging.  Can't seem to do it now.  Can anyone please help?  Thanks

    Are you talking about iPhoto or Photos? If Photos, do you mean that Photos has several files for the same person but they are labeled differently and you are trying to merge them as one? If so, then you have to rename one of the files to match the other one with the correct name.  If this is not what you mean then could you explain more clearly what you mean. To give an example if I click on Faces and Photos shows me all named faces in the top and on the bottom there are suggested faces that can be dragged onto a face in the top level to merge.  If you try to merge two face groups in the top level that are the same person but for some reason the faces are labeled differently you have to label them with the name you want to use and then they will automatically merge.

  • What's wrong with the XML output?

    I got an XML page in IE browser with XSQL Servlet&XSL. But its format is often disordered, for instance there are blank lines between two sequential tags, or the tags at the same level display from different start point. So the whole file seems fall into disorder!
    What's wrong with it?
    Are there some bugs in XSQL Servlet?
    null

    Would you send your XSL file and XSQL file?

  • What's wrong with the XML file????

    Hello!
    I am tryig to implement a "Filter" on my Apache tomcat server. The problem occures when I try to modify the XML-file on the server. This is the XML file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
                        <!-- The Filter -->
    <filter>       
         <filter-name>LoginChecker</filter-name>
         <filter-class>filters.LoginFilter</filter-class> 
    </filter>
                        <!-- The Filter Mapping -->
    <filter-mapping>       
         <filter-name>LoginChecker</filter-name> 
         <url-pattern>/secret/*</url-pattern> 
    </filter-mapping>
                        <!-- The Servlets -->
    <servlet>
            <servlet-name>SLoginHandler</servlet-name>
            <servlet-class>LoginHandler</servlet-class>
    </servlet>
    <servlet>
             <servlet-name>SProtectedResource</servlet-name>
             <servlet-class>ProtectedResource</servlet-class>
    </servlet>
    <servlet>
            <servlet-name>SRegister</servlet-name>
             <servlet-class>Register</servlet-class>
    </servlet>
    <servlet>
            <servlet-name>SVerify</servlet-name>
             <servlet-class>Verify</servlet-class>
    </servlet>
                        <!-- ....The Servlets Mapping -->
    <servlet-mapping>
            <servlet-name>SLoginHandler</servlet-name>
             <url-pattern>/LoginHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
             <servlet-name>SProtectedResource</servlet-name>
             <url-pattern>/ProtectedResource</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
             <servlet-name>SRegister</servlet-name>
             <url-pattern>/Register</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
            <servlet-name>SVerify</servlet-name>
            <url-pattern>/Verify</url-pattern>
    </servlet-mapping>
    </web-app>When I try to run another sevlet on the server side, e.g, "Verify", I'll get an error message. BUT if I changethe XML file to (remove the "filter" spec):
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
                        <!-- The Servlets -->
    <servlet>
            <servlet-name>SLoginHandler</servlet-name>
            <servlet-class>LoginHandler</servlet-class>
    </servlet>
    <servlet>
             <servlet-name>SProtectedResource</servlet-name>
             <servlet-class>ProtectedResource</servlet-class>
    </servlet>
    <servlet>
            <servlet-name>SRegister</servlet-name>
             <servlet-class>Register</servlet-class>
    </servlet>
    <servlet>
            <servlet-name>SVerify</servlet-name>
             <servlet-class>Verify</servlet-class>
    </servlet>
                        <!-- ....The Servlets Mapping -->
    <servlet-mapping>
            <servlet-name>SLoginHandler</servlet-name>
             <url-pattern>/LoginHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
             <servlet-name>SProtectedResource</servlet-name>
             <url-pattern>/ProtectedResource</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
             <servlet-name>SRegister</servlet-name>
             <url-pattern>/Register</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
            <servlet-name>SVerify</servlet-name>
            <url-pattern>/Verify</url-pattern>
    </servlet-mapping>
    </web-app>The servlet "Verify", or some other servlet, will work!!!
    What is wrong with my filter spec in the XML file?????

    hepp, no one asked for it...so no one will get it!
    BUT if "stevejluke" want another duke so let me know!

  • My iphone 4 keeps flashing black every 5-10 seconds, what is wrong with my iphone ? how can i fix it? helppppp

    my iPhone 4 screen keeps Flashing black and whenever I try to tap an app it will flash 3 times.
    this has been happening since last night .
    whats wrong with my phone?
    how can i fix it?

    Hey there Antoinetter101,
    It sounds like you cannot use any apps on your device without the screen flashing at you, making the phone unusable. I would start by quitting all the apps on the phone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • I downloaded a book on iTunes with my MacBook Pro and can't figure out how to open on my computer.  How do I do this?

    I downloaded a book on iTunes with my MacBook Pro and want to read the book on my computer.  Just can't figure out how to do it.  Do I need a program to read books on the MacBook first or is this something I can get in the app store?
    Any help is much appreciated.
    Thanks!

    You need an .epub reader.

  • Recently my ipod touch (old version ) was not working correctly, so i deleted everything from it---expecting to start fresh, however when i start  it up it continues to stay on the apple screen, what is wrong with my ipod and how can i fix it ?

    my  ipod doesn't allow me to do the thiings it used to. It would change the time and date and everytime i'd turn it to the correct date it would go back when i clicked a new app. it wouldn't load apps corectly because of this date and time problem. So i decided to erase everything and start fresh. But now it won't even load properly it just stays on the apple screen with the loading spin thing stuck. someone please guide me into fixing this problem

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • TS1372 I have an ipod classic 160gb have already tried all the steps with no success. I have just bought this ipod and have had it for less than a week before this happened. what is wrong with my ipod and how can i fix it?

    brand new ipod classic 160gb will not restore. have tried all steps with no fix. Also tried steps on a different computer with same results. anu help?

    if you own a mac try to re format the disc to journal.
    If you are on a windows like me, try to reformat the disc to NTFS. Then it will display that you need to restore as the ipod is in recovery mode. It restored with success. and voila, brand new working ipod.

  • I cannot load my MSN home page on FF4. What is wrong with you people. I can't get any feedback. It's time to move to Chrome

    My [http://my.msn.com/ MSN] home page has unresponsive links and the traffic report map will not load. It works on Safari and Chrome. I have asked this question here and on live chat with no resolution.

    How much memory on your MBP?
    Also, are you using external drives for your media? You could get a huge traffic jam if you have your OSX, your apps, and your video Events all on the same drive.

  • What's wrong with my buttons, any one can figure out?

    I am creating a SleeperFace with Applet, there was a problem that my buttons does not appear normally, just when I point the mouse on, then the two buttons will be appeared.
    Here are my codes:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SleepyFace extends Applet implements ActionListener
    int x=0;
    public void init()
    JButton bAwake=new JButton("Awake");
    bAwake.addActionListener(this);
    JButton bAsleep=new JButton("Asleep");
    bAsleep.addActionListener(this);
    add(bAwake);
    add(bAsleep);
    public void actionPerformed(ActionEvent e)
    if(e.getActionCommand()=="Awake")
    x=1;
    repaint();
    else if (e.getActionCommand()=="Asleep")
    x=0;
    repaint();
    public void paint(Graphics g)
    setBackground(Color.blue);
    g.setColor(Color.yellow);
    g.fillOval(50,60,400,400);
    g.setColor(Color.black);
    if (x==1)
    g.fillOval(130,160,50,100);
    g.fillOval(312,160,50,100);
    g.fillOval(222,250,50,50);
    g.fillArc(150,270,200,120,-360,-180);
    g.setColor(Color.white);
    g.setFont(new Font("SansSerif", Font.BOLD, 24));
    g.drawString("Let's make some noise!", 120,520);
    else
    g.fillRect(100,240,100,4);
    g.fillRect(300,240,100,4);
    g.fillOval(222,250,50,50);
    g.fillRect(150,350,200,4);
    g.setColor(Color.white);
    g.setFont(new Font("SansSerif", Font.BOLD, 24));
    g.drawString("I'm sleeping, please do not disturb!", 50,520);
    }

    FlowLayout is generally not a good top ContainerLayout.
    I am not debating that. I agree BorderLayout is a
    better top level LayoutManager (which is why I made
    the earlier assumption that Applets also use a
    BorderLayout).
    I realize that you aren't - in fact, I did not take you to be debatinganything. I added that piece of information merely to explain why I changed the Layout Manager - in order to add the JButtons where I wanted them to be - which is admittedly not where the OP might want them.
    I am questioning how using a BorderLayout causes the
    children to be painted, even though the paint()
    method does not invoke super.paint().
    I have not intentionally avoided calling super.paint. As I said, I do not know the real reason. But this has worked before, and I believe it has to do with adding the two JButton Components to another Panel; because if you simply add them BorderLayout.NORTH and BorderLayout.SOUTH it won't help.
    See point 5 from the following link.
    http://java.sun.com/products/jfc/tsc/articles/painting
    /index.html#awt_summary
    I see it

  • TS2756 I don't know what's wrong with my iphone but I can't join hotspot.. Any idea??

    Please help me :(

    You can try resetting your iPhone by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
    Try again to see if the problem persists.
    If still a problem, try deleting the hotspot (select the ⓘ, then tap Forget this Network) and adding it again.

  • I don't know what's wrong with my Mac but I can't watch Youtube videos. I can watch on other device though. Can someone tell me why the videos are not working? Thank You ^_^

    The Youtube videos is loading slowly on my mac but it loads normally on other device. It always buzzing every single second.

    One of the following steps should help.
    1. Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Enable Plug-ins
        Safari > Preferences > Security
        Web Content:  > "Enable Plug-ins".
           or
        Internet Plug-ins >  "Allow all other plug-ins
    3. Check  whether you are currently  in  YouTube HTML 5 trial.
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box for
       "You are currently in the HTML5 trial".
    4. Reset Safari.
        Click Safari in the menu bar.
        From the drop down select "Reset Safari".
        Uncheck the boxes next to all items.
        Check the box next to "Remove all website data".
        Click "Reset".
    5. Turn off Extensions if any.
        Safari > Preferences > Extensions
    Best.

  • I lost my pictures on my phone when I did the back up procedure wrong with my computer.  How can I find out if the pictures are on ICloud or on my sims card?

    How do I find pictures that are no longer on my phone?  I am not sure if they are in ICloud or on my sims card.

    If your phone is off, there is no way to locate it other than physically looking for it. It cannot be remotely turned on. Even if it were on, you would have had to have Find My Phone setup/activated/turned on BEFORE you lost your phone to have any hope of finding it.

  • When i take pictues with my 4s and the flash is on, the picture comes out with a blue tint.. can't figure out why.. no case or cover of any kind and it still happens

    whenever I take pictures with my 4s and the flash is on the picture comes out with a blue tint.. I have a case but I took it off to test that theory and it still turns up blue.. I also don't have a protective film or anything over the camera..

    I also have this problem with my recent 4s. Camera flash is bouncing back on its back pannel of the phone,  apple did change my phone with a new one

Maybe you are looking for

  • Not Getting the Quality You Expect From the Adobe Media Encoder?

    If your Premiere Pro CS5 project is set up to use Mercury Playback Engine GPU Acceleration (affectionately known as Hardware MPE), then there is some important information you need to know about the AME. During a Direct Export from Pr, Hardware MPE a

  • Clustering in dev environment

    Hi,           Is there anyway in development environment to test clustering without           getting the network people involved to do multicasting?           Thanks.           Tinou Bao           www.tinou.com           

  • C5-00 Home screen calendar problem

    Hi, I have set the standby theme visualization to 'contact bar'. If I save a meeting in calendar, but the same day I have saved an Anniversary, on standby I can see only the meeting appointment. (so only 1 event per day - if the meeting is expired th

  • Plant Maintenance - Cost Per Operation

    Does anyone know if there is standard business content I can use to display the cost of plant maintenance orders by operation e.g. Operation 010 Cost £10. I can see in in 0PM_C01 that I can get costs per value category but I want it by order line ite

  • How would you do this?  CD tracks from one large audio file

    I just recorded in a live concert into Soundtrack Pro. The file was recorded at 16bit & 44.1KHz. I want to make a CD of this without any gaps. I am curious how to put in markers/CD tracks so that I can jump to each song. Anyone know of a way to do th