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] Xref to the screenshot element

Hi Ivan,
Thanks for pointing out that the stylesheets did not support the title element on screenshot.  The title was added in DocBook 5, but the stylesheet had not been updated.  I just checked in the updates to support screenshot titles, including xrefs to screenshot, for both HTML and FO.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
Sent: Saturday, June 30, 2012 1:11 AM
Subject: [docbook-apps] Xref to the screenshot element


I have just found this thread in the maillist archive:

At the end of the discussion, Kirill Churin wrote:
Could you suggest any workarounds I can use now, please?

Here is my rought solution for FO (added in my customization layer; the screenshot.title.properties attribute set is also there). For (X)HTML, just delete two italized lines (<fo:block>).

  <xsl:template match="d:screenshot/d:title">
    <fo:block xsl:use-attribute-sets="screenshot.title.properties formal.title.properties">
  <xsl:template match="d:screenshot" mode="xref-to">
    <xsl:param name="referrer"/>
    <xsl:param name="xrefstyle"/>
    <xsl:param name="verbose"/>
    <xsl:apply-templates select="." mode="object.xref.markup">
      <xsl:with-param name="purpose" select="'xref'"/>
      <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
      <xsl:with-param name="referrer" select="$referrer"/>
      <xsl:with-param name="verbose" select="$verbose"/>

In addition, the next string must be added to the common/en.xml file, under the <l:context name="xref"> section (please let me know if there is a better solution):

<l:template name="screenshot" text="%t"/>

I use XSL Stylesheets 1.77.1, namespaced.

Ivan Zaporozhets
Divine Dandelion℠ Online Publishing Service

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