The problem appears at repeated loading of form in IE6, 7 and formsplayer 1.6, 1.8.
Irrespective of the fact how the scheme was connected (inline or through @schema) at the first loading - all OK, but after closing a window and repeated loading of form schema is not perceived correctly. If @type is described in bind, then - all OK. In the example bind is commented. At repeated loading field of date is displayed incorrectly. Besides, I have noticed, that the error disappears, if to delete XForms Markup from page with which the form opens (main page).
Main page code:
<?xml version="1.0" encoding="Windows-1251"?>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:fp="urn:formsplayer.com"
xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:in="http://www.formsplayer.com/inlineScript"
>
<head>
<title>Test form reload</title>
<object id="formsPlayer" width="0" height="0" classid="CLSid:4D0ABA11-C5F0-4478-991A-375C4B648F58">
<b>FormsPlayer has failed to load! Please check your installation.</b>
<br />
</object>
<?import NAMESPACE="xf" IMPLEMENTATION="#FormsPlayer"?>
<script type="text/javascript">
<!--
var win;
function wopen(nm,page)
{
if (win)
{
if(win.closed) { win=window.open(page,nm,"width=800, height=600"); }
else { win.location.href=page; }
}
else
{
win=window.open(page,nm,"width=800,height=600");
}
return 0;
}
function wclose()
{
if (!win.closed){ setTimeout('win.close();',10);}
return 0;
}
// -->
</script>
<xf:model>
<xf:instance id="inst1">
<ud:report xmlns:ud="ador:traffic">
<reg_date this="Registration date">2008-08-13</reg_date>
</ud:report>
</xf:instance>
</xf:model>
</head>
<body>
<input type="button" onclick="wopen('w1','form.xhtml')">Open</input>
<xf:trigger>
<xf:label>Open xforms</xf:label>
<xf:action ev:event="DOMActivate">
<xf:setvalue value="in:wopen('w1','form.xhtml')" ref="instance('inst1')/reg_date/@this" />
</xf:action>
</xf:trigger>
</body>
</html>
Form code:
<?xml version="1.0" encoding="Windows-1251"?>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:fp="urn:formsplayer.com"
xmlns:in="http://www.formsplayer.com/inlineScript"
xmlns:уд="ador:traffic"
xmlns:о="ador:common"
xmlns:cnt="ador:context"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251" />
<title>Form</title>
<object id="formsPlayer" width="0" height="0" classid="CLSID:4D0ABA11-C5F0-4478-991A-375C4B648F58">
<b>FormsPlayer has failed to load! Please check your installation.</b>
<br />
</object>
<?import NAMESPACE="xf" IMPLEMENTATION="#FormsPlayer"?>
<script type="text/javascript">
<!--
function closew()
{
setTimeout('opener.win.close();',5);
return 0;
}
// -->
</script>
<xf:model id="m0">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ud="ador:traffic" targetNamespace="ador:traffic">
<xs:element name="report">
<xs:complexType>
<xs:sequence>
<xs:element name="reg_date">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:date">
<xs:attribute name="this" type="xs:string" fixed="Registration date" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<xf:instance id="inst1">
<ud:report xmlns:ud="ador:traffic">
<reg_date this="Registration date">2008-08-13</reg_date>
</ud:report>
</xf:instance>
<!-- <xf:bind id="d1" ref="instance('inst1)/reg_date" type="xs:date" /> -->
</xf:model>
</head>
<body>
<xf:group id="form" ref="instance('inst1')">
<xf:input id="ID842" ref="reg_date">
<xf:label>Reg date</xf:label>
</xf:input>
<xf:trigger id="ID177">
<xf:label>Close</xf:label>
<xf:action ev:event="DOMActivate">
<xf:setvalue value="in:closew()" ref="reg_date/@this" />
</xf:action>
</xf:trigger>
</xf:group>
</body>
</html>
regards Vlad

Recent comments
14 weeks 3 days ago
14 weeks 3 days ago
18 weeks 14 hours ago
19 weeks 3 days ago
19 weeks 4 days ago
19 weeks 4 days ago
19 weeks 6 days ago
19 weeks 6 days ago
19 weeks 6 days ago
19 weeks 6 days ago