[4suite] [ foursuite-Bugs-1539109 ] Scimitar regexp:match result and variables

SourceForge.net noreply at sourceforge.net
Sat Aug 12 03:05:10 MDT 2006


Bugs item #1539109, was opened at 2006-08-12 02:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428292&aid=1539109&group_id=39954

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Amara (separate project)
Group: Current CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Uche Ogbuji (uche)
Summary: Scimitar regexp:match result and variables 

Initial Comment:
Scimitar crashes with the following error when you try
to assign a regexp:match result to a variable:


vdv at vaio:~/cvs-private/presentations/en/Schematron $
scimitar.py repro2.isosch
vdv at vaio:~/cvs-private/presentations/en/Schematron $
python repro2-stron.py repro.xml
<?xml version="1.0" encoding="UTF-8"?>
Processing schema:

Processing pattern: [unnamed]

Traceback (most recent call last):
  File "repro2-stron.py", line 254, in ?
    sys.exit(main(sys.argv))
  File "repro2-stron.py", line 247, in main
    validate(candidate_file, outwrap(fout), phase=phase)
  File "repro2-stron.py", line 195, in validate
    func(node)
  File "repro2-stron.py", line 41, in rule1
    vars[(None, u'matches')] =
CompileXPath(u"regexp:match(normalize-space(.),
'\\.')").evaluate(xpath_ctx)
  File
"/usr/lib/python2.4/site-packages/4Suite-1.0b6-py2.4-linux-i686.egg/Ft/Xml/XPath/ParsedExpr.py",
line 296, in evaluate
    result = func(context, arg0, arg1)
  File
"/usr/lib/python2.4/site-packages/4Suite-1.0b6-py2.4-linux-i686.egg/Ft/Xml/Xslt/Exslt/RegularExpressions.py",
line 51, in Match
   
processor.pushResultTree(context.currentInstruction.baseUri)
AttributeError: 'NoneType' object has no attribute
'baseUri'


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428292&aid=1539109&group_id=39954



More information about the 4suite mailing list