I am developing a JSP-based breadcrumb component that reads in the following (similar) sitemap document:
and generates a breadcrumb based on the user's current URI. For instance, if the user's URI is currently '/roleAdd.html', the Breadcrumb would look as follows (with all the appropriate links taken from the file):
I am using the JSTL XML tag library to implement the breadcrumb. The code I am currently testing with looks as follows:
What I need to do in order to finish my breadcrumb is replace the line:
with one that looks something like the following:
This line would retrieve a nodelist consisting of all ancestors from the root of the tree directly to (and including) the node with the URI that the user is currently viewing. I can't seem to figure out the syntax for this though.
I am running Tomcat 6.0.18 with the latests versions of JSP and Xalan-j. Can someone tell me what the correct syntax should look like?