Hi Florent,
This is a known limitation for XSLTForms with TABLE.
The workaround is to explicitly add THEAD and TBODY elements:
<table>
<thead>
<tr>
<th>Thing</th>
</tr>
</thead>
<tbody>
<xf:repeat nodeset="/things/*">
<tr>
<td>
<xf:output ref="."/>
</td>
</tr>
</xf:repeat>
</tbody>
</table>
Thank you for your feedbacks!
-Alain
> Hi,
>
> With the example at the end of this email, I expect to get something
> like the following in the browser:
>
> Thing
> Un
> Deux
> Trois
> Quatre
>
> but I get instead the following:
>
> Thing
> Deux
> Thing
> Thing
>
> That is, the table header line replaces all regular lines, except
> the second one (and see, there is not 1 + 4 lines, but only 4). I've
> tested it with both Chrome and Safari on Mac OS X 10.6.8. The
> stylehseet xsltforms.xsl says:
>
> <dcterms:hasVersion>1.0RC</dcterms:hasVersion>
> <dcterms:created>2012-03-18</dcterms:created>
>
> I have no idea how to debug any farther. Any idea?
>
> Regards,
>
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
>
>
> <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
> <htmlxmlns:xf="http://www.w3.org/2002/xforms">
> <head>
> <title>Test</title>
> <xf:model>
> <xf:instanceid="docs">
> <thingsxmlns="">
> <thing>Un</thing>
> <thing>Deux</thing>
> <thing>Trois</thing>
> <thing>Quatre</thing>
> </things>
> </xf:instance>
> </xf:model>
> </head>
> <body>
> <table>
> <tr>
> <th>Thing</th>
> </tr>
> <xf:repeatnodeset="/things/*">
> <tr>
> <td>
> <xf:outputref="."/>
> </td>
> </tr>
> </xf:repeat>
> </table>
> </body>
> </html>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Xsltforms-support mailing list
> Xsl...@li...
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
|