Schematron - Invalid character (:) in expression

This should cover W3C XML Schema, Relax NG and DTD related problems.
sandrocchio_0.1
Posts: 14
Joined: Tue Nov 23, 2010 4:04 pm

Schematron - Invalid character (:) in expression

Post by sandrocchio_0.1 »

Hello there,
I am getting this error on an xml validation against a Schematron file.
I guess the error is related to XPath, so I've just set from the preference panel Schematron must use XPath 2.0 by default. Nothing changed and the Xpath on the sch file has been successfully tested on the XPath editor.
Still getting the error.
What else can I do about it?

Thanks in advance
Alessandro
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: Schematron - Invalid character (:) in expression

Post by george »

Hi Alessandro,

If you are using ISO Schematron then in order to switch to XSLT/XPath 2.0 you need to add a queryBinding="xslt2" attribute on the schema element.

Best Regards,
George
George Cristian Bina
sandrocchio_0.1
Posts: 14
Joined: Tue Nov 23, 2010 4:04 pm

Re: Schematron - Invalid character (:) in expression

Post by sandrocchio_0.1 »

thanks, that fixed the issue.
Post Reply