home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _9C16CD52F7D74E899AB2129E650FC411 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  4.1 KB  |  90 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 <classification-ipc> and <classification-us> and children.</doc:title>
  8.     <doc:filename>classifications.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.         Common components of <classification-ipc> and <classification-us> stored and called from here. Called by citations.xsl.     
  16.     </doc:description>
  17. </doc:summary>
  18.  
  19.     
  20. <!--
  21. *****************************************************************
  22. *  John Dunning: 2001-01-29                                     *
  23. *   stylesheet component file for technical-information         *
  24. *   section in patent-application-publication;                  *
  25. *   called by citations.xsl                                     *
  26. *****************************************************************
  27. -->
  28.  
  29.     <xsl:template match="uspc">
  30.         <xsl:value-of select=".//class" />
  31.         <xsl:text> </xsl:text>
  32.         <xsl:value-of select=".//subclass" />
  33.     </xsl:template>
  34.  
  35.     <xsl:template name="classifications_ipc">
  36.     <xsl:choose>
  37.         <xsl:when test="name(technical-information)">
  38.                 <td class="table_data"><b><xsl:value-of select=".//classification-ipc/classification-ipc-primary/ipc"/></b>
  39.                 <xsl:for-each select="descendant::classification-ipc-secondary">;            
  40.                     <xsl:value-of select="."/>                
  41.                 </xsl:for-each>
  42.                 </td>
  43.                 <td class="table_data"><xsl:value-of select=".//classification-ipc/classification-ipc-edition"/></td>
  44.         </xsl:when>
  45.         <xsl:otherwise>
  46.             <b><xsl:value-of select="./classification-ipc-primary/ipc"/></b>
  47.             <xsl:for-each select="descendant::classification-ipc-secondary">;            
  48.                 <xsl:value-of select="."/>                
  49.             </xsl:for-each>
  50.             <xsl:text> </xsl:text><xsl:value-of select="./classification-ipc-edition"/>
  51.         </xsl:otherwise>
  52.     </xsl:choose>
  53.     </xsl:template>
  54.  
  55.     <xsl:template name="classifications_us">
  56.     <xsl:choose>
  57.         <xsl:when test="name(technical-information)">
  58.                 <td class="table_data">
  59.                 <b><xsl:value-of select=".//classification-us-primary/uspc/class"/>/<xsl:value-of select=".//classification-us-primary/uspc/subclass"/></b>
  60.                 <xsl:for-each select="descendant::classification-us-secondary/uspc">;
  61.                     <xsl:call-template name="us_secondary"/>
  62.                 </xsl:for-each>
  63.                 </td>
  64.                 <xsl:for-each select="descendant::classification-us-secondary/uspc-freeform">
  65.                     <xsl:call-template name="uspc_freeform"/>
  66.                 </xsl:for-each>
  67.         </xsl:when>
  68.         <xsl:otherwise>
  69.                 <b><xsl:value-of select=".//classification-us-primary/uspc/class"/>/<xsl:value-of select=".//classification-us-primary/uspc/subclass"/></b>
  70.                 <xsl:for-each select=".//classification-us-secondary/uspc">;
  71.                     <xsl:call-template name="us_secondary"/>
  72.                 </xsl:for-each>
  73.                 <xsl:for-each select=".//classification-us-secondary/uspc-freeform">
  74.                     <xsl:call-template name="uspc_freeform"/>
  75.                 </xsl:for-each>
  76.         </xsl:otherwise>
  77.     </xsl:choose>
  78.     </xsl:template>
  79.         
  80.     <xsl:template name="uspc_freeform">
  81.         <tr><td/><td/><td/>
  82.             <td class="table_data"><xsl:value-of select="." /></td>
  83.         </tr>    
  84.     </xsl:template>
  85.  
  86.     <xsl:template name="us_secondary">
  87.             <xsl:value-of select="class"/>/<xsl:value-of select="subclass"/>                                
  88.     </xsl:template>
  89.  
  90. </xsl:stylesheet>