home *** CD-ROM | disk | FTP | other *** search
/ ftp.ac-grenoble.fr / 2015.02.ftp.ac-grenoble.fr.tar / ftp.ac-grenoble.fr / assistance.logicielle / XP_ServicePack-3.iso / support / tools / deploy.cab / ref.chm / gloss.xsl < prev    next >
Extensible Markup Language  |  2006-12-29  |  3KB  |  93 lines

  1. <?xml version='1.0'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3. <xsl:template match="/">
  4. <HTML>
  5. <HEAD><META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252"></META>
  6. <TITLE>Glossary</TITLE>
  7. <LINK REL="stylesheet" TYPE="text/css" HREF="coUA.css"></LINK>
  8. </HEAD>
  9. <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
  10. <xsl:apply-templates />
  11. </BODY>
  12. </HTML>
  13. </xsl:template>
  14.  
  15. <xsl:template match="glossary">
  16. <xsl:apply-templates match="//" />
  17. </xsl:template>
  18.  
  19. <xsl:template match="glossSection">
  20. <xsl:apply-templates />
  21. </xsl:template>
  22.  
  23. <xsl:template match="glossLetter">
  24. <A><xsl:attribute name="NAME"><xsl:value-of /></xsl:attribute>
  25. <H1 STYLE="COLOR:#999999; FONT-SIZE:200%; FONT-WEIGHT:BOLD; MARGIN-LEFT:.5EM; MARGIN-TOP:.75EM; MARGIN-BOTTOM:0EM;"><xsl:value-of /></H1></A>
  26. </xsl:template>
  27.  
  28. <xsl:template match="empty">
  29.   <P STYLE="MARGIN-LEFT:3EM; MARGIN-TOP:1.25EM; FONT-SIZE:100%;"><xsl:value-of select="id('Empty')" /></P>
  30. </xsl:template>
  31.  
  32. <xsl:template match="entry">
  33. <xsl:for-each select="scopeDef">
  34. <xsl:for-each select="scope">
  35. <A><xsl:attribute name="NAME">#<xsl:value-of select="@scopeTermID"/></xsl:attribute></A>
  36. </xsl:for-each>
  37. <xsl:apply-templates select="ancestor(entry)/term" />
  38. <DIV STYLE="MARGIN-LEFT:3EM; FONT-SIZE:100%;">
  39. <xsl:apply-templates select="seeEntry" />
  40. <xsl:apply-templates select="def" />
  41. <P STYLE="MARGIN-LEFT:1.5EM; MARGIN-TOP:.25EM;">
  42. <xsl:for-each select="seeAlso">
  43. <xsl:if test="context()[index() = 0]">
  44. <xsl:value-of select="id('SeeAlso')" />
  45. </xsl:if>
  46. <A><xsl:attribute name="HREF">#<xsl:value-of select="@seeAlsoID"/></xsl:attribute><xsl:value-of select="id(@seeAlsoTermID)/term" /></A><xsl:if test="context()[not(end())]">, </xsl:if>
  47. </xsl:for-each>
  48. </P>
  49. </DIV>
  50. </xsl:for-each>
  51. </xsl:template>
  52.  
  53. <xsl:template match="term">
  54. <H3 STYLE="MARGIN-LEFT:3EM; MARGIN-TOP:1.25EM; FONT-SIZE:100%;"><xsl:value-of /></H3>
  55. </xsl:template>
  56.  
  57. <xsl:template match="seeEntry">
  58. <xsl:value-of select="id('See')" />
  59. <A><xsl:attribute name="HREF">#<xsl:value-of select="@seeID"/></xsl:attribute><xsl:value-of select="id(@seeTermID)/term" /></A>
  60. </xsl:template>
  61.  
  62. <xsl:template match="def">
  63. <xsl:apply-templates />
  64. </xsl:template>
  65.  
  66. <xsl:template match="para">
  67. <P>
  68. <xsl:apply-templates />
  69. </P>
  70. </xsl:template>
  71.  
  72. <xsl:template match="text()"><xsl:value-of /></xsl:template>
  73.  
  74. <xsl:template match="b">
  75. <B>
  76. <xsl:apply-templates />
  77. </B>
  78. </xsl:template>
  79.  
  80. <xsl:template match="i">
  81. <I>
  82. <xsl:apply-templates />
  83. </I>
  84. </xsl:template>
  85.  
  86. <xsl:template match="u">
  87. <U>
  88. <xsl:apply-templates />
  89. </U>
  90. </xsl:template>
  91.  
  92. </xsl:stylesheet>
  93.