home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _5C7734AE0F0B474B84CB021FD4BCE321 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  3.2 KB  |  91 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 <claims></doc:title>
  8.     <doc:filename>claims.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 <claims> and its children.
  16.     </doc:description>
  17. </doc:summary>
  18.  
  19. <!-- 
  20. ************************************************************
  21. * John Dunning: 2001-01-26:                                *
  22. *   Component file for claims                              *
  23. ************************************************************
  24. -->
  25.  
  26.     <xsl:template match="claims">
  27.         <div class="break_before">
  28.             <xsl:apply-templates />
  29.         </div>
  30.     </xsl:template>
  31.     
  32.     <xsl:template match="claim" doc:public="yes" doc:description="specification shows @number; pap shows @id.">
  33.         <div class="left_para">
  34.             <table border="0" width="100%">
  35.             <tr>
  36.                 <td width="8%" valign="top">
  37.                 <a name="{@id}"/>
  38.                 <xsl:choose>
  39.                     <xsl:when test="//specification"><!-- if its the spec -->
  40.                         <div class="text">
  41.                             [c<xsl:value-of select="@number"/>]
  42.                         </div>
  43.                         <td width="70%" valign="top" class="text">
  44.                             <xsl:apply-templates />
  45.                         </td>
  46.                     </xsl:when>
  47.                     <xsl:when test="//patent-application-publication">
  48.                         <td width="12%" valign="top" align="right" class="para_text" colspan="1">
  49.                             [<xsl:value-of select="substring-after(@id,'CLM-')"/>]
  50.                         </td>
  51.                         <td width="70%" valign="top" class="para_text">
  52.                             <xsl:apply-templates />
  53.                         </td>
  54.                     </xsl:when>
  55.                 </xsl:choose>
  56.                 </td>
  57.                 <td width="*"></td>
  58.                 </tr>
  59.                 </table>
  60.          </div>
  61.      </xsl:template>
  62.  
  63.     <xsl:template match="claim/claim-text[1]">
  64.         <span style="claim_text">
  65.             <xsl:apply-templates />
  66.         </span>
  67.     </xsl:template>
  68.  
  69.     <xsl:template match="claim-text[not(ancestor::dependent-claim-reference)]">
  70.         <div class="claim_text">
  71.             <xsl:apply-templates />
  72.         </div>
  73.     </xsl:template>
  74.  
  75.     <xsl:template match="dependent-claim-reference">
  76.             <b><a href="#{@depends_on}"><xsl:apply-templates /></a></b>
  77.     </xsl:template>
  78.  
  79.     <xsl:template match="markush-group">
  80.         <ul>
  81.             <xsl:apply-templates />
  82.         </ul>
  83.     </xsl:template>
  84.     
  85.     <xsl:template match="markush-item">
  86.         <li>
  87.             <xsl:apply-templates />
  88.         </li>
  89.     </xsl:template>
  90.  
  91. </xsl:stylesheet>