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] xrefs to titles.


> Is this a bug in the XSLT or a bug in the end user?

A little of both.  8^)
Generally it is better practice to link to the container rather than the 
title element.  But people do create links to title elements, and the 
stylesheets do attempt to support xrefs to titles.  They should either 
support it completely, or flag an error, and not just do a half job. I would 
suggest you file a bug report on SourceForge to get it fixed for the next 
release.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Andrew McFarland" <aamcfarland@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, January 31, 2008 8:21 AM
Subject: [docbook-apps] xrefs to titles.


> Hi,
>
> In the attached document I have 2 <xref/> elements. One points to a
> sect1. The other points to the title of the sect1.
>
> When I convert it to PDF the <xref/> to the sect1 becomes a hyperlink,
> but the <xref/> to the title does not. In both cases, the generated
> text is correct.
>
> When I convert it to HTML, both <xref/>s become hyperlinks, but the
> one that points to the title is broken. Again, in both cases, the
> generated text is correct.
>
> I'm using the 1.73.2 stylesheets, processing them to HTML and FO using
> xsltproc and converting the FO to PDF with FOP. There are no errors
> when generating the HTML, but when generating the PDF, FOP prints the
> following:
>
> andrewmcf@andrewmcfarland$ fop aam.fo aam.pdf
> 31-Jan-2008 16:11:30 org.apache.fop.area.RenderPagesModel 
> checkPreparedPages
> WARNING: Page 1: Unresolved id reference "bar" found.
>
> Is this a bug in the XSLT or a bug in the end user?
>
> Andrew
> -- 
> You did not read the manual
> Our tech writer is sad
> Locked in the toilet, he is  crying
>


--------------------------------------------------------------------------------


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org 



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