File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XSLT stylesheet looping through the same node (recursion?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT stylesheet looping through the same node (recursion?)" Watch "XSLT stylesheet looping through the same node (recursion?)" New topic

XSLT stylesheet looping through the same node (recursion?)

Jack Bush
Ranch Hand

Joined: Oct 20, 2006
Posts: 235
Hi All,

I would like to get all the content/text in

node from the XML document where

has a child node <strong>Interest:<strong>. Below is the listing of both XML document and XSLT stylesheet:

One possible solution is by using recursion to go through the list of values on nodes but I am cannot think of how this could be done. Perhaps my difficulty is that I don’t know how to navigate down the list of interest of the same node using xsl command. Most of the Googled articles consisted of searching for the same type of element a cross multiple nodes, where as I am looking all the values (same type anyway) in a single node.

I am new to XSLT stylesheet transformation and can do with some guidances.

Many thanks again,


I agree. Here's the link:
subject: XSLT stylesheet looping through the same node (recursion?)
Similar Threads
Newbie Question---Help?
XSLT Stylesheet Exclude Parental results?
Using xsl:choose in Cocoon
XSLT StyleSheet Query (newbie)
XSLT Stylesheet test for special character