cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: xsp:element limitations
Date Tue, 09 Jan 2001 11:53:20 GMT
> > Right now I feel very constricted by the use
> > of the xsp:element tag. I think something like
> > the following should be possible.
> >
> >       <xsp:logic>
> >         Vector _items;
> >
> >         <xsp:element name="itemlist">
> >           <xsp:attribute name="name"><xsl:value-of
> > select="$listname"/></xsp:attribute>

             <xsp:logic>
> >
> >           for(int _i = 0; _i < _items.size(); _i++ ){
> >             String _item = (String)_items.elementAt(_i);
> >
> >             <xsp:element name="item">
> > 	        <xsp:attribute
> > name="attr"><xsp:expr>_somevariable</xsp:expr></xsp:attribute>
> >               <xsp:content><xsp:expr>_item</xsp:expr></xsp:content>
> >             </xsp:element/>
> >
> >           }

             </xsp:logic>

> >         </xsp:element>
> >       </xsp:logic>
> >
> > Votes and comments please!

I realized that is possible by adding another xsp:logic tag.
Sorry for the premature conclusion ;)

> Changes to XSP should be discussed on the XSP-dev list. Drop an email to
> xsp-dev-subscribe@xml.apache.org

Oh.. didn't know that..
--
Torsten 

Mime
View raw message