Tuesday 15 June 2010

plone - XSLTApplyError: xsl:comment : '--' or ending '-' not allowed in comment -


I'm really new to plone and diazo so please forgive me if the answer to the question is also obvious. > I was asked to create a diazza theme for the website running on the plan. Right now, I am in a situation where I think that the subject is appropriate (without rules) and I have prepared it to raise the plan rules to raise the plan through plan planning. Fill some of them and click on the preview button to see what I'm doing or is going in the right direction, but the hat shown was this error.

  traceback (at the end): ZPublisher.Publish module, line 126, published module ZPublisher.apply, line 77, mapply in module ZPublisher. Publish, line 46, in the call_object module plone.app.theming.browser.mapper, line 245, getFrame module in lxml.etree, line 567, in lxml.etree.XSLT.__ call__ (src / lxml / lxml.etree. C: 124426) XSLTApplyError: xsl: Comment: '-' or End '-' Not allowed in comment   

After spending some time with a famous search engine, I am still unsure If this is a mistake made in rule IX or to look at some website administrator.

Any

  Plone 4.3 (4305) CMF 2.2.7 Zap 2.13.19 Python 2.7.3 (Default, 4 February 2013, 09:04:32) [ GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] PIL 1.7.8 (pillow)   

Edit rules by now

  & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Rule xmlns = "http://namespaces.plone.org/diazo" xmlns: CSS = "http://namespaces.plone.org/diazo/css" xmlns: xsl = "http: //www.w3.org / 1999 / XSL / Conversion "& gt; & Lt ;! - Apply the following rules for standard Plone pages - & gt; & Lt; Rule CSS: if-content = "# visual-portal-wrapper" & gt; & Lt; Topic href = "theme.html" /> & Lt ;! - Change page title of Plone with title - & gt; & Lt; Replace css: topic = "html title title" css: content = "html head title" /> & Lt ;! - Copy original tag and script tag from Plone - & gt; & Lt; Css after: theme-kids = "html head" css: content = "html head base" /> & Lt; After CSS: theme-kids = "html head" css: content = "html head script" /> & Lt ;! - Insert your own rules here - & gt; & Lt ;! - Replace logo with Plone logo - & gt; & Lt; Css replace: theme-child = "a # brand img" css: content-child = "a # portal-logo img" /> & Lt ;! - Change top navigation with Plone's top navigation - & gt; & Lt; Css: theme-kids = "navbar" css: content-child = "ul # portal-global nav" /> & Lt ;! - Replace search with the search of Plone - & gt; & Lt; Replace css: theme-child = "input.search-query" CSS: content-child = "input #searchgadget" /> & Lt ;! - Change top navigation with Plone's top navigation - & gt; & Lt; Css: theme-kids = "documentDescription" CSS: content-child = "document description" /> & lt; / Rules & gt; & Lt; / Rules & gt;   

I did not create that file myself, it was automatically created by plone to upload .zip without a rule. Xml in it Four (how far it is, until I first stumbled upon error) rules were made by Plans Editor before I thought that I somehow messed up the comments, seeing that the error message "-" and " "State, but I did not know where and DW did not point to any syntax errors,

edit the solution:

Has been found. One comment ends "->" "- & gt;" Instead of which I do not do new work for html in the first place.

This does not appear in your rule file Check the theme file.

Every part of DIAO processing is done with XML and XSLT processors, which are well-formed XML (or XSLT) based on input. This is true about the subject and content as the rule file.

The content coming from Plone should be good XML (HTML subset). Your rules file looks fine, leaving the topic file as a candidate for the problem source.

No comments:

Post a Comment