cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya A. Kriveshko" <i...@kaon.com>
Subject Re: svg xsp java
Date Fri, 06 Sep 2002 17:27:23 GMT
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: sanne@newfoundland.nl <mailto:sanne@newfoundland.nl>
>  
> +++++++++++++++++++++++++++++++++++++++++++++++




---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message