Hi John and Curtis,

You certainly can validate schemas with Xerces-j--personal.xsd included :
-).  But to do so you need an instance document which references the
schema; when validating the instance document Xerces will simultaneously
validate the corresponding schema.

Hopefully at some point Xerces will be able to validate a schema against te
Schema for schemas, but we're not quite there yet.  Building in
functionality to validate schemas alone is very important--especially if we
want to have grammar caching--and that's definitely on the agenda for
Xerces2.  But for the moment the best you can do is write a trivial
instance document that references your schema and use that to call Xerces's
schema validation capabilities; any help anyone can give to move things
along would certainly be welcome!

Cheers,
Neil


Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  416-448-3519, T/L 778-3519
E-mail:  [EMAIL PROTECTED]



"John L. Utz III" <[EMAIL PROTECTED]> on 05/14/2001 06:09:07 PM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:
Subject:  Re: personal.xsd example won't validate


mr brown;

are you asking about validating XML *with* a schema ( as mr ashish alludes
to in his response )

or are you asking about validating the *schema*, which is what i think you
are asking about?

i thought that the beauty of schema is that you are supposed to be able to
validate them.

but when i make that statement, i see the glimmer of a halting problem
here :-)

so, if we *can* validate schema, what do we validate them against? another
schema? a dtd?

if it's against a schema, then do we need to know how to validate that
schema against another schema?

o heavens, my head hurts.

is there somebody here who can tell me how all of this is supposed to
work?

1. Can i validate a schema?

2. if so, how do i validate it? against what?

tnx!

johnu

On Mon, 14 May 2001, Ashish wrote:

> try using
> bash-2.03$ java dom/DOMCount -v -n -s
> ~/xerces-1_3_1/data/personal-schema.xml
>
>
> ----- Original Message -----
> From: "Curtis Brown" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 14, 2001 1:56 PM
> Subject: personal.xsd example won't validate
>
>
> > Using xerces 1.3.1, I try to run the DOMCount sample on the
> > personal.xsd file from the data subdir, but I get the following
> > errors:
> >
> > bash-2.03$ java dom/DOMCount -v -n -s ~/xerces-1_3_1/data/personal.xsd
> > [Error] personal.xsd:2:53: General Schema Error: Grammar with uri 2:
> http://www.w3.org/2000/10/XMLSchema , can not found.
> > [Error] personal.xsd:2:53: Element type "schema" must be declared.
> > [Error] personal.xsd:4:28: Element type "element" must be declared.
> > ...
> >
> > Has anyone been able to validate personal.xsd?  Does anyone have an
> > example of a schema that uses namespaces that also validates?
> >
> > Thanks,
> > Curtis Brown
> > [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to