Sorry, wrong email address.
---------- Forwarded message ---------
From: Robert Kirkpatrick <[email protected]>
Date: Tue, Oct 11, 2022 at 11:16 AM
Subject: xforms-repeat-item { display: table-row; }
To: Alain Couthures <[email protected]>
Cc: <[email protected]>
Hello,
Thank you for your reply to my previous post.
I have updated my case according to your indications (here-attached).
The repeat works now, but the presentation fails to produce the table
layout.
I found the above css directive in xsltforms.css, which prevents the
table-cell display.
I tested by commenting it out, but other issues arise..
Best regards,
TIA,
Robert.
<?xml version="1.0" encoding="utf-8"?>
<?xsltforms-options debug="no"?>
<html xmlns:ht="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms">
<ht:head>
<xf:model>
<xf:instance>
<game>
<row>
<spot>3</spot>
<spot />
<spot>?</spot>
</row>
<row>
<spot></spot>
<spot>7</spot>
<spot></spot>
</row>
</game>
</xf:instance>
<xf:submission id="do" />
</xf:model>
<ht:script type="text/javascript" src="http://localhost:1180/XForms/xsltforms/xsltforms.js">
<!-- -->
</ht:script>
</ht:head>
<body xmlns="http://www.w3.org/1999/xhtml">
<h1>XF test</h1>
<div class="table">
<xf:repeat nodeset="row">
<div class="row">
<xf:repeat nodeset="spot">
<div class="cell">
<!--<xf:switch ref="." xmlns:xf="http://www.w3.org/2002/xforms"><xf:case><xf:input /></xf:case><xf:case selected="false"><xf:output ref="." /></xf:case></xf:switch>-->
<xf:output ref="." />
</div>
</xf:repeat>
</div>
</xf:repeat>
</div>
<xf:submit submission="do" label="â¸"></xf:submit>
</body>
</html>_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support