assert validation error
using oXygen 16.1 with embedded Xerces. I have a failure on a simple regex (yes I know it could be performed using a pattern facet) used to demonstrate/test assertions. It passes with SaxonEE but fails with Xerces. The complexType: A US telephone number. Exactly 12 characters; 111-111- with a pattern match of "[0-9]{3}-[0-9]{3}-[0-9]{4}" The instance: Telephone Number (US) 2015-01-04T21:28:24Z 2012-09-09T06:33:19Z 111-111- en-US The element el-9c65478e-5cdf-413b-aa54-ce0574e48374 is declared as a type ct-9c65478e-5cdf-413b-aa54-ce0574e48374 in the schema. Should I file a bug report or is there an error in my code and Saxon ignores it? Thanks, Tim -- Timothy Cook LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook MLHIM http://www.mlhim.org
Re: assert validation error
Awesome! On Mon, Nov 3, 2014 at 8:18 AM, Octavian Nadolu wrote: > Hello Tim, > > You reported a similar problem in "XERCESJ-1640", that was fixed by Mukul. > It seems that the fix resolves also the your current validation problem. > We did not integrate this fix in the Xerces build that is distributed in > oXygen 16.1. This fix will be available in the next oXygen release. > > Do not hesitate to contact us you need further assistance or any other > information. > > Best Regards, > Octavian > > -- > Octavian Nadolu > XML Editorhttp://www.oxygenxml.com > > > > On 02.11.2014 13:31, Timothy W. Cook wrote: > > using oXygen 16.1 with embedded Xerces. > > I have a failure on a simple regex (yes I know it could be performed > using a pattern facet) used to demonstrate/test assertions. It passes with > SaxonEE but fails with Xerces. > > The complexType: > > xml:lang="en-US"> > > > A US telephone number. Exactly 12 characters; 111-111- with a > pattern match of "[0-9]{3}-[0-9]{3}-[0-9]{4}" > > > > > > > > name="data-name" type="xs:string" fixed="Telephone Number (US)"/> > ref="mlhim245:ExceptionalValue"/> > name="valid-time-begin" type="xs:dateTime"/> > name="valid-time-end" type="xs:dateTime"/> > name="DvString-dv" type="xs:string" default="111-111-"/> > name="language" type="xs:language"/> > > > > > > > The instance: > > Telephone Number (US) > > 2015-01-04T21:28:24Z > > 2012-09-09T06:33:19Z > 111-111- > en-US > > > The element el-9c65478e-5cdf-413b-aa54-ce0574e48374 is declared as a > type ct-9c65478e-5cdf-413b-aa54-ce0574e48374 in the schema. > > Should I file a bug report or is there an error in my code and Saxon > ignores it? > > Thanks, > Tim > > > > > > -- > > > Timothy Cook > LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook > MLHIM http://www.mlhim.org > > > > -- Timothy Cook LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook MLHIM http://www.mlhim.org
Re: web app for XSD 1.1 and 1.0 validations
I tested with one example of a valid document against a XML Schema 1.1 with one included schema. It worked great. I tested a couple of times invalidating the data and it seems to respond accordingly. Have you executed the full test suite on it? On Tue, Sep 15, 2015 at 10:13 AM, Mukul Gandhi wrote: > Hello there, >I've been thinking on this for a while, and now I'm ready to share the > outcomes with Xerces forums. I've developed a little web app, that accepts > XML and XSD documents from a user's workstation and returns validation > results to the user's browser. > > The link to this app is > http://xmlvalidation-mukulga.rhcloud.com > > This app uses the last XercesJ XSD 1.0 and 1.1 code bases. It'll be great > if any of you folks give this app a try, and post comments on this list. > > > > -- > Regards, > Mukul Gandhi > -- Timothy Cook LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook MLHIM http://www.mlhim.org
Re: web app for XSD 1.1 and 1.0 validations
BTW: This is an awesome contribution. Thank You! On Tue, Sep 15, 2015 at 10:24 AM, Timothy W. Cook wrote: > I tested with one example of a valid document against a XML Schema 1.1 > with one included schema. It worked great. I tested a couple of times > invalidating the data and it seems to respond accordingly. Have you > executed the full test suite on it? > > > On Tue, Sep 15, 2015 at 10:13 AM, Mukul Gandhi wrote: > >> Hello there, >>I've been thinking on this for a while, and now I'm ready to share the >> outcomes with Xerces forums. I've developed a little web app, that accepts >> XML and XSD documents from a user's workstation and returns validation >> results to the user's browser. >> >> The link to this app is >> http://xmlvalidation-mukulga.rhcloud.com >> >> This app uses the last XercesJ XSD 1.0 and 1.1 code bases. It'll be great >> if any of you folks give this app a try, and post comments on this list. >> >> >> >> -- >> Regards, >> Mukul Gandhi >> > > > > -- > > > Timothy Cook > LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook > MLHIM http://www.mlhim.org > > -- Timothy Cook LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook MLHIM http://www.mlhim.org
Re: web app for XSD 1.1 and 1.0 validations
On Tue, Sep 15, 2015 at 10:35 AM, Mukul Gandhi wrote: > > > But the app's jars are derived from the current SVN code base. I believe, > the app will work fine with all the XML and XSD documents available in the > test suite. > Certainly should and would likely be overkill to develop a client to do those tests. The question was just one that popped into my head once I saw it work so well. :-) -- Timothy Cook LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook MLHIM http://www.mlhim.org