Bernard<br><br>My experience in using Wikipublisher in the past suggests that you have used PmWiki features in such a way as to result in the XML that wikipublisher generates being invalid. The easiest to spot is unbalanced markup (for example, using the wiki equivalent of <span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 153);">&lt;b&gt; </span>&lt;i&gt; some text <span style="color: rgb(0, 0, 153);">&lt;/b&gt; </span>&lt;/i&gt;</span> which works in HTML but has to be properly nested in XML <span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 153);">&lt;b&gt;</span> &lt;i&gt; some text &lt;/i&gt;</span> <span style="color: rgb(0, 0, 153);">&lt;/b&gt; </span><br>
<br>I wrote a mini-guide a couple of years ago on how to debug your wikipublisher problems for the engineers I was working with - here it is (sorry, cut and pasted from an intranet wiki, and refers to wikipublisher 2.2.2 - but I think the lessons are unchanged).<br>
<br>NB you might want to cross post to the wikipublisher forum <a href="mailto:wikipublisher@googlegroups.com">wikipublisher@googlegroups.com</a>.<br><br>HTH<br><br>Regards Nigel<br><b><br>My Wiki doesn&#39;t publish: What do I do?</b><br>
<p>You have pressed the PDF icon at the top right of the page, or the [options] button next to it.
</p>
<ol><li>On the followup page, you will see:
</li></ol><pre class="escaped"> Wikipublisher: turn web pages into a PDF file, delivered to your desktop<br><br> Wikipublisher is preparing the &#39;&#39;name of your page&#39;&#39; file for download. This takes a few seconds for short pages and up to two minutes for large page collections.<br>
<br> This version typesets text, lists, tables and images.<br><br> [ blank space for your email ] [email]<br> [ download ] [ debug]<br> [ back to page ]<br><br> Version wikipublisher-2.2.3: support the project <br></pre>
<p class="vspace">Normally you either fill in your email address and
press [email], or you press [download] to see the PDF as soon as it is
generated.
</p>
<p class="vspace">To debug, press (what a surprise) the [debug] button. 
</p>
<p class="vspace">After seeing a message:
</p><pre>Wikibook v1.0.5 is composing pdf; please wait.<br></pre><p>The XML is generated and you should either see:
</p><ol><li>a message saying everything is OK
</li><li>a message saying “Document at &lt;url&gt; does not appear to be in Wikipublisher XML” 
</li><li>an XMLLINT message telling you exactly what went wrong, with the XML and L<small><sup>A</sup></small>T<sub>E</sub>X source
</li></ol><p class="vspace">This can take a while (especially if it is all going wrong).
</p>
<p class="vspace">If you get an unhelpful message, it is worth checking whether the XML is valid. WikiPublisher uses a URL like this:(<span style="color: rgb(255, 0, 0);">with your wiki name and trailpage name, of course</span>)<br>
</p>
<pre class="escaped"><a href="http://www.wikipublisher.org/cgi-bin/mkpdf.pl/http://">http://www.wikipublisher.org/cgi-bin/mkpdf.pl/http://</a><span style="color: rgb(255, 0, 0);"><a href="http://my.wiki.com">my.wiki.com</a></span>/pmwiki.php?action=print&amp;ptype=print&amp;format=pdf&amp;n=<span style="color: rgb(255, 0, 0);"><a href="http://GS.GS">GS.GS</a></span>&amp;PHPSESSID=3e33f5065406e5139547c68e73990be1&amp;wpversion=2002003&amp;email=&amp;DEBUG=(debug)<br>
</pre>
<p>The <a href="http://mkpdf.pl">mkpdf.pl</a> script is passed a parameter which is the URL that
returns the necessary XML for conversion. Copy the entire URL, remove <code><a href="http://www.wikipublisher.org/cgi-bin/mkpdf.pl/">http://www.wikipublisher.org/cgi-bin/mkpdf.pl/</a></code> and then paste the new URL into a browser address bar and press Go. 
</p>
<h2>Validating XML</h2>
<p>You will get XML data returned. You can now validate this using an online service such as <a class="urllink" href="http://www.validome.org/xml/validate/" rel="nofollow">http://www.validome.org/xml/validate/</a>.
</p>
<p class="vspace">Either save the XML to a file and then upload it to
Validome, or simply paste the URL into Validome. If you see XML
entities like &amp;amp; in the URL, replace them with the real character
(&amp;).
</p>
<ul><li>If Validome can’t process the URL, then probably neither can WikiPublisher. You will see an error message like this:
</li></ul><pre class="escaped">Fatal Error<br>The Document `http://<span style="color: rgb(255, 0, 0);"><a href="http://my.wiki.com">my.wiki.com</a></span>/pmwiki.php?action=print&amp;ptype=print&amp;format=pdf&amp;n=<span style="color: rgb(255, 0, 0);"><a href="http://GS.GS">GS.GS</a></span>&amp;wpversion=2002003` could not load!<br>
Top<br></pre>
<ul><li>if you see something like this in the XML:
</li></ul><pre class="escaped">&lt;!--PageText--&gt;&lt;p&gt;&lt;visual markup=&#39;bf&#39;&gt;Password required&lt;/visual&gt; <br>&lt;/p&gt; <br>&lt;p&gt;&lt;!--tbook:p ERROR--&gt; <br>Password:  <br></pre>
<div class="indent">then obviously there is a problem with passwords
</div><ul><li>If the document isn’t XML, it is most likely that
something is unbalanced. Perhaps there is an opening element (eg &#39;&#39;&#39;
for bold) but no matching closing element; or perhaps two markup
elements have become interlaced (like &lt;b&gt;&lt;i&gt; xxx
&lt;/b&gt;&lt;/i&gt;). HTML is quite forgiving, so these wiki pages
often display correctly, but the transformation to XML doesn’t work.
</li><li>if you start to see errors in the XML saying that the document doesn’t match the DTD:
</li></ul><pre class="escaped">**** XMLLINT<br>1: doc.xml:4: element report: validity error : Element report content does not follow the DTD, expecting (surtitle? , title , subtitle , author* , date? , keywords? , year? , abstract? , meta* , typeset? , notice? , summary? , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , (section+ , references?)? , colophon?), got (surtitle title subtitle date typeset notice hr p hr summary section section section section section section section section section section section section section hr p colophon )<br>
2: doc.xml:195: element subsection: validity error : Element subsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , subsubsection*), got (heading p verbatim CDATA visual CDATA visual CDATA verbatim p verbatim p)<br>
3: doc.xml:242: element subsection: validity error : Element subsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , subsubsection*), got (heading CDATA verbatim p)<br>
4: doc.xml:305: element subsubsection: validity error : Element subsubsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , paragraph*), got (heading CDATA visual CDATA verbatim )<br>
5: doc.xml:316: element subsubsection: validity error : Element subsubsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , paragraph*), got (heading CDATA verbatim CDATA CDATA CDATA CDATA CDATA verbatim p itemize p )<br>
6: doc.xml:386: element subsubsection: validity error : Element subsubsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , paragraph*), got (heading CDATA CDATA CDATA CDATA CDATA verbatim )<br>
7: doc.xml:408: element subsubsection: validity error : Element subsubsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , paragraph*), got (heading CDATA verbatim p)<br>
8: doc.xml:415: element subsubsection: validity error : Element subsubsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , paragraph*), got (heading CDATA visual CDATA visual CDATA visual CDATA verbatim p itemize paragraph)<br>
9: doc.xml:468: element subsection: validity error : Element subsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , subsubsection*), got (heading CDATA CDATA CDATA CDATA CDATA verbatim )<br>
10: doc.xml:478: element subsubsection: validity error : Element subsubsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , paragraph*), got (heading p CDATA CDATA CDATA CDATA CDATA visual CDATA verbatim )<br>
11: doc.xml:493: element subsubsection: validity error : Element subsubsection content does not follow the DTD, expecting (heading , (dm | blockquote | h | tabular | verbatim | verse | description | enumerate | itemize | p | multipar | hr | group | math | ch | latex | figure | table | theorem | proof)* , paragraph*), got (heading CDATA verbatim p )<br>
12: Document doc.xml does not validate against file:///var/www/<a href="http://wikipublisher.org/wikibook/xml/wikibook.dtd">wikipublisher.org/wikibook/xml/wikibook.dtd</a><br></pre>
<div class="indent">then identify the &lt;section&gt; or &lt;subsection&gt; and try to diagnose the problem:
</div><pre class="escaped">195: &lt;subsection&gt;&lt;heading&gt;Starting the SQLstream engine&lt;/heading&gt;<br>196: &lt;p&gt;To start  your SQLstream server, double-click its desktop icon or run the script named &amp;ldquo;SQLstreamd&amp;rdquo;, located in the bin directory:<br>
197: &lt;/p&gt;&lt;verbatim&gt;<br>198:     $SQLSTREAM_HOME/bin/SQLstreamd<br>199: &lt;/verbatim&gt;<br>200: If you have included &lt;visual markup=&quot;tt&quot;&gt;$SQLSTREAM_HOME/bin&lt;/visual&gt; in your &lt;visual markup=&quot;tt&quot;&gt;PATH&lt;/visual&gt; then you can just run&lt;verbatim&gt;<br>
201:     SQLstreamd<br>202: &lt;/verbatim&gt; <br>203: &lt;p&gt;As the SQLstream server is started, your screen will show progress lines like these:<br><br></pre>
<dl><dd><ul><li>You can see here that at line 200 there is no &lt;p&gt; … &lt;/p&gt; between the &lt;verbatim&gt; sections
</li><li>This seems to be a Wikipublisher bug. Make sure that <code>[@</code>
code sections start on a new line, with a clear separation from the
prior line. It seems that if the code section toouches the preceding
text paragraph that the Wikipubisher skin misconstrues things and
forgets to put the text para into a &lt;p&gt; element.
</li><li>Markup that doesn’t work (note I have inserted a space into [@: (example markup follows)<br></li></ul></dd></dl><p style="margin-left: 120px;">If you have included <code>$SQLSTREAM_HOME/bin</code> in your <code>PATH</code> then you can just run
</p>
<pre style="margin-left: 120px;" class="escaped">[ @<br>    SQLstreamd<br>@ ] <br>As the SQLstream server is started, your screen will show progress lines like these:<br></pre>
<dl style="margin-left: 120px;"><dd><ul><li>Markup that does work; note the blank line inserted before <i>As the SQLstream server is started</i>:
</li></ul></dd></dl><pre style="margin-left: 120px;" class="escaped">[ @<br>    SQLstreamd<br>@ ] <br><br>As the SQLstream server is started, your screen will show progress lines like these:<br></pre>
<h2>Binary Chop</h2>
<p>If all else fails, use the binary chop method to eliminate parts of
the page until it does print. Eliminate entire markup sections using
(:if false:) .... (:ifend:) conditional markup. Ensure that any “start”
markup is always followed by the matching/balancing “end” markup (eg
&gt;&gt;red&lt;&lt; should always have a balancing &gt;&gt;&lt;&lt;
</p>
<h1>I am PDF typesetting an entire book</h1>
<p>You have left the PDF checkbox checked, and then pressed the [Typeset] button, or you have pressed the [PDF Options] button
</p><ol><li>Use the steps above to validate the XML
</li><li>Check that each wiki page in the book can print individually.
If the individual pages all print, but the document doesn’t, there is a
configuration or security problem :-(/
</li></ol><br><br><br><br><div class="gmail_quote">
On 6 March 2010 08:57, Bernard Bel <span dir="ltr">&lt;<a href="mailto:bernarbel@gmail.com" target="_blank">bernarbel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I installed wikipublisher on my pmwiki sites so that visitors can create PDF versions of the wiki pages.<br>
<br>
See the PDF button on page <a href="http://ciane.net" target="_blank">http://ciane.net</a> or <a href="http://wiki.leti.lt/DanseRecherche" target="_blank">http://wiki.leti.lt/DanseRecherche</a> for instance.<br>
<br>
Unfortunately on either site it generates an error message that I am unable to interpret :<br>
<br>
-----<br>
Document at <a href="http://wiki.leti.lt/pmwiki.php?n=DanseRecherche.DanseRecherche&amp;action=print&amp;ptype=print&amp;format=pdf&amp;authid=wikibook&amp;wpversion=2002016" target="_blank">http://wiki.leti.lt/pmwiki.php?n=DanseRecherche.DanseRecherche&amp;action=print&amp;ptype=print&amp;format=pdf&amp;authid=wikibook&amp;wpversion=2002016</a> does not appear to be in Wikipublisher XML<br>


-----<br>
<br>
I visited <a href="http://www.wikipublisher.org" target="_blank">http://www.wikipublisher.org</a> looking for support and posted a message on their site but got no reply.<br>
<br>
The URLs are properly registered on their site, so I guess that the problem may lie in the way I set up the implemented recipe.<br>
<br>
Any help would be greatly appreciated!<br>
<br>
Bernard Bel<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br>