Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.2.1
-
Fix Version/s: None
-
Component/s: Core: Configuration
-
Labels:
-
User impact:Low
-
Similar Issues:None
Description
http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd
>> Engine name: Saxon-EE 9.3.0.5
>> Severity: fatal
>> Description: Error at character 2 in regular expression
>> "(#[[^\]]+]|\${[^\}]+})": invalid escape sequence Start
>> location: 6884:63
It seems that this validation error is reported because "#" and "$"
characters shouldn't be escaped in the regexp expression as per the specification of the XML Schema:
http://www.w3.org/TR/xmlschema-2/#cces
All the valid escaped characters can be found there (you can see that neither "#" nor "$" is in the list).
It seems that the Xerces parser is a lot more flexible in this regard and allows it, while Saxon doesn't.
the expression should be:
<xsd:pattern value="(#[[^\]]+]|${[^\}]+})"/>
(With thanks to oXygen XML Editor Support [support@oxygenxml.com] )