odmlTerminologiesIndex.xsl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
  4. xmlns:odml="http://www.g-node.org/odml">
  5. <!-- ************************************************ -->
  6. <!-- root template -->
  7. <xsl:template match="odML">
  8. <html>
  9. <head>
  10. <link rel="stylesheet" href="./odml_style.css" />
  11. <link href="./odMLIcon.ico" rel="shortcut icon" livesrc="./odMLIcon.png" />
  12. </head>
  13. <body>
  14. <header>
  15. <h1>odML Terminologies</h1>
  16. <p>data model for storing arbitrary metadata</p>
  17. </header>
  18. <div class="wrapper">
  19. <section>
  20. <p><a href="index.html"><img src="./odMLTitle.png" /></a></p>
  21. <ol>
  22. <xsl:if test="section">
  23. <xsl:for-each select="section">
  24. <xsl:call-template name="sectionTemplate"/>
  25. </xsl:for-each>
  26. </xsl:if>
  27. </ol>
  28. </section>
  29. </div>
  30. </body>
  31. </html>
  32. </xsl:template>
  33. <!-- ************************************************ -->
  34. <!-- section template. -->
  35. <xsl:template name="sectionTemplate" match="section">
  36. <!--create the list item -->
  37. <xsl:variable name="linkurl" select="include"/>
  38. <li>
  39. <a href="{$linkurl}"><xsl:value-of select="concat(type, ': ', name, ' (Type/Name)')"/></a>
  40. <ul>
  41. <xsl:for-each select="section">
  42. <xsl:call-template name="sectionTemplate"/>
  43. </xsl:for-each>
  44. </ul>
  45. </li>
  46. </xsl:template>
  47. </xsl:stylesheet>