Re: [xsl] Validating XML Using XSD...

Subject: Re: [xsl] Validating XML Using XSD...
From: Brian Grainger <granam@xxxxxxx>
Date: Sun, 17 Nov 2002 22:40:27 -0700
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