xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Malorny <Klaus.Malo...@knipp.de>
Subject Re: table of contents
Date Wed, 21 Mar 2001 15:14:49 GMT
Karin Sicheritz wrote:
> Is it possible at all to use the generate-id() function for creating a
> table of contents when generating a pdf (with  XalanConmmandLine) from
> xml and xsl? Fop does not seem create a unique id, for the block in
> question. The error message is the following:
>  [2FATAL ERROR: The id "generate-id()" already exists in this document
> The code used in the xsl file is the following for the main pages:
>   <xsl:for-each select="//section">
>       <fo:block
>         text-align="start"
>         font-size="12pt"
>         line-height="21pt"
>         font-weight="bold"
>         font-family="Helvetica"
>         space-after.optimum="10pt"
>         id="generate-id(.)">

Hi Karin,

the "generate-id(.)" is taken as a literal and not evaluated as an XPath.
Either put it in curly braces or use xsl:attribute, e.g.




To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org

View raw message