Andrew Savory wrote:

>On Tue, 5 Mar 2002, marco wrote:
>
>>I was using cocoon 2.0.0, tomcat 4.0.1, jdk1.3.1_01 in Windows 98, the
>>svg2png serializer works fine, but the svg graphics becomes blank after I
>>upgraded the cocoon to 2.0.1.
>>
>
>Hi marco,
>
>I had a similar problem. Check your namespaces are specifically declared
>in the SVG xml. Also, are there any errors in the logs at all?
>
>
>Andrew.
>
In you stylesheet try like next:

 <xsl:template match="graph">
    <svg:svg width="200" height="15" xmlns:svg="http://www.w3.org/2000/svg";>
                                                                        
^-----------
                <svg:g style="stroke: black; stroke-width: 2px;">
                    <svg:line x1="5" y1="5" x2="8" y2="5"/>
                    <svg:line x1="5" y1="5" x2="5" y2="15"/>
                </svg:g>
                <svg:text x="10px" y="10px" style="font-family:sans; 
font-size:15px; fill: #0086b2; text-anchor:start;">
                    test text
                </svg:text>
                <svg:g style="stroke: black; stroke-width: 2px;">
                    <svg:line x1="195" y1="5" x2="192" y2="5"/>
                    <svg:line x1="195" y1="5" x2="195" y2="15"/>
                </svg:g>
                <svg:text x="190px" y="10px" style="font-family:sans; 
font-size:15px; fill: #0086b2; text-anchor:end;">
                    tes2 text
                </svg:text>
    </svg:svg>

 </xsl:template>

Regards.
Yury.






---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to