p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   parent/ancestor (http://p2p.wrox.com/showthread.php?t=57034)

nmnm April 24th, 2007 04:58 AM

parent/ancestor
 
Is there any functions in xslt to find parent/ancestor/siblings of an element.if it is not there how we can do that .i want to check the ancestor of a perticular element.


thanks in advance

mhkay April 24th, 2007 05:25 AM

Use the XPath axes parent, ancestor, preceding-sibling, following-sibling. For example, if the context node is within a chapter element, you can find the chapter as ancestor::chapter.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference


All times are GMT -4. The time now is 02:23 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.