Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2006, 06:59 AM
Authorized User
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to find the depth with respect to curr context

Hi all,

How to find the depth at which the current context is located. Is there is any function present in xslt 1.0

Dsekar_nat

__________________
Regards,
dsekar_nat
 
Old March 28th, 2006, 07:28 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Use

count(ancestor::node())

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink Targeturl to open within the curr frame ismailc XSLT 12 September 11th, 2008 04:52 AM
Can not find the Add-In on the context Menu. himanshu2s BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 0 June 9th, 2008 02:44 AM
Random Rows in Respect to Their Priorities binishkhan87 SQL Server 2000 1 September 28th, 2007 12:06 AM
Consideration and respect for all forum users jminatel General .NET 1 July 30th, 2004 01:55 AM
Depth First Search gbilios C++ Programming 3 June 8th, 2004 12:28 PM





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