xsl-list
[Top] [All Lists]

RE: [xsl] position of the parents node -> XSLT1.1

2006-05-09 05:31:15
news(_at_)swisslab(_dot_)de wrote:

I need to know the position if the parents node of the
current node in its parent node.

Xpath's like this "parent::position()" dont'nt work. 

  It is normal.  Following an axis, you must have a node test.  For
example:

    axis::text()
    axis::elem-name
    axis::*

  In XSLT 1.0, you can use instead count(../preceding-sibling::*) + 1.

  Regards,

--drkm





















        

        
                
___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

--~------------------------------------------------------------------
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>
--~--