This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re[2]: Figure Numbers (DocBook XSL)


>I can't reproduce this problem. What XSLT processor are you using,
>and can you provide a test case. Here's my test case that works
>just fine with XT.

I tried your test case, and you're right: it also works fine for me 
with XT.  However, I altered it slightly and was able to reproduce my 
symptom.  Here's the XML and the resulting HTML.
<?xml version="1.0" encoding="utf-8"?>

<?xml-stylesheet 
href="http://jasmine.iclick.com:10986/docbook/xsl/html/docbook.xsl" 
type="text/xsl"?>
<!--xml-stylesheet 
href="http://nwalsh.com/xsl/docbook/html/docbook.xsl" 
type="text/xsl"-->
<?cocoon-process type="xslt"?>

<!DOCTYPE article PUBLIC "-//Norman Walsh//DTD DocBk XML V3.1.7//EN"
            "http://www.nwalsh.com/docbook/xml/3.1.7/docbookx.dtd">

<!-- test document -->

<article><title>Article Test Document Title</title>

<section>
<title>One Section</title>

<para>
This is a <quote>short quote</quote>.
This is a <quote>Quotation with a <quote>nested quotation
containing a <quote>nested quotation and another <quote>nested
quotation</quote></quote></quote></quote>.
</para>

<figure id="testfig1"><title>Test Figure</title>
<programlisting>This is a
   ProgramListing
</programlisting>
</figure>

<para>This para contains an xref to a figure: <xref linkend="testfig1"/>.
</para>

</section>

<section>
<title>Another Section</title>

<figure id="testfig2"><title>Test Figure2</title>
<programlisting>A Second
   Test Figure
</programlisting>
</figure>

<para>This para contains an <link linkend="testfig2">link</link> to a
figure. And an xref:  <xref linkend="testfig2"/>.
</para>

</section>

<section>
<title>Yet Another Section</title>
<figure id="testfig3"><title>Test Figure</title>
<programlisting>This is a
   ProgramListing
</programlisting>
</figure>

<para>This para contains an xref to a figure: <xref linkend="testfig3"/>.
</para>
</section>

</article>
Title: Article Test Document Title

One Section

This is a "short quote". This is a "Quotation with a 'nested quotation containing a "nested quotation and another 'nested quotation'"'".

Figure 1. Test Figure
This is a
   ProgramListing

This para contains an xref to a figure: Figure 1..

Another Section

Figure 1. Test Figure2
A Second
   Test Figure

This para contains an link to a figure. And an xref: Figure 1..

Yet Another Section

Figure 1. Test Figure
This is a
   ProgramListing

This para contains an xref to a figure: Figure 1..

-- 
+-------------------------------------------------------------------+
| Dave Makower                                 <davemak@iclick.com> |
| Manager of Portal Architecture & Development                      |
+--------------------------------+----------------------------------+
|   iClick, Inc.                 |   (914) 872-8030                 |
|   120 Bloomingdale Road        |   (914) 872-8100   fax           |
|   3rd Floor                    |   (914) 872-8000   main          |
|   White Plains, NY  10605      |   http://www.iclick.com/         |
+--------------------------------+----------------------------------+

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]