Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:15:57+00:00 2026-06-01T15:15:57+00:00

I am coding on a simple game and writing the *.xsd file. My Problem

  • 0

I am coding on a simple game and writing the *.xsd file.

My Problem is that the element should have as a content a number between 1 and 6,
and the attribute should have a number between 1 and 4.

here is my code, but it does not function cause of the types:

        <xsd:element name="roll" type="numb_1_and_6">
            <xsd:complexType>
                <xsd:attribute name="player" use="required">
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:integer">
                            <xsd:minInclusive value="1" />
                            <xsd:maxInclusive value="4" />
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:attribute>
            </xsd:complexType>
        </xsd:element>

<xsd:simpleType name="numb_1_and_6">
    <xsd:restriction base="xsd:integer">
        <xsd:minInclusive value="1" />
        <xsd:maxInclusive value="6" />
    </xsd:restriction>
</xsd:simpleType>

The Problem is the numb_1_and_6-Type and the complex Type… So how to fix that?

greetings and thx in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:15:58+00:00Added an answer on June 1, 2026 at 3:15 pm

    You’re missing the definition of the content, in your case simple since it extends a simple type:

    <xsd:element name="roll"> 
        <xsd:complexType>
            <xsd:simpleContent>
                <xsd:extension base="numb_1_and_6">
                    <xsd:attribute name="player" use="required"> 
                        <xsd:simpleType> 
                            <xsd:restriction base="xsd:integer"> 
                                <xsd:minInclusive value="1"/> 
                                <xsd:maxInclusive value="4"/> 
                            </xsd:restriction> 
                        </xsd:simpleType> 
                    </xsd:attribute>                    
                </xsd:extension>
            </xsd:simpleContent>
        </xsd:complexType> 
    </xsd:element> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm coding a simple roguelike game in C++ using SDL library, and I have
I'm coding a simple game using SFML in Xcode. I have a .png of
I'm expanding my php and general coding knowledge by writing my own 'simple' CMS
I'm coding simple game which I plan to make multiplayer (over the network) as
Let's imagine really simple game... We have a labirinth and two players trying to
I'm coding a simple text game to learn ruby. The hash has to be
I'm working on a simple game and I've gotten as far as coding it
recently I have been trying my hand at coding a game in C#. I'm
i am trying to make a very simple game where i have 7 positions
I'm coding a simple car racing game. While trying to add shadows in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.