home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _D30602A91D4F405D88808E96437DC4CF < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  4.5 KB  |  96 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 showing figures in new window</doc:title>
  8.     <doc:filename>figures_detail.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.         Formats the separate document showing all figures that results
  16.         from clicking a cross-reference to a figure  (@target='DRAWINGS')
  17.         <br/>
  18.         This file is not called by any other; a processing instruction with
  19.         a reference to this file is written to the new document that results 
  20.         from the script contained in 'pap.xsl' and 'grant.xsl'.
  21.     <pre style="font-face:arial; font-size:10pt;">
  22.       Notes: 
  23.       sets width & height of embedded plug-in to width & height         
  24.       attributes of image if present; otherwise sets 800 X 600        
  25.     
  26.       preset to "best" fit; fits entire image to width & height      
  27.                                                                         
  28.       NOTE:  width & height are plug-in, not image!                  
  29.  
  30.       96 pixels per inch on Windows screens using Small Icons/fonts; 
  31.       72 pixels per inch on Windows screens using Large Icons/fonts; 
  32.       use 84 to allow for header and footer                          
  33.                                                                    
  34.       300 pixels per inch for USPTO scans           
  35.        </pre>               
  36.     </doc:description>
  37. </doc:summary>
  38.  
  39. <!--
  40. *********************************************************************
  41. * John Dunning: 2001-01-26                                          *
  42. * Component file for image viewing: <image>                         *
  43. *                                                                   *
  44. *  culled from "figures.xsl" in                                     *
  45. *   order to open "FIGURES" section in a new window when a          *
  46. *   cross-reference to a figure is clicked                          *
  47. * sets width & height of embedded plug-in to width & height         *
  48. *   attributes of image if present; otherwise sets 800 X 600        *
  49. *                                                                   *
  50. *    preset to "best" fit; fits entire image to width & height      *
  51. *                                                                   *
  52. *    NOTE:  width & height are plug-in, not image!                  *
  53. *                                                                   *
  54. *    96 pixels per inch on Windows screens using Small Icons/fonts; *
  55. *    72 pixels per inch on Windows screens using Large Icons/fonts; *
  56. *    use 84 to allow for header and footer                          *
  57. *                                                                   *
  58. *    300 pixels per inch for USPTO scans                            *
  59. *********************************************************************
  60. -->
  61.  
  62.     <xsl:template match="figures | FIGURES">
  63.     <html>
  64.     <head></head>
  65.     <body>
  66.        <br/>
  67.            <xsl:apply-templates />
  68.     </body>
  69.     </html>
  70.     </xsl:template>
  71.  
  72.     <xsl:template match="figure | FIGURE">
  73.         <xsl:apply-templates />
  74.     </xsl:template>
  75.  
  76.     <xsl:template match="EMI[1]" doc:public="yes" doc:description="surpresses the first image [D0000]from the resulting new document in GRANT."/>
  77.     
  78.     <xsl:template match="image | EMI">
  79.         <xsl:if test="//image">
  80.         [<xsl:value-of select="substring-after(@id,'EMI-')"/>]
  81.         <xsl:choose>
  82.             <xsl:when test="@he"><!-- if it has height and width attributes -->
  83.                 <embed toolbar="off" fit="best" align="top" src="{@file}" height="{round(@he)}" width="{round(@wi)}"/>
  84.             </xsl:when>
  85.             <xsl:otherwise><!-- otherwise, preset TIFF viewer size -->
  86.                 <embed toolbar="off" fit="best" align="top" width="600" height="800" src="{@file}"/>
  87.             </xsl:otherwise>
  88.         </xsl:choose>
  89.         </xsl:if>
  90.         <xsl:if test="//EMI">
  91.             [<xsl:value-of select="substring-after(@ID,'EMI-')"/>]
  92.             <embed toolbar="off" fit="best" align="top" width="600" height="800" src="{@FILE}"/>
  93.         </xsl:if>
  94.         <div class="break_before" />
  95.     </xsl:template>
  96. </xsl:stylesheet>