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

  1. <?xml-stylesheet href="stripDocumentation.xsl" type="text/xsl"?>
  2. <xsl:stylesheet version="1.0" 
  3.                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  4.                 xmlns:doc="urn:schemas-uspto-gov:document"
  5.                 exclude-result-prefixes="doc">
  6.                 
  7. <doc:summary doc:public="yes" >
  8.     <doc:title>Patent Application Publication Stylesheet - No Scripts</doc:title>
  9.     <doc:filename>pap.xsl</doc:filename>
  10.     <doc:version>1.0</doc:version>
  11.     <doc:doctype>PAP v1.5</doc:doctype>
  12.     <doc:doctype-date>2001-01-31</doc:doctype-date>
  13.     <doc:dateCreated>2001-01-26</doc:dateCreated>
  14.     <doc:lastModified>2001-02-21</doc:lastModified>
  15.     <doc:description>
  16.        This file is to be used in a document that generates an error with the 
  17.        standard "pap.xsl" file.  This version includes the file
  18.        "figures_noscript.xsl" to show ALL figures in the document instance,
  19.        instead of the first.  
  20.     </doc:description>
  21. </doc:summary>
  22.  
  23. <xsl:output method="html" indent="yes" omit-xml-declaration="yes" />
  24.  
  25. <xsl:preserve-space elements="*"/>
  26.  
  27. <xsl:template match="*">
  28.     <xsl:apply-templates /> 
  29. </xsl:template>
  30.  
  31. <xsl:template match="/" doc:public="yes" doc:description="The root element of the document instance; creates an HTML document context">
  32.     <html>
  33.         <head>
  34.             <xsl:call-template name="css_styles"/>
  35.         </head>
  36.         <body>
  37.         <basefont face="Arial Unicode MS, Lucida Sans Unicode, Times New Roman "
  38.                     size="2">
  39.         <div style="margin-left: +35pt;">
  40.             <xsl:apply-templates select=".//subdoc-bibliographic-information | .//subdoc-abstract | .//subdoc-description | .//sequence-cwu | .//subdoc-claims"/>
  41.         </div>
  42.         </basefont>
  43.         </body>
  44.     </html>
  45. </xsl:template>
  46.  
  47.     <!-- *** top-level block (document head) *** -->
  48.  
  49.     <xsl:template match="subdoc-bibliographic-information" doc:public="yes" doc:description="Template rules specific to formatting objects contained in <subdoc-bibliographic-information>. 
  50.                                                           This includes the barcode and the following elements and their children: document-id, publication-filing-type, domestic-filing-data, foreign-priority-data, technical-information, continuity-data, prior-publication, inventors, assignee, correspondence-address, international-conventions, and appendix-data">
  51.         <xsl:param name="subdoc-year" doc:public="yes" doc:description="assigns the year portion of the <document-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  52.             <xsl:value-of select="substring(.//document-date,1,4)"/>
  53.         </xsl:param>
  54.         <xsl:param name="subdoc-month" doc:public="yes" doc:description="assigns the month portion of the <document-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  55.             <xsl:value-of select="substring(.//document-date,5,2)"/>
  56.         </xsl:param>
  57.         <xsl:param name="subdoc-day" doc:public="yes" doc:description="assigns the date portion of the <document-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  58.             <xsl:value-of select="substring(.//document-date,7,2)"/>
  59.         </xsl:param>
  60.  
  61.         <xsl:param name="filing-year" doc:public="yes" doc:description="assigns the year portion of the <filing-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  62.             <xsl:value-of select="substring(.//filing-date,1,4)"/>
  63.         </xsl:param>
  64.         <xsl:param name="filing-month" doc:public="yes" doc:description="assigns the month portion of the <filing-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  65.             <xsl:value-of select="substring(.//filing-date,5,2)"/>
  66.         </xsl:param>
  67.         <xsl:param name="filing-day" doc:public="yes" doc:description="assigns the date portion of the <filing-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  68.             <xsl:value-of select="substring(.//filing-date,7,2)"/>
  69.         </xsl:param>
  70.          
  71.  
  72.      <table width="90%" border="0">
  73.                 <tr>
  74.                 <!-- ***** barcode info ***** -->
  75.                 <td class="bar" align="right">*<xsl:value-of select=".//doc-number"/><xsl:value-of select=".//kind-code" />*</td>        
  76.                 </tr>
  77.         </table>
  78.         <xsl:variable name="doc_len" select="string-length(.//document-id/doc-number)" doc:public="yes" doc:description="gets the length of the doc-number for use in formatting doc-number"/>
  79.         <xsl:variable name="pubno_1" select="substring(.//document-id/doc-number,1,4)" doc:public="yes" doc:description="used to format the first part of the publication number (e.g. "20001-""/>            
  80.         <xsl:variable name="pubno_2" select="substring(.//document-id/doc-number,3,$doc_len)" doc:public="yes" doc:description="used to format the remaining part of the publication number"/>            
  81.  
  82.         <table width="90%" border="0">
  83.             <tr>
  84.                 <td class="headinfo_large" width="43%">
  85.                     <b>Patent Application Publication</b>   <font size="-1" weight="normal">(12)</font>
  86.                 </td>
  87.                 <td class="table_data" width="27%">
  88.                     (10)     <b>Publication Number: </b>
  89.                 </td>
  90.                 <td class="table_data" width="30%" align="right">
  91.                     <b>US <xsl:value-of select="$pubno_1"/>-<xsl:value-of select="$pubno_2" />
  92.                     <xsl:text> </xsl:text>
  93.                         <xsl:value-of select=".//kind-code" />
  94.                     </b>                
  95.                 </td>
  96.             </tr>
  97.             <tr>
  98.                 <td class="headinfo_reg">
  99.                     <b><xsl:value-of select=".//first-named-inventor//family-name"/></b>
  100.                 </td>
  101.                 <td class="table_data">(43)     <b>Publication Date:</b> </td>
  102.                 <td class="headinfo_reg" align="right"><xsl:value-of select="$subdoc-year" />-<xsl:value-of select="$subdoc-month" />-<xsl:value-of select="$subdoc-day" /></td>
  103.             </tr>
  104.         </table>
  105.         <hr width="100%"/>
  106.         <!-- end doc header -->
  107.         
  108.         <!-- bibliographic info -->
  109.         <table width="90%" border="0">
  110.         <tr><td width="10%"/><td width="15%"/><td width="*"/></tr>
  111.             <tr><td class="table_data">(54)</td>
  112.                 <td colspan="2" style="text-transform: uppercase"><b><xsl:value-of select="//title-of-invention"/></b></td>
  113.                 <td/>
  114.             </tr>
  115.             <tr><td class="table_data">(76)</td>
  116.                 <td class="table_data">
  117.                     INVENTOR: 
  118.                 </td>
  119.                 <td class="table_data">
  120.                  <b><xsl:apply-templates select=".//first-named-inventor/name"/>,</b> 
  121.                   <xsl:value-of select=".//first-named-inventor/residence//city"/>
  122.                     <xsl:text> </xsl:text>
  123.                     <xsl:value-of select=".//first-named-inventor/residence//state"/>
  124.                     <xsl:text> </xsl:text>
  125.                     (<xsl:value-of select=".//first-named-inventor/residence//country-code"/>)
  126.                     </td>
  127.             </tr>
  128.             <tr><td/>
  129.             <xsl:variable name="appno_1" select="substring(.//application-number/doc-number,1,2)" doc:public="yes" doc:description="used to format the first part of the application number (e.g. "09/""/>            
  130.             <xsl:variable name="appno_2" select="substring(.//application-number/doc-number,3,8)" doc:public="yes" doc:description="used to format the remaining part of the application number"/>            
  131.             
  132.             <td class="table_data" colspan="2"><xsl:apply-templates select="correspondence-address" /></td></tr>
  133.             <tr><td class="table_data">(21)</td>
  134.                 <td class="table_data">Appl. No.: </td>
  135.                 <td class="table_data"><b><xsl:value-of select="$appno_1"/>/<xsl:value-of select="format-number($appno_2,'###,###')" /></b></td>
  136.             </tr>
  137.             <tr><td class="table_data">(22)</td>
  138.                 <td class="table_data">Filed: </td>
  139.                 <td class="table_data"><b><xsl:value-of select="$filing-year" />-<xsl:value-of select="$filing-month" />-<xsl:value-of select="$filing-day" /></b></td>
  140.             </tr>
  141.             
  142.             <table width="50%" border="0">
  143.                 <xsl:if test="//foreign-priority-data">
  144.                     <xsl:call-template name="foreign_data"/>    
  145.                 </xsl:if>
  146.             </table>
  147.                 <xsl:call-template name="tech_info"/>
  148.             <tr><td> </td></tr>
  149.             <tr><td> </td></tr>
  150.             <xsl:apply-templates select="appendix-data"/>
  151.         </table>
  152.     </xsl:template>
  153.     
  154.     
  155. <xsl:template match="subdoc-description" doc:public="no" doc:description="Template rules specific to <subdoc-description>; uses generic <xsl:apply-templates /> to call included template rules.">
  156.     <div class="smalltitle">
  157.         <xsl:value-of select="//title-of-invention" />
  158.     </div>
  159.         <xsl:apply-templates />
  160. </xsl:template>
  161.  
  162.     <xsl:template name="foreign_data" doc:description="Template rules for <foreign-priority-data> and children">
  163.         <xsl:param name="foreign-year" doc:public="yes" doc:description="assigns the year portion of the foreign-priority-data/filing-date to a parameter to allow YYYY-MM-DD date formatting.">
  164.             <xsl:value-of select="substring(foreign-priority-data/filing-date,1,4)"/>
  165.         </xsl:param>
  166.         <xsl:param name="foreign-month" doc:public="yes" doc:description="assigns the month portion of the foreign-priority-data/filing-date to a parameter to allow YYYY-MM-DD date formatting.">
  167.             <xsl:value-of select="substring(foreign-priority-data/filing-date,5,2)"/>
  168.         </xsl:param>
  169.         <xsl:param name="foreign-day" doc:public="yes" doc:description="assigns the date portion of the foreign-priority-data/filing-date to a parameter to allow YYYY-MM-DD date formatting.">
  170.             <xsl:value-of select="substring(foreign-priority-data/filing-date,7,2)"/>
  171.         </xsl:param>
  172.     
  173.         <tr>
  174.             <td class="table_data" width="9%">(30)</td>
  175.             <td class="table_data" colspan="3" align="center"><b>Foreign Application Priority Data</b></td>
  176.         </tr>
  177.         <tr><td/>
  178.             <td class="table_data"><!--xsl:value-of select="foreign-priority-data/filing-date"/-->
  179.             <xsl:value-of select="$foreign-year" />-<xsl:value-of select="$foreign-month" />-<xsl:value-of select="$foreign-day" /></td>
  180.             <td class="table_data"><xsl:value-of select="foreign-priority-data/country-code"/></td>
  181.             <td class="table_data" align="right"><xsl:value-of select=".//priority-application-number/doc-number"/></td>
  182.         </tr>
  183.     </xsl:template>
  184.     
  185.     <xsl:template name="tech_info" doc:description="Template rules for Publication Classifications (US/International) and children.">
  186.     <table width="50%" border="0" cellpadding="0" cellspacing="0">
  187.         <tr>
  188.             <td width="9%"/>
  189.             <td class="table_data" colspan="4" align="center"><b>Publication Classification</b></td>
  190.         </tr>
  191.         <tr><td class="table_data">(51)</td>
  192.             <td class="table_data" width="15%"><b>Int. Cl.: </b></td>
  193.             <td/>
  194.                 <xsl:call-template name="classifications_ipc" />
  195.         </tr>
  196.         <tr><td class="table_data">(52)</td>
  197.             <td class="table_data"><b>U.S. Cl.:</b></td>
  198.             <td/>
  199.                 <xsl:call-template name="classifications_us" />
  200.         </tr>
  201.     </table>
  202.     </xsl:template>
  203.  
  204.     <!-- hide MathML components -->
  205.     <xsl:template match="//math/*" doc:public="yes" doc:description="Hides MathML components, as an <image> will be supplied" />
  206.     
  207.      <xsl:template match="representative-figure">
  208.          Representative Figure: <xsl:value-of select="." />
  209.      </xsl:template>
  210.     
  211.     <xsl:template match="copyright-statement">
  212.         <div style="margin-bottom:  1pc;
  213.                     margin-left:    +10pt;">
  214.                <xsl:apply-templates />
  215.         </div>
  216.     </xsl:template>
  217.  
  218.     <xsl:template match="cross-reference-to-related-applications">
  219.         <div style="margin-bottom:  1pc;
  220.                     margin-left:    +10pt;">
  221.                <xsl:apply-templates />
  222.         </div>
  223.     </xsl:template>
  224.  
  225.  
  226.     <xsl:template match="cross-reference">
  227.         <b><a href="#{@target}">
  228.            <xsl:apply-templates />
  229.         </a></b>
  230.     </xsl:template>
  231.     
  232.     
  233.     <xsl:template match="text()">
  234.         <xsl:value-of select="." />
  235.     </xsl:template>
  236.  
  237. <!-- include component stylesheets, overriding subsequent declarations -->
  238.  
  239. <xsl:include href="abstract.xsl"/>
  240. <xsl:include href="address.xsl"/>
  241. <xsl:include href="appendix.xsl"/>
  242. <xsl:include href="biological-deposit.xsl"/>
  243. <xsl:include href="cals.xsl"/>
  244. <xsl:include href="citation.xsl"/>
  245. <xsl:include href="claims.xsl"/>
  246. <xsl:include href="classifications.xsl"/>
  247. <xsl:include href="common.xsl"/>
  248. <xsl:include href="correspondence-address.xsl"/>
  249. <xsl:include href="css-styles.xsl"/>
  250. <xsl:include href="cwu.xsl"/>
  251. <xsl:include href="document-id.xsl"/>
  252. <xsl:include href="figures_noscript.xsl"/>
  253. <xsl:include href="inventor-block.xsl"/>
  254. <xsl:include href="name.xsl"/>
  255. <xsl:include href="para-fed.xsl"/>
  256. <xsl:include href="party.xsl"/>
  257. <xsl:include href="residence.xsl"/>
  258. <xsl:include href="sequence-listing.xsl"/>
  259.  
  260. </xsl:stylesheet>