Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 28th, 2006, 03:53 AM
Authorized User
 
Join Date: Apr 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kfir
Default require attribute - all but...

hello

I have an attribut that is required, but it can not accept 2 strings name 'aaa', 'bbb'. how do I write it?
(this is my attribute that I wrote and its type:
<xs:attribute name="collection-id" type="Default-collection-id" use="required"/>
<xs:simpleType name="Default-collection-id">
        <xs:restriction base="xs:string"/>
    </xs:simpleType>

how can I write that it accept every thing beside the 2 stirngs for example?

thanks
kfir

kfir
__________________
kfir
 
Old May 28th, 2006, 09:13 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

This question came up recently on xmlschema-dev, see

http://xsd.stylusstudio.com/2006Apr/post04003.htm

(and the rest of the thread)

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old May 28th, 2006, 09:45 AM
Authorized User
 
Join Date: Apr 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kfir
Default

didnt under stand something, do I need to use the intersect that is written in the top of the answer, or to use what is below and to give the pattern value=abc (or what ever my string that I dont want to allow to use)

kfir





Similar Threads
Thread Thread Starter Forum Replies Last Post
Associating RegularExpressionValidator and Require belete ASP.NET 2.0 Basics 0 October 20th, 2007 10:26 AM
Clarification require on use - xsl:for-each-group ROCXY XSLT 1 January 2nd, 2006 05:33 AM
Access to attribute values from class of attribute jacob C# 1 October 28th, 2005 01:11 PM
Problem with include or require cli PHP How-To 2 May 24th, 2005 11:15 AM
include() vs require() kc5f Beginning PHP 2 May 23rd, 2004 10:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.