Comment 4 for bug 101513

Revision history for this message
Nico Grubert (nicogrubert) wrote :

Hi Clemens,

below is the parsed XML content that will work, bot in kupu and forms
editor:

<?xml version="1.0" ?>
<doc><heading type="sub">test</heading><table column_info="L:33 L:33
L:33" type="plain"
columns="3"><row><field/><field/><field/></row></table><table
column_info="L:28 L:70" type="list"
columns="2"><row_heading>test</row_heading><row><field><p
type="normal">1.1.2005: 2%<br/><br/><strong>ab 1.7.2005:
1.75%<br/></strong></p></field><field><p
type="normal">test.<br/>test.<br/>test<strong/></p></field></row></table><table
column_info="L:33 L:33 L:33" type="plain"
columns="3"><row><field/><field/><field/></row></table><table
column_info="L:28 L:28 L:50" type="list"
columns="3"><row_heading>test</row_heading><row><field><p
type="normal"><strong>test</strong><br/>2.25%</p></field><field><p></p></field><field><p></p></field></row><row><field><list
type="none"><li>Variable: 2,25%<br/>Fest 02J: 1.95%<br/> 03J:
2.05%<br/> 04J: 2.25%<br/> 05J; 2.40%<br/> 06J:
2.55%<br/> 07J: 2.75%<br/> 08J: 2.90%<br/> 09J:
2.90%<br/> 10J: 3.10%</li></list></field><field><p
type="normal"><strong>ab
01.01.2006</strong><br/>2.20%<br/>2.35%<br/>2.50%<br/>2.65%<br/>2.75%<br/>2.80%<br/>2.95%<br/>3.05%<br/>3.10%</p></field><field><p
type="normal">test.<br/>test</p></field></row></table></doc>

Kind regards,
Nico

Clemens Klein-Robbenhaar wrote:
> Clemens Klein-Robbenhaar <email address hidden> added the comment:
>
> Dear Nico,
>
> thanks for the example.
>
> Clearly there is a 'column_info="L:0 L:0 L:0"' which is something
> that "should not happen".
> I cannot edit that document neither in kupu nor in the forms editor,
> and I have no idea how someone could get the document in that state.
> The preview does not work either, so the document cannot even be displayed.
>
> So if we are going to fix hat, we would have to fix it for the widgets
> system, too. (Same for XSLT and xml export).
>
> Before I add some defensive code to handle a state which should
> not be reachable in the first place, I ask the folks at infrae what
> they think about it.
>
> Kit: any opinion? Or get any of the technicans to nose in?
>
> ____________________________________________
> Silva issue tracker <email address hidden>
> <https://infrae.com/issue/silva/issue1398>
> ____________________________________________
>
>