Zachary S. wrote:
We are trying to do our T4 year-end validation and we get this error when
opening a T4.xml, with the ZZZ Schema.
We notice the schema file they give us is complaining about this regex
pattern.
<xsd:pattern value="[+-]?\d+\.\d{2}"/>
We realized they are missing a “\” so [\+\-] should be what is validated
to avoid the below error.
Just wondering if we should contact the ZZZ organization to get this fixed or,
if you
have other suggestions?
No, you don't need to contact the ZZZ organization to get this fixed,
because it's a bug in XMLmind XML Editor.
Your original:
<xsd:pattern value="[+-]?\d+\.\d{2}"/>
was just fine.
* Current XMLmind XML Editor does *not* require you to escape "+" as
"\+" in "[+-]?"
* Current XMLmind XML Editor indeed requires you to escape "-" as "\-"
in "[+-]?". This is clearly a bug as the XML schema specs says:
---
The '-' character is a valid character range only at the beginning or
end of a positive character group.
---
See http://www.w3.org/TR/xmlschema-2/#regexs
This bug should be fixed in the next release of XMLmind XML Editor (v6.2).
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support