cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Koechlin <skoech...@ivision.fr>
Subject Re: How to implement Multiple charsets in cocoon 1.8x
Date Fri, 23 Mar 2001 11:58:27 GMT
Roberto Viana wrote:
> 
> Robin,
> 
> If it's not too much ask, could you please give me a short example of how to
> create multiple formatter instances of the cocoon.properties for the
> different encoding types, how to select them using <xsp:pi>

In your XML you have to XSP-produce a PI like :
<?cocoon-format type="text/html/iso88591"?>
(and read http://xml.apache.org/cocoon/faqs.html#faq-lostpis)

formatter.type.text/html/iso88591 =
org.apache.cocoon.formatter.HTMLFormatter
formatter.text/html/iso88591.doctype-public = -//W3C//DTD HTML 4.0//EN
formatter.text/html/iso88591.doctype-system =
http://www.w3.org/TR/REC-html40/strict.dtd
formatter.text/html/iso88591.encoding = iso-8859-1
formatter.text/html/iso88591.MIME-type = text/html

formatter.type.text/html/iso88592 =
org.apache.cocoon.formatter.HTMLFormatter
formatter.text/html/iso88592.doctype-public = -//W3C//DTD HTML 4.0//EN
formatter.text/html/iso88592.doctype-system =
http://www.w3.org/TR/REC-html40/strict.dtd
formatter.text/html/iso88592.encoding = iso-8859-2
formatter.text/html/iso88592.MIME-type = text/html

(...)

Create a new formatter for each charset you want to use.

-- 
S├ębastien Koechlin - IVision - skoechlin@ivision.fr

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message