Changeset 1061
- Timestamp:
- 08/22/07 14:08:34 (1 year ago)
- Files:
-
- BibIt/trunk/mods2html.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
BibIt/trunk/mods2html.xsl
r1052 r1061 29 29 <xsl:template match="mods:mods"> 30 30 <xsl:variable name="thetitle"><xsl:call-template name="getbesttitle"/></xsl:variable> 31 <xsl:variable name="the date">31 <xsl:variable name="therecorddate"> 32 32 <xsl:choose> 33 <xsl:when test="descendant::mods:recordChangeDate"><xsl:value-of select="descendant::mods:recordChangeDate[last()]"/></xsl:when> 34 <xsl:otherwise><xsl:value-of select="descendant::mods:recordCreationDate"/></xsl:otherwise> 33 <xsl:when test="descendant::mods:recordChangeDate"> 34 <xsl:value-of select="descendant::mods:recordChangeDate[last()]" /> 35 </xsl:when> 36 <xsl:otherwise> 37 <xsl:value-of select="descendant::mods:recordCreationDate" /> 38 </xsl:otherwise> 35 39 </xsl:choose> 36 </xsl:variable> select="descendant::mods:recordChangeDate[last()]"/> 40 </xsl:variable> 41 <xsl:variable name="thehtmldate"><xsl:value-of select="format-dateTime(current-dateTime(), '[Y]-[M01]-[D01]T[H01]:[m01]:[s01]-05:00')"/></xsl:variable> 37 42 <xsl:result-document href="{$htmloutpath}{@ID}.html" format="html-format"> 38 43 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> … … 41 46 <xsl:element name="meta"> 42 47 <xsl:attribute name="http-equiv">last-modified</xsl:attribute> 43 <xsl:attribute name="content"><xsl:value-of select="normalize-space($the date)"/></xsl:attribute>48 <xsl:attribute name="content"><xsl:value-of select="normalize-space($thehtmldate)"/></xsl:attribute> 44 49 </xsl:element> 45 50 <style type="text/css" media="screen"> @import "recordstyle.css"; </style> … … 56 61 <div id="content"> 57 62 <h1><xsl:value-of select="normalize-space($thetitle)" /></h1> 58 <p> Last revised: <xsl:value-of select="$thedate"/></p>63 <p>Data last revised: <xsl:value-of select="$therecorddate"/></p> 59 64 <div id="formattedcitation"> 60 65 <h2>Formatted citation:</h2>
