Update of /cvsroot/springnet/Spring.Net/doc/reference/styles
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31696/reference/styles
Modified Files:
fopdf.xsl html.xsl html_chunk.xsl
Log Message:
fixed admonition image paths
Index: html_chunk.xsl
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/doc/reference/styles/html_chunk.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** html_chunk.xsl 6 Dec 2007 07:54:17 -0000 1.6
--- html_chunk.xsl 6 Dec 2007 15:53:08 -0000 1.7
***************
*** 1,10 ****
<?xml version="1.0" ?>
! <!--
This is the XSL HTML configuration file for the Spring Reference Documentation.
-->
<!DOCTYPE xsl:stylesheet [
<!ENTITY db_xsl_path "../lib/docbook-xsl/">
! <!ENTITY callout_gfx_path "../images/callouts/">
! <!ENTITY admon_gfx_path "../images/admons/">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
--- 1,10 ----
<?xml version="1.0" ?>
! <!--
This is the XSL HTML configuration file for the Spring Reference Documentation.
-->
<!DOCTYPE xsl:stylesheet [
<!ENTITY db_xsl_path "../lib/docbook-xsl/">
! <!ENTITY callout_gfx_path "./images/callouts/">
! <!ENTITY admon_gfx_path "./images/admons/">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
Index: fopdf.xsl
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/doc/reference/styles/fopdf.xsl,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** fopdf.xsl 2 Oct 2007 03:46:26 -0000 1.10
--- fopdf.xsl 6 Dec 2007 15:53:08 -0000 1.11
***************
*** 1,9 ****
<?xml version="1.0"?>
! <!--
This is the XSL FO (PDF) stylesheet for the Spring reference
documentation.
!
Thanks are due to Christian Bauer of the Hibernate project
team for writing the original stylesheet upon which this one
--- 1,9 ----
<?xml version="1.0"?>
! <!--
This is the XSL FO (PDF) stylesheet for the Spring reference
documentation.
!
Thanks are due to Christian Bauer of the Hibernate project
team for writing the original stylesheet upon which this one
***************
*** 13,17 ****
<!DOCTYPE xsl:stylesheet [
<!ENTITY db_xsl_path "../lib/docbook-xsl/">
! <!ENTITY admon_gfx_path "../images/admons/">
<!ENTITY copyright "©">
]>
--- 13,17 ----
<!DOCTYPE xsl:stylesheet [
<!ENTITY db_xsl_path "../lib/docbook-xsl/">
! <!ENTITY admon_gfx_path "./images/admons/">
<!ENTITY copyright "©">
]>
***************
*** 22,32 ****
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="#default">
!
<xsl:import href="&db_xsl_path;/fo/docbook.xsl"/>
<!--###################################################
Custom Title Page
! ################################################### -->
!
<xsl:template name="book.titlepage.recto">
<fo:block>
--- 22,32 ----
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="#default">
!
<xsl:import href="&db_xsl_path;/fo/docbook.xsl"/>
<!--###################################################
Custom Title Page
! ################################################### -->
!
<xsl:template name="book.titlepage.recto">
<fo:block>
***************
*** 40,47 ****
</fo:block>
<fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
! <xsl:value-of select="bookinfo/subtitle"/>
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
! <xsl:value-of select="bookinfo/releaseinfo"/>
</fo:block>
</fo:table-cell>
--- 40,47 ----
</fo:block>
<fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
! <xsl:value-of select="bookinfo/subtitle"/>
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
! <xsl:value-of select="bookinfo/releaseinfo"/>
</fo:block>
</fo:table-cell>
***************
*** 50,54 ****
<fo:table-cell text-align="center">
<fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
! <xsl:value-of select="bookinfo/pubdate"/>
</fo:block>
</fo:table-cell>
--- 50,54 ----
<fo:table-cell text-align="center">
<fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
! <xsl:value-of select="bookinfo/pubdate"/>
</fo:block>
</fo:table-cell>
***************
*** 68,72 ****
</fo:block>
<fo:block font-family="Helvetica" font-size="10pt" padding="1mm">
! <xsl:value-of select="bookinfo/legalnotice"/>
</fo:block>
</fo:table-cell>
--- 68,72 ----
</fo:block>
<fo:block font-family="Helvetica" font-size="10pt" padding="1mm">
! <xsl:value-of select="bookinfo/legalnotice"/>
</fo:block>
</fo:table-cell>
***************
*** 77,81 ****
</xsl:template>
! <!-- Prevent blank pages in output -->
<xsl:template name="book.titlepage.before.verso">
</xsl:template>
--- 77,81 ----
</xsl:template>
! <!-- Prevent blank pages in output -->
<xsl:template name="book.titlepage.before.verso">
</xsl:template>
***************
*** 84,91 ****
<xsl:template name="book.titlepage.separator">
</xsl:template>
!
<!--###################################################
Header
! ################################################### -->
<!-- More space in the center header for long text -->
--- 84,91 ----
<xsl:template name="book.titlepage.separator">
</xsl:template>
!
<!--###################################################
Header
! ################################################### -->
<!-- More space in the center header for long text -->
***************
*** 100,104 ****
<!--###################################################
Custom Footer
! ################################################### -->
<xsl:template name="footer.content">
<xsl:param name="pageclass" select="''" />
--- 100,104 ----
<!--###################################################
Custom Footer
! ################################################### -->
<xsl:template name="footer.content">
<xsl:param name="pageclass" select="''" />
***************
*** 143,152 ****
</xsl:when>
</xsl:choose>
! </xsl:template>
!
<!--###################################################
Custom Toc Line
################################################### -->
!
<!-- The default DocBook XSL TOC printing is seriously broken... -->
<xsl:template name="toc.line">
--- 143,152 ----
</xsl:when>
</xsl:choose>
! </xsl:template>
!
<!--###################################################
Custom Toc Line
################################################### -->
!
<!-- The default DocBook XSL TOC printing is seriously broken... -->
<xsl:template name="toc.line">
***************
*** 171,175 ****
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:when>
! </xsl:choose>
<fo:basic-link internal-destination="{$id}">
<xsl:if test="$label != ''">
--- 171,175 ----
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:when>
! </xsl:choose>
<fo:basic-link internal-destination="{$id}">
<xsl:if test="$label != ''">
***************
*** 196,203 ****
</fo:block>
</xsl:template>
!
<!--###################################################
Extensions
! ################################################### -->
<!-- These extensions are required for table printing and other stuff -->
--- 196,203 ----
</fo:block>
</xsl:template>
!
<!--###################################################
Extensions
! ################################################### -->
<!-- These extensions are required for table printing and other stuff -->
***************
*** 210,214 ****
<!--###################################################
Table Of Contents
! ################################################### -->
<!-- Generate the TOCs for named components only -->
--- 210,214 ----
<!--###################################################
Table Of Contents
! ################################################### -->
<!-- Generate the TOCs for named components only -->
***************
*** 216,231 ****
book toc
</xsl:param>
!
<!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">2</xsl:param>
!
<!-- Dot and Whitespace as separator in TOC between Label and Title-->
<xsl:param name="autotoc.label.separator" select="'. '"/>
!
<!--###################################################
Paper & Page Size
! ################################################### -->
!
<!-- Paper type, no headers on blank pages, no double sided printing -->
<xsl:param name="paper.type" select="'A4'"/>
--- 216,231 ----
book toc
</xsl:param>
!
<!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">2</xsl:param>
!
<!-- Dot and Whitespace as separator in TOC between Label and Title-->
<xsl:param name="autotoc.label.separator" select="'. '"/>
!
<!--###################################################
Paper & Page Size
! ################################################### -->
!
<!-- Paper type, no headers on blank pages, no double sided printing -->
<xsl:param name="paper.type" select="'A4'"/>
***************
*** 238,246 ****
<xsl:param name="region.before.extent">10mm</xsl:param>
<xsl:param name="body.margin.top">10mm</xsl:param>
!
<xsl:param name="body.margin.bottom">15mm</xsl:param>
<xsl:param name="region.after.extent">10mm</xsl:param>
<xsl:param name="page.margin.bottom">0mm</xsl:param>
!
<xsl:param name="page.margin.outer">18mm</xsl:param>
<xsl:param name="page.margin.inner">18mm</xsl:param>
--- 238,246 ----
<xsl:param name="region.before.extent">10mm</xsl:param>
<xsl:param name="body.margin.top">10mm</xsl:param>
!
<xsl:param name="body.margin.bottom">15mm</xsl:param>
<xsl:param name="region.after.extent">10mm</xsl:param>
<xsl:param name="page.margin.bottom">0mm</xsl:param>
!
<xsl:param name="page.margin.outer">18mm</xsl:param>
<xsl:param name="page.margin.inner">18mm</xsl:param>
***************
*** 251,255 ****
<!--###################################################
Fonts & Styles
! ################################################### -->
<!-- Left aligned text and no hyphenation -->
--- 251,255 ----
<!--###################################################
Fonts & Styles
! ################################################### -->
<!-- Left aligned text and no hyphenation -->
***************
*** 271,275 ****
<xsl:attribute name="font-size">0.8em</xsl:attribute>
</xsl:attribute-set>
!
<!--###################################################
Tables
--- 271,275 ----
<xsl:attribute name="font-size">0.8em</xsl:attribute>
</xsl:attribute-set>
!
<!--###################################################
Tables
***************
*** 279,283 ****
<xsl:param name="default.table.width">17.4cm</xsl:param>
! <!-- Some padding inside tables -->
<xsl:attribute-set name="table.cell.padding">
<xsl:attribute name="padding-left">4pt</xsl:attribute>
--- 279,283 ----
<xsl:param name="default.table.width">17.4cm</xsl:param>
! <!-- Some padding inside tables -->
<xsl:attribute-set name="table.cell.padding">
<xsl:attribute name="padding-left">4pt</xsl:attribute>
***************
*** 286,297 ****
<xsl:attribute name="padding-bottom">4pt</xsl:attribute>
</xsl:attribute-set>
!
<!-- Only hairlines as frame and cell borders in tables -->
<xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
<xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
!
<!--###################################################
Labels
! ################################################### -->
<!-- Label Chapters and Sections (numbering) -->
--- 286,297 ----
<xsl:attribute name="padding-bottom">4pt</xsl:attribute>
</xsl:attribute-set>
!
<!-- Only hairlines as frame and cell borders in tables -->
<xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
<xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
!
<!--###################################################
Labels
! ################################################### -->
<!-- Label Chapters and Sections (numbering) -->
***************
*** 302,307 ****
<!--###################################################
Titles
! ################################################### -->
!
<!-- Chapter title size -->
<xsl:attribute-set name="chapter.titlepage.recto.style">
--- 302,307 ----
<!--###################################################
Titles
! ################################################### -->
!
<!-- Chapter title size -->
<xsl:attribute-set name="chapter.titlepage.recto.style">
***************
*** 311,318 ****
<xsl:value-of select="$body.font.master * 1.8"/>
<xsl:text>pt</xsl:text>
! </xsl:attribute>
</xsl:attribute-set>
! <!-- Why is the font-size for chapters hardcoded in the XSL FO templates?
Let's remove it, so this sucker can use our attribute-set only... -->
<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
--- 311,318 ----
<xsl:value-of select="$body.font.master * 1.8"/>
<xsl:text>pt</xsl:text>
! </xsl:attribute>
</xsl:attribute-set>
! <!-- Why is the font-size for chapters hardcoded in the XSL FO templates?
Let's remove it, so this sucker can use our attribute-set only... -->
<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
***************
*** 324,329 ****
</fo:block>
</xsl:template>
!
! <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
<xsl:attribute-set name="section.title.level1.properties">
<xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
--- 324,329 ----
</fo:block>
</xsl:template>
!
! <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
<xsl:attribute-set name="section.title.level1.properties">
<xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
***************
*** 374,383 ****
<xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
! </xsl:attribute-set>
<!--###################################################
Programlistings
! ################################################### -->
!
<!-- Verbatim text formatting (programlistings) -->
<xsl:attribute-set name="monospace.verbatim.properties">
--- 374,383 ----
<xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
! </xsl:attribute-set>
<!--###################################################
Programlistings
! ################################################### -->
!
<!-- Verbatim text formatting (programlistings) -->
<xsl:attribute-set name="monospace.verbatim.properties">
***************
*** 387,391 ****
</xsl:attribute>
</xsl:attribute-set>
!
<xsl:attribute-set name="verbatim.properties">
<xsl:attribute name="space-before.minimum">1em</xsl:attribute>
--- 387,391 ----
</xsl:attribute>
</xsl:attribute-set>
!
<xsl:attribute-set name="verbatim.properties">
<xsl:attribute name="space-before.minimum">1em</xsl:attribute>
***************
*** 394,420 ****
<xsl:attribute name="border-color">#444444</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
! <xsl:attribute name="border-width">0.1pt</xsl:attribute>
! <xsl:attribute name="padding-top">0.5em</xsl:attribute>
! <xsl:attribute name="padding-left">0.5em</xsl:attribute>
! <xsl:attribute name="padding-right">0.5em</xsl:attribute>
! <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
! <xsl:attribute name="margin-left">0.5em</xsl:attribute>
! <xsl:attribute name="margin-right">0.5em</xsl:attribute>
! </xsl:attribute-set>
! <!-- Shade (background) programlistings -->
<xsl:param name="shade.verbatim">1</xsl:param>
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
</xsl:attribute-set>
!
<!--###################################################
Callouts
! ################################################### -->
<!-- Use images for callouts instead of (1) (2) (3) -->
<xsl:param name="callout.graphics">0</xsl:param>
<xsl:param name="callout.unicode">1</xsl:param>
!
<!-- Place callout marks at this column in annotated areas -->
<xsl:param name="callout.defaultcolumn">90</xsl:param>
--- 394,420 ----
<xsl:attribute name="border-color">#444444</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
! <xsl:attribute name="border-width">0.1pt</xsl:attribute>
! <xsl:attribute name="padding-top">0.5em</xsl:attribute>
! <xsl:attribute name="padding-left">0.5em</xsl:attribute>
! <xsl:attribute name="padding-right">0.5em</xsl:attribute>
! <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
! <xsl:attribute name="margin-left">0.5em</xsl:attribute>
! <xsl:attribute name="margin-right">0.5em</xsl:attribute>
! </xsl:attribute-set>
! <!-- Shade (background) programlistings -->
<xsl:param name="shade.verbatim">1</xsl:param>
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
</xsl:attribute-set>
!
<!--###################################################
Callouts
! ################################################### -->
<!-- Use images for callouts instead of (1) (2) (3) -->
<xsl:param name="callout.graphics">0</xsl:param>
<xsl:param name="callout.unicode">1</xsl:param>
!
<!-- Place callout marks at this column in annotated areas -->
<xsl:param name="callout.defaultcolumn">90</xsl:param>
***************
*** 422,426 ****
<!--###################################################
Admonitions
! ################################################### -->
<!-- Use nice graphics for admonitions -->
--- 422,426 ----
<!--###################################################
Admonitions
! ################################################### -->
<!-- Use nice graphics for admonitions -->
***************
*** 430,434 ****
<!--###################################################
Misc
! ################################################### -->
<!-- Placement of titles -->
--- 430,434 ----
<!--###################################################
Misc
! ################################################### -->
<!-- Placement of titles -->
***************
*** 440,444 ****
procedure before
</xsl:param>
!
<!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
<xsl:param name="variablelist.as.blocks">1</xsl:param>
--- 440,444 ----
procedure before
</xsl:param>
!
<!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
<xsl:param name="variablelist.as.blocks">1</xsl:param>
***************
*** 453,475 ****
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
</xsl:attribute-set>
!
<!--###################################################
! colored and hyphenated links
! ################################################### -->
! <xsl:template match="ulink">
! <fo:basic-link external-destination="{@url}"
! xsl:use-attribute-sets="xref.properties"
! text-decoration="underline"
! color="blue">
! <xsl:choose>
! <xsl:when test="count(child::node())=0">
! <xsl:value-of select="@url"/>
! </xsl:when>
! <xsl:otherwise>
! <xsl:apply-templates/>
! </xsl:otherwise>
! </xsl:choose>
! </fo:basic-link>
! </xsl:template>
!
</xsl:stylesheet>
--- 453,475 ----
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
</xsl:attribute-set>
!
<!--###################################################
! colored and hyphenated links
! ################################################### -->
! <xsl:template match="ulink">
! <fo:basic-link external-destination="{@url}"
! xsl:use-attribute-sets="xref.properties"
! text-decoration="underline"
! color="blue">
! <xsl:choose>
! <xsl:when test="count(child::node())=0">
! <xsl:value-of select="@url"/>
! </xsl:when>
! <xsl:otherwise>
! <xsl:apply-templates/>
! </xsl:otherwise>
! </xsl:choose>
! </fo:basic-link>
! </xsl:template>
!
</xsl:stylesheet>
Index: html.xsl
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/doc/reference/styles/html.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** html.xsl 19 Oct 2006 19:43:36 -0000 1.4
--- html.xsl 6 Dec 2007 15:53:08 -0000 1.5
***************
*** 1,4 ****
<?xml version="1.0"?>
! <!--
This is the XSL HTML configuration file for the Spring
Reference Documentation.
--- 1,4 ----
<?xml version="1.0"?>
! <!--
This is the XSL HTML configuration file for the Spring
Reference Documentation.
***************
*** 6,11 ****
<!DOCTYPE xsl:stylesheet [
<!ENTITY db_xsl_path "../lib/docbook-xsl/">
! <!ENTITY callout_gfx_path "../images/callouts/">
! <!ENTITY admon_gfx_path "../images/admons/">
]>
--- 6,11 ----
<!DOCTYPE xsl:stylesheet [
<!ENTITY db_xsl_path "../lib/docbook-xsl/">
! <!ENTITY callout_gfx_path "./images/callouts/">
! <!ENTITY admon_gfx_path "./images/admons/">
]>
***************
*** 14,23 ****
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
!
<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
<!--###################################################
HTML Settings
! ################################################### -->
<xsl:param name="html.stylesheet">../styles/html.css</xsl:param>
--- 14,23 ----
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
!
<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
<!--###################################################
HTML Settings
! ################################################### -->
<xsl:param name="html.stylesheet">../styles/html.css</xsl:param>
***************
*** 31,35 ****
<!--###################################################
Table Of Contents
! ################################################### -->
<!-- Generate the TOCs for named components only -->
--- 31,35 ----
<!--###################################################
Table Of Contents
! ################################################### -->
<!-- Generate the TOCs for named components only -->
***************
*** 37,47 ****
book toc
</xsl:param>
!
<!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">3</xsl:param>
!
<!--###################################################
Labels
! ################################################### -->
<!-- Label Chapters and Sections (numbering) -->
--- 37,47 ----
book toc
</xsl:param>
!
<!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">3</xsl:param>
!
<!--###################################################
Labels
! ################################################### -->
<!-- Label Chapters and Sections (numbering) -->
***************
*** 49,61 ****
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
!
<!--###################################################
Callouts
! ################################################### -->
<!-- Use images for callouts instead of (1) (2) (3) -->
<xsl:param name="callout.graphics">1</xsl:param>
<xsl:param name="callout.graphics.path">&callout_gfx_path;</xsl:param>
!
<!-- Place callout marks at this column in annotated areas -->
<xsl:param name="callout.defaultcolumn">90</xsl:param>
--- 49,61 ----
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
!
<!--###################################################
Callouts
! ################################################### -->
<!-- Use images for callouts instead of (1) (2) (3) -->
<xsl:param name="callout.graphics">1</xsl:param>
<xsl:param name="callout.graphics.path">&callout_gfx_path;</xsl:param>
!
<!-- Place callout marks at this column in annotated areas -->
<xsl:param name="callout.defaultcolumn">90</xsl:param>
***************
*** 63,67 ****
<!--###################################################
Admonitions
! ################################################### -->
<!-- Use nice graphics for admonitions -->
--- 63,67 ----
<!--###################################################
Admonitions
! ################################################### -->
<!-- Use nice graphics for admonitions -->
***************
*** 97,100 ****
</div>
</xsl:template>
!
</xsl:stylesheet>
--- 97,100 ----
</div>
</xsl:template>
!
</xsl:stylesheet>
|