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: [doc] booktitle and copyright intermediate fix
Date Fri, 10 Mar 2006 00:44:22 GMT
Looks good Scott, great idea.  Is there a place we can
view your output with this patch?  Maybe if you have a
server set up, or you can email the pdf or single html
file...?

Thanks!

--- scott hutinger <S-Hutinger@wiu.edu> wrote:

> I noticed that booktitle is somehow or another set
> as "Copyright"
> 
> I haven't been able to find out where this is set
> yet.  I did add some 
> xslt to dita2fo-shell.xsl so it shows
> Copyright©1997, 2005: Apache Software Foundation
> Which isn't completely correct, but it took a while
> to find where 
> Copyright was (or what).  Also, the following
> doesn't follow the way (c) 
> was supposed to be implemented.  But this could be
> an intermediate fix.  
> Or modified the way it should be displayed till it
> was fixed the way it 
> was intended to work.
> 
> scott
> 
> 
> > Index: lib/dita2fo-shell.xsl
>
===================================================================
> --- lib/dita2fo-shell.xsl	(revision 384602)
> +++ lib/dita2fo-shell.xsl	(working copy)
> @@ -87,6 +87,12 @@
>        <!--xsl:call-template name="back-covers"/-->
>      </fo:root>
>    </xsl:template>
> +  <!-- create Derby Copyright for static area -->
> +    <xsl:template name="derby-copyright">
> +      <xsl:text>&copyr;</xsl:text>
> +      <xsl:value-of select="//*[contains(@class,'
> topic/copyright ')]/copyryear/@year"/>:&nbsp; 
> +      <xsl:value-of select="//*[contains(@class,'
> topic/copyright ')]/*[contains(@class,'
> topic/copyrholder ')]"/><xsl:text> </xsl:text>
> +    </xsl:template>
>    <!-- create FOP outline elements for PDF
> bookmarks -->
>    <xsl:template match="*" mode="outline">
>      <xsl:if test="contains(@class,' topic/topic
> ')">
> @@ -160,6 +166,7 @@
>  
>  <!--Jeff is adding this section to replace what was
> originally there below -->
>  <fo:flow flow-name="xsl-region-body" >
> +  <xsl:call-template name="derby-copyright"/>
>          <!-- Custom cover art/text goes here -->
>        <xsl:call-template name="place-cover-art"/>
>        <!-- End of custom art section -->
> @@ -279,6 +286,7 @@
>          </xsl:variable>
>          <fo:block font-size="8pt"
> line-height="8pt">
>            <xsl:value-of select="$booktitle"/>
> +          <xsl:call-template
> name="derby-copyright"></xsl:call-template>
>          </fo:block>
>        </fo:static-content>
>        <!-- footer -->
> @@ -338,6 +346,7 @@
>          </xsl:variable>
>          <fo:block font-size="8pt"
> line-height="8pt">
>            <xsl:value-of select="$booktitle"/>
> +          <xsl:call-template
> name="derby-copyright"></xsl:call-template>
>          </fo:block>
>        </fo:static-content>
>        <!-- footer static stuff -->
> 


Mime
View raw message