dleslie 01/02/16 11:14:48
Modified: java/xdocs/style/stylesheets xml2fo.xsl
Log:
Tried to refine use of keep-with-next. This component is
currently broken.
Revision Changes Path
1.14 +10 -9 xml-xalan/java/xdocs/style/stylesheets/xml2fo.xsl
Index: xml2fo.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/style/stylesheets/xml2fo.xsl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- xml2fo.xsl 2001/02/15 13:43:34 1.13
+++ xml2fo.xsl 2001/02/16 19:14:46 1.14
@@ -142,6 +142,7 @@
space-after.optimum="15pt"
background-color="blue"
color="white"
+ keep-with-next.within-page="always"
text-align="center">
<xsl:attribute name="id">
<xsl:value-of select="translate(@title,' ),-.(','____')"/>
@@ -156,7 +157,7 @@
<fo:block font-size="16pt"
font-family="sans-serif"
line-height="20pt"
- keep-with-next="always"
+ keep-with-next.within-page="always"
space-before.optimum="15pt"
space-after.optimum="12pt"
text-align="start"
@@ -172,7 +173,7 @@
<fo:block font-size="14pt"
font-family="sans-serif"
line-height="18pt"
- keep-with-next="always"
+ keep-with-next.within-page="always"
space-before.optimum="10pt"
space-after.optimum="9pt"
text-align="start"
@@ -252,6 +253,12 @@
</xsl:template>
-->
+<xsl:template match="img">
+ <fo:block>
+ <fo:external-graphic src="file:build/docs/images/[EMAIL PROTECTED]"/>
+ </fo:block>
+</xsl:template>
+
<!-- faqs -->
<xsl:template match ="faqs">
<fo:block font-size="18pt"
@@ -271,12 +278,6 @@
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="img">
- <fo:block>
- <fo:external-graphic src="file:build/docs/images/[EMAIL PROTECTED]"/>
- </fo:block>
-</xsl:template>
-
<!-- faq -->
<xsl:template match ="faq">
<xsl:apply-templates/>
@@ -287,7 +288,7 @@
<fo:block font-size="14pt"
font-family="sans-serif"
line-height="18pt"
- keep-with-next="always"
+ keep-with-next.within-page="always"
space-before.optimum="10pt"
space-after.optimum="9pt"
text-align="start"