You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Pavani Mukthipudi <Pa...@Sun.COM> on 2001/08/29 13:57:18 UTC
Re: [Fwd: patch for Bug# 2093 Dynamic Validation and XML Schema]
Hi Elena,
I wasn't aware of it.I'm sorry 'bout it.
Please find the attached text file.
Thank you,
Pavani
> Date: Tue, 28 Aug 2001 12:30:38 -0400
> From: Elena Litani <el...@ca.ibm.com>
> X-Accept-Language: en,pdf
> To: Pavani.Mukthipudi@Sun.COM
> Subject: [Fwd: patch for Bug# 2093 Dynamic Validation and XML Schema]
> Content-Transfer-Encoding: 7bit
>
> Hi, Pavani,
>
> Did you copy/paste the patch? My cvs complains it is malformed.
> You should always send the patch as a text file.
>
> Can you send the file to me?
>
> Thank you,
> Elena.
>
> -------- Original Message --------
> Subject: patch for Bug# 2093 Dynamic Validation and XML Schema
> Date: Tue, 28 Aug 2001 05:07:43 +0000 (Asia/Calcutta)
> From: Pavani Mukthipudi <Pa...@Sun.COM>
> Reply-To: xerces-j-dev@xml.apache.org,Pavani Mukthipudi
> <Pa...@Sun.COM>
> To: xerces-j-dev@xml.apache.org
>
>
> cvs server: Diffing .
> Index: XMLValidator.java
> ===================================================================
> RCS file:
>
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/validators/common/Attic/XM
> LValidator.java,v
> retrieving revision 1.186
> diff -c -r1.186 XMLValidator.java
> *** XMLValidator.java 2001/08/09 19:21:49 1.186
> --- XMLValidator.java 2001/08/28 05:01:25
> ***************
> *** 1151,1156 ****
> --- 1151,1161 ----
> if (fNamespacesEnabled) {
> bindNamespacesToElementAndAttributes(element, fAttrList);
> }
> +
> + // modified
> + if (fDynamicValidation && fGrammar==null) {
> + fValidating = false;
> + }
>
> if (!fSeenRootElement) {
> fSeenRootElement = true;
> ***************
> *** 2413,2422 ****
> if (fGrammar == null) {
>
> fGrammar = fGrammarResolver.getGrammar("");
> - if (fDynamicValidation && fGrammar==null) {
> - fValidating = false;
> - }
>
> if (fGrammar != null) {
> if (fGrammar instanceof DTDGrammar) {
> fGrammarIsDTDGrammar = true;
> --- 2418,2431 ----
> if (fGrammar == null) {
>
> fGrammar = fGrammarResolver.getGrammar("");
>
> + // Schema file is not yet parsed.This check should be done
> after the
> method
> + // bindNamespacesToElementAndAttributes() is called.
> +
> + // if (fDynamicValidation && fGrammar==null) {
> + // fValidating = false;
> + // }
> +
> if (fGrammar != null) {
> if (fGrammar instanceof DTDGrammar) {
> fGrammarIsDTDGrammar = true;
>
>
>
> --
>
> Pavani Mukthipudi
> Sun Microsystems Inc.
>
> Phone: 080 - 2298989 Extn: 87390
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
--
Pavani Mukthipudi
Sun Microsystems Inc.
Phone: 080 - 2298989 Extn: 87390