Menu

#41 hexBinary and xsd:hexBinary and lowercase

open
nobody
None
5
2014-12-14
2010-09-03
No

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\]+$" \]
\}

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.