Ok, I tested this with the snapshot for 27-Aug-10 and it did not work right. So 
the issue appears to be in the repository stylesheets.

The symptoms are that there are no number labeling at all except for the TOC.

Can anyone confirm this?

Here is the xml and style sheet:
---------------
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.docbook.org/xml/4.5/docbookx.dtd";>

<chapter><title>Test</title>
 <section>
   <title>Calibration Schedule</title>

     <para>Check number 2 calibration using the <emphasis 
role="bold">froggy</emphasis>
          procedures. See <xref linkend="TCL-sys"/>. </para>
 </section>

  <section id="TCL-sys">

    <title>Tension Control Link</title>

    <para>This system is used to verify calibration and provides a completely 
independent check
        of force measurement calibration. The Tension Calibration System is 
traceable to the U.S.
        National Institute of Standards and Technology. Needed to perform the 
calibration are two
        wood-faced steel paddles for insertion into the clamps, a tension load 
cell with steel pins
        for attachment to the paddles and a readout (TCL).</para>    
   </section>
</chapter>
-----------------------------

Customization XSL
-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
    xmlns:fo="http://www.w3.org/1999/XSL/Format";>

  <!-- Include the company standard stylesheet -->
    <xsl:import href="../../doctools/docbook-xsl-1.75.2/fo/docbook.xsl"/>

    <xsl:param name="xref.with.number.and.title">1</xsl:param>
    <xsl:param name="section.label.includes.component.label">1</xsl:param>
    <xsl:param name="section.autolabel">1</xsl:param>
    <xsl:param name="section.autolabel.max.depth">10</xsl:param>
    <xsl:param name="chapter.autolabel">1</xsl:param>
    <xsl:param name="generate.section.toc.level">2</xsl:param>
    <xsl:param name="toc.max.depth" select="6"></xsl:param>

    <xsl:param name="label.from.part" select="1"></xsl:param>
    <xsl:param name="component.label.includes.part.label" 
select="1"></xsl:param>
</xsl:stylesheet>




In a message dated 09/03/10 11:56:21 Pacific Daylight Time, deannelson writes:
Bob, 
I'm using just the simple xrefs with linkends pointing to IDs. That's what is 
so strange.

OK I just did some testing with clean 1.75.2 and it works as advertised with 
and without my customization. I had done some updates to the 1.75.2 from the 
subversion that seems to have broken some of the labeling. So maybe I need to 
try the new release candidate first before I try to dig out the updates to 
1.75.2.

More later...

Dean


In a message dated 09/03/10 11:12:03 Pacific Daylight Time, b...@sagehill.net 
writes:
Hi Dean,
I can't duplicate you problem.  I just tried a small customization that imports 
1.75.2 and sets the params you listed, and I get xrefs to sections showing as:

Section 1.2, "Section Title"

So it seems to work in the base stylesheets, and I cannot tell what is going 
wrong on your system.  Are you using xrefstyle attributes in your xrefs?

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


----- Original Message ----- 
From: deannelson 
To: docbook-apps@lists.oasis-open.org 
Sent: Friday, September 03, 2010 10:39 AM
Subject: [docbook-apps] XREF text/label issue


Hello,

I have an issue that has either popped up or I just realized it. It has to do 
with the XREF in certain instances it does not display the numbered sections 
(i.e "see 1.2.3 Start Up Procedures"). This is correct when referencing figures 
and chapters, but it leaves off the number reference on sections and procedures 
and just leaves the title.

I'm pretty sure I have done something silly in the customization so I tried a 
bare 1.75.2 stylesheet with the following additions but could not seem to 
activate the number references, so I can't really say for sure that it happens 
in the stock stylesheets.


    <xsl:param name="xref.with.number.and.title">1</xsl:param>
    <xsl:param name="section.label.includes.component.label">1</xsl:param>
    <xsl:param name="section.autolabel">1</xsl:param>
    <xsl:param name="section.autolabel.max.depth">10</xsl:param>
    <xsl:param name="chapter.autolabel">1</xsl:param>
    <xsl:param name="generate.section.toc.level">2</xsl:param>
    <xsl:param name="toc.max.depth" select="6"></xsl:param>

    <xsl:param name="label.from.part" select="1"></xsl:param>
    <xsl:param name="component.label.includes.part.label" 
select="1"></xsl:param>


So two questions:
1. What do I need to do to activate the numbered references on the above 
customization. I would assume that the first line should do it?
2. Any ideas where to check? Is this a design issue in the DB XSL that I missed?

Thanks
Dean Nelson

Reply via email to