forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brolin Empey" <>
Subject Re: using Subversion keyword substitution instead of published date in skin navstrip - using Forrest 0.8
Date Wed, 16 May 2007 22:39:46 GMT
I am stuck again.

I got the "disable-last-published" variable working by modifying the
skinconfig DTD.

Now I am trying to get my copy of the "pelt" skin to use the value of
my source file's "rev_id" metadata property.

Here is my source file:

    <meta name="rev_id">$Id$</meta>

The "Id" keyword is not expanded because I have not yet committed the
changes to my SVN working copy.

Here is what I have in my site's
src/documentation/skins/pelt-brolin/xslt/html/site-to-xhtml.xsl file.
("pelt-brolin" is my copy of the "pelt" skin.)

  <xsl:template match="meta[@name = 'rev_id']" name="rev_id">
    rev_id template called.
    <xsl:value-of select="."/>
  <xsl:template name="last-published">
      <xsl:when test="$config/disable-last-published = 'true'">
        checking for rev_id metadata.
        <xsl:if test="meta[@name = 'rev_id']">
          calling rev_id template.
          <xsl:call-template name="rev_id"/>
        <xsl:value-of select="meta[@name = 'rev_id']"/>
<script type="text/javascript"><![CDATA[<!--
document.write("]]><i18n:text >Last Published:</i18n:text><![CDATA[ "
+ document.lastModified);
//  -->]]></script>

I am new to XSL(T).  I have been experimenting with different
approaches, as you can see.

What is the simplest way to have either the "last-published" or
"rev_id" template above output the "$Id$" from my source file's
"rev_id" metadata property?  I need a working XSL(T) example.


View raw message