This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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
Author

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,

Jack

 
GeeCON Prague 2014
 
subject: XSLT stylesheet looping through the same node (recursion?)