|
|
 |
| XML General XML discussions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XML section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 5th, 2009, 08:45 PM
|
|
Authorized User
|
|
Join Date: Jun 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
restrict the value choice of a attribut in xml schema
I know that the xml schema can restrict an attribute value to a fixed value by "fixed" key word. but i wonder if i can restrict an attribute value in a list of value, something like "option" key word in html? or not, if there is the alternative way to do that?
Thanks
|

October 6th, 2009, 03:10 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
|
|
You can use the xs:enumeration restriction to list a number of allowed values for a type.
__________________
/- Sam Judson : Wrox Technical Editor -/
|

October 7th, 2009, 04:50 AM
|
|
Authorized User
|
|
Join Date: Jun 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks
Thanks for you helps
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |