RE: [xsl] Problem involving position() and COnditional filtering

Subject: RE: [xsl] Problem involving position() and COnditional filtering
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Tue, 30 May 2006 13:46:30 +0200 (CEST)
Pankaj Bishnoi wrote:

  Hi

> The problem is that the position function generates value
> according to the source xml occurrences and not the actual
> occurrence in output.

  If you use a predicate in the select of the xsl:for-each, instead of
an xsl:if, you'll get the same position in the node set and in the
output tree:

    <xsl:for-each select="/NounOutcome/DocumentIds
                            / DocumentIdType[Id = '43]">
      ...
    </xsl:for-each>

  Regards,

--drkm
































	

	
		
___________________________________________________________________________ 
Yahoo! Mail riinvente le mail ! Dicouvrez le nouveau Yahoo! Mail et son interface rivolutionnaire.
http://fr.mail.yahoo.com

Current Thread