[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-dev
Subject: RE: appinfo validation
From: Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date: 2009-05-05 19:08:38
Message-ID: OF064DF6C2.155EE08F-ON852575AD.0068E294-852575AD.006929ED () ca ! ibm ! com
[Download RAW message or body]
Hi Windy,
You probably also need to set "generate-synthetic-annotations" [1] to t=
rue.
Thanks.
[1]
http://xerces.apache.org/xerces2-j/features.html#generate-synthetic-ann=
otations
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
"Windchime" <w@zahuta.com> wrote on 05/05/2009 02:08:41 PM:
> Michael,
>
> Thanks. This works great. However, some (all?) other areas in the
> schema aren?t laxly validated. For example, a lax attribute on an
> xs:element. Any suggestions here?
>
>
> From: Michael Glavassevich [mailto:mrglavas@ca.ibm.com]
> Sent: Monday, May 04, 2009 8:46 PM
> To: j-users@xerces.apache.org
> Subject: Re: appinfo validation
>
> Hi Windy,
>
> If you want annotations to be laxly validated when the schema is
> loaded you could try setting the "validate-annotations" feature [1]
> to true. Xerces will use whatever declarations that are available to
> validate their content.
>
> Thanks.
>
> [1] http://xerces.apache.org/xerces2-j/features.html#validate-annotat=
ions
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> "Windchime" <w@zahuta.com> wrote on 05/04/2009 09:30:12 PM:
>
> > I am building a grammar pool and validating xml instances. All of
> > this works well except that the schema ?appinfo? elements are not
> > getting laxly validated (that is, they don?t seem to be validated a=
t
> > all). I can make this validate correctly by adding the XML Schema
> > for Schema into the grammar pool, but this just seems wrong (and
> > takes up a noticeable chunk of CPU)?is there a better way?
> >
> > Thanks,
> >
> > Windy=
[Attachment #3 (text/html)]
<html><body>
<p><tt>Hi Windy,</tt><br>
<br>
<tt>You probably also need to set "generate-synthetic-annotations" [1] to \
true.</tt><br> <br>
<tt>Thanks.</tt><br>
<br>
<tt>[1] <a href="http://xerces.apache.org/xerces2-j/features.html#generate-synthetic-a \
nnotations">http://xerces.apache.org/xerces2-j/features.html#generate-synthetic-annotations</a></tt><br>
<br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: mrglavas@ca.ibm.com</tt><br>
<tt>E-mail: mrglavas@apache.org</tt><br>
<br>
<tt>"Windchime" <w@zahuta.com> wrote on 05/05/2009 02:08:41 PM:<br>
<br>
> Michael,</tt><br>
<tt>> </tt><br>
<tt>> Thanks. This works great. However, some (all?) other areas in \
the <br> > schema aren’t laxly validated. For example, a lax attribute \
on an <br> > xs:element. Any suggestions here?</tt><br>
<tt>> </tt><br>
<tt>> <br>
> From: Michael Glavassevich [<a \
href="mailto:mrglavas@ca.ibm.com">mailto:mrglavas@ca.ibm.com</a>] <br> > Sent: \
Monday, May 04, 2009 8:46 PM<br> > To: j-users@xerces.apache.org<br>
> Subject: Re: appinfo validation</tt><br>
<tt>> </tt><br>
<tt>> Hi Windy,<br>
> <br>
> If you want annotations to be laxly validated when the schema is <br>
> loaded you could try setting the "validate-annotations" feature [1] \
<br> > to true. Xerces will use whatever declarations that are available to<br>
> validate their content.<br>
> <br>
> Thanks.<br>
> <br>
> [1] <a href="http://xerces.apache.org/xerces2-j/features.html#validate-annotations">http://xerces.apache.org/xerces2-j/features.html#validate-annotations</a><br>
> <br>
> Michael Glavassevich<br>
> XML Parser Development<br>
> IBM Toronto Lab<br>
> E-mail: mrglavas@ca.ibm.com<br>
> E-mail: mrglavas@apache.org<br>
> <br>
> "Windchime" <w@zahuta.com> wrote on 05/04/2009 09:30:12 PM:<br>
> <br>
> > I am building a grammar pool and validating xml instances. All of \
<br> > > this works well except that the schema ‘appinfo’ elements \
are not <br> > > getting laxly validated (that is, they don’t seem to be \
validated at<br> > > all). I can make this validate correctly by adding \
the XML Schema <br> > > for Schema into the grammar pool, but this just seems \
wrong (and <br> > > takes up a noticeable chunk of CPU)—is there a better \
way?<br> > > <br>
> > Thanks,<br>
> > <br>
> > Windy</tt></body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic