You are trying to use JSP approach to writing XSP document.
Use the following syntax for dynamic attributes instead:

<xsp:logic>
for (int count=0;count &lt; 25;count++){
</xsp:logic>
 <g id="XMLID_1_">
    <rect x="0" width="500" height="12" fill="yellow">
      <xsp:attribute name="y"><xsp:expr> count*13+40 
</xsp:expr></xsp:attribute>
   </rect>
 </g>
<xsp:logic>
};
</xsp:logic>
--
Ilya


Sanne de Roever wrote:

> Hi,
>  
> I've managed to make some svg's with xsp: which is pretty cool!
>  
> But now I want to go further and try to make tables in svg.
> Basically what I would need is such a snippet:
>  
> <xsp:logic>
> for (int count=0;count &lt; 25;count++){
> </xsp:logic>
>  <g id="XMLID_1_">
>  
>    <rect x="0" y="<xsp:expr> count*13+40 </xsp:expr>" width="500" 
> height="12"
>          fill="yellow"/>
>  </g>
> <xsp:logic>
> };
> This would setup several rows, and if this would work I could also get 
> the cells in the rows.
> But the snippet above is not correct: cocoon says that y has a faulty  
> value. Which I can understand.
> What I can't understand is how to get around this. I've tried fooling 
> cocoon with a &amp;lt;rect tag, but then the &amp;lt; instead of an 
> &lt; tag appears in my SVG.
>  
> Has anybody any experience with this?
>  
> Regards,
>  
> Sanne
> ++++++++++++ http://www.newfoundland.nl ++++++++++++
>  
> Sanne de Roever
> Newfoundland Interactive Technology
> Jacob van Lennepkade 187
> 1054 ZN Amsterdam
> Telefoon: +31 (0)20 4 700 623 / +31 (0)6 24 510 562
> Fax: +31 (0)20 4 700 624
> Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>  
> +++++++++++++++++++++++++++++++++++++++++++++++




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to