db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Levitt <de...@mylevita.com>
Subject Re: [jira] Created: (DERBY-221) User documentation should include a timestamp and/or svn revision number
Date Wed, 13 Apr 2005 20:39:34 GMT

--- scott hutinger <s-hutinger@wiu.edu> wrote:

> After looking on the web, it looks like it should be
> the following:
> 
> xmlns:java="http://xml.apache.org/xslt/java"
> exclude-result-prefixes="java"
> 
> I started reading a bit, but it became a bit muddled
> when the wording 
> has  changed a bit on it. (Micheal Kay spec
> related)...
>  
> 
> 
> scott hutinger wrote:
> 
> > Cool!
> >
> > I had to change 1 thing, and add 1 item and the
> date works, although 
> > it should be modified a bit.
> > I still agree with Andrew that the SVN revision
> number should be 
> > included:
> >
> > --- temp.xsl    2005-04-13 14:30:48.736362255
> -0500
> > +++ dita2fo-shell.xsl   2005-04-13
> 14:27:06.640693035 -0500
> > @@ -1,4 +1,3 @@
> > -
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <!-- (c) Copyright IBM Corp. 2004, 2005 All Rights
> Reserved. -->
> >
> > @@ -35,7 +34,9 @@
> > <xsl:stylesheet version="1.0"
> >                
> xmlns:fo="http://www.w3.org/1999/XSL/Format"
> >                
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > -               
> xmlns:fox="http://xml.apache.org/fop/extensions">
> > +               
> xmlns:fox="http://xml.apache.org/fop/extensions"
> > +               
> xmlns:java="http://xml.apache.org/xslt/java"
> > +>
> >   <!-- stylesheet imports -->
> >   <xsl:import href="xslfo/topic2foImpl.xsl"/>
> >   <xsl:import href="xslfo/domains2fo.xsl"/>
> > @@ -176,10 +177,11 @@
> >         </fo:block>
> >       </fo:block>
> >
> > -
> > +
> >  <!-- set the brief timestamp -->
> > <fo:block margin-top="3pc" text-align="right"
> font-size="8pt" 
> > line-height="normal">
> >           Derby Document build:
> 2005-04-12T11:30PST : 12 April 2005
> > +  <xsl:call-template name="TodaysDate"/>
> > </fo:block>
> >
> > <!-- <xsl:call-template name="TodaysDate"/>
> (Currently not working...) 
> > -->
> > @@ -225,13 +227,13 @@
> >     </fo:page-sequence>
> >   </xsl:template>
> >
> > -<!-- Timestamp template that currently causes
> errors
> > -<xsl:template match="TodaysDate">
> > +<!-- Timestamp template that currently causes
> errors -->
> > +<xsl:template name="TodaysDate">
> > <fo:block>
> >     <xsl:value-of
>
select="java:format(java:java.text.SimpleDateFormat.new
> > ('MMMM d, yyyy, h:mm:ss a (zz)'),
> java:java.util.Date.new())"/>
> >  </fo:block>
> > - </xsl:template>-->
> > + </xsl:template>
> >
> >
> > <!-- Jeff is adding this to replace the piece
> below -->
> > @@ -448,4 +450,3 @@
> >     </xsl:for-each>
> >   </xsl:template>
> > </xsl:stylesheet>
> > -
> >

Hmmm....I am getting the same error I received the
first time I tried it that led me to comment it out:
[xslt] Loading stylesheet
C:\derby\trunk\DITA-OT1.0.1\xsl\dita2fo-shell.xsl

[xslt] : Fatal Error!
javax.xml.transform.TransformerException: ElemTemplat
eElement error: TodaysDate Cause:
javax.xml.transform.TransformerException: Elem
TemplateElement error: TodaysDate
[xslt] Failed to process
C:\derby\trunk\temp\getstartderby_MERGED.xml


Any ideas what could be causing me to get the error?  

Mime
View raw message