xsl-list
[Top] [All Lists]

Re: Validating XML Using XSD...

2002-11-17 22:40:27
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



<Prev in Thread] Current Thread [Next in Thread>