This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] why does xsltproc create drafts from DocBook XML?


On Fri, 9 Jan 2004, Bob Stayton wrote:

> ----- Original Message -----
> From: "Tom Peters" <tpeters@xs4all.nl>

> > Excellent!  These parameters give the best output I've seen sofar.
> > Two things could be improved:

> > 2) The Register (Index) of <glossterm>s at the end refers to page 2 in all
> > cases.  What can I do about that?  Do I need to run a separate program to
> > build an index first?  This is built-in in the toolchain that uses TeX.
>
> I'm not sure what this is. Normally glossterms don't generate page
> references.
> Is this built from <indexterm> elements in the document?  If so, then it
> should
> work automatically with correct page references.  Can you provide a sample?

Yes, I think it comes from indexterms I put into glossentries:

<glossentry id="Absorptie">
        <glossterm>Absorptie</glossterm>
        <indexterm zone="A"><primary>Absorptie</primary></indexterm>
        <glossdef>
                <para></para>
                <glossseealso otherterm="Emissie"></glossseealso>
                <glossseealso otherterm="Spectrum"></glossseealso>
        </glossdef>
</glossentry>

Where in the file that contains the main text, which is different from the
file that has the glossary, I specified:

<part label="A" id="A">

(I want the main text file indexed, for the terms that are in the
glossary)


Apparently in the .fo file it translates to:

<fo:list-block provisional-distance-between-starts="2in"
provisional-label-separation="0.25in" space-before.optimum="1em"
space-before.minimum="0.8em" space-before.maximum="1.2em"><fo:list-item
space-before.optimum="1em" space-before.minimum="0.8em"
space-before.maximum="1.2em" id="Absorptie"><fo:list-item-label
end-indent="label-end()"><fo:block>Absorptie<fo:wrapper
id="id2906626"><!--Absorptie--></fo:wrapper></fo:block></fo:list-item-label><fo:list-item-body
start-indent="body-start()"><fo:block space-before.optimum="1em"
space-before.minimum="0.8em" space-before.maximum="1.2em"/><fo:block>Zie
ook Emissie, Spectrum.</fo:block></fo:list-item-body></fo:list-item>

I think the index entry in the .fo file is:

<fo:block><fo:block>Absorptie, <fo:basic-link
xmlns:rx="http://www.renderx.com/XSL/Extensions";
xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions";
internal-destination="A"><fo:page-number-citation
ref-id="A"/></fo:basic-link></fo:block>

--
#>!$!%(@^%#%*(&(#@#*$^@^$##*#@&(%)@**$!(&!^(#((#&%!)%*@)(&$($$%(@#)&*!^$)^@*^@)

	Tom "thriving on chaos" Peters


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


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