[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Validating XML Using XSD...

Subject: Re: Validating XML Using XSD...
From: Brian Grainger <granam@xxxxxxx>
Date: Sun, 17 Nov 2002 22:40:27 -0700
validating xml using xsd
At 04:13 AM 11/18/02 +0000, you wrote:

<servers>
        <server name="pdc" type="exchange">192.168.0.1</server>
        <server name="bdc" type="www">192.168.0.2</server>
</servers>

...here the type attribute has been added, essentially I need the schema to ignore it.

This isn't an XSL question, so shouldn't really be posted here, but the short answer would be to just declare the 'type' attribute with use="optional" in your schema.


More information is available at
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cAttribute_Declarations

Regards,
Brian


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.