[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Full path to a node

Subject: Full path to a node
From: Ronny Haryanto <ronnyharyanto@xxxxxxxxxxx>
Date: Mon, 10 Feb 2003 10:20:15 +0700
xml node full path
Hi all,

Is it possible to print out the full path of a node with XSL?

Let say I have a menu.xml like the following for a web application's
menu system:

<menu href="/" label="Home">
    <menu href="manage/" label="Manage">
	<menu href="customer/" label="Customer">
	    <menu href="customer/register/" label="Register" />
	    <menu href="customer/" label="Query" />
	</menu>
	<menu href="project/" label="Project">
	    <menu href="project/register/" label="Register" />
	    <menu href="project/" label="Query" />
	</menu>
	<menu href="employee/" label="Employee">
	    <menu href="employee/register/" label="Register" />
	    <menu href="employee/" label="Query" />
	</menu>
    </menu>
</menu>

When I view the "Register A Project" page in the web application I
want to print out:

	Home :: Manage :: Project :: Register

at the top of the page.

I tried writing several XSLs but most of them got stuck in infinite
recursive loop or prints only the root node or the "Project Register"
node. I just started learning XSL 2 days ago so I'm still not used to
thinking in terms of XPath and XSL.

I would really appreciate any suggestions and/or pointers. Thanks.

Ronny

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.