Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

odMLTerminologies.xsl 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <!-- ************************************************ -->
  5. <!-- root template -->
  6. <xsl:template match="odML">
  7. <html>
  8. <style type="text/css">
  9. <link href="../../images/odMLIcon.ico" rel="shortcut icon"
  10. csoptsettings="AQAAAD142mNgYNBomeIwObe4IIeBgYEvyTDuaAoPw3IFiwOcndS8HR1NjO0NDPTNdIzzEzOByni+A8EQNoAAPMPEQ4="
  11. livesrc="../../images/odMLIcon.png" />
  12. body { margin:0; padding:0; height:1500px; } div { border:0px
  13. solid #888; }
  14. #contentContainer {position:absolute; left:251px; top:1px; width:80%;
  15. height:auto;}
  16. </style>
  17. <body>
  18. <p><a href="index.html"><img src="../../images/odMLTitle.png" alt="" title="Home" height="128" width="707" border="0" /></a></p>
  19. <h1>odML - Terminologies</h1>
  20. <h3>How to use:</h3>
  21. <p>The terminologies (see below) generally define the names of properties. In some cases we also define
  22. "values". This is mainly the case if the occurrence of a certain property value requires more properties
  23. for further specification. One example for this would be the switching frequency on an amplifier used
  24. in an electrophysiological experiment. This property is only meaningful if the amplifier was used in
  25. in a discontinuous operation mode.
  26. <ul>
  27. <li>Please understand these names as suggestions!</li>
  28. <li>Thus, if you find a property definition fitting your needs please use it.</li>
  29. <li>Otherwise simply create your own properties. </li>
  30. <li>These may not be recognized by other tools but your metadatum is stored!</li>
  31. <li>If you further find that the just created property is of general interest please provide a definition
  32. and do not hesitate to send it to us. We would be happy to include it. </li>
  33. </ul>
  34. </p>
  35. <h3>So far defined terminologies</h3>
  36. <p>The following Terminologies contain definitions according to the section name. If you specify e.g.
  37. the sample rate of an analog input device include it contained within the respective section into
  38. your odML - file.</p>
  39. <xsl:variable name="baseurl" select="baseURL"/>
  40. <ol>
  41. <xsl:if test="section">
  42. <xsl:for-each select="section">
  43. <br/>
  44. <xsl:call-template name="sectionTemplate">
  45. <xsl:with-param name="url" select="$baseurl"/>
  46. </xsl:call-template>
  47. </xsl:for-each>
  48. </xsl:if>
  49. </ol>
  50. </body>
  51. </html>
  52. </xsl:template>
  53. <!-- ************************************************ -->
  54. <!-- section template. -->
  55. <xsl:template name="sectionTemplate" match="section">
  56. <xsl:param name="url"/>
  57. <!-- combine the link name -->
  58. <xsl:variable name="linkName">
  59. <xsl:choose>
  60. <xsl:when test="baseURL">
  61. <xsl:value-of select="concat(baseURL,type,'.xml')"/>
  62. </xsl:when>
  63. <xsl:otherwise>
  64. <xsl:value-of select="concat($url,type,'.xml')"/>
  65. </xsl:otherwise>
  66. </xsl:choose>
  67. </xsl:variable>
  68. <!-- set new baseurl if specified within this section otherwise use the old one -->
  69. <xsl:variable name="baseurl">
  70. <xsl:choose>
  71. <xsl:when test="baseURL">
  72. <xsl:value-of select ="baseURL"/>
  73. </xsl:when>
  74. <xsl:otherwise>
  75. <xsl:value-of select ="$url"/>
  76. </xsl:otherwise>
  77. </xsl:choose>
  78. </xsl:variable>
  79. <!-- the anchor of this section -->
  80. <xsl:variable name="anchor" select ="type"/>
  81. <!-- debug
  82. <p>debug</p>
  83. <p>link: <xsl:value-of select="$linkName"/></p>
  84. <p>baseurl: <xsl:value-of select="$baseurl"/></p>
  85. <p>anchor: <xsl:value-of select="$anchor"/></p>
  86. <p>debug</p>
  87. -->
  88. <!--create the list item -->
  89. <li>
  90. <a name="{$anchor}"></a>
  91. <xsl:choose>
  92. <xsl:when test="type">
  93. <a href="{$linkName}"><xsl:value-of select="concat(name,' - [',type,']')"/></a><br/>
  94. </xsl:when>
  95. <xsl:otherwise>
  96. <a href="{$linkName}"><xsl:value-of select="name"/></a><br/>
  97. </xsl:otherwise>
  98. </xsl:choose>
  99. <xsl:if test ="definition">
  100. <p><xsl:value-of select="definition"/></p>
  101. </xsl:if>
  102. <ul>
  103. <xsl:for-each select="section">
  104. <xsl:call-template name="sectionTemplate">
  105. <xsl:with-param name="url" select="$baseurl"/>
  106. </xsl:call-template>
  107. </xsl:for-each>
  108. </ul>
  109. </li>
  110. </xsl:template>
  111. </xsl:stylesheet>