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

  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  2.                 xmlns:doc="urn:schemas-uspto-gov:document"
  3.                 exclude-result-prefixes="doc"
  4.                 version="1.0">
  5.                 
  6.     <doc:summary>
  7.         <doc:title>Documentation Stripper</doc:title>
  8.         <doc:filename>stripDocumentation.xsl</doc:filename>
  9.         <doc:version>0.7</doc:version>
  10.         <doc:dateCreated>2000-01-02</doc:dateCreated>
  11.         <doc:lastModified>2001-01-03</doc:lastModified>
  12.         <doc:description><span style="color:blue;font-size:14pt;font-family:Impact;">Documentation Stripper</span> 
  13.         removes all doc: space documentation from a stylesheet to create a lighter weight
  14.         version of the stylesheet for production use. Save the resulting file under a separate
  15.         name from the documented file.  Documentation Stripper is copyright 2000 by 
  16.         <a href="mailto:cagle@olywa.net">Kurt Cagle</a>. Customized for USPTO by John Dunning,
  17.         2001.  For use in  commercial products, please contact the author for permissions.
  18.         </doc:description>
  19.     </doc:summary>
  20.  
  21.     <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
  22.     
  23.     <xsl:template match="/">
  24.         <xsl:apply-templates />
  25.     </xsl:template>
  26.  
  27.     <xsl:template match="xsl:include">
  28.             <xsl:copy-of select="document(@href) //xsl:template" />            
  29.     </xsl:template>
  30.     
  31.     <xsl:template match="*|@*|text()|comment()">
  32.          <xsl:copy><xsl:apply-templates select="*|@*|text()|comment()"/></xsl:copy>
  33.     </xsl:template>
  34.         
  35.     <xsl:template match="*[namespace-uri(.)='urn:schemas-uspto-gov:document']|@*[namespace-uri(.)='urn:schemas-uspto-gov:document']"/>
  36.  
  37. </xsl:stylesheet>