This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Unexpected xref behavior; is this a case for Two-pass processing
- From: Steve Whitlatch <swhitlat at getnet dot net>
- To: "Bob Stayton" <bobs at sagehill dot net>,<docbook-apps at lists dot oasis-open dot org>
- Date: Sun, 25 Jan 2004 22:26:10 -0700
- Subject: Re: [docbook-apps] Unexpected xref behavior; is this a case for Two-pass processing
- Organization: Steve Whitlatch, Inc.
- References: <200401241933.01366.swhitlat@getnet.net> <005a01c3e386$2cf4cf30$6601a8c0@toshiro>
- Reply-to: swhitlat at getnet dot net
On Sunday 25 January 2004 01:59 pm, Bob Stayton wrote:
> Perhaps something else in your customization is
> turning insert.xref.page.number back on?
Must be. Any suggestions on where I should look?
My customization layers is already nearly 500 lines. Even though it's
about half comments, it's still daunting for my first DocBook XML/XSL
combo. No way out of the complexity with the Docbook approach, or so
it seems.
>
> Bob Stayton
> Sagehill Enterprises
> bobs@sagehill.net
>
>
> ----- Original Message -----
> From: "Steve Whitlatch" <swhitlat@getnet.net>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Saturday, January 24, 2004 6:33 PM
> Subject: [docbook-apps] Unexpected xref behavior; is this a case
> for Two-pass processing
>
> > 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/.
>
>
>
>
>
>
> To unsubscribe from this list, send a post to
> docbook-apps-unsubscribe@lists.oasis-open.org, or visit
> http://www.oasis-open.org/mlmanage/.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.