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>&nbsp;</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 &lt;[email protected]&gt;<br><b>Gesendet:</b>=
 Dienstag, April 18, 2023 10:53 PM<br><b>An:</b> [email protected] =
&lt;[email protected]&gt;<br><b>Betreff:</b> Online form gives 404 =
on certain schema (it can't handle?)<div>&nbsp;</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>&lt;root&gt;=0A=
<br> &nbsp; &lt;value&gt;axyughji&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;axgh&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;agh&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;h&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;agHXU&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;axXgh&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;axxhu&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;AXYUGHJIA&lt;/value&gt;=0A=
<br> &nbsp; &lt;value&gt;ATXYUGHM&lt;/value&gt;=0A=
<br>&lt;/root&gt;=0A=
<br>=0A=
<br>and here is the schema:=0A=
<br>=0A=
<br>&lt;xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"&gt;=0A=
<br>=0A=
<br> &nbsp; &lt;xs:element name=3D"root"&gt;=0A=
<br> &nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;=0A=
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;=0A=
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name=3D"valu=
e" type=3D"value-type" maxOccurs=3D"unbounded"/&gt;=0A=
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;=0A=
<br> &nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;=0A=
<br> &nbsp; &lt;/xs:element&gt;=0A=
<br>=0A=
<br> &nbsp; &lt;xs:simpleType name=3D"value-type"&gt;=0A=
<br> &nbsp;&nbsp;&nbsp; &lt;xs:restriction base=3D"xs:string"&gt;=0A=
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:minLength value=3D"0=
"/&gt;=0A=
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:maxLength value=3D"8=
"/&gt;=0A=
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;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)"/&gt;=0A=
<br> &nbsp;&nbsp;&nbsp; &lt;/xs:restriction&gt;=0A=
<br> &nbsp; &lt;/xs:simpleType&gt;=0A=
<br>=0A=
<br>&lt;/xs:schema&gt;=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>=