This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Autogenerated date meta?


Dennis Grace wrote:

Does anyone know a customization that will modify my user.head.content to
autogenerate the date of the transform in the HTML <meta> tags?

Add following code into your customized template user.head.content:


<meta name="date">
  <xsl:attribute name="content">
    <xsl:call-template name="datetime.format">
      <xsl:with-param name="date" select="date:date-time()"/>
      <xsl:with-param name="format" select="m/d/Y"/>
    </xsl:call-template>
  </xsl:attribute>
</meta>

Don't forget to declare date namespace as
xmlns:date="http://exslt.org/dates-and-times";

Jirka

--
-----------------------------------------------------------------
  Jirka Kosek  	
  e-mail: jirka@kosek.cz
  http://www.kosek.cz

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]