This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Unexpected xref behavior; is this a case for Two-pass processing
- From: Steve Whitlatch <swhitlat at getnet dot net>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 24 Jan 2004 19:33:01 -0700
- Subject: [docbook-apps] Unexpected xref behavior; is this a case for Two-pass processing
- Organization: Steve Whitlatch, Inc.
- Reply-to: swhitlat at getnet dot net
In my XSL customization layer, I use:
<xsl:param name="xref.with.number.and.title" select="0">
<xsl:param name="insert.xref.page.number">no</xsl:param>
In the XML document, I have:
<figure id="Figure1">
.
.
.
<xref linkend="Figure1"/>
But the output is:
Figure 1 [3]
For now, I just want to get rid of the part that includes the page
number. I expected the above XSL to do that, but no.
Also, it seems that specifying inclusion/exclusion of the page number
should be in only a single parameter, and specifying the title and
page number should not be tied together.
Perhaps we could have:
<xsl:param name="xref.with.number" select="">
<xsl:param name="xref.with.title" select="">
and we don't need
<xsl:param name="insert.xref.page.number"></xsl:param>
At least not for xrefs.
If there is a case to be made that we need
<xsl:param name="insert.xref.page.number"></xsl:param>
OK, but we still need to break the number and title inclusion/
exclusion params into two, no?
A textual reference to a figure that is on the same page as the figure
need not include the page number. Later, I will look for a technique
by which inclusion of the page number can be turned on and off
depending on whether the reference and the target are on the same
page. Any tips?
System:
**********************
DocBook XML DTD 4.2, DocBook XSL stylesheets 1.64-1,
FOP-0.20.5, Linux,
xsltproc --version
Using libxml 20604, libxslt 10101 and libexslt 801
xsltproc was compiled against libxml 20604, libxslt 10101 and libexslt
801
libxslt 10101 was compiled against libxml 20604
libexslt 801 was compiled against libxml 20604
Thanks,
Steve Whitlatch
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.