The patch helped - I guess it's against trunk and I had to remove a ')' to avoid a syntax error.
On Wed, May 12, 2010 at 3:47 AM, André Rømcke <[email protected]> wrote: > Good, could the rest of you also try the patch (but remove your > ->preserveWhiteSpace hack first)? > > > Index: > kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php > =================================================================== > --- kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php > (revision 25250) > +++ kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php > (working copy) > @@ -447,7 +447,7 @@ > { > if ( $childOutput[0] === true )// is inline > { > - if( $childOutput[1] === ' ' ) > + if( $childOutput[1] === ' ' && isset( $childrenOutput[ $key > + 1 ] ) ) ) > { > continue; > } > > > Only thing needed now is ezxml example for unit test (If you have one, add > to issue). > > > On Wed, May 12, 2010 at 12:44 PM, Sebastien MOREL <[email protected]> > wrote: >> >> Hi, >> >> Yeah, thanks, it's solved ! >> >> I tried 2 solutions : >> >> - $this->Document->preserveWhiteSpace = false; >> This hack doesn't work for all the missing content. >> >> - the better fix is : >> http://issues.ez.no/IssueView.php?Id=16814&activeItem=1 >> >> After several tests, I hope that all our parsing problems are fixed. >> >> Thanks everybody for your help, it's very nice ! >> >> -- >> Sébastien MOREL >> >> -----Message d'origine----- >> De : [email protected] >> [mailto:[email protected]] De la part de Ronny Vedå >> Envoyé : mercredi 12 mai 2010 11:13 >> À : [email protected] >> Objet : Re: [Sdk-public] 3.9.0 to 4.3.0 - eZ XML problems >> >> We also had issues like this, and it was also related to white space >> in the ezxmltext attribute. >> >> I added a bug report here: >> http://issues.ez.no/IssueView.php?Id=16814&activeItem=1 >> >> >> mvh >> >> Ronny Vedå, NXC Ålesund >> >> >> >> 2010/5/11 Vjeran Vlahović <[email protected]>: >> > Hi Andre, >> > We had similar issue, I think the problem was in white spaces in ezxml. >> > We solved this by adding next row: >> > $this->Document->preserveWhiteSpace = false; >> > in kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php (line 191) >> > Best regards, >> > Vjeran >> > >> > >> > >> > On Tue, May 11, 2010 at 6:55 PM, André Rømcke <[email protected]> wrote: >> >> >> >> We had some similar issue in 4.2, di you run the site on 4.2 before you >> >> upgraded further to 4.3? >> >> The issue I'm referring to was fixed with unit test, so you can have a >> >> look at them for some possible clues: >> >> >> >> >> >> http://pubsvn.ez.no/nextgen/trunk/tests/tests/kernel/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput_regression.php >> >> >> >> On Tue, May 11, 2010 at 6:46 PM, Sebastien MOREL >> >> <[email protected]> >> >> wrote: >> >>> >> >>> Hi, >> >>> >> >>> >> >>> >> >>> I try to migrate an old eZ Publish instance in 3.9.0 to 4.3.0. >> >>> Everything >> >>> seemed ok, but some content in eZ XML block aren’t showing through >> >>> attribute_view_gui. >> >>> >> >>> To fix this, I must edit and republish this content. (the content is >> >>> correctly shown in ezoe) >> >>> >> >>> >> >>> >> >>> But it’s a big site and, I can’t do this manually. >> >>> >> >>> I think that I have to execute all the migration script. >> >>> >> >>> >> >>> >> >>> I searched in the database, and I found this : >> >>> >> >>> >> >>> >> >>> The difference between the two eZ XML data of the same content after >> >>> republish >> >>> >> >>> BEFORE republish : >> >>> >> >>> <paragraph> >> >>> >> >>> <strong>Etablissement Public, OSEO exerce trois métiers : </strong> >> >>> >> >>> </paragraph> >> >>> >> >>> >> >>> >> >>> AFTER republish: >> >>> >> >>> <paragraph>&nbsp; >> >>> >> >>> <strong>Etablissement Public, OSEO exerce trois métiers : >> >>> </strong> >> >>> >> >>> &nbsp; >> >>> >> >>> </paragraph> >> >>> >> >>> >> >>> >> >>> So, the only difference is the new &nbsp; . >> >>> >> >>> >> >>> >> >>> In the templates, I found this in the eZXMLBlock Attribute >> >>> ({$attribute.content|attribute(‘show’,1)} : >> >>> >> >>> >> >>> >> >>> input object[eZSimplifiedXMLInput] Object >> >>> >> >>> output object[eZXHTMLXMLOutput] Object >> >>> >> >>> pdf_output object[eZPDFXMLOutput] Object >> >>> >> >>> xml_data string >> >>> >> >>> ' <?xml version="1.0" encoding="utf-8"?> >> >>> >> >>> <section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" >> >>> >> >>> xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" >> >>> >> >>> xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> >> >>> >> >>> <paragraph>Exporter, s'implanter à l'étranger, établir des >> >>> coopérations technologiques en Europe ou avec d'autres pays. >> >>> Aides et >> >>> financements, guide de l'export, conseils..<link node_id="75">. >> >>> consultez notre rubrique "se développer à >> >>> l'international"</link> >> >>> >> >>> </paragraph> >> >>> >> >>> </section>' >> >>> >> >>> is_empty Boolean false >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> But the {$attribute.content.output|attribute(‘show’,1)} shows that >> >>> .output_text is EMPTY. >> >>> >> >>> Sometimes, only one paragraph is not shown among several paragraphs. >> >>> >> >>> >> >>> >> >>> It sounds like a xml parsing problem. >> >>> >> >>> >> >>> >> >>> Tomorrow I will try to add debug in the kernel… >> >>> >> >>> >> >>> >> >>> Have someone an idea for me ? >> >>> >> >>> >> >>> >> >>> Thanks you for your help. >> >>> >> >>> >> >>> >> >>> -- >> >>> Sébastien MOREL >> >>> >> >>> >> >>> >> >>> -- >> >>> Sdk-public mailing list >> >>> [email protected] >> >>> http://lists.ez.no/mailman/listinfo/sdk-public >> >>> >> >> >> >> >> >> >> >> -- >> >> Best Regards / Med vennlig hilsen >> >> André Rømcke >> >> eZ Premium Domain Owner >> >> eZ Systems AS (Oslo office) >> >> [email protected] | skype:ar.eznordic | www.ez.no >> >> >> >> -- >> >> Sdk-public mailing list >> >> [email protected] >> >> http://lists.ez.no/mailman/listinfo/sdk-public >> >> >> > >> > >> > >> > -- >> > Netgen d.o.o. >> > http://www.netgen.hr >> > Croatia, HR-10000 Zagreb >> > Ante Mike Tripala 3/I. kat >> > >> > tel. +385 1 3879 722 / fax. +385 1 3879 724 >> > gsm. +385 98 685 517 >> > >> > >> > -- >> > Sdk-public mailing list >> > [email protected] >> > http://lists.ez.no/mailman/listinfo/sdk-public >> > >> > >> -- >> Sdk-public mailing list >> [email protected] >> http://lists.ez.no/mailman/listinfo/sdk-public >> -- >> Sdk-public mailing list >> [email protected] >> http://lists.ez.no/mailman/listinfo/sdk-public > > > > -- > Best Regards / Med vennlig hilsen > André Rømcke > eZ Premium Domain Owner > eZ Systems AS (Oslo office) > [email protected] | skype:ar.eznordic | www.ez.no > > -- > Sdk-public mailing list > [email protected] > http://lists.ez.no/mailman/listinfo/sdk-public > > -- Sdk-public mailing list [email protected] http://lists.ez.no/mailman/listinfo/sdk-public
