<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>21 Feb 2018 12:41:37 Z</lastBuildDate><pubDate>21 Feb 2018 12:41:37 Z</pubDate><description>The validation on an attribute value defined in XSD as string with restriction, failed.&#13;
&#13;
Example:&#13;
&#13;
Attribute definition in XSD file:&#13;
..&#13;
  &lt;xs:attribute name="schemaVersion" use="required"&gt;&#13;
    &lt;xs:annotation&gt;&#13;
       &lt;xs:documentation&gt;Attribute edec Schema Version.&lt;/xs:documentation&gt;&#13;
    &lt;/xs:annotation&gt;&#13;
    &lt;xs:simpleType&gt;&#13;
        &lt;xs:restriction base="xs:string"&gt;&#13;
            &lt;xs:pattern value="[1-9]{0,1}[0-9]{1}\.[0-9]{1,2}"/&gt;&#13;
        &lt;/xs:restriction&gt;&#13;
    &lt;/xs:simpleType&gt;&#13;
  &lt;/xs:attribute&gt;&#13;
..&#13;
&#13;
if I assigne the value "4.0" to the attribute 'schemaVersion' the program end with error:&#13;
"The '4.0' value does not respect the XSD diagram."&#13;
&#13;
.. but the value is correct !!!&#13;
&#13;
Here the log error at run-time:&#13;
&#13;
Error at line 27 of Local Procedure Prova_1 process.&#13;
The '4.0' value does not respect the XSD diagram.&#13;
&#13;
Same problem occurse if I try to declare, inside project, a SOAP WebService that release me a WSDL with&#13;
same type of rescriction in pattern.&#13;
&#13;
Has anyone already detected this problem? &#13;
Is there a workaround?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64652-wd22-bug-xsd-validation-failed-using-restriction-facets/read.awp</link><title>[WD22] Bug - XSD validation failed using Restriction/Facets</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
