Hello Alain and Company, 

 

I am a new user of XSLTForms, exploring the framework, and am quite
impressed, especially considering it's a free product.

 

However, I would like confirmation that what I am seeing is indeed the case,
or if I am missing something, regarding handling custom types.

 

In my model definition I reference a schema file, expecting to link up the
types defined therein to my bind statements.  The types I am trying to use
are simpleTypes.  Here is an example:

 

<xs:simpleType name="DateTimeWithTimezoneDatatype">
      <xs:annotation>
         <xs:documentation>A string representing a point in time with a
required timezone.</xs:documentation>
      </xs:annotation>
      <xs:restriction base="DateTimeDatatype">
         <xs:pattern
value="(((2000|2400|2800|(19|2[0-9](0[48]|[2468][048]|[13579][26])))-02-29)|
(((19|2[0-9])[0-9]{2})-02-(0[1-9]|1[0-9]|2[0-8]))|(((19|2[0-9])[0-9]{2})-(0[
13578]|10|12)-(0[1-9]|[12][0-9]|3[01]))|(((19|2[0-9])[0-9]{2})-(0[469]|11)-(
0[1-9]|[12][0-9]|30)))T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+
)?(Z|(-((0[0-9]|1[0-2]):00|0[39]:30)|\+((0[0-9]|1[0-4]):00|(0[34569]|10):30|
(0[58]|12):45)))"/>
      </xs:restriction>

</xs:simpleType>

 

And the bind trying to use it (the 'o:' namespace used in @ref is indeed
confirmed correct):

 

<xf:bind id="/published" ref="/o:published" type="
DateTimeWithTimezoneDatatype"/>

 

And finally, the input field:

<xf:input bind="/published" incremental="true" type-ref="
DateTimeWithTimezoneDatatype">

    <xf:label>

         <b>Published:</b>

    </xf:label>

</xf:input>

 

I get no ostensible complaints from the xf processor, but no validation
behavior either (i.e. entering invalid values provokes no response).  

 

(Note that the slashes in the @id and @bind attributes seem to be
permissible if non-standard.)

 

Can the XSLTForms processor handle the schema type as defined above?  It
seems to acknowledge the type, but not operate using it.

 

Or are users expected to create type-handling additions in xsltforms.js?

 

I am unclear as to the situation in XSLTForms 1.7, which is the version I am
using.

 

Please advise, and thank you in advance!

 

-Tony Bufort, 

AJB Consulting

 




 <http://www.ajbconsulting.us/> www.ajbconsulting.us

         Anthony J. (Tony) Bufort
              Owner / Sr. Developer




EMAIL:  <email:[email protected]> [email protected]




PHONE: (425) 221-4447




SKYPE: ajbufort




LINKEDIN:  <http://www.linkedin.com/in/anthonybufort>
www.linkedin.com/in/anthonybufort

 


                 

 A fully licensed, fully insured Washington state entity.                

 

 

_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to