[4suite] [amara] Error message in scimitar

Uche Ogbuji uche at ogbuji.net
Thu Dec 14 21:51:09 MST 2006


Pepping, Simon (ELS-AMS) wrote:
> When I try to validate an xml file with the validation script generated
> by scimitar, I get the following error:
> 
> C:\Home\csproj\schematron-contrast\iso-schematron>python
> schematron-contrast.py dataset.xml
> Traceback (most recent call last):
>   File "schematron-contrast.py", line 466, in ?
>     PATTERNS = [
> SyntaxError: parse error at line 1, column 119: reached end-of-input,
> expecting
> 'WILDCARD_NAME' or 'NODE_TYPE'
> 
> Line 466 is the starting line of PATTERNS. All braces and parentheses in
> it are properly balanced. I do not understand to which file 'line 1,
> column 119' refers.

It's not a file: it's your XPath expression.  Presumably your XPath is
all on one line.  Honestly, 4Suite's XPath parser is *extremely* well
tested, and so I'm 99.999% sure it is a syntax error in your XPath.
Scimitar should cer be certainly be fiendlier, either giving the line
number within the original stron file or at least displaying the
offending XPath expression.  I'll look into that, but maybe not in time
for version 1.2.

> How can I solve this error?
> 
> I am running 4suite 1.0 and amara 1.2a2, in which I replaced the
> scimitar script with a version from CVS this morning.


-- 
Uche Ogbuji                               Work: The Kadomo Group, Inc.
http://uche.ogbuji.net                    http://kadomo.com
http://copia.ogbuji.net                   Lead dev at http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/


More information about the 4suite mailing list