OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
XML and XSL and Javascript oh my!
This page's ID:
10885
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
The second file, the xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <script language="JavaScript"> // Shows and Hides The tests under a specified class function showHide(src) { if(document.all(src).style.display == "none") document.all(src).style.display = "block"; else document.all(src).style.display = "none"; } </script> </head> <body> <h2>My Classes</h2> <ul> <xsl:for-each select="collegeDatabase/class"> <div style="overflow:scroll"> <li> <A HREF="#" onclick="showHide()"> <xsl:attribute name="onclick">showHide('<xsl:value-of select="@courseNO"/>')</xsl:attribute> <xsl:value-of select="@name"/> </A> <div id="0" style="display:none;"> <xsl:attribute name="id"><xsl:value-of select="@courseNO"/></xsl:attribute> <xsl:for-each select="chapter"> <ul> <li><xsl:value-of select="@name"/></li> </ul> </xsl:for-each> </div> </li> </div> </xsl:for-each> </ul> </body> </html> </xsl:template> </xsl:stylesheet>
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »