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