Note that there are some explanatory texts on larger screens.

plurals
  1. POXSLTApplyError: xsl:comment : '--' or ending '-' not allowed in comment
    text
    copied!<p>I am really new to plone and diazo so forgive me if the answer to question is too obvious.</p> <p>I was asked to create a diazo theme for a website running on plone. Right now i'm at a state where i where i think the theme is reasonably complete(without rules) and i uploded it via .zip to the plone planing to create the rules in plones rules editor. Made a handful of them and hit the preview button to see whether what i am doing is even repotely going into the right direction but hat it showed was this error.</p> <pre><code>Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module plone.app.theming.browser.mapper, line 245, in getFrame Module lxml.etree, line 567, in lxml.etree.XSLT.__call__ (src/lxml/lxml.etree.c:124426) XSLTApplyError: xsl:comment : '--' or ending '-' not allowed in comment </code></pre> <p>After spending quiet some time with a well known search engine i'm still uncertain if that is a mistake i made in the rules.xml or something the websites admin has to look at.</p> <p>Any and all help will be appreciated.</p> <p><strong>Edit version information:</strong></p> <pre><code>Plone 4.3 (4305) CMF 2.2.7 Zope 2.13.19 Python 2.7.3 (default, Feb 4 2013, 09:04:32) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] PIL 1.7.8 (Pillow) </code></pre> <p><strong>Edit rules so far</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;rules xmlns="http://namespaces.plone.org/diazo" xmlns:css="http://namespaces.plone.org/diazo/css" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;!-- Apply the following rules to standard Plone pages --&gt; &lt;rules css:if-content="#visual-portal-wrapper"&gt; &lt;theme href="theme.html" /&gt; &lt;!-- Replace title with Plone's page title --&gt; &lt;replace css:theme="html head title" css:content="html head title" /&gt; &lt;!-- Copy base tag and script tags from Plone --&gt; &lt;after css:theme-children="html head" css:content="html head base" /&gt; &lt;after css:theme-children="html head" css:content="html head script" /&gt; &lt;!-- Insert your own rules here --&gt; &lt;!-- Replace logo with Plone's logo --&gt; &lt;replace css:theme-children="a#brand img" css:content-children="a#portal-logo img"/&gt; &lt;!-- Replace top navigation with Plone's top navigation --&gt; &lt;replace css:theme-children="navbar" css:content-children="ul#portal-globalnav"/&gt; &lt;!-- Replace search with Plone's search --&gt; &lt;replace css:theme-children="input.search-query" css:content-children="input#searchGadget"/&gt; &lt;!-- Replace top navigation with Plone's top navigation --&gt; &lt;replace css:theme-children="documentDescription" css:content-children="documentDescription"/&gt; &lt;/rules&gt; &lt;/rules&gt; </code></pre> <p>I didn't create that file myself. It was automatically created by plone upon uploading the .zip without a rules.xml in it. The four(that's how far I got until I first stumbled over the error) rules were created by plones editor. At first I thought i messed up the comments somehow, seeing that is states "--" and "-" in the error message, but i couldn't find where and DW didn't point out any syntac errors either when opening the file in there.</p> <p><strong>Edit Solution:</strong></p> <p>Typo found in the theme.html . One comment ended on "->" instead of "-->" which i never new works for html in the first place.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload