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: customizing output of <see> in index


I would like to have my index say:

     photgraphy; see medical photography

rather than the docbook default:

     photography (see medical photography)

I located the "see" code in fo/autoidx.xsl and copied it to my  
customization layer as shown below. Without making any changes to  
"see" code, validation generates the error shown below the code. Does  
this code need to be customized in some other context?


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                 xmlns:fo="http://www.w3.org/1999/XSL/Format";
                 version="1.0">

<xsl:import href="docbook-xsl-1.69.1/fo/docbook.xsl"/>



<xsl:template match="indexterm" mode="index-see">
    <xsl:param name="scope" select="."/>
   <xsl:param name="role" select="''"/>
   <xsl:param name="type" select="''"/>

    <fo:inline>
      <xsl:text> (</xsl:text>
      <xsl:call-template name="gentext">
        <xsl:with-param name="key" select="'see'"/>
      </xsl:call-template>
      <xsl:text> </xsl:text>
      <xsl:value-of select="see"/>
      <xsl:text>)</xsl:text>
    </fo:inline>
</xsl:template>

</xsl:stylesheet>

     [error] Element 'fo:wrapper' cannot be a child of 'fo:root'.



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