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] Changing default olink behavior


Hi,
There is no parameter option to do that.  You could customize the template named "olink.hottext" in common/olink.xsl, which generates the link text.  That template has grown to be quite large to handle all the options for generating the link text, so you would be copying a big template to your customization layer. In that template is a big xsl:choose, with the first option being to process the content:
 
  <xsl:choose>
    <!-- If it has elements or text (not just PI or comment) -->
    <xsl:when test="child::text() or child::*">
      <xsl:apply-templates/>
    </xsl:when>
   ...
 
You would need to add a condition to that xsl:when's test attribute to get finer control.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Sunday, August 29, 2010 10:53 AM
Subject: [docbook-apps] Changing default olink behavior

Hi there,

I would like to change the behavior of olinks so that by default the default olink text from the olink database is used instead of the link text (the contents of the olink element). However, I would like the writer to be able to specify individual cases that the link text should be used. I can think of easy ways to do this (e.g. I already preprocess the source, so I could just prune the link text unless it has some flag like xrefstyle=”use.olink.text”), but I was wondering if there’s a supported or better way.

 

Thanks,

David



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