Silva 1.1b1: RenderError when using XSLT renderer

Yuri Smetsers <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Hello developers,

I downloaded the new Silva 1.1b1 installer and tried it. At first, the 
XSLT renderers did not show up, so i downloaded and installed the 
libxml2/libxslt libraries (libxml2-python-2.6.11.win32-py2.3.exe).
While installing the libraries, the installer wasn't able to detect 
Silva's Python 2.3, so i had to install Python manually.

Launched the ZMI, and the XSLT-renderers showed up. However, viewing any 
content resulted in the following error:

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 26, in index_html
   - <PythonScript at /Silva/index_html>
   - Line 26
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - <ZopePageTemplate at /Silva/content.html>
  Module TAL.TALInterpreter, line 189, in __call__
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 670, in do_useMacro
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 701, in do_defineSlot
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 693, in do_defineSlot
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 406, in do_optTag_tal
  Module TAL.TALInterpreter, line 388, in no_tag
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 568, in do_insertStructure_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: /Silva/content.html
   - Line 124, Column 2
   - Expression: <PythonExpr getattr(here, view_method)()>
   - Names:
      {'container': <Silva Root instance Silva>,
       'context': <Silva Root instance Silva>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x01748DF0>,
       'here': <Silva Root instance Silva>,
       'loop': <SafeMapping instance at 023E7370>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x017549B8>,
       'nothing': None,
       'options': {'args': (), 'view_method': 'view'},
       'repeat': <SafeMapping instance at 023E7370>,
       'request': <HTTPRequest, URL=http://localhost:8080/Silva/index_html>,
       'root': <Application instance at 02368530>,
       'template': <ZopePageTemplate at /Silva/content.html>,
       'traverse_subpath': [],
       'user': admin}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: getattr(here, view_method)()
  Module Python expression "getattr(here, view_method)()", line 1, in <expression>
  Module Products.Silva.SilvaObject, line 282, in view
  Module Products.SilvaViews.MultiViewRegistry, line 151, in render_view
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.FileSystemSite.FSPageTemplate, line 191, in _exec
  Module Products.FileSystemSite.FSPageTemplate, line 124, in pt_render
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - <FSPageTemplate at /Silva/service_views/Silva/public/Folder/render_view>
  Module TAL.TALInterpreter, line 189, in __call__
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 406, in do_optTag_tal
  Module TAL.TALInterpreter, line 388, in no_tag
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 636, in do_condition
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 568, in do_insertStructure_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - Line 2, Column 0
   - Expression: <PythonExpr model.get_default().view()>
   - Names:
      {'container': <DirectoryViewSurrogate instance at 02516E30>,
       'context': <DirectoryViewSurrogate instance at 02516E30>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x01748DF0>,
       'here': <DirectoryViewSurrogate instance at 02516E30>,
       'loop': <SafeMapping instance at 023E7450>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x017549B8>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <SafeMapping instance at 023E7450>,
       'request': <HTTPRequest, URL=http://localhost:8080/Silva/index_html>,
       'root': <Application instance at 02368530>,
       'template': <FSPageTemplate at /Silva/service_views/Silva/public/Folder/render_view>,
       'traverse_subpath': [],
       'user': admin}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: model.get_default().view()
  Module Python expression "model.get_default().view()", line 1, in <expression>
  Module Products.Silva.VersionedContent, line 235, in view
  Module Products.Silva.transform.renderer.xsltrendererbase, line 64, in render
  Module Products.Silva.transform.renderer.xsltrendererbase, line 55, in stylesheet
RenderError: compilation error: element import
xsl:import : invalid URI reference C:\Program Files\Silva 1.1b1\Silva\Products\Silva\transform\renderer/doc_elements.xslt

Regards,
Yuri Smetsers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.