[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] customizing output of <see> in index
I can't see any reason why you should be getting that error. Your customization layer looks correct. What XSLT engine are you using? Have you tried opening up the generated *.fo file in a text editor? What does the content of it look like? Cheryl Chase <cheryl@isna.org> writes: > 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'. -- Michael Smith http://sideshowbarker.net/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]