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

  1. <xsl:stylesheet version="1.0" 
  2.                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  3.                 xmlns:doc="urn:schemas-uspto-gov:document"
  4.                 exclude-result-prefixes="doc">
  5.  
  6. <doc:summary doc:public="yes" >
  7.     <doc:title>Component stylesheet for sequence-listings</doc:title>
  8.     <doc:filename>sequence-listing.xsl</doc:filename>
  9.     <doc:version>1.0</doc:version>
  10.     <doc:doctype>numerous</doc:doctype>
  11.     <doc:doctype-date>N/A</doc:doctype-date>
  12.     <doc:dateCreated>2001-01-26</doc:dateCreated>
  13.     <doc:lastModified>2001-02-16</doc:lastModified>
  14.     <doc:description>
  15.        Component file for Sequence listings.  Template rules are in the form 
  16.        <xsl:template match="seqlst-old | seqlst-new"> 
  17.        wherever there are mappings between the old and new syntax  
  18.        and follow numerical order                                  
  19.     </doc:description>
  20. </doc:summary>
  21.  
  22.  
  23. <!--
  24. *****************************************************************
  25. * John Dunning: 2001-02-13:                                     *
  26. *   Component file for Sequence listings                        *
  27. *  Template rules are in the form                               *
  28. *       xsl:template match="seqlst-old | seqlst-new"            *
  29. *   wherever there are mappings between the old and new syntax  *
  30. *   and follow numerical order                                  *
  31. ***************************************************************** 
  32. -->
  33.  
  34.  
  35.     <xsl:template match="sequence-listing-old-rules | sequence-listing-new-rules">
  36.         <xsl:apply-templates />
  37.     </xsl:template>
  38.     
  39.     <xsl:template match="*">
  40.         <xsl:apply-templates />
  41.     </xsl:template>
  42.  
  43.     <xsl:template match="s-1 | s100">
  44.         <div>
  45.             <xsl:apply-templates />
  46.         </div>
  47.     </xsl:template>
  48.  
  49.     <xsl:template match="s-1-iii | s160">
  50.         <xsl:text>Number of Sequences: </xsl:text>
  51.             <xsl:value-of select="." />
  52.     </xsl:template>
  53.  
  54.     <xsl:template match="s-2 | s210">
  55.         <xsl:text>Sequence ID: </xsl:text>
  56.         <xsl:choose>
  57.             <xsl:when test="self::s-2">
  58.                 <xsl:value-of select="@seq-no" />
  59.                 <xsl:apply-templates />
  60.             </xsl:when>
  61.             <xsl:when test="self::s210">
  62.                 <xsl:value-of select="." />
  63.             </xsl:when>
  64.         </xsl:choose>
  65.     </xsl:template>
  66.  
  67.     <xsl:template match="s-2-i-a | s211">
  68.         <br/>
  69.         <xsl:text>Length of Sequence: </xsl:text>
  70.         <xsl:value-of select="." />
  71.     </xsl:template>
  72.  
  73.     <xsl:template match="s-2-i-b | s212">
  74.         <br/>        
  75.         <xsl:text>Sequence Type: </xsl:text>
  76.         <xsl:value-of select="." />
  77.     </xsl:template>
  78.  
  79.     <xsl:template match="s-2-i-c">
  80.         <br/>
  81.         <xsl:text>Strandedness: </xsl:text>        
  82.         <xsl:apply-templates />
  83.     </xsl:template>
  84.     
  85.     <xsl:template match="s-2-i-d">
  86.         <br/>
  87.         <xsl:text>Topology: </xsl:text>
  88.         <xsl:apply-templates />
  89.     </xsl:template>
  90.     
  91.     <xsl:template match="s-2-ii-mt">
  92.         <br/>
  93.         <xsl:text>Molecule Type: </xsl:text>
  94.         <xsl:apply-templates />
  95.     </xsl:template>
  96.  
  97.  
  98.     <xsl:template match="s-2-vi-a | s213">
  99.         <br/>
  100.         <xsl:text>Scientific Name: </xsl:text>
  101.         <xsl:value-of select="." />
  102.     </xsl:template>
  103.     
  104.     <xsl:template match="s-2-ix-a | s221">
  105.         <br/>
  106.         <xsl:text>Name/Key: </xsl:text>
  107.             <xsl:apply-templates />
  108.     </xsl:template>
  109.     
  110.     <xsl:template match="s-2-ix-b | s222">
  111.         <br/>
  112.         <xsl:text>Location: </xsl:text>
  113.             <xsl:apply-templates />
  114.     </xsl:template>
  115.     
  116.     <xsl:template match="s-2-ix-d | s223">
  117.         <br/>
  118.         <xsl:text>Other Information: </xsl:text>
  119.             <xsl:apply-templates />
  120.     </xsl:template>
  121.  
  122.     <xsl:template match="s-2-xi | s400">
  123.     <pre style="font-size: 10pt;">
  124.             <xsl:value-of select="." />
  125.     </pre>
  126.     </xsl:template>
  127.  
  128. </xsl:stylesheet>