Re: [xsl] Detecting presence of attributes

Subject: Re: [xsl] Detecting presence of attributes
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sun, 4 Feb 2001 21:02:56 -0800 (PST)
Hi Peter,

Your xsl:for-each below always selects just one node ( an element has
not more than one attribute with a given name)


is always false.

Therefore, this is not a bug in xt, but is exactly what you specified.

Dimitre Novatchev.

P.S. Just another minor error: must be last() -- not last.

Peter Flynn wrote:

<xsl:for-each select="@foo">
  <xsl:value-of select="."/>
  <xsl:if test="not(position()=last)">

I'm curious to know why the output contains the entity names separated 
by spaces
instead of commas.


Get personalized email addresses from Yahoo! Mail - only $35 
a year!

 XSL-List info and archive:

Current Thread