You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Philipp Rech <re...@iuw.fh-darmstadt.de> on 2005/01/13 14:32:09 UTC

[SOLVED] sql-transformer output to pdf via xsl-fo doen't work

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