more precisely:
 
<xsp:logic>
for (int count=0;count &lt; 25;count++){
</xsp:logic>
<g id="XMLID_1_">
<xsp:content>
<rect x="0" width="500" height="12"
fill="yellow"><xsp:attribute name="y"><xsp:expr> count*13+40 </xsp:expr></xsp:attribute></rect>
</xsp:content>
</g>
<xsp:logic>
 
----- Original Message -----
Sent: Friday, September 06, 2002 7:23 PM
Subject: svg xsp java

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]
 
+++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to