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



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