You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-fr@cocoon.apache.org by Sylvain Gonnet <sy...@capgemini.com> on 2006/01/10 17:38:31 UTC
Probleme avec le serializer SVGSerializer
Bonjour et bonne année à tous,
J'ai une application qui utilise version cocoon 2.1.4 et j'essaie d'utiliser
le SVGSerializer pour construire des boutons mais je n'arrive pas à le faire
marcher.
J'ai l'entrée suivante dans la sitemap:
<map:match pattern="button/(white|blue)/(.*)-(.*).(svg|png|jpg|xml)"
type="regexp">
<map:generate
src="cocoon:/generate-button-i18n.svg?text={2}&lang={3}&style={1}"/>
<map:select type="parameter">
<map:parameter name="parameter-selector-test" value="{4}"/>
<map:when test="svg">
<map:serialize type="svgxml"/>
</map:when>
<map:when test="png">
<map:serialize type="svg2png"/>
</map:when>
<map:when test="jpg">
<map:serialize type="svg2jpeg"/>
</map:when>
<map:when test="xml">
<map:serialize type="xml"/>
</map:when>
</map:select>
</map:match>
J'ai déclaré mon serializer svg2png de la façon suivante:
<map:serializer logger="sitemap.serializer.svg2png" name="svg2png"
src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/png">
Quand j'essaie de faire afficher un bouton au format png, j'ai un blanc et
dans les logs j'ai l'entrée suivante:
WARN (2006-01-10) 17:35.36:183 [sitemap.serializer.svg2png]
(/button/blue/cancel-en_GB.png) Ajp13Processor[8009][2]/SVGBuilder:
setDocumentLocator was not called, will use http://localhost/ as base URI
Merci d'avance
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: Probleme avec le serializer SVGSerializer
Posted by Jean-Baptiste Quenot <jb...@anyware-tech.com>.
La visualisation directe du SVG généré donne-t-elle le bon
résultat?
--
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/
---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org
Autres commandes : mailto:users-fr-help@cocoon.apache.org