[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [ANN] web based XML Schema validator
Hi Timothy, On Sun, Apr 5, 2020 at 1:26 PM Timothy Cook <timothywayne.cook@gmail.com> wrote:
Here's an example of how XSD validations can be done, when <xs:include> elements are present in the schema document, with the site I shared, 2) File upload 1: x1_valid.xml <X1> <x>hello</x> <y>hello1</y> <z>105</z> </X1> or:
x1_valid.xml
<X1> <x>hello</x> <y>hello1</y> <z>110</z> </X1> 3) File upload 2: x1.xsd <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="x1_included.xsd"/> <xs:element name="X1"> <xs:complexType> <xs:sequence> <xs:element name="x" type="xs:string"/> <xs:element name="y" type="xs:string"/> <xs:element name="z" type="restricted_Integer"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> 4) File upload 3: x1_included.xsd <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:simpleType name="restricted_Integer"> <xs:restriction base="xs:integer"> <xs:maxInclusive value="107"/> </xs:restriction> </xs:simpleType> </xs:schema> I don't think that, this requires XML Catalog, with the site I've shared. According to XSD <xs:include> spec, the targetNamespace of included XSD document must be null (in which case, included XSD document is subject to chameleon transformation), or it must be same as that of including XSD document. Regards, Mukul Gandhi
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|