xsl-list
[Top] [All Lists]

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

2006-05-30 04:46:50
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 réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.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>
--~--

<Prev in Thread] Current Thread [Next in Thread>