OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Orderedlists nesting variablelists


Hi,

I hope I found a correct subject describing what I am trying to achieve.
When I have an orderedlist which includes variablelists then with FOP
0.20.5rc3 (built from CVS) the outcome is

1.
First Term
This is the first para of first term which is the first list item of the
ordered list
2.
Second Term
this is the par of second term
This is a normal paragraph and now the following list will continue from
the numbereing where it was left
Second nested orderedlist


Where as, if I use XEP the outcome is correct

1. First Term
This is the first para of first term which is the first list item of the
ordered list
2. Second Term
this is the par of second term
This is a normal paragraph and now the following list will continue from
the numbereing where it was left
Second nested orderedlist

So the question is what can it be done to fix the FOP output in the
aspect of customizing the stylesheet as I do not see this as a bug for
the stylesheet

Attached are sample document and the stylesheet ideas are welcomed

-- 

Togan Muftuoglu

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format"
                version="1.0">

<xsl:import
href="http://docbook.sourceforge.net/release/xsl/snapshot/fo/docbook.xsl"/>

<!-- used for debugging purposes -->
<xsl:output method="xml" indent="yes"/>

<!-- load fop extension support -->
<xsl:param name="fop.extensions" select="1"/>
<xsl:param name="xep.extensions" select="0"/>
  <!-- ******************************************************************** 
       This is common for all stylesheets so this should be imported before
       anything else. 
       ***************************************************************** -->
<xsl:param name="use.extensions" select="'1'"/>
<xsl:param name="saxon.extensions" select="'0'"/>
<xsl:param name="xalan.extensions" select="'1'"/>
<xsl:param name="tablecolumns.extension" select="'1'"/>
<xsl:param name="callout.unicode" select="1"/>
<xsl:param name="callout.graphics" select="'0'"/>
<xsl:param name="hyphenate">true</xsl:param>
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
<xsl:param name="qanda.inherit.numeration" select="0"/>
<xsl:param name="footer.rule" select="0"/>
<xsl:param name="headers.on.blank.pages" select="0"/>
<xsl:param name="footers.on.blank.pages" select="0"/>
<!-- Paper type and double side -->
<!-- <xsl:param name="paper.type" select="'A4'"/> -->
<xsl:param name="double.sided" select="'1'"/>
<xsl:param name="appendix.autolabel" select="1"/>	       
<xsl:param name="admon.graphics" select="0"/>
<xsl:param name="graphic.default.extension">png</xsl:param>

<xsl:param name="ulink.footnotes" select="1"/>

<xsl:param name="shade.verbatim" select="1"/>
<!-- Fixing section title going left -->
<xsl:param name="title.margin.left" select="'-0.1in'" />
<xsl:param name="formal.title.placement">
figure after
example before
equation after
table before
procedure before
</xsl:param>


<xsl:param name="variablelist.as.blocks"  select="1"/>

<xsl:attribute-set name="shade.verbatim.style">
  <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
</xsl:attribute-set>

<xsl:param name="show.comments">0</xsl:param>

<xsl:template match="term">
   <xsl:call-template name="inline.boldseq"/>
</xsl:template>


<xsl:attribute-set name="figure.properties"
    use-attribute-sets="formal.object.properties">
        <xsl:attribute name="border-color">black</xsl:attribute>
	  <xsl:attribute name="border-style">solid</xsl:attribute>
	    </xsl:attribute-set>



            <!-- chapter toc creates TOC for chapters -->
<xsl:param name="generate.toc">
 appendix  nop
 article   toc,title
 book      toc,title,figure,table,example,equation
 chapter   nop
 part      nop
 preface   nop
 qandadiv  nop
 qandaset  nop
 reference toc,title
 section   nop
 set       toc
 </xsl:param>


</xsl:stylesheet>




<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
   "/usr/share/sgml/db42xml/docbookx.dtd"
   >
<article>
  <title>Sample Nested Ordered List</title>
  <para>This sample ordered list renders properly with Renderx XEP, nut not
    with FOP</para>
  <orderedlist>
    <title>Nested Orderedlist</title>
    <listitem>
      <variablelist>
	<varlistentry>
	  <term>First Term</term>
	  <listitem>
	    <para>This is the first para of <emphasis role="bold">first
		term</emphasis> which is the first list item of the <emphasis
		role="bold">ordered list</emphasis></para>
	  </listitem>
	</varlistentry>
      </variablelist>
    </listitem>
    <listitem>
      <variablelist>
	<varlistentry>
	  <term>Second Term</term>
	  <listitem>
	    <para>this is the par of <emphasis role="bold">second term</emphasis></para>
	  </listitem>
	</varlistentry>
      </variablelist>
    </listitem>
  </orderedlist>
  <para>This is a normal paragraph and now the following list will continue
    from the numbereing where it was left</para>
  <orderedlist continuation="continues">
    <title>Second nested orderedlist</title>
    <listitem>
      <variablelist>
	<varlistentry>
	  <term>Third term</term>
	  <listitem>
	    <para>This is the para of <emphasis role="bold">third
		term</emphasis> which is a continuation of the previous orderedlist</para>
	  </listitem>
	</varlistentry>
      </variablelist>
    </listitem>
    <listitem>
      <itemizedlist>
	<listitem>
	  <para>this is an itemized list </para>
	</listitem>
	<listitem>
	  <para>another para of itemized list</para>
	</listitem>
      </itemizedlist>
    </listitem>
  </orderedlist>
</article>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]