Menu

#16 Wrong spelling for dateTime primitive datatype

open
nobody
None
5
2007-05-14
2007-05-14
No

According to W3C the right spelling for the datetime datatype is dateTime.
However, this spelling is not accepted by AJAXform.

Test:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<head>
<xf:model id="boamp" >
<xf:instance xmlns="">
<offres>2002-05-16T16:00:00:00</offres>
</xf:instance>
<xf:bind nodeset="offres" type="xsd:datetime" />
<xf:submission id="env" action="e.sh" method="post" />
</xf:model>
</head>

<body>
<xf:group ref="offres">
<xf:input ref=".">
<xf:label>not working</xf:label>
</xf:input>
</xf:group>

<xf:submit submission="env" />
</body>
</html>

Exchanging
<xf:bind nodeset="offres" type="xsd:dateTime" /> by
<xf:bind nodeset="offres" type="xsd:datetime" />
makes it work.

If needed I will go inside the source to fix it.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.