home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _8D58E80CA89541B08A2ECAD4A3B51D63 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  4.2 KB  |  134 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 common elements </doc:title>
  8.     <doc:filename>common.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.         Template rules for formatting elements common to many USPTO doctypes.
  16.     </doc:description>
  17. </doc:summary>
  18.  
  19. <!--
  20. *****************************************************************
  21. *  John Dunning: 2001-01-29:                                    *
  22. *  Component file for elements that are commonly                *
  23. *   used across to several doctypes                             *
  24. *****************************************************************
  25. -->
  26.  
  27.     <xsl:template match="bold">
  28.         <b> <xsl:apply-templates /> </b>
  29.     </xsl:template>
  30.     
  31.     <xsl:template match="email">
  32.         <span class="mono"> <xsl:apply-templates /> </span>
  33.     </xsl:template>
  34.  
  35.     <xsl:template match="emphasis | italic">
  36.         <i> <xsl:apply-templates /> </i>
  37.     </xsl:template>
  38.  
  39.     
  40.     <xsl:template match="footnote">
  41.         <font size = "-2"><xsl:apply-templates /></font>
  42.     </xsl:template>
  43.  
  44.     <xsl:template match="heading">
  45.         <h3><xsl:apply-templates /></h3>
  46.     </xsl:template>
  47.  
  48.     <xsl:template match="highlight| in-line-formula | literal">
  49.         <xsl:apply-templates />
  50.     </xsl:template>
  51.  
  52.      <xsl:template match="list-item">
  53.         <div class="list_item">
  54.             <xsl:apply-templates />        
  55.         </div>    
  56.      </xsl:template>
  57.  
  58.     <xsl:template match="paragraph">
  59.         <div class="left_para">
  60.         <table border="0" width="100%">
  61.             <tr>
  62.                 <td width="8%" valign="top" class="para_text">
  63.                     <xsl:text> </xsl:text>
  64.                 </td>
  65.             <xsl:choose>
  66.                 <xsl:when test="//patent-application-publication">    
  67.                     <td width="85%" class="para_text">
  68.                         <xsl:if test="@id">
  69.                             [<xsl:value-of select="substring-after(@id,'P-')" />]    
  70.                                                
  71.                          </xsl:if>
  72.                         <xsl:apply-templates />
  73.                     </td>
  74.                  </xsl:when>
  75.                  <xsl:otherwise>
  76.                     <td width="85%" class="para_text">
  77.                         [<xsl:value-of select="@id" />]    
  78.                                            
  79.                         <xsl:apply-templates />
  80.                     </td>
  81.                  </xsl:otherwise>
  82.                 </xsl:choose>
  83.                 <td width="*"></td>
  84.             </tr>
  85.         </table>
  86.         </div>
  87.      </xsl:template>
  88.  
  89.     <xsl:template match="program-listing">
  90.         <div style ="margin-bottom:  1pc;
  91.                     font-size: 10pt;">
  92.              <pre>
  93.                  <xsl:apply-templates />
  94.              </pre>
  95.         </div>
  96.     </xsl:template>
  97.  
  98.     <xsl:template match="section">
  99.         <div style="margin-bottom:  1pc;
  100.                     margin-left:    +10pt;">
  101.                <xsl:apply-templates />
  102.         </div>
  103.     </xsl:template>
  104.  
  105.  
  106.     <xsl:template match="smallcaps">
  107.         <span style="font-variant: small-caps;">
  108.             <xsl:apply-templates />
  109.         </span>
  110.     </xsl:template>
  111.  
  112.     <xsl:template match="subscript">
  113.         <span style="vertical-align: sub;">
  114.             <xsl:apply-templates  />
  115.         </span>
  116.     </xsl:template>
  117.  
  118.     <xsl:template match="superscript">
  119.         <span style="vertical-align: super;">
  120.             <xsl:apply-templates />
  121.         </span>
  122.     </xsl:template>
  123.  
  124.     <xsl:template match="text()">
  125.         <xsl:value-of select="." />
  126.     </xsl:template>
  127.  
  128.     <xsl:template match="title-of-invention">
  129.         <h1 class="title">
  130.             <xsl:apply-templates />
  131.         </h1>
  132.     </xsl:template>
  133.  
  134. </xsl:stylesheet>