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.3 KB

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