Opened 17 years ago
Closed 17 years ago
#213 closed defect (invalid)
Genshi confused by position() in xpath
Reported by: | mats_a@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | XPath support | Version: | 0.4.4 |
Keywords: | Cc: |
Description (last modified by cmlenz)
Hello,
I noticed that the position() function in the xpath specification isn't supported by Genshi. Genshi returns the error:
INPUT: <py:match path="*[@delimiter]/*[position()!=last()]">[apparend delimiter]</py:match>
(given an element with the delimit=", " attribute, find all of its non-last children and append ", " to them)
ERROR: File "build/bdist.linux-i686/egg/genshi/path.py", line 558, in _function_call self.filename, self.lineno) PathSyntaxError: Unsupported function "position" (/home/mats/documents/.../myfile.html, line 53)
Specification?: http://www.w3.org/TR/xpath
Best wishes, Mats
Change History (1)
comment:1 Changed 17 years ago by cmlenz
- Component changed from General to XPath support
- Description modified (diff)
- Milestone 0.5 deleted
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Genshi does not provide full XPath support, mostly due to its streaming nature. The limitations of the XPath implementation are documented:
In this case, neither position() nor last() are supported.