⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Repository
Download (816 Bytes)
Bug #3646
ยป test-castable-as.xsd
Francis Cave
, 2018-01-27 16:14
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:vc=
"http://www.w3.org/2007/XMLSchema-versioning"
elementFormDefault=
"qualified"
vc:minVersion=
"1.1"
targetNamespace=
"http://ns.franciscave.com/"
xmlns=
"http://ns.franciscave.com/"
>
<xs:element
name=
"test"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"constraint"
type=
"xs:string"
/>
<xs:element
name=
"foo"
type=
"xs:string"
/>
</xs:sequence>
<xs:assert
test=
"(constraint ne 'ST') or (foo castable as ST)"
/>
</xs:complexType>
</xs:element>
<xs:simpleType
name=
"ST"
>
<xs:restriction
base=
"xs:string"
>
<xs:enumeration
value=
"X"
/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
(1-1/1)
Loading...