cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Rech" <r...@iuw.fh-darmstadt.de>
Subject [SOLVED] sql-transformer output to pdf via xsl-fo doen't work
Date Thu, 13 Jan 2005 13:32:09 GMT
thank you so much Bertrand - it works fine now
when i use the namespace like  
<xsl:template match="sql:eventid">
thank you!

philipp


> > ...java.lang.RuntimeException: org.apache.fop.apps.FOPException: 
> > fo:flow must
> > contain block-level children...
> 
> Looks like this stays empty
> 
> >       <fo:flow flow-name="xsl-region-body">
> >         <xsl:apply-templates/>
> >       </fo:flow>
> 
> IIUC because your eventid element, for example, is in the SQL 
> namespace, because its ancestor is <rowset  
> ...xmlns="http://apache.org/cocoon/SQL/2.0">
> 
> So you must declare this namespace in your XSLT:
> 
> <xsl:stylesheet version="1.0"
> ...
> xmlns:sql="http://apache.org/cocoon/SQL/2.0"
>  >
> 
> And then match using this namespace like
> >   <xsl:template match="sql:eventid">
> 
> Note that debugging with views in the sitemap (or temporarily setting 
> an xml serializer instead of the fo2pdf one) would allow you to see the exact
XML that is passed to FOP, to find such problems.
> 
> -Bertrand
> 
> 
-- 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message