home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _36882B1EE52244C6B12B0F575CABF702 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  3.4 KB  |  116 lines

  1. <xsl:stylesheet version="1.0" 
  2.                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <!--
  5. *****************************************************************
  6. * John Dunning: 2001-02-13:                                     *
  7. *   Component file for Sequence listings                        *
  8. *   displays sequence-cwus for Grant Redbook                    *
  9. *  Template rules are in the form                               *
  10. *       xsl:template match="SEQLST-OLD | SEQLST-NEW"            *
  11. *   wherever there are mappings between the old and new syntax  *
  12. *   and follow numerical order                                  *
  13. ***************************************************************** 
  14. -->
  15.  
  16.     <xsl:template match="SEQLST-US">
  17.         <div style="page-break_before-inside: avoid; "> 
  18.             [<xsl:value-of select="@ID"/>]
  19.             <xsl:apply-templates />
  20.         </div>
  21.     </xsl:template>
  22.     
  23.     <xsl:template match="SEQLST-OLD | SEQLST-NEW">
  24.         <xsl:apply-templates />
  25.     </xsl:template>
  26.     
  27.     <xsl:template match="*">
  28.         <xsl:apply-templates />
  29.     </xsl:template>
  30.  
  31.     <xsl:template match="S-1 | S100">
  32.         <div>
  33.             <xsl:apply-templates />
  34.         </div>
  35.     </xsl:template>
  36.  
  37.     <xsl:template match="S-1-III | S160">
  38.         <xsl:text>Number of Sequences: </xsl:text>
  39.             <xsl:value-of select="." />
  40.     </xsl:template>
  41.  
  42.     <xsl:template match="S-2 | S210">
  43.         <xsl:text>Sequence ID: </xsl:text>
  44.         <xsl:choose>
  45.             <xsl:when test="self::S-2">
  46.                 <xsl:value-of select="@SEQ-NO" />
  47.                 <xsl:apply-templates />
  48.             </xsl:when>
  49.             <xsl:when test="self::S210">
  50.                 <xsl:value-of select="." />
  51.             </xsl:when>
  52.         </xsl:choose>
  53.     </xsl:template>
  54.  
  55.     <xsl:template match="S-2-I-A | S211">
  56.         <br/>
  57.         <xsl:text>Length of Sequence: </xsl:text>
  58.         <xsl:value-of select="." />
  59.     </xsl:template>
  60.  
  61.     <xsl:template match="S-2-I-B | S212">
  62.         <br/>        
  63.         <xsl:text>Sequence Type: </xsl:text>
  64.         <xsl:value-of select="." />
  65.     </xsl:template>
  66.  
  67.     <xsl:template match="S-2-I-C">
  68.         <br/>
  69.         <xsl:text>Strandedness: </xsl:text>        
  70.         <xsl:apply-templates />
  71.     </xsl:template>
  72.     
  73.     <xsl:template match="S-2-I-D">
  74.         <br/>
  75.         <xsl:text>Topology: </xsl:text>
  76.         <xsl:apply-templates />
  77.     </xsl:template>
  78.     
  79.     <xsl:template match="S-2-II-MT">
  80.         <br/>
  81.         <xsl:text>Molecule Type: </xsl:text>
  82.         <xsl:apply-templates />
  83.     </xsl:template>
  84.  
  85.  
  86.     <xsl:template match="S-2-VI-A | S213">
  87.         <br/>
  88.         <xsl:text>Scientific Name: </xsl:text>
  89.         <xsl:value-of select="." />
  90.     </xsl:template>
  91.     
  92.     <xsl:template match="S-2-IX-A | S221">
  93.         <br/>
  94.         <xsl:text>Name/Key: </xsl:text>
  95.             <xsl:apply-templates />
  96.     </xsl:template>
  97.     
  98.     <xsl:template match="S-2-IX-B | S222">
  99.         <br/>
  100.         <xsl:text>Location: </xsl:text>
  101.             <xsl:apply-templates />
  102.     </xsl:template>
  103.     
  104.     <xsl:template match="S-2-IX-D | S223">
  105.         <br/>
  106.         <xsl:text>Other Information: </xsl:text>
  107.             <xsl:apply-templates />
  108.     </xsl:template>
  109.  
  110.     <xsl:template match="S-2-XI | S400">
  111.     <pre style="font-size: 10pt;">
  112.             <xsl:value-of select="." />
  113.     </pre>
  114.     </xsl:template>
  115.  
  116. </xsl:stylesheet>