impossibleroot
IS-IT--Management
I need to pass the contents of an XML element into a variable to be used in script, like so:
The variable 'menuid' needs to be filled (many times, through a for-each recursion) by one of my XML elements. I tried:
but that doesn't seem to work. I know that the script works if I fill in the variable manually; now I just need to get it filled automatically, every time the (for-each) recurses.
Code:
<p class="header"><a href="#" onclick="toggle('menuid'); return false">
The variable 'menuid' needs to be filled (many times, through a for-each recursion) by one of my XML elements. I tried:
Code:
<script>menuid = '<xsl:value-of select="BKAbr"/>';</script>
but that doesn't seem to work. I know that the script works if I fill in the variable manually; now I just need to get it filled automatically, every time the (for-each) recurses.