You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andres Taborda <at...@saludcolombiaeps.com.co> on 2004/05/24 15:01:57 UTC

read page how svg

Some users can help me.

I have the followg XSP + cinclude an page what generate svg.

Howto for what cocoon read and writing XHTML + SVG

My explain:

file estructura.xsp

<xsp:page>
<usuario>.... </usuario>
...
...
...

<cinclude:include src="cocoon://misx/componente"/>

</xsp:page>

The goals of code cinclude generate an grafics svg/png dinamically.

In my sitemap have:

<!-- generar Estructura Visual -->
<*map:match pattern="estructura">
<!-- Validamos los datos -->
<map:act type="session-validator">
<map:parameter name="descriptor" 
value="context://misx/descriptors/params.xml"/>
<map:parameter name="validate" value="usuario,clave"/>
<!-- generamos el contenido -->
<map:generate type="xsp" src="docs/estructura.xsp"/>
<map:transform type="cinclude"/>
<map:transform src="estilos/estilo.xsl"/>
<map:serialize/>
</map:act>
<!--  autenticacion falle volvemos a la pagina inicial-->
<map:redirect-to uri=""/>
</map:match>

<map:match pattern="componente">
   <map:generate src="docs/componente.xsp" type="xsp"/>
   <map:transform src="estilos/componente2svg.xsl"/>
   <map:serialize type="svg2png"/>
</map:match> *


The problem I'm sure howto for sitemap writing the output.

The result output is

<html>
<table><tr>td>usuario</td>...
...
<svg>
..

</svg>
</html

write the code svg and not read how an graphic.


Listen any suggestions and help

Thanks very much.

-- 
Cordialmente,

Andres Taborda 
Departamento de Sistemas
http://www.saludcolombiaeps.com.co
email:ataborda@saludcolombiaeps.com.co
SaludColombia E.P.S. - Una Sola Familia
Calle 5C # 43-05 Tequendama
Telefono : 57 (002) 551 04 89 - 57 (002) 551 04 90 Ext 119
Cali - Colombia