home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _4423F9283E2A46B383531FB98432244D < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  4.4 KB  |  94 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 <abstract-of-disclosure> and <subdoc-abstract></doc:title>
  8.        <doc:filename>abstract.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 the <abstract-of-disclosure> and <subdoc-abstract> are contained here.  
  16.         This includes specialized rules for specification document instances, which force the abstract heading and paragraph to 
  17.         print first, and to display and print first in patent-application-publication document instances.  Also writes a heading of
  18.         "Abstract" if none is present.
  19.       </doc:description>
  20. </doc:summary>
  21.  
  22. <!--
  23. ************************************************************
  24. *  John Dunning: 2001-01-29                                *
  25. *  Component file for abstract-of-disclosure               *
  26. ************************************************************
  27. -->
  28.  
  29.     <xsl:template match="abstract-of-disclosure | subdoc-abstract" doc:public="yes" doc:description="In specification, inserts the title-of-invention above the abstract.  If there is no heading above the abstract, a heading of "Abstract" is inserted.">
  30.         <div class="break_before_after">
  31.             <xsl:if test="//specification">
  32.                 <xsl:apply-templates mode="abstract_title" select="//title-of-invention" />
  33.             </xsl:if>
  34.             <xsl:choose>
  35.                 <xsl:when test="not(heading)">
  36.                     <table width="90%" border="0">
  37.                     <tr><td width="9%" class="table_data">(57)</td>
  38.                         <td><h3>Abstract</h3></td>
  39.                     </tr>
  40.                     </table>
  41.                 </xsl:when>
  42.                 <xsl:otherwise>
  43.                     <xsl:apply-templates mode="abstract_heading" select="./heading" />
  44.                 </xsl:otherwise>
  45.             </xsl:choose>
  46.             <xsl:apply-templates mode="abstract_para" select="./paragraph" />
  47.         </div>
  48.         <xsl:apply-templates mode="drawing-section" select="//subdoc-drawings"/>
  49.     </xsl:template>
  50.     
  51.     <xsl:template mode="abstract_title" match="title-of-invention" doc:public="yes" doc:description="modal template for printing title-of-invention before the abstract paragraph">
  52.           <h1 align="CENTER" class="title">
  53.             <xsl:apply-templates mode="abstract_heading" />
  54.         </h1>
  55.     </xsl:template>
  56.     
  57.     <xsl:template mode="abstract_heading" match="heading">
  58.         <h3 align="center">
  59.             <xsl:apply-templates mode="abstract_para" />
  60.         </h3>
  61.     </xsl:template>
  62.     
  63.     <xsl:template mode="abstract_para" match="paragraph">
  64.           <div class="left_para">
  65.             <table border="0" width="100%">
  66.                 <tr>
  67.                     <td width="8%" valign="top">
  68.                         <div class="para_text"></div>
  69.                     </td>
  70.                     <td width="85%">
  71.                         <div class="para_text">
  72.                                <xsl:if test="//patent-application-publication">
  73.                                 <!-- [<xsl:value-of select="@id"/>] -->
  74.                             </xsl:if>
  75.                                                
  76.                             <xsl:apply-templates />
  77.                         </div>
  78.                     </td>
  79.                     <td/>
  80.                     </tr>
  81.                 </table>
  82.         </div>
  83.     </xsl:template>
  84.  
  85.     <xsl:template mode="drawing-section" match="*" doc:public="yes" doc:description="Used by patent-application-publication to print <image>s after the abstract and before the rest of the document.">
  86.         <xsl:apply-templates mode="linker" select="//subdoc-drawings"/>
  87.         <xsl:apply-templates />
  88.     </xsl:template>
  89.  
  90.     <xsl:template mode="linker" match="//subdoc-drawings" doc:public="yes" doc:description="creates a hyperlink anchor at the subdoc-drawings section.">
  91.         <a name="{@id}"/>
  92.     </xsl:template>
  93.  
  94. </xsl:stylesheet>