[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] display indexterms inline
Hi Cheryl, You said the customization caused "a" sidebar to disappear, but not "all" sidebars. An indexterm element can appear just about anywhere in a DocBook document. Some of those locations may not be valid in XSL-FO for inserting an fo:block. It may be that you accidentally created some invalid XSL-FO in or near a sidebar that the renderer omitted. The XSL-FO processor should generate an error message, though. The FO stylesheet has a template named 'inline.or.block' that can help you. It tests various element contexts to see if it would be appropriate to insert a fo:block or an fo:inline. It is used for indexterms when being processed for Antenna House because it does not accept fo:wrapper as a carrier of an id attribute (to be the target of the index link). Look in fo/index.xsl for the template that starts with this to see how to use it: <xsl:template match="indexterm" name="indexterm"> Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Cheryl Chase" <cheryl@isna.org> To: <docbook-apps@lists.oasis-open.org> Sent: Thursday, September 08, 2005 12:32 AM Subject: [docbook-apps] display indexterms inline > While working on generating an index, I found it useful to produce a > formatted version of my document that has the indexterms displayed > where I entered them. > > I accomplished this with the following customization. > > However, this customization apparently caused a sidebar to be > entirely omitted from the formatted result. Does this make sense? > > Thanks, > Cheryl > > <!-- display term in red, small font (for checking work on indexing) --> > > <xsl:template match="indexterm" name="indexterm"> > > > <fo:block font-size="8pt"> > <fo:inline color="red"> > <xsl:value-of select="primary"/> > <xsl:if test="secondary"> > , <xsl:value-of select="secondary"/> > </xsl:if> > </fo:inline> > </fo:block> > > </xsl:template> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]