I just met strange behavior of the xdv with Plone where all non-ascii characters where transformed to html entities. Note: you won't notice it in the firebug but in the raw page source.
Here is simple solution which seems to be solving it:
Open your rules.xml file containing xdv rules for your theme and enclose all of them by the following xsl rule:
<?xml version="1.0" encoding="UTF-8"?>
<rules
xmlns="http://namespaces.plone.org/xdv"
xmlns:css="http://namespaces.plone.org/xdv+css"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output disable-output-escaping="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
<xsl:text disable-output-escaping="yes">
... here comes all rules ...
</xsl:text>
</rules>
It produces the following error in the zope's event log:
...
XSLTParseError: xsltParseStylesheetTop: unknown text element
(so you should add this exception to ingored exceptions in the error log tool to not choke up your event log)
I'm not sure why when "text" is proper element defined in the xsl specification but it works ;-)
Enjoy!
Aug 22, 2011
Mar 20, 2011
How to get md5sum to your Mac (Leopard)
Today I needed md5sum info for my buildout setup which downloads external archives but I realized there isn't any "md5sum" binary to use on my mac.
Here is how to install it in a moment using terminal:
$: cd /tmp
$: wget http://www.microbrew.org/tools/md5sha1sum/md5sha1sum-0.9.5.tar.gz
$: tar xvzf md5sha1sum-0.9.5.tar.gz
$: cd ./md5sha1sum-0.9.5
$: ./configure
$: make
Note: I didn't need to call "make install" even use "suco" command. The "make" command already installed binaries to "/usr/local/bin".
You can check MD5sum/SHA1sum/RIPEMD160sum website for latest releases and replace version number "0.9.5" in used in my commands to use the latest version.
Here is how to install it in a moment using terminal:
$: cd /tmp
$: wget http://www.microbrew.org/tools/md5sha1sum/md5sha1sum-0.9.5.tar.gz
$: tar xvzf md5sha1sum-0.9.5.tar.gz
$: cd ./md5sha1sum-0.9.5
$: ./configure
$: make
Note: I didn't need to call "make install" even use "suco" command. The "make" command already installed binaries to "/usr/local/bin".
You can check MD5sum/SHA1sum/RIPEMD160sum website for latest releases and replace version number "0.9.5" in used in my commands to use the latest version.
Subscribe to:
Posts (Atom)
