Dan
I am using a type attribute in a xf:bind tag to provide a constraint on a field
value.
<xf:bind nodeset="instance('ARN')//AttendantCircumstancesRecord/RecordType"
type="mysc:ACRRecordType2" readonly="false()"/>
The types come from an XML Schema that I provide reference to in the xf:model
If I set the type to the following regular expression it works:
<xsd:simpleType name="ACRRecordType2">
<xsd:restriction base="xsd:string">
<xsd:length value="2"/>
<xsd:pattern value="1[1|5]"/>
</xsd:restriction>
</xsd:simpleType>
but if I use an XML Schema enumeration such as the one below it doesn't
<xsd:simpleType name="ACRRecordType2">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="11"/>
<xsd:enumeration value="15"/>
</xsd:restriction>
</xsd:simpleType>
Peter
> -----Original Message-----
> From: [email protected]
> Sent: Sun, 6 May 2012 15:25:17 -0500
> To: [email protected]
> Subject: Re: [Xsltforms-support] Examples of simple XSD restrictions
>
> Peter,
>
> Can yo be a bit more specific? Do you mean a dynamic selection list
> also known as a "cascading select" or "dependent select" where one
> selection list is restricted by another selection list?
>
> http://en.wikibooks.org/wiki/XForms/Dynamic_Selection_Lists
>
> If you can send us a more precise description we can create a example.
>
> - Dan
>
> On Sun, May 6, 2012 at 5:45 AM, peter winstanley <[email protected]> wrote:
>> I am looking for examples of usingĀ xsltforms to include restrictions on
>> enumerated simple types - can anyone help please
>>
>> thanks
>>
>> Peter
>> ________________________________
>> Free Online Photosharing - Share your photos online with your friends
>> and
>> family!
>> Visit http://www.inbox.com/photosharing to find out more!
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions
>> will include endpoint security, mobile security and the latest in
>> malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Xsltforms-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>>
>
>
>
> --
> Dan McCreary
> NoSQL Evangelist
> office: (952) 931-9198
> cell: (612) 986-1552
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support