Re: [Xsltforms-support] using schema in xforms +model
Brought to you by:
alain-couthures
From: Javier D. <jd...@ge...> - 2009-11-12 09:47:02
|
COUTHURES Alain escribió: > Hello, >> I am trying to use schemas in model with xsltforms and I it is >> impossible to me to make it work. >> >> I also don't find any example in xsltforms using schema. Is this feaute >> totally implemented in xsltforms? > No this feature is not yet fully implemented. Only simpleType is > supported. I see in the example you have provided that there is an complexType: <xsd:schema targetNamespace="http://commerce.example.com/payment"> <xsd:simpleType name="ccnumber"> <xsd:restriction base="xsd:string"> <xsd:pattern value="\d{14,18}"/> </xsd:restriction> </xsd:simpleType> <xsd:element name="payment"> <xsd:complexType> <xsd:sequence> <xsd:element name="number" type="my:ccnumber" minOccurs="0"/> <xsd:element name="expiry" type="xsd:gYearMonth" minOccurs="0"/> </xsd:sequence> <xsd:attribute name="method" type="xsd:string"/> </xsd:complexType> </xsd:element> </xsd:schema> What do you refer with "Only simpleType is supported"? >> If yes, does have anybody an example >> that works with xsltforms? >> > You can have a look at > http://www.agencexml.com/xforms-tests/testsuite/XForms1.1/Edition1/Chapt02/2.3.a.xhtml > Thank you for the example. By the way, is there any place where I can see which parts of xsltforms are yet noy fully implemented? > > Best regards, > > -Alain |