hexBinary and xsd:hexBinary and lowercase
Brought to you by:
alain-couthures
XML Schema Part 2 allows lowercase for hexBinary, but specifies that uppercase be used in the canonical lexical representation.
http://www.w3.org/TR/xmlschema-2/#hexBinary-lexical-representation
I think two things should happen:
1. I think the patterns for both hexBinary should change to allow lowercase. That's because incoming XML with lowercase is correct.
2. I think the lexical conversion for controls bound to hexBinary should uppercase input when writing to the instance, to canonicalize it.
#1 is more important, and easier.
xsltforms.js:
"hexBinary" : {
"nsuri" : "http://www.w3.org/2002/xforms",
"patterns" : [ "^[0-9A-Fa-f]*$" ]
},
"hexBinary" : \{ "nsuri" : "http://www.w3.org/2001/XMLSchema", "patterns" : \[ "^\[0-9A-Fa-f\]+$" \] \}