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.