W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 2000

loop over attributes in xsl

From: Gilad Bar Lev <GBarlev@ifn.co.il>
Date: Wed, 4 Oct 2000 14:39:44 +0200
Message-ID: <903BD0010067D411B94C009027731B1516A25A@IFN_MAIL>
To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
Hello,

Is there a way I can go over all the attributes of an element?

My code for the xsl file is that:

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns:z="#RowsetSchema">
	
	<xsl:template match="/">
			<titles>
			<xsl:for-each select="//z:row"
order-by="number(@I_ENTRY_ID)" direction="-">
				<xsl:element>
			<xsl:for-each select="//z:row[attribute(@)]">
		<xsl:attribute name="I_NEW_ITEM">g</xsl:attribute>
			</xsl:for-each>	
				</xsl:element>
			</xsl:for-each>
				</titles>
	</xsl:template>

</xsl:stylesheet>

could you come back to me as soon as possible

thank you very much

Gilad 

Gbarlev@ifn.co.il
Received on Wednesday, 4 October 2000 07:41:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:51 GMT