[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 &quot;generate-synthetic-annotations&quot; [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>&quot;Windchime&quot; &lt;w@zahuta.com&gt; wrote on 05/05/2009 02:08:41 PM:<br>
<br>
&gt; Michael,</tt><br>
<tt>&gt; &nbsp;</tt><br>
<tt>&gt; Thanks. &nbsp;This works great. &nbsp;However, some (all?) other areas in \
the <br> &gt; schema aren&#8217;t laxly validated. &nbsp;For example, a lax attribute \
on an <br> &gt; xs:element. &nbsp;Any suggestions here?</tt><br>
<tt>&gt; &nbsp;</tt><br>
<tt>&gt; <br>
&gt; From: Michael Glavassevich [<a \
href="mailto:mrglavas@ca.ibm.com">mailto:mrglavas@ca.ibm.com</a>] <br> &gt; Sent: \
Monday, May 04, 2009 8:46 PM<br> &gt; To: j-users@xerces.apache.org<br>
&gt; Subject: Re: appinfo validation</tt><br>
<tt>&gt; &nbsp;</tt><br>
<tt>&gt; Hi Windy,<br>
&gt; <br>
&gt; If you want annotations to be laxly validated when the schema is <br>
&gt; loaded you could try setting the &quot;validate-annotations&quot; feature [1] \
<br> &gt; to true. Xerces will use whatever declarations that are available to<br>
&gt; validate their content.<br>
&gt; <br>
&gt; Thanks.<br>
&gt; <br>
&gt; [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>
 &gt; <br>
&gt; Michael Glavassevich<br>
&gt; XML Parser Development<br>
&gt; IBM Toronto Lab<br>
&gt; E-mail: mrglavas@ca.ibm.com<br>
&gt; E-mail: mrglavas@apache.org<br>
&gt; <br>
&gt; &quot;Windchime&quot; &lt;w@zahuta.com&gt; wrote on 05/04/2009 09:30:12 PM:<br>
&gt; <br>
&gt; &gt; I am building a grammar pool and validating xml instances. &nbsp;All of \
<br> &gt; &gt; this works well except that the schema &#8216;appinfo&#8217; elements \
are not <br> &gt; &gt; getting laxly validated (that is, they don&#8217;t seem to be \
validated at<br> &gt; &gt; all). &nbsp;I can make this validate correctly by adding \
the XML Schema <br> &gt; &gt; for Schema into the grammar pool, but this just seems \
wrong (and <br> &gt; &gt; takes up a noticeable chunk of CPU)&#8212;is there a better \
way?<br> &gt; &gt; &nbsp;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; &nbsp;<br>
&gt; &gt; 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