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: Figure Numbers (DocBook XSL)


/ Dave Makower <davemak@iclick.com> was heard to say:
| I know enough XSLT to be dangerous, and I could try to tweak the 
| stylesheets myself, but I was wondering if someone else had already 
| encountered (and possibly fixed) this problem.

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.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article
  PUBLIC "-//Norman Walsh//DTD Simplified DocBk XML V3.1.3.6//EN" 
  "file:/n:/share/sgml/norman_walsh/sdocbook/sdocbook.dtd">

<!-- test document -->

<article><title>Article Test Document Title</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>

<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>

<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>

</article>



                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | Nothing ever gets anywhere. The
http://www.oasis-open.org/docbook/ | earth keeps turning round and gets
Chair, DocBook Technical Committee | nowhere. The moment is the only
                                   | thing that counts.--Jean Cocteau


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