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

  1. <?xml-stylesheet href="stripDocumentation.xsl" type="text/xsl"?>
  2. <xsl:stylesheet version="1.0" 
  3.                 exclude-result-prefixes="msxsl local doc" 
  4.                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  5.                 xmlns:msxsl="urn:schemas-microsoft-com:xslt" 
  6.                 xmlns:doc="urn:schemas-uspto-gov:document"
  7.                 xmlns:local="#local-functions" 
  8.                 extension-element-prefixes="msxsl">
  9.  
  10. <doc:summary doc:public="yes" >
  11.      <doc:title>Specification Stylesheet</doc:title>
  12.      <doc:filename>specification.xsl</doc:filename>
  13.      <doc:version>1.0</doc:version>
  14.      <doc:doctype>specification v1.28</doc:doctype>
  15.      <doc:doctype-date>2000-10-16</doc:doctype-date>
  16.      <doc:dateCreated>2001-01-26</doc:dateCreated>
  17.      <doc:lastModified>2001-02-21</doc:lastModified>
  18.      <doc:description>This is the "driver" file for an XSL transformation;        
  19.        all specification-specific template rules  
  20.        are in this file; component files are "included" below      
  21.      </doc:description>
  22. </doc:summary>
  23.  
  24. <!--
  25. *********************************************************************
  26. *  John Dunning: 2001-01-26                                         *
  27. *  DTD Version:  1.2.8                                              *
  28. *    Distribution :  2000-10-16                                     *
  29. *    Stylesheet revision date:  2001-01-29                          *
  30. *                                                                   *
  31. *  this is the "driver" file for an XSL transformation;             *
  32. *  all specification-specific template rules are in this file;      *
  33. *  component files are "included" below                             *
  34. *********************************************************************
  35. -->
  36.  
  37.  
  38. <xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>
  39.  
  40. <xsl:preserve-space elements="*"/>
  41.  
  42. <xsl:template match="*">
  43.     <xsl:apply-templates /> 
  44. </xsl:template>
  45.  
  46. <!-- **** strip [ ] off version attribute for display **** -->
  47.     <xsl:variable name="version" select="//spec.version/@version" doc:public="yes" doc:description="variable to hold version attribute for formatting by XSLT/XPath string functions."/>
  48.     <xsl:variable name="ver" select="substring-after($version,'[')" doc:description="variable that uses the version variable and strips the '[' character from the replacement text"/>
  49.     <xsl:variable name="ver2" select="substring-before($ver,']')" doc:description="variable that uses the ver variable and strips the ']' character from the replacement text; returns final value of version attribute without surrounding '[]' characters ."/>
  50.  
  51.  
  52. <xsl:template match="/" doc:public="yes" doc:description="The root element of the document instance; creates an HTML document context">
  53.     <html>
  54.         <head>
  55.             <xsl:call-template name="css_styles"/>
  56.         </head>
  57.     <body>
  58.         <basefont face="Arial Unicode MS, Lucida Sans Unicode, Arial, Times New Roman"
  59.                     size="2">
  60.                 <xsl:apply-templates select="//spec.title-block"/>
  61.                 <xsl:apply-templates select="//specification-block"/>
  62.             </basefont>
  63.             </body>
  64.         </html>
  65. </xsl:template>
  66.  
  67.     <xsl:template match="specification-block">
  68.         <div style="margin-left: +35pt;">
  69.             <xsl:apply-templates />
  70.         </div>
  71.     </xsl:template>
  72.     
  73.  
  74.     <xsl:template match="spec.title-block">
  75.         <h1 align="center">
  76.             <xsl:value-of select="spec.title/@text"/>
  77.         </h1>
  78.         <table width="100%" cellpadding="0" cellspacing="0" border="0">
  79.             <tr>
  80.                 <td class="table_data">
  81.                     <xsl:value-of select="$ver2"/>
  82.                 </td>
  83.                 <td/>
  84.             </tr>
  85.             <tr>
  86.                 <td class="table_data">
  87.                     Stylesheet Version  1.0</td>
  88.                 <td/>
  89.             </tr>
  90.         </table>
  91.         <p/>
  92.     </xsl:template>
  93.  
  94.  
  95.     <xsl:template match="application-filing-date">
  96.             of <xsl:value-of select="." />
  97.     </xsl:template>
  98.  
  99.     <xsl:template match="application-number">
  100.             application <xsl:value-of select="." />
  101.     </xsl:template>
  102.  
  103.     <xsl:template match="application-reference">
  104.             <xsl:apply-templates />
  105.     </xsl:template>
  106.     
  107.     <xsl:template match="continuity-statement">
  108.         <div class="left_para">
  109.         <table border="0" width="100%">
  110.             <tr>
  111.                 <td width="8%" valign="top">
  112.                 </td>
  113.                 <td width="85%">
  114.                     <span class="para_text">
  115.                         <xsl:apply-templates />
  116.                     </span>
  117.                 </td>
  118.                 <td width="*"></td>
  119.             </tr>
  120.         </table>
  121.         </div>
  122.      </xsl:template>
  123.  
  124.     <xsl:template match="copyright">
  125.         <div class="left_para">
  126.         <table border="0" width="100%">
  127.             <tr>
  128.                 <td width="8%" valign="top">
  129.                 </td>
  130.                 <td width="85%">
  131.                     <span class="para_text">
  132.                         <xsl:apply-templates />
  133.                     </span>
  134.                 </td>
  135.                 <td width="*"></td>
  136.             </tr>
  137.         </table>
  138.         </div>
  139.     </xsl:template>
  140.     
  141.     <xsl:template match="cross-reference">
  142.         <u><xsl:apply-templates /></u>
  143.     </xsl:template>
  144.     
  145.     <xsl:template match="paragraph" doc:public="yes" doc:description="This template rule uses extention element <msxml:script> to return a four-digit paragraph number (e.g., [0001]).">
  146.         <div class="left_para">
  147.         <table border="0" width="100%">
  148.             <tr>
  149.                 <td width="8%" valign="top">
  150.                     <span class="para_text">
  151.                         [<xsl:value-of select="local:FormatParagraphID(.)" />]    
  152.                     </span>
  153.                 </td>
  154.                 <td width="85%">
  155.                     <span class="para_text">
  156.                              
  157.                         <xsl:apply-templates />
  158.                     </span>
  159.                 </td>
  160.                 <td width="*"></td>
  161.             </tr>
  162.         </table>
  163.         </div>
  164.         </xsl:template>
  165.  
  166.  
  167.      <xsl:template match="program-listing-deposit">    
  168.           <h3 style="margin-top: 3px;
  169.                     margin-bottom: 3px;">
  170.                   <xsl:value-of select="./heading"/>
  171.           </h3>
  172.         <div class="left_para">
  173.         <table border="0" width="100%">
  174.             <tr>
  175.                 <td width="8%" valign="top">
  176.                  
  177.                 </td>
  178.                 <td width="85%">
  179.                     <span class="para_text">
  180.                             <xsl:apply-templates select="./program-listing" />
  181.                     </span>
  182.                 </td>
  183.                 <td width="*"></td>
  184.             </tr>
  185.         </table>
  186.         </div>
  187.     </xsl:template>
  188.  
  189.     <xsl:template match="program-reference">
  190.         <div style="text-decoration:    underline;
  191.                     line-height: 200%">
  192.                 <xsl:value-of select="@text"/>
  193.                [<xsl:value-of select="@id"/>]
  194.                 <xsl:apply-templates />
  195.         </div>
  196.     </xsl:template>
  197.  
  198.  
  199.     <xsl:template match="referenced-applications">
  200.         <div class="left_para">
  201.         <table border="0" width="100%">
  202.             <tr>
  203.                 <td width="8%" valign="top">
  204.                 </td>
  205.                 <td width="85%">
  206.                     <span class="para_text">
  207.                    <b>Referenced-applications</b><br/>
  208.                         <xsl:apply-templates />
  209.                     </span>
  210.                 </td>
  211.                 <td width="*"></td>
  212.             </tr>
  213.         </table>
  214.         </div>
  215.     </xsl:template>
  216.  
  217.     <xsl:template match="unknown-symbol" doc:public="yes" doc:description="writes text "Unknown Symbol" with a red background to signify that a character reference was not translated properly.">
  218.         <span style="background-color: red;
  219.                          font-size: 26pt;">
  220.                          Unknown Symbol<!-- the text to display-->
  221.         </span>
  222.     </xsl:template>
  223.  
  224.     
  225.     <msxsl:script implements-prefix="local"><![CDATA[
  226.     
  227.  
  228.    function FormatParagraphID(nodeList)   {
  229.    try    {
  230.         var myNode = nodeList.item(0);
  231.         var paragraphID = (myNode.getAttribute("number"));
  232.            y =   myNode.getAttribute("number")
  233.            if (y == null)
  234.                return (" ")
  235.         else
  236.             for(var p = paragraphID.length; p < 4; p++)
  237.             {
  238.                 paragraphID = "0" + paragraphID;    
  239.             }    
  240.             return paragraphID;
  241.        }
  242.     catch(e) {
  243.         return "";
  244.         }
  245.     }
  246.     
  247.  
  248.     function formatLabel(nodeList) {
  249.     try {
  250.            var myNode = nodeList.item(0);
  251.         var label = myNode.getAttribute("label");
  252.         var labelClose = label.indexOf("]");        
  253.         var startLabel = label.substring(1,labelClose);
  254.         return startLabel;
  255.         }
  256.     catch(e) {
  257.         return "";
  258.         }
  259.     }
  260.  
  261.   ]]></msxsl:script>
  262.  
  263.  
  264. <xsl:include href="abstract.xsl"/>
  265. <xsl:include href="address.xsl"/>
  266. <xsl:include href="appendix.xsl"/>
  267. <xsl:include href="biological-deposit.xsl"/>
  268. <xsl:include href="cals.xsl"/>
  269. <xsl:include href="citation.xsl"/>
  270. <xsl:include href="claims.xsl"/>
  271. <xsl:include href="classifications.xsl"/>
  272. <xsl:include href="common.xsl"/>
  273. <xsl:include href="correspondence-address.xsl"/>
  274. <xsl:include href="css-styles.xsl"/>
  275. <xsl:include href="cwu.xsl"/>
  276. <xsl:include href="document-id.xsl"/>
  277. <xsl:include href="figures_specification.xsl"/>
  278. <xsl:include href="name.xsl"/>
  279. <xsl:include href="para-fed.xsl"/>
  280. <xsl:include href="party.xsl"/>
  281. <xsl:include href="residence.xsl"/>
  282. <xsl:include href="sequence-listing.xsl"/>
  283.  
  284. </xsl:stylesheet>
  285.