Plone - XSLTApplyError: xsltValueOf: error copying text

I have Plone 4 with plone.app.theming (Diazo) installed and I have a problem when I use the zip file theme through the Diazo control panel.

I tried many times to determine the cause of the error shown in the Plone list:

2011-07-10 20:20:55 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain Traceback (most recent call last): File "/opt/Plone4/buildout-cache/eggs/plone.transformchain-1.0-py2.6.egg/plone/transformchain/transformer.py", line 42, in __call__ newResult = handler.transformIterable(result, encoding) File "/opt/Plone4/buildout-cache/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 205, in transformIterable transform = self.setupTransform() File "/opt/Plone4/buildout-cache/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 150, in setupTransform xsl_params=xslParams, File "/opt/Plone4/buildout-cache/eggs/diazo-1.0rc3-py2.6.egg/diazo/compiler.py", line 106, in compile_theme read_network=read_network, File "/opt/Plone4/buildout-cache/eggs/diazo-1.0rc3-py2.6.egg/diazo/rules.py", line 160, in process_rules rules_doc = fixup_themes(rules_doc) File "/opt/Plone4/buildout-cache/eggs/diazo-1.0rc3-py2.6.egg/diazo/utils.py", line 49, in __call__ result = self.xslt(*args, **kw) File "xslt.pxi", line 568, in lxml.etree.XSLT.__call__ (src/lxml/lxml.etree.c:120289) XSLTApplyError: xsltValueOf: text copy failed 

I would really appreciate it if you could help me?

Thanks in advance,

Alano

+2
source share
3 answers

I downloaded the Plone 4.1 installer from Launchpad (http://launchpad.net/plone/4.1/4.1rc3/+download/Plone-4.1rc3-UnifiedInstaller-Hotfix-20110622.tgz) and reinstalled Plone 4. The problem mentioned happened. Diazo works great on time.

My old Plone 4.1 installation was updated from a Plone 4.0.7 installation, and there were some conflicts or something like that in the installed packages.

+2
source

It looks like you have a bad rule in your rules file. Back up the rule file, then delete the lines one by one until the problem goes away. Then you will find out which line is causing the problem. Read the documents for this rule again to check if any necessary part is missing.

+1
source

I ran into the exact same problem with the exact same error message.

This was on a system with libxml2 2.6.26 and libxslt 1.1.17.

Updating libxml2 to 2.7.8 and libxslt to 1.1.26 made the message go away and my Diazo rules started working correctly.

If you use zc.buildout (and you should be), you can quickly deal with the recipe "z3c.recipe.staticlxml". Just add the "lxml" part to your construction with the following configuration:

 [lxml] recipe = z3c.recipe.staticlxml egg = lxml 

Remove any existing lxml eggs that you may have before starting the build.

+1
source

All Articles