so im using xsd 1.1 to use assert in my code, whatever i do , i cant remove the error "Cannot find declaration of element "test1""
this is my code for :
<?xml version="1.0" encoding="utf-8"?>
<test1>
<Candidate name="John">61</Candidate>
<Candidate name="Sara">24</Candidate>
<Candidate name="Bill">15</Candidate>
</test1>
and this is my xsd with assert and xsd 1.1 extension
<xs:schema xmlns="http://www.mycompany.com/schema/app"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.mycompany.com/schema/app"
elementFormDefault="qualified"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
vc:minVersion="1.1">
<xs:element name="test1">
<xs:complexType>
<xs:sequence>
<xs:element name="Candidate" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:byte">
<xs:assert test="sum(Candidate)=100"/>
<xs:attribute type="xs:string" name="name" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
my goal is that i want to make this xml and xsd valid with each other