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] removing elements from bookmarks (fop1)


Hi,

I found the solution. I modified the 

<xsl:template match="d:set|d:book|d:part|d:reference|d:preface|d:chapter|d:appendix|d:article
    |d:glossary|d:bibliography|d:index|d:setindex|d:refentry
    |d:sect1|d:sect2|d:sect3|d:sect4|d:sect5|d:section" mode="fop1.outline">

template in fop1.xsl. It was enough to comment out everything except <xsl:apply-templates select="*" mode="fop1.outline"/> inside the 'otherwise' part of the condition.

Robert

On Tue, Apr 10, 2012 at 2:17 PM, robert <rp.info@gmail.com> wrote:
Hi,

I have a book with the following structure:

<book xml:id="b1">
  <article xml:id="a1"/>
  <article xml:id="a2"/>
</book>

I use fop1 extension to generate bookmarks. The xsl-fo transforms generate something like this:

<fo:bookmark-tree>
  <fo:bookmark internal-destination="b1"/>
  <fo:bookmark internal-destination="a1"/>
  <fo:bookmark internal-destination="a2"/>
</fo:bookmark-tree>

Now, I would like the list to contain only articles, i.e.

<fo:bookmark-tree>
  <fo:bookmark internal-destination="a1"/>
  <fo:bookmark internal-destination="a2"/>
</fo:bookmark-tree>

How can I block the mechanism for book elements?

Thanks,
Robert



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