xdv

XDV does not seem to compile "descendant" axis

Bug #699812 reported by Jim Leek on 2011-01-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdv
Undecided
Unassigned

Bug Description

Found that XDV does not seem to compile "descendant" axis.

In order to remove images from the Plone menu portlet in my rules.xml I added:

    <drop content='//li[@class="navTreeItem"]/descendant::img' />

This produced the following in debug mode:

2011-01-07 12:37:09 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
  File "/usr/local/Plone/buildout-cache/eggs/plone.transformchain-1.0b1-py2.4.egg/plone/transformchain/transformer.py", line 42, in __call__
    newResult = handler.transformIterable(result, encoding)
  File "/usr/local/Plone/buildout-cache/eggs/collective.xdv-1.0rc11-py2.4.egg/collective/xdv/transform.py", line 281, in transformIterable
    transform = self.setupTransform()
  File "/usr/local/Plone/buildout-cache/eggs/collective.xdv-1.0rc11-py2.4.egg/collective/xdv/transform.py", line 245, in setupTransform
    transform = etree.XSLT(compiled_theme, access_control=access_control)
  File "xslt.pxi", line 399, in lxml.etree.XSLT.__init__ (src/lxml/lxml.etree.c:107912)
XSLTParseError: xsltCompilePattern : failed to compile '//li[@class="navTreeItem"]/descendant::img'

Conversley the child axis compiles fine:

    <drop content='//li[@class="navTreeItem"]/child::img' />

Laurence Rowe (lrowe) wrote :

This needs better documentation.

<drop theme="..."/> compiles to an <xsl:template match="...">. This restricts it to a location path selector, see https://bugs.launchpad.net/xdv/+bug/657968 for the full details.

Laurence

Changed in xdv:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers