odmlRepository.xsl 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <style type="text/css">
  10. <link href="../../images/odMLIcon.ico" rel="shortcut icon"
  11. csoptsettings="AQAAAD142mNgYNBomeIwObe4IIeBgYEvyTDuaAoPw3IFiwOcndS8HR1NjO0NDPTNdIzzEzOByni+A8EQNoAAPMPEQ4="
  12. livesrc="../../images/odMLIcon.png" />
  13. body { margin:0; padding:0; height:1500px; } div { border:0px
  14. solid #888; }
  15. #contentContainer {position:absolute; left:251px; top:1px; width:80%;
  16. height:auto;}
  17. </style>
  18. <body>
  19. <p><a href="index.html"><img src="../../images/odMLTitle.png" alt="" title="Home" height="128" width="707" border="0" /></a></p>
  20. <h1>odML - Terminologies</h1>
  21. <ol>
  22. <xsl:if test="section">
  23. <xsl:for-each select="section"><br/>
  24. <xsl:call-template name="sectionTemplate"/>
  25. </xsl:for-each>
  26. </xsl:if>
  27. </ol>
  28. </body>
  29. </html>
  30. </xsl:template>
  31. <!-- ************************************************ -->
  32. <!-- section template. -->
  33. <xsl:template name="sectionTemplate" match="section">
  34. <!-- debug
  35. <p>debug</p>
  36. <p>link: <xsl:value-of select="$linkName"/></p>
  37. <p>baseurl: <xsl:value-of select="$baseurl"/></p>
  38. <p>anchor: <xsl:value-of select="$anchor"/></p>
  39. <p>debug</p>
  40. -->
  41. <!--create the list item -->
  42. <xsl:variable name="linkurl" select="include"/>
  43. <li>
  44. <a href="{$linkurl}"><xsl:value-of select="concat(type,' - type, name: ',name)"/></a><br/>
  45. <ul>
  46. <xsl:for-each select="section">
  47. <xsl:call-template name="sectionTemplate"/>
  48. </xsl:for-each>
  49. </ul>
  50. </li>
  51. </xsl:template>
  52. </xsl:stylesheet>