How about (loop): <xsl:for-each select="[EMAIL PROTECTED]'SALES']"> <xsl:call-template name="processIt"/> </xsl:for-each>
-Lou "Torsten Erler" <[EMAIL PROTECTED]> on 04/24/2003 09:03:20 Please respond to [EMAIL PROTECTED] To: "Fop-User \(E-mail\)" <[EMAIL PROTECTED]> cc: Subject: accessing attributes in xml Hi all, I've an xml like: ... <defaultContactPerson type="PROOF"/> <defaultContactPerson type="BILL"/> <defaultContactPerson type="SALES">Hans Friedrich Mueller</defaultContactPerson> <defaultContactPerson type="MAIL"/> <defaultContactPerson type="KEY"/> .... Now I've to check inside the xsl this: <xsl:if test="??? //[EMAIL PROTECTED] != '' ???"> <!-- do something here if the sales contact isn't empty--> <xsl:value-of select="??? //[EMAIL PROTECTED] ???"/> </xsl> Can anyone help me how to check the value for the tag where the attribute is 'SALES' and how to access this value. ThanX in Advance cu Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]