[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: for-each sort of thing in {} ?
On Thu, 8 Jun 2000, Ben Robb wrote: > <xsl:template match="foo"> > <xsl:variable name="qstring"> > <xsl:for-each select="bar"> > <xsl:if test="postition() != 1"> > & > </xsl:if> > id<xsl:value-of select="position()"/>=<xsl:value-of > select="@id"/> > </xsl:for-each> > </xsl:variable> > </xsl:template> Ben, Thanks very, very much. Duh, of course a variable is the solution. However, one has to change the content of the XSL:FOR-EACH element to: <xsl:if test="position() != 1">&</xsl:if>id<xsl:value-of select="position()"/>=<xsl:value-of select="@id"/> so that the whitespace does not become part of the element. - - - - - - - - - - - - - - - - - - - - - - - - - - - Carole E. Mah Carole_Mah@xxxxxxxxx Senior Programmer/Analyst Brown University Scholarly Technology Group phn 401-863-2669 fax 401-863-9313 http://www.stg.brown.edu/ personal: http://www.stg.brown.edu/staff/carole.html XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|