case insensitive attribute names

D

D. Alvarado

Hello, I'm sure this is a pretty easy question, but how would I
indnicate in my XML schema that I wanted to make attribute name
comparisons case insensitive? For example, is I had an element

<MYELEMENT myattr="1">

I would want the "myattr" attribute to validate against

<xs:schema name="MYATTR" type="xs:integer"/>

Thanks, -
 
K

Klaus Johannes Rusch

D. Alvarado said:
Hello, I'm sure this is a pretty easy question, but how would I
indnicate in my XML schema that I wanted to make attribute name
comparisons case insensitive? For example, is I had an element

<MYELEMENT myattr="1">

I would want the "myattr" attribute to validate against

<xs:schema name="MYATTR" type="xs:integer"/>

You cannot, element and attribute names are case sensitive in XML.

The closest to case insensitivity would be defining a choice of
attributes in lowercase, uppercase and any variation of mixed case you
would like to accept, but that would add unnecessarily complexity in the
processing of the document.

Why would you not want to define the case?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top