cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toby <>
Subject Re: How to avoid the encoded text &#220 in pdf generation
Date Tue, 11 Jul 2006 13:43:10 GMT
Dingjun Jia wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <doc>
>       <text>&amp;#220;bung</text>
> </doc>

This won't work.  It should read &#220; instead of &amp;#220;

You have 2 options.  The right one: understand what generates it that
way and fix the problem earlier in the pipeline; or the quick one: give
it a run of disable-output-escaping, using an xsl transformer just
before serialization, with a stylesheet like this:

<xsl:stylesheet version="1.0" xmlns:xsl="">
  <xsl:template match="@*">
    <xsl:attribute name="{name()}">
      <xsl:value-of select="." disable-output-escaping="yes"/>
  <xsl:template match="text()">
    <xsl:value-of select="." disable-output-escaping="yes"/>
  <xsl:template match="node()" priority="-1">
    <xsl:copy><xsl:apply-templates select="node()"/></xsl:copy>

(adjust to your needs)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message