home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _5E6244AC883846C88F79454CAF208A31 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  2.3 KB  |  49 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 <biological-deposit></doc:title>
  8.     <doc:filename>biological-deposit.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.         Template rules for formatting <biological-deposit> and children are contained here.  
  16.     </doc:description>
  17. </doc:summary>
  18.  
  19. <!--
  20. *************************************************************
  21. *  John Dunning: 2001-01-29                                 *
  22. *   Component file for biological-deposit                   *
  23. *************************************************************
  24. -->
  25.  
  26.     <xsl:template match="biological-deposit">
  27.         <xsl:apply-templates />
  28.     </xsl:template>
  29.     
  30.     
  31.     <xsl:template match="deposit-term | depository | deposit-accession-number | deposit-description">
  32.         <xsl:text> </xsl:text>
  33.         <xsl:apply-templates />
  34.     </xsl:template>
  35.     
  36.     <xsl:template match="deposit-date">
  37.         <xsl:param name="deposit-year" doc:public="yes" doc:description="assigns the year portion of the <deposit-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  38.             <xsl:value-of select="substring(deposit-date,1,4)"/>
  39.         </xsl:param>
  40.         <xsl:param name="deposit-month" doc:public="yes" doc:description="assigns the month portion of the <deposit-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  41.             <xsl:value-of select="substring(deposit-date,5,2)"/>
  42.         </xsl:param>
  43.         <xsl:param name="deposit-day" doc:public="yes" doc:description="assigns the date portion of the <deposit-date> element to a parameter to allow YYYY-MM-DD date formatting.">
  44.             <xsl:value-of select="substring(deposit-date,7,2)"/>
  45.         </xsl:param>
  46.         <xsl:value-of select="$deposit-year" />-<xsl:value-of select="$deposit-month" />-<xsl:value-of select="$deposit-day" />
  47.     </xsl:template>
  48.     
  49. </xsl:stylesheet>