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: Re: [docbook-apps] Problem with olinks in docbook5 with xsltproc


Hi Karl,
I believe the message about the label is because the target of the cross reference has no label. A "label" in DocBook XSL is the generated number associated with an element. By default, sections are not numbered, so the link cannot generate a number as requested. If you turn on section numbering, the label part will work.

I'll admit the message is a bit misleading since it refers to the olink element rather than the target element.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- From: "Karl O. Pinc" <kop@meme.com>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, March 28, 2012 2:17 PM
Subject: Re: [docbook-apps] Problem with olinks in docbook5 with xsltproc


On 03/28/2012 02:47:50 PM, Bob Stayton wrote:

 The olink
database elements are *not* in the DocBook namespace.  If you remove
the namespace
declaration from the targetset element in your olinkdb.xml, then it
will work.

Hi Bob,

Thanks very much for your help.  That worked,
both with entities and xinclude.
----------------------<snip>-----------------------

FYI, I still get an unexpected warning:

xsltproc --nonet --xinclude \
    -o article.html \
    --stringparam target.database.document "olinkdb.xml" \
    --stringparam current.docid "testarticle" \
    html-nochunk.xsl \
    article.xml
Request for label of unexpected element: olink

This may be because Debian stable has relatively old stuff.

Getting rid of the xrefstyle="select: label quotedtitle"
attribute in the olink element gets rid of this message.
(Glancing at the output, it seems that the xrefstyle does
the right thing....)

Attached is the output xsltproc when using -v
(using xinclude), tarball of all files also attached.

The return code is 0 so at the moment I'm going to ignore the
problem and get on with my life.

More details should you desire them follow.

----------------------<snip>-----------------------

$ xsltproc --version
Using libxml 20708, libxslt 10126 and libexslt 815
xsltproc was compiled against libxml 20707, libxslt 10126 and libexslt
815
libxslt 10126 was compiled against libxml 20707
libexslt 815 was compiled against libxml 20707

----------------------<snip>-----------------------

The installed docbook packages:
$ aptitude search ~idocbook
i   docbook                         - standard SGML representation
system for te
i A docbook-dsssl                   - modular DocBook DSSSL
stylesheets, for pri
i   docbook-to-man                  - converter from DocBook SGML into
roff man
i   docbook-utils                   - Convert Docbook files to other
formats (HT
i A docbook-xml                     - standard XML documentation system
for soft
i A docbook-xsl                     - stylesheets for processing
DocBook XML to
i A docbook-xsl-doc-html            - stylesheets for processing
DocBook XML fil
i   docbook-xsl-ns                  - stylesheets for processing
DocBook 5 XML t
i   docbook5-xml                    - standard XML documentation system
for soft

----------------------<snip>-----------------------

docbookt-xml is Version: 5.0-2
docbook-xsl-ns is Version: 1.75.2+dfsg-5

Regards,


Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                -- Robert A. Heinlein




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