[XML-SIG] PyXML and XPath : simple Path expression seems to crash with

Shawn Robb shawn.robb at advdata.com.au
Wed May 11 03:27:54 CEST 2005


Here is a copy of the error message I get, in case that helps.

 

Traceback (most recent call last):

  File "test\SRtestXFormUtil.py", line 20, in testMakeReadOnly

    xform_util.makeReadOnly("", doc)

  File
"C:\DWServer\DW30400DEMO\lib\python\Products\DWWFEng\xform_util.py",
line

 462, in __call__

    self.memo[args] = self.fn(*args)

  File
"C:\DWServer\DW30400DEMO\lib\python\Products\DWWFEng\xform_util.py",
line

 162, in makeReadOnly

    bindNodes = xml.xpath.Evaluate(xpath,doc,ctx)

  File "C:\Python23\Lib\site-packages\_xmlplus\xpath\__init__.py", line
70, in E

valuate

    retval = parser.new().parse(expr).evaluate(con)

  File
"C:\Python23\Lib\site-packages\_xmlplus\xpath\ParsedAbbreviatedAbsoluteL
o

cationPath.py", line 44, in evaluate

    sub_rt.extend(self._rel.select(context))

  File
"C:\Python23\Lib\site-packages\_xmlplus\xpath\ParsedRelativeLocationPath
.

py", line 23, in evaluate

    raise Exception("Expected node set from relative expression.  Got
%s"%str(rt

))

Exception: Expected node set from relative expression.  Got ()

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20050511/3ca4acc3/attachment.htm


More information about the XML-SIG mailing list