Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
Stylus Studio Code Samples & Utilities
»
Specify valid values for an element
Topic
Prev Topic
Next Topic
next
Subject:
Specify valid values for an element
Author:
John Murphy
Date:
12 Sep 2007 11:39 AM
How do I specify value valid for say an office status of good/bad/unknown?
Right now I have
<xsd:element name="office" type="xsd:string" maxOccurs="1" minOccurs="1" nillable="false"
I have searched on here but have been unable to find an answer.
Thanks in advance.
next
Subject:
Specify valid values for an element
Author:
Minollo I.
Date:
12 Sep 2007 01:10 PM
You mean in XML Schema? Something like:
<xsd:element name="office" maxOccurs="1" minOccurs="1" nillable="false">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="good"/>
<xsd:enumeration value="bad"/>
<xsd:enumeration value="unknown"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
top
Subject:
Specify valid values for an element
Author:
John Murphy
Date:
12 Sep 2007 06:16 PM
Originally Posted: 12 Sep 2007 06:15 PM
Exactly, thank you very much i'm new to this.
xml would look something like
<office>good</office>
Prev Topic
Next Topic
Powered by
Stylus Studio
, the world's leading
XML IDE
for
XML
,
XSLT
,
XQuery
,
XML Schema
,
DTD
,
XPath
,
WSDL
,
XHTML
,
SQL/XML
, and
XML Mapping
!
Go to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.