xdv

XSLTParseError: xsltCompilePattern for class selector in xsl:template css:match

Bug #677080 reported by Roel Bruggink on 2010-11-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdv
Undecided
Unassigned

Bug Description

Usecase:
    <xsl:template css:match="dt.portletHeader.hiddenStructure">
        <xsl:attribute name="class">
            <xsl:value-of select='replace(., "hiddenStructure", "")'/>
        </xsl:attribute>
    </xsl:template>

Error:
2010-11-18 17:29:51 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
  File "/Users/roel/.buildout/eggs/plone.transformchain-1.0b1-py2.6.egg/plone/transformchain/transformer.py", line 42, in __call__
    newResult = handler.transformIterable(result, encoding)
  File "/Users/roel/.buildout/eggs/collective.xdv-1.0rc11-py2.6.egg/collective/xdv/transform.py", line 281, in transformIterable
    transform = self.setupTransform()
  File "/Users/roel/.buildout/eggs/collective.xdv-1.0rc11-py2.6.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:108752)
XSLTParseError: xsltCompilePattern : failed to compile 'descendant-or-self::dt[contains(concat(' ', normalize-space(@class), ' '), ' portletHeader ') and (contains(concat(' ', normalize-space(@class), ' '), ' hiddenStructure '))]'

Fix:
Replace in xdv.cssrules.convert_css_selectors prefix = 'descendant-or-self::' with prefix = ''

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers