forked from legastero/stanza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataform-4.xml
44 lines (44 loc) · 1.54 KB
/
dataform-4.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<x xmlns='jabber:x:data' type='form' xmlns:xdv='http://jabber.org/protocol/xdata-validate'>
<field label='Event Date/Time' var='evt.date' type='text-single'>
<value>2003-10-06T11:22:00-07:00</value>
<xdv:validate datatype='xs:dateTime'>
<xdv:basic />
</xdv:validate>
</field>
<field var='evt.category'
type='list-single'
label='Event Category'>
<xdv:validate>
<xdv:open/>
</xdv:validate>
<option><value>holiday</value></option>
<option><value>reminder</value></option>
<option><value>appointment</value></option>
</field>
<field var='evt.rsvp' type='text-single' label='RSVP Date/Time'>
<value>2003-10-06T11:22:00-07:00</value>
<xdv:validate datatype='xs:dateTime'>
<xdv:range min='2003-10-05T00:00:00-07:00'
max='2003-10-24T23:59:59-07:00'/>
</xdv:validate>
</field>
<field var='ssn' type='text-single' label='Social Security Number'>
<desc>This field should be your SSN, including '-' (e.g. 123-12-1234)</desc>
<xdv:validate>
<xdv:regex>([0-9]{3})-([0-9]{2})-([0-9]{4})</xdv:regex>
</xdv:validate>
</field>
<field var='evt.notify-methods'
type='list-multi'
label='Notify me by'>
<xdv:validate>
<xdv:basic/>
<xdv:list-range min='1' max='3'/>
</xdv:validate>
<option><value>e-mail</value></option>
<option><value>jabber/xmpp</value></option>
<option><value>work phone</value></option>
<option><value>home phone</value></option>
<option><value>cell phone</value></option>
</field>
</x>