[Xsltforms-support] Problem with constraint attribute
Brought to you by:
alain-couthures
From: Aleksandar S. <ale...@pr...> - 2010-02-10 11:56:05
|
Hi, I discovered problem with constraint attribute in bind element. Here is my test xform: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="xsltforms/xsltforms.xsl"?> <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:an="http://www.together.at/2006/ANOTHER" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xpil="http://www.together.at/2006/XPIL1.0"> <head> <title>Contact</title> <xforms:model> <xforms:instance id="firstInstance"> <xpil:ExtendedWorkflowFacilityInstance> <xpil:StringDataInstance Id="firstname" Value="">INSIDE</xpil:StringDataInstance> </xpil:ExtendedWorkflowFacilityInstance> </xforms:instance> <xforms:bind id="firstname" nodeset="instance('firstInstance')/xpil:StringDataInstance/@Value" constraint="true()" type="xsd:string" /> </xforms:model> </head> <body> <h2>Contact</h2> <xforms:group appearance="minimal"> <xforms:input bind="firstname"> <xforms:label>Name</xforms:label> </xforms:input> </xforms:group> </body> </html> Problem is that input filed is marked as non-valid inspite constraint="true()". When I enter something in input filed it becomes valid. And when I remove value from that input filed it becomes non-valid again. Is this a bug or I'm missing something? Regards. |