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

for-each and value-of (tree menu)

Subject: for-each and value-of (tree menu)
From: Lucas Gonçalves Grossi <lggrossi@xxxxxxxxxx>
Date: Wed, 28 Nov 2007 18:28:52 -0200
 for-each and value-of (tree menu)
Hello everybody,

I'm having a problem in my XSL code. My XSL file get an xml as input and
derives an html. In the output html I'm trying to do a tree menu, and the <h4>
html tag is the initializator of the button in menu, i.e. when I click in this
button, the menu open, like this "+" of xml.
The problem is that, as the h4 is after the for-each, it's appearing just in
the first value. So, the menu is ok (open) just for the first value. Ex:
goal
   +question1
   +question2
If I click on question 1, open or close his submenu. If i click on question 2,
should appear his submenu, but it open or close the menu of question 1 too.
Can anybody help me? Thanks a lot.

<xsl:for-each select="gqmroot/goal">
	<h4><xsl:value-of select="@titleGoal"/></h4>
		<ul>
		<li><xsl:for-each select="question">
			<h4><xsl:value-of select="@titleQuestion"/></h4>
				<ul>
				<li><xsl:for-each select="metric">
					<h4><xsl:value-of select="@titleMetric"/></h4>
						<h4>
							<xsl:value-of select="unparsed-text(@ChartLink)"
disable-output-escaping="yes"/>
						</h4>
				     </xsl:for-each>
				</li>
			        </ul>
			</xsl:for-each>
		</li>
		</ul>
</xsl:for-each>


LUCAS

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.