List Info

Thread: Empty link in no.anchor.mode mode




Empty link in no.anchor.mode mode
user name
2007-07-23 16:08:04
Hello,

I've been trying to use the up to date Docbook Project
common stylesheets,  
in order to add olink and powerful xref features in
dblatex.

I've a section title containing a <link> like this:

<section id="section2">
   <title>Only a link in it [<link
linkend="ch04"  
endterm="ch04short"></link>]</title>
;
   ...
</section>

And:

<xref xrefstyle="select:title"
linkend="section2"/>

The link content is empty in the produced xref markup, which
is what gives  
the no.anchor.mode in common/titles.xsl:

<xsl:template match="link"
mode="no.anchor.mode">
   <xsl:apply-templates/>
</xsl:template>

The question is: is it the expected result? Shouldn't it
take into account  
the possibly existing enterm?

Regards,
BG

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Empty link in no.anchor.mode mode
user name
2007-07-23 16:15:34
I think it is a bug.  That template for "link" in
mode="no.anchor.mode" is 
too simple.  It does not take into account the endterm text
that should be 
generated in this case.  The idea is to generate the text
without making it 
an active link.  Can you file a bug report on the
SourceForge site?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net


----- Original Message ----- 
From: "ben.guillon" <ben.guillongmail.com>
To: <docbook-appslists.oasis-open.org>
Sent: Monday, July 23, 2007 2:08 PM
Subject: [docbook-apps] Empty link in no.anchor.mode mode


> Hello,
>
> I've been trying to use the up to date Docbook Project
common 
> stylesheets,  in order to add olink and powerful xref
features in 
> dblatex.
>
> I've a section title containing a <link> like
this:
>
> <section id="section2">
>   <title>Only a link in it [<link
linkend="ch04" 
>
endterm="ch04short"></link>]</title>
;
>   ...
> </section>
>
> And:
>
> <xref xrefstyle="select:title"
linkend="section2"/>
>
> The link content is empty in the produced xref markup,
which is what 
> gives  the no.anchor.mode in common/titles.xsl:
>
> <xsl:template match="link"
mode="no.anchor.mode">
>   <xsl:apply-templates/>
> </xsl:template>
>
> The question is: is it the expected result? Shouldn't
it take into 
> account  the possibly existing enterm?
>
> Regards,
> BG
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Empty link in no.anchor.mode mode
user name
2007-07-23 16:54:02
On Mon, 23 Jul 2007 14:15:34 -0700, Bob Stayton <bobssagehill.net> wrote:

> I think it is a bug.  That template for
"link" in mode="no.anchor.mode"  
> is too simple.  It does not take into account the
endterm text that  
> should be generated in this case.  The idea is to
generate the text  
> without making it an active link.  Can you file a bug
report on the  
> SourceForge site?

Done (#1759205).

Regards,
BG

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )