cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanne de Roever" <>
Subject (Related) XSP Bug: xsp:element used as root element
Date Thu, 12 Sep 2002 12:23:38 GMT

I've been using the xsp:element, and xsp:attribute tags with succes when creating svg. 
But now I would like to wrap the root element svg in such a tag, so I can
adjust the width and height.

The could/should be like this:

<?xml version="1.0"?>
<xsp:page language="java"
<xsp:element name="svg">
 <xsp:attribute name="width">500</xsp:attribute>
 <xsp:attribute name="height">500</xsp:attribute>
 <xsp:element name="path">
  <xsp:attribute name="fill">none</xsp:attribute>
  <xsp:attribute name="d">M 100,200 z</xsp:attribute>
 <xsp:element name="text">
  <xsp:attribute name="transform">matrix(1 0 0 1 0 26)</xsp:attribute>
  Hello world

My own svg is more complex, but the bottom line is that using an xsp:element
tag for a root element doesn't work. If I start with <svg width="500" height="500">
and end with </svg> then everything goes ok.,
but starting with <xsp:element name="svg"> doesn't work.

Could this be a bug?



View raw message