Andrew Madu wrote:
Hi,
java.lang.NoClassDefFoundError : Could not initialize class
org.apache.cocoon.components.serializers.encoding.CharsetFactory
I remember having this very issue with a previous version of cocoon, but
for the lief of me I can't remember how the issue was resolved. I think
I may have been given a different charset version but I can't be sure!
Any ideas with this one?
I remember seeing a discussion about this a while back too but don't
remember the outcome. You can probably find it in the list archives.
For the meantime I will revert back to the in-built xhtml serializer
until this issue is resolved.
If you do that, a possible way to work around the issue is to run a XSLT
just before serializing that adds content between the script tags so
they don't collapse. Something like:
<xsl:stylesheet ...>
<!-- keep script tags from collapsing -->
<xsl:template match="script">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
<xsl:text>//</xsl:text>
</xsl:copy>
</xsl:template>
<!-- copy everything else through -->
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]