Re: Online form gives 404 on certain schema (it can't handle?)
Bernd <[email protected]> Wed, 19 Apr 2023 00:15:08 +0200
| Newsgroups | gmane.text.xml.xerces-j.user |
|---|---|
| Message-ID | <[email protected]> |
<html><body><div dir=3D"ltr"><div style=3D"">=0A=
=0A=
=0A=
=0A=
</div><div style=3D""><div>=0A=
=0A=
<div>We would need to see the server side exception which is turned in=
to a 404 (which seems to be an odd error for a internal error) to answer th=
is. It looks ok (although it does not define a target namespace which is un=
common)</div>=0A=
<div id=3D"ms-outlook-mobile-signature"><div><br></div><div><br></div>=
<div style=3D"direction:ltr">-- </div><div style=3D"direction:ltr">http://b=
ernd.eckenfels.net</div></div>=0A=
</div>=0A=
=0A=
=0A=
<div> </div><hr style=3D"display:inline-block;width:98%" tabindex=3D"-=
1"><div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif"=
><b>Von:</b> Martin Honnen <[email protected]><br><b>Gesendet:</b>=
Dienstag, April 18, 2023 10:53 PM<br><b>An:</b> [email protected] =
<[email protected]><br><b>Betreff:</b> Online form gives 404 =
on certain schema (it can't handle?)<div> </div></font></div>Hi,=0A=
<br>=0A=
<br>I am trying to use the online validator=0A=
<br>https://www.softwarebytes.org/xmlvalidation/ to perform XSD 1.1=0A=
<br>validation with Xerces but on a certain schema I only get a 404 when=0A=
<br>submitting the form; here is the instance XML=0A=
<br>=0A=
<br><root>=0A=
<br> <value>axyughji</value>=0A=
<br> <value>axgh</value>=0A=
<br> <value>agh</value>=0A=
<br> <value>h</value>=0A=
<br> <value>agHXU</value>=0A=
<br> <value>axXgh</value>=0A=
<br> <value>axxhu</value>=0A=
<br> <value>AXYUGHJIA</value>=0A=
<br> <value>ATXYUGHM</value>=0A=
<br></root>=0A=
<br>=0A=
<br>and here is the schema:=0A=
<br>=0A=
<br><xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema">=0A=
<br>=0A=
<br> <xs:element name=3D"root">=0A=
<br> <xs:complexType>=0A=
<br> <xs:sequence>=0A=
<br> <xs:element name=3D"valu=
e" type=3D"value-type" maxOccurs=3D"unbounded"/>=0A=
<br> </xs:sequence>=0A=
<br> </xs:complexType>=0A=
<br> </xs:element>=0A=
<br>=0A=
<br> <xs:simpleType name=3D"value-type">=0A=
<br> <xs:restriction base=3D"xs:string">=0A=
<br> <xs:minLength value=3D"0=
"/>=0A=
<br> <xs:maxLength value=3D"8=
"/>=0A=
<br> <xs:assertion test=3D"ma=
tches($value, '^[axyughji]{0,8}$', 'i')=0A=
<br>and count(distinct-values(string-to-codepoints(lower-case($value)))) eq=
=0A=
<br>string-length($value)"/>=0A=
<br> </xs:restriction>=0A=
<br> </xs:simpleType>=0A=
<br>=0A=
<br></xs:schema>=0A=
<br>=0A=
<br>What do you think, is that a bug in the validator form, in the=0A=
<br>underlying Xerces parser or in my schema (runs fine through Saxon EE=0A=
<br>though)?=0A=
<br>=0A=
<br>=0A=
<br>=0A=
<br>---------------------------------------------------------------------=
=0A=
<br>To unsubscribe, e-mail: [email protected]=0A=
<br>For additional commands, e-mail: [email protected]=0A=
<br>=0A=
<br></div></div></body></html>=