Login | Register
My pages Projects Community openCollabNet

Discussions > issues > Re: [cowiki-issues] pb in parsing, other issues highlighted

cowiki
Discussion topic

Back to topic list

Re: [cowiki-issues] pb in parsing, other issues highlighted

Author cmarble
Full name Archie Campbell
Date 2006-05-07 07:14:05 PDT
Message Raphael,

I'm disappointed to discover that the errors are a result of your use of
non-ASCII characters in your coWiki script. This is exactly what my work
was supposed to fix, so you can imagine my embarrassment! Unsure how
this was overlooked, we continue to a fix...

Sorted. Fix appends "<?xml version='1.0' encoding='ISO-8859-1' ?>"
preamble to the xml from the database in ReverseParser to kick the php
xml_parser into behaving. Where options fail, an xml tag has worked.

I made another couple of changes: emphasis processing now doesn't rely
on buffering the intervening string, it just bangs out the tags as
they're encountered (relies on <origin> output immediately after the
markup is picked up); fronthtmltransformer processes tables properly,
had been failing to clear a flag.

Raph - your wiki syntax needs updating: bold now takes two asterisks
"**bold**" and tables need a newline between each cell. e.g.

<table>
| cell1
| cell2
</table>

Stay in touch.

Regards,

Archie

Raphael Letocart wrote:

> Hi Archie,
>
> The move of the database worked without error, but the result was not
> very good: the documents and folders have been retrived correctly
> (except of the %TITLE% constant inside documents, see attached screen
> shots), but then it was not editable because of lots of xml datas
> inside...
>
>
> eg : the source of the document (cowiki 0.3.4)
>
> + %TITLE%
>
> *Le portail internet des sociétés calédoniennes ((XL Programmation
> Micro)) et ((Pecsi)).*
>
> <q>
> Ceci est donc notre wiki. Son objectif est évidemment d'y mettre
> en commun toute la documentation, les howtos et outils nécéssaire
> à notre travail quotidien.
> </q>
>
> <table>
> | <plugin Embed src="/img/world.png" alt="Le Monde"> | <plugin
> Embed src="/img/nc.png" alt="Nouvelle-Caledonie">
> </table>
>
> the source of document after migrate to cowiki cvs version
>
> <p><b>XML error: Mismatched tag</b></p>
> <pre>]]>​<h1><var>​<name><![CDAT​A[TITLE]]></na​me></h1>​<p><strong>​<![CDATA[Le
> portail internet des sociétés calédoniennes
> ]]><link>​<idref><![CDA​TA[19]]></idre​f></link>​<![CDATA[ et
> ]]><link>​<idref><![CDA​TA[20]]></idre​f><![CDATA[PEC​SI]]></link​><![CDATA[.]]>​</strong></​p><![CDATA[​</pre>
>
> <p><b>XML error: Mismatched tag</b></p>
> <pre>]]>​<q><p><!​[CDATA[Ceci est donc notre wiki. Son objectif est
> évidemment d'y mettre en commun toute la documentation, les howtos et
> outils nécéssaire à notre travail quotidien.]]><​/p></q><​![CDATA[</pre>​
> <p><b>XML error: Mismatched tag</b></p>
> <pre>]]>​<table><tr>​<valign><![​CDATA[top]]></​valign><td>​<colspan><!​[CDATA[1]]></c​olspan><![CDAT​A[
> ]]><plugin>​<name><![CD​ATA[Embed]]></​name><src>​<![CDATA[/img/worl​d.png]]></src​><alt><![​CDATA[Le
> Monde]]></alt​></plugin>​<![CDATA[
> ]]></td>​<td><colspan​><![CDATA[1]]​></colspan>​<![CDATA[
> ]]><plugin>​<name><![CD​ATA[Embed]]></​name><src>​<![CDATA[/img/nc.p​ng]]></src>​<alt><![CDA​TA[Nouvelle-Caledoni​e]]></alt>​</plugin><![​CDATA[
> ]]></td>​</tr></table​><![CDATA[</p​re>
> <p><b>XML error: Mismatched tag</b></p>
> <pre>]]>​</document></d​ocument></pre​>
>
>
> After that, I tried with a fresh install database.
> All errors I send you yesterday was from a fresh database.
> An example of error: I'm trying to create a new document with the
> following content:
>
> + %TITLE%
>
> *Le portail internet des sociétés calédoniennes ((XL Programmation
> Micro)) et ((Pecsi)).*
>
> <q>
> Ceci est donc notre wiki. Son objectif est évidemment d'y mettre
> en commun toute la documentation, les howtos et outils nécéssaire
> à notre travail quotidien.
> </q>
>
> <table>
> | <plugin Embed src="/img/world.png" alt="Le Monde"> | <plugin
> Embed src="/img/nc.png" alt="Nouvelle-Caledonie">
> </table>
>
> And I got the followin error:
>
> *Fatal error*: Call to a member function get() on a non-object in
> */var/www/cowiki/inc​ludes/cowiki/class/r​ender/class.FrontHtm​lTransformer.php
> * on line *553
>
> *When I remove the links "((XL Programmation Micro)) et ((Pecsi))",
> the doc is validating correctly.
>
> Regards,
> Raphael
> *
>
> *
> On 5/7/06, *Archie Campbell* <cephalicmarble@b​lueyonder.co.uk
> <mailto:cephalicm​arble at blueyonder dot co.​uk>> wrote:
>
> Raphael,
>
> In order to understand what you are describing, I need to know
> exectly how the error occurs, so that I am able to cause the error
> for myself, and then I can diagnose the problem.
>
> So, from installation of latest CVS until the error occurs, I'm
> going to need a list of all the things you do.
>
> Importantly, did the setup task described as 'Move old stored
> wiki representation to new, stricter XML' run ok for you?
>
> If I can't reproduce the problem, I can't help you.
>
> Regards,
>
>
> Archie
>
Attachments

« Previous message in topic | 6 of 8 | Next message in topic »

Messages

Show all messages in topic

pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-03 22:06:01 PDT
     Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; cmarble Archie Campbell 2006-05-05 03:26:25 PDT
         Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-05 17:35:53 PDT
             Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; cmarble Archie Campbell 2006-05-06 06:14:11 PDT
                 Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-06 15:41:18 PDT
                     Re: [cowiki-issues] pb in parsing, other issues highlighted cmarble Archie Campbell 2006-05-07 07:14:05 PDT
                         Re: [cowiki-issues] pb in parsing, other issues highlighted Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-08 14:13:10 PDT
                             Re: [cowiki-issues] pb in parsing, other issues highlighted cmarble Archie Campbell 2006-05-08 15:05:45 PDT
Messages per page: