Hello there! I get the error only when I try to export with the property
includechilds with a value >= 2
e.g, &includechilds=2
Here is the macro:
#macro(includeChildren $page $withPageBreaks)
#if($clevel!=0)
#foreach($childDocName in $xwiki.searchDocuments("where doc.parent='$page'
order by doc.creationDate"))
#set($childDoc = $xwiki.getDocument($childDocName))
#if(($childDoc)&&($childDoc.getSpace()!="Panels")&&($childDoc.getSpace()!="XWiki"))
#if($withPageBreaks)
#pagebreak()
#end
$childDoc.getRenderedContent()
#set($clevel = $xwiki.add($clevel,-1))
#includeChildren($childDocName $withPageBreaks)
#set($clevel = $xwiki.add($clevel,1))
#end
#end
#end
#end
Don't know where is the error... The recursion works just fine.
Wilson
2010/5/18 Wilson Leão Neto <[email protected]>
> Hello there!
>
> I'm trying to export a PDF including children pages, but everytime I tried
> it I got an exception.
>
> Detailed information:
>
> Error number 11015 in 11: Exception while exporting
> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property
> encountered on "fo:block-container": overflow-x (See position 43:916)
> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
> exporting
> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property
> encountered on "fo:block-container": overflow-x (See position 43:916)
> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:67)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
>
> ...
>
>
> I've googled it, looked at the macros, scavenged the code for an error...
> Nothing.
>
>
> Any clues?
>
>
> Best regards,
>
>
> Wilson
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users