Also... It may seem weird. But if I remove the pdf.css file from the
templates folder, it works just fine...
I'm a bit confused right now.
Best regards,
Wilson
2010/5/18 Wilson Leão Neto <wilson.leao.neto(a)gmail.com>
Hello again!
Also, I don't know if it is a problem or not... Every children page I
create comes with *xwiki *as a prefix.
E.g. *xwiki*:Space1.0101
In the macro, the search is based on "where *doc.parent='$page'* order by
doc.creationDate". It only gets the documents without xwiki, in my case,
none. I added the xwiki getting "where *doc.parent='xwiki:$page'* order by
doc.creationDate".
I don't know if this is the cause of my problem, but I tested without the
xwiki and it works.
Any clues on how to deal with those problems?
Best regards,
Wilson
2010/5/18 Wilson Leão Neto <wilson.leao.neto(a)gmail.com>
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 <wilson.leao.neto(a)gmail.com>
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