xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Rondepierre" <bruno.rondepie...@mdeo.fr>
Subject Re: Problem with FOP outline extension
Date Thu, 06 Jun 2002 08:21:09 GMT
Problem solved: I've add the declaration in the xsl:stylesheet tag. and
then, the bookmarks are correctly  generated in the PDF file.

Thanks.

----- Original Message -----
From: "J.Pietschmann" <j3322ptm@yahoo.de>
To: <fop-user@xml.apache.org>
Sent: Thursday, June 06, 2002 12:56 AM
Subject: Re: Problem with FOP outline extension


> Bruno Rondepierre wrote:
> > THE XSL FILE (tstBookmark.xslfo)
> Problem solved. You hit a Xalan bug.
> If you've looked into the log (hopefully, there *is* a log),
> you'd have seen FOP error messages containing:
> "...unknown...null^outline..."
>
> > -----------------Begin
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <xsl:stylesheet version="1.0"
> >   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >   xmlns:fo="http://www.w3.org/1999/XSL/Format">
> ...
> >   <xsl:template match="/">
> >     <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> >              xmlns:fox="http://xml.apache.org/fop/extensions">
> ...
> >     </fo:root>
> >   </xsl:template>
> >
> >   <!-- Bookmark: book's type -->
> >   <xsl:template match="booktype" mode="toc">
> >     <fox:outline internal-destination="toc{@id}">
> >       <fox:label><xsl:value-of select="label"/></fox:label>
> At this point, the fox: namespace prefix is undeclared.
> The declaration above in the fo:root element has gone out of
> scope. The processor should have complained about this.
>
> Move the declaration for the fox: prefix to the xsl:stylesheet
> element. BTW the fo: declaration on fo:root is redundant.
>
> J.Pietschmann
>
>


Mime
View raw message