cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject xsp:element limitations
Date Tue, 09 Jan 2001 11:19:23 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>

          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:element>
      </xsp:logic>

Votes and comments please!
--
Torsten Curdt


Mime
View raw message