David Carlisle wrote:
<xsl:param name="a" select=".//text()[contains(.,',')][1]"/>
would be better as
descendant::text()[contains(.,',')][1]
which does what I intended (select the first node with a comma)
although actually i think it doesn't make any difference here
as $a is always used where XSLT1's implied first-node semantics
will mean that the extra nodes that are selected when // is used
don't do any harm.
Mmh. I don't understand what's the difference between the two
expressions. You say that in the first one, the result is a node-set
which count() may be greater than 1, with the test "[1]". Could you
please explain a bit further?
Thanks,
--drkm
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--