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 <[EMAIL PROTECTED]> 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>©r;</xsl:text> > + <xsl:value-of select="//*[contains(@class,' > topic/copyright ')]/copyryear/@year"/>: > + <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 --> >
