You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by scott hutinger <S-...@wiu.edu> on 2006/03/09 21:44:17 UTC

[doc] booktitle and copyright intermediate fix

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



Re: [doc] booktitle and copyright intermediate fix

Posted by scott hutinger <s-...@wiu.edu>.
Yes, that makes sense.

http://scott.mprojects.wiu.edu/derby/
Has the current build, but it needs to be modified to fit the specs on
what it should be.  I just always saw copyright, and didn't figure out
that it should be the chapter title until I changed it all.

The way the layout is currently (before-after) isn't quite correct. 
It's a bit confusing with xslt, although easy to learn, a bit strange....
Also, I am going on vacation for a week, so doubt I will get back to
this till I get back...

thanks,
scott

Jeff Levitt wrote:
> --- scott hutinger <S-...@wiu.edu> wrote:
>
>   
>> BTW, I think the thought was to have even-page and
>> odd-page headers.
>>
>> What exactly should be on the header?  Is the the
>> chapter title and 
>> copyright, or some other layout?
>>
>> I guess Jeff knows what the layout should be... :-)
>> thanks,
>> scott
>>
>>
>>     
>
> Well, based on what I've seen in other books, you want
> the book title on the even pages and the chapter name
> on the odd.  But on chapter title pages, you want the
> copyright.  Make sesne?
>
>   


Re: [doc] booktitle and copyright intermediate fix

Posted by Jeff Levitt <de...@mylevita.com>.

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

> BTW, I think the thought was to have even-page and
> odd-page headers.
> 
> What exactly should be on the header?  Is the the
> chapter title and 
> copyright, or some other layout?
> 
> I guess Jeff knows what the layout should be... :-)
> thanks,
> scott
> 
>

Well, based on what I've seen in other books, you want
the book title on the even pages and the chapter name
on the odd.  But on chapter title pages, you want the
copyright.  Make sesne?

Re: [doc] booktitle and copyright intermediate fix

Posted by scott hutinger <S-...@wiu.edu>.
BTW, I think the thought was to have even-page and odd-page headers.

What exactly should be on the header?  Is the the chapter title and 
copyright, or some other layout?

I guess Jeff knows what the layout should be... :-)
thanks,
scott

scott hutinger 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 -->
>   


Re: [doc] booktitle and copyright intermediate fix

Posted by Jeff Levitt <de...@mylevita.com>.
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-...@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 -->
>