From j-usersdeangardner@example.org Sun Sep 09 23:40:48 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 82422 invoked from network); 9 Sep 2007 23:40:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Sep 2007 23:40:47 -0000 Received: (qmail 37247 invoked by uid 500); 9 Sep 2007 23:40:35 -0000 Delivered-To: deangardner@example.org Received: (qmail 37202 invoked by uid 500); 9 Sep 2007 23:40:35 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 37181 invoked by uid 99); 9 Sep 2007 23:40:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Sep 2007 16:40:35 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO e4.ny.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Sep 2007 23:40:29 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [83.161.120.155]) by e4.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l89Ne8AE016086; Sun, 9 Sep 2007 19:40:08 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [83.161.120.155]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l89Ne8Mk692436; Sun, 9 Sep 2007 19:40:08 -0400 Received: from d01av01.pok.ibm.com (loopback [83.161.120.155]) by d01av01.pok.ibm.com (83.161.120.15560308/8.13.3) with ESMTP id l89Ne8a1011778; Sun, 9 Sep 2007 19:40:08 -0400 Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155]) by d01av01.pok.ibm.com (83.161.120.15560308/8.12.11) with ESMTP id l89Ne8xu011769; Sun, 9 Sep 2007 19:40:08 -0400 Subject: Fw: Apachecon early bird registration deadline To: deangardner@example.org, deangardner@example.org, deangardner@example.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: <deangardner@example.org> From: Michael Glavassevich <deangardner@example.org> Date: Sun, 9 Sep 2007 19:39:47 -0400 X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 09/09/2007 19:39:48 MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org FYI... Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: deangardner@example.org E-mail: deangardner@example.org Rich Bowen <deangardner@example.org> wrote on 09/06/2007 08:33:30 PM: > Dear PMC members, > > The participation of the PMCs and the participants in the various > Apache projects is needed to make ApacheCon a success. We count on > you to promote the conference on your project websites, and on your > project mailing lists. If the following message can be sent to your > project user mailing lists, it will give visibility to our conference= > in the group of people most likely to come to, and benefit from, this= > conference. Please help us out and forward this message on to those > lists, and put the banners on your website. > > In particular, if there is a training session about your project, > please consider mentioning it on your user mailing list, and > encouraging the speaker to post a little blurb about it to the list. > > Thanks. > > ---------------------------------------------------------------------= --- > ----- > > > ApacheCon US 2007 ? Atlanta GA > > To support everyone in the community attending this conference we are= > extending the Early Bird Registration to September 22, 2007. > > Register now and save money PLUS your registration supports the Open > Source Community. > > And PLEASE get this message out to your friends and deangardner@example.org. > > Buttons and banners available on site http://www.apachecon.com by > September 7,2007 > > Please help us get the word out! > > Thanks, > ApacheCon Team= --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Thu Sep 13 21:33:55 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 26886 invoked from network); 13 Sep 2007 21:33:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 13 Sep 2007 21:33:54 -0000 Received: (qmail 84799 invoked by uid 500); 13 Sep 2007 21:33:46 -0000 Delivered-To: deangardner@example.org Received: (qmail 84780 invoked by uid 500); 13 Sep 2007 21:33:45 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 84769 invoked by uid 99); 13 Sep 2007 21:33:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 14:33:45 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp.ufl.edu) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 21:35:23 +0000 Received: from formula.fcla.edu (formula.fcla.edu [83.161.120.155]) by smtp.ufl.edu (8.13.7/8.13.7/2.5.9) with ESMTP id l8DLXIHl1204396 for <deangardner@example.org>; Thu, 13 Sep 2007 17:33:19 -0400 Received: by formula.fcla.edu (Postfix, from userid 1000) id DB755EF147; Thu, 13 Sep 2007 17:33:18 -0400 (EDT) Date: Thu, 13 Sep 2007 17:33:18 -0400 From: Francesco Lazzarino <deangardner@example.org> To: deangardner@example.org Subject: xsd:dateTime validation Message-ID: <deangardner@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0rc3 (smtp.ufl.edu [83.161.120.155]); Thu, 13 Sep 2007 17:33:19 -0400 (EDT) X-UFL-Spam-Status: hits=-1.44, required=5, tests=ALL_TRUSTED X-Scanned-By: CNS Open Systems Group (http://open-systems.ufl.edu/services/smtp-relay/) X-UFL-Scanned-By: CNS Open Systems Group (http://open-systems.ufl.edu/services/smtp-relay/) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: hits=-1.44, required=5, tests=ALL_TRUSTED I found a difference between the validation of xsd:dateTime in java5 and java6. I'm posting here because java[56] uses Xerces internally, if this is out of line/scope just let me know. Example: An attribute of type dateTime with its value set to: '2007-06-18 T09:42:00Z'. Notice the space before the T, which according to w3 is invalid. Java5 parses with no validation errors. Java6 parses with this: cvc-datatype-valid.1.2.1: '2007-06-18 T09:42:00Z' is not a valid value for 'dateTime'. Is this a validation option I can switch on in Java5 or is it a bug that is fixed in the newer Xerces (Thus java6)? What versions of Xerces are used in Java5 and Java6 respectively? I might be able to just use a newer Xerces directly instead of upgrade Java. -franco -- Francesco Lazzarino Digital Archive Programmer Florida Center for Library Automation http://daitss.fcla.edu --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Thu Sep 13 21:56:40 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 33150 invoked from network); 13 Sep 2007 21:56:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 13 Sep 2007 21:56:40 -0000 Received: (qmail 32422 invoked by uid 500); 13 Sep 2007 21:56:31 -0000 Delivered-To: deangardner@example.org Received: (qmail 32405 invoked by uid 500); 13 Sep 2007 21:56:31 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 32394 invoked by uid 99); 13 Sep 2007 21:56:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 14:56:31 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO e3.ny.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 21:58:07 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [83.161.120.155]) by e3.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l8DLu4c3025425 for <deangardner@example.org>; Thu, 13 Sep 2007 17:56:04 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [83.161.120.155]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8DLu4sh690648 for <deangardner@example.org>; Thu, 13 Sep 2007 17:56:04 -0400 Received: from d01av01.pok.ibm.com (loopback [83.161.120.155]) by d01av01.pok.ibm.com (83.161.120.15560308/8.13.3) with ESMTP id l8DLu4N0019895 for <deangardner@example.org>; Thu, 13 Sep 2007 17:56:04 -0400 Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155]) by d01av01.pok.ibm.com (83.161.120.15560308/8.12.11) with ESMTP id l8DLu4Ti019890 for <deangardner@example.org>; Thu, 13 Sep 2007 17:56:04 -0400 In-Reply-To: <deangardner@example.org> Subject: Re: xsd:dateTime validation To: deangardner@example.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: <deangardner@example.org> From: Michael Glavassevich <deangardner@example.org> Date: Thu, 13 Sep 2007 17:55:23 -0400 X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 09/13/2007 17:55:23 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Hi Francesco, I think this particular bug was fixed in Xerces-J 2.7.1 though have no idea how that relates to what Sun shipped in Java 5 & 6. They have their own forks of the codebase (maintained outside of Apache) which are based off releases that are several years old now and apparently have at least few bugs which no Xerces release has ever had. We're not involved in their development. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: deangardner@example.org E-mail: deangardner@example.org Francesco Lazzarino <deangardner@example.org> wrote on 09/13/2007 05:33:18 PM: > I found a difference between the validation of xsd:dateTime in java5 and > java6. > > I'm posting here because java[56] uses Xerces internally, if this is out > of line/scope just let me know. > > Example: > > An attribute of type dateTime with its value set to: '2007-06-18 T09:42:00Z'. > Notice the space before the T, which according to w3 is invalid. > > Java5 parses with no validation errors. > > Java6 parses with this: > cvc-datatype-valid.1.2.1: '2007-06-18 T09:42:00Z' is not a valid value > for 'dateTime'. > > Is this a validation option I can switch on in Java5 or is it a bug > that is fixed in the newer Xerces (Thus java6)? > > What versions of Xerces are used in Java5 and Java6 respectively? I > might be able to just use a newer Xerces directly instead of upgrade Java. > > -franco > > -- > Francesco Lazzarino > Digital Archive Programmer > Florida Center for Library Automation > http://daitss.fcla.edu > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: deangardner@example.org > For additional commands, e-mail: deangardner@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Sat Sep 15 05:39:50 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 84500 invoked from network); 15 Sep 2007 05:39:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 15 Sep 2007 05:39:48 -0000 Received: (qmail 43087 invoked by uid 500); 15 Sep 2007 05:39:37 -0000 Delivered-To: deangardner@example.org Received: (qmail 43036 invoked by uid 500); 15 Sep 2007 05:39:37 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 42994 invoked by uid 99); 15 Sep 2007 05:39:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 22:39:37 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO e6.ny.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Sep 2007 05:39:34 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [83.161.120.155]) by e6.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l8F5ec3V005231; Sat, 15 Sep 2007 01:40:38 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [83.161.120.155]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8F5dBul667334; Sat, 15 Sep 2007 01:39:11 -0400 Received: from d01av02.pok.ibm.com (loopback [83.161.120.155]) by d01av02.pok.ibm.com (83.161.120.15560308/8.13.3) with ESMTP id l8F5dBgP007108; Sat, 15 Sep 2007 01:39:11 -0400 Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155]) by d01av02.pok.ibm.com (83.161.120.15560308/8.12.11) with ESMTP id l8F5dAQ4007094; Sat, 15 Sep 2007 01:39:10 -0400 Subject: [ANNOUNCEMENT]: Xerces-J 2.9.1 now available To: deangardner@example.org, deangardner@example.org, deangardner@example.org, deangardner@example.org Cc: deangardner@example.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: <deangardner@example.org> From: Michael Glavassevich <deangardner@example.org> Date: Sat, 15 Sep 2007 01:38:18 -0400 X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 09/15/2007 01:38:22 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Hi everyone, The Xerces-J team is pleased to announce that version 2.9.1 of Xerces-J is now available. This release fixes several bugs which were present in Xerces-J 2.9.0. It also includes a few minor enhancements and performance improvements. Specifically, the changes introduced in this release are: * Added support for creating UIEvents and MouseEvents through the DOM Level 2 Events API. [Michael Glavassevich] * Improved the reporting of character conversion errors. The CharConversionException which triggered the fatal error is now available from SAXException.getException(). [Michael Glavassevich] * Reduced the performance penalty for using an EOFException internally to signal to the scanner that the end of the document has been reached. The exception is now cached, avoiding the expensive fillInStackTrace() on creation. [Michael Glavassevich] * Improved the performance of the XMLGregorianCalendar implementation. [Michael Glavassevich] * Implemented improvements in the processing of large minOccurs/maxOccurs on element/wildcard particles which once caused OutOfMemoryErrors to occur during validation. Note that an OutOfMemoryError may still occur if the minOccurs/maxOccurs are nested or appear on a sequence or choice model group. [Michael Glavassevich] * Improved the algorithm for checking the Unique Particle Attribution constraint so that it no longer causes an OutOfMemoryError for content models with large maxOccurs values. Note that this only applies to the checking of schema validity. An OutOfMemoryError may still occur if the schema contains large maxOccurs and is used to validate an instance document. [Peter McCracken] * Completed the implementation of XML Schema erratum E2-67. [Ed Merks, Khaled Noaman] * Implemented XML 1.0 Third Edition erratum E13. [Michael Glavassevich] * Fixed bugs in the implementation of Document.normalizeDocument() where it was not correctly re-evaluating Element.schemaTypeInfo, Attr.schemaTypeInfo, IDness or the [element content whitespace] property of text nodes when validating against a DTD or XML Schema. [Michael Glavassevich] * Fixed a thread-safety bug which could cause an ArrayIndexOutOfBoundsException or a NullPointerException to be thrown during DTD validation if a grammar pool is shared between multiple parser instances. [Michael Glavassevich] * Fixed a bug in the DOMConfiguration of a Document where it was processing the "schema-location" parameter as an atomic URI value instead of a whitespace separated list of URIs. [Michael Glavassevich] * Fixed a bug in the XInclude implementation where the Locator would report the location of the xi:include element in the top-level document as the location of all the document events in the included document or fragment. [Michael Glavassevich] * Fixed a bug in the JAXP schema validator which caused it to fail with a third-party DOM Level 3 implementation whose nodes can only be tested for identity using isSameNode(). [Michael Glavassevich] * Fixed several bugs in the XML schema processor which were exposed by running the W3C's XML Schema 1.0 2nd Edition test suite. [Michael Glavassevich] * Fixed several bugs in the DOM Level 2 Traversal and Range implementation. [Michael Glavassevich] * Fixed various bugs and made various improvements. [Dave Brosius, Michael Glavassevich, Khaled Noaman] For more information please visit: http://xerces.apache.org/xerces2-j/ Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: deangardner@example.org E-mail: deangardner@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Mon Sep 17 20:28:15 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 33072 invoked from network); 17 Sep 2007 20:28:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 17 Sep 2007 20:28:15 -0000 Received: (qmail 91804 invoked by uid 500); 17 Sep 2007 20:28:06 -0000 Delivered-To: deangardner@example.org Received: (qmail 91789 invoked by uid 500); 17 Sep 2007 20:28:06 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 91778 invoked by uid 99); 17 Sep 2007 20:28:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 13:28:05 -0700 X-ASF-Spam-Status: No, hits=4.3 required=10.0 tests=FH_MSGID_01C67,HTML_MESSAGE,SPF_PASS,SUBJ_ALL_CAPS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO Jb_va_exchange.jbmanage.corp) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 20:29:55 +0000 Received: from mail pickup service by Jb_va_exchange.jbmanage.corp with Microsoft SMTPSVC; Mon, 17 Sep 2007 16:27:41 -0400 Received: from jinglabtop ([83.161.120.155]) by Jb_va_exchange.jbmanage.corp with Microsoft SMTPSVC+1-904-295-2291); Mon, 17 Sep 2007 16:27:40 -0400 From: "Jing Yang" <deangardner@example.org> To: <deangardner@example.org> Subject: HTTP OUTGOING CACHING Date: Mon, 17 Sep 2007 16:26:28 -0400 Message-ID: <000001c7f969$07144640$153cd2c0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C7F947.8002A640" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acf5aQaYJfMsQSDCRu2Ko8xZ4L9WrQ== Content-Language: en-us X-CTCH-ID: _0B9FF9E7-067E-4F1F-9CAE-0A6152923EE6_ X-CTCH-RefID: str=0001.0A090206.46EEE33C.0022,ss=1,fgs=0 X-CTCH-Action: Ignore X-OriginalArrivalTime: 17 Sep 2007 20:27:40.0665 (UTC) FILETIME=[31DABE90:01C7F969] X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0001_01C7F947.8002A640 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit www.w3.org block my accessing due to re-questing files too often. I found one importing schema was <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> Does XSLoader provide the mechanism to avoid repeated loading schema during high capacity volume process ? How to work with this issue ? The Xerces is 2_9_0. The code is as below: System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom .DOMXSImplementationSourceImpl"); DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance(); XSImplementation impl = (XSImplementation) registry.getDOMImplementation("XS-Loader"); XSLoader schemaLoader = impl.createXSLoader(null); DOMConfiguration config = schemaLoader.getConfig(); // set error handler config.setParameter("error-handler", this); // set validation feature config.setParameter("validate", Boolean.TRUE); // parse document XSModel model = schemaLoader.loadURI(schemaURL); ------=_NextPart_000_0001_01C7F947.8002A640 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><a href=3D"http://www.w3.org">www.w3.org</a>&nbsp; = block my accessing&nbsp; due to re-questing files too often. = &nbsp;<o:p></o:p></p> <p class=3DMsoNormal style=3D'text-autospace:none'>I found&nbsp; one = &nbsp;&nbsp;importing schema was&nbsp; <span style=3D'font-size:12.0pt;font-family:"Times New = Roman","serif"; color:blue'>&lt;</span><span = style=3D'font-size:12.0pt;font-family:"Times New Roman","serif"; color:maroon'>xsd:import</span><span = style=3D'font-size:12.0pt;font-family:"Times New Roman","serif"; color:red'> &nbsp;namespace</span><span = style=3D'font-size:12.0pt;font-family: "Times New Roman","serif";color:blue'>=3D&quot;</span><span = style=3D'font-size: 12.0pt;font-family:"Times New = Roman","serif";color:black'>http://www.w3.org/XML/1998/namespace</span><s= pan style=3D'font-size:12.0pt;font-family:"Times New = Roman","serif";color:blue'>&quot;</span><span style=3D'font-size:12.0pt;font-family:"Times New = Roman","serif";color:red'> &nbsp;schemaLocation</span><span style=3D'font-size:12.0pt;font-family:"Times New = Roman","serif";color:blue'>=3D&quot;</span><span style=3D'font-size:12.0pt;font-family:"Times New = Roman","serif";color:black'>http://www.w3.org/2001/xml.xsd</span><span style=3D'font-size:12.0pt;font-family:"Times New = Roman","serif";color:blue'>&quot;/&gt;<o:p></o:p></span></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>Does XSLoader provide the mechanism to avoid&nbsp; = repeated loading &nbsp;schema during high capacity volume process = ?<o:p></o:p></p> <p class=3DMsoNormal>How to work with this issue ? The Xerces &nbsp;is = 2_9_0. The code is as below: <o:p></o:p></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:black'>System.<i>setProperty</i>(DOMImplementationRegistry.</span><= i><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#0000C0'>PROPERTY</span></i><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black'>,</span><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#2A00FF'>&quot;org.apache.xerces.dom.DOMXSImplementationSource= Impl&quot;</span><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black'>);</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:black'>DOMImplementationRegistry = registry =3D DOMImplementationRegistry.<i>newInstance</i>();</span><span = style=3D'font-size: 10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:black'>XSImplementation impl =3D (XSImplementation) registry.getDOMImplementation(</span><span = style=3D'font-size: 10.0pt;font-family:"Courier = New";color:#2A00FF'>&quot;XS-Loader&quot;</span><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black'>);</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:black'>XSLoader <span = style=3D'background:silver; mso-highlight:silver'>schemaLoader</span> =3D = impl.createXSLoader(</span><b><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#7F0055'>null</span></b><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black'>);</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:black'>DOMConfiguration config =3D <span style=3D'background:silver;mso-highlight:silver'>schemaLoader</span>.getC= onfig();</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:#3F7F5F'>// set error = handler</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:black'>config.setParameter(</span><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#2A00FF'>&quot;error-handler&quot;</span><span style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>, = </span><b><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#7F0055'>this</span></b><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black'>);</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:#3F7F5F'>// set validation = feature</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:black'>config.setParameter(</span><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#2A00FF'>&quot;validate&quot;</span><span style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>, = Boolean.</span><i><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#0000C0'>TRUE</span></i><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black'>);</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-autospace:none'><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:#3F7F5F'>//&nbsp;&nbsp;&nbsp; parse = document</span><span style=3D'font-size:10.0pt;font-family:"Courier = New"'><o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:black'>XSModel model =3D <span = style=3D'background:silver;mso-highlight:silver'>schemaLoader</span>.load= URI(</span><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:#0000C0'>schemaURL</span><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black'>);</span><o:p></o:p></p> </div> </body> </html> ------=_NextPart_000_0001_01C7F947.8002A640-- From j-usersdeangardner@example.org Mon Sep 17 21:05:01 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 54648 invoked from network); 17 Sep 2007 21:05:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 17 Sep 2007 21:05:00 -0000 Received: (qmail 38635 invoked by uid 500); 17 Sep 2007 21:04:52 -0000 Delivered-To: deangardner@example.org Received: (qmail 38297 invoked by uid 500); 17 Sep 2007 21:04:51 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 38286 invoked by uid 99); 17 Sep 2007 21:04:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 14:04:51 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp.ufl.edu) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 21:06:39 +0000 Received: from formula.fcla.edu (formula.fcla.edu [83.161.120.155]) by smtp.ufl.edu (8.13.7/8.13.7/2.5.9) with ESMTP id l8HL4NS11835164 for <deangardner@example.org>; Mon, 17 Sep 2007 17:04:24 -0400 Received: by formula.fcla.edu (Postfix, from userid 1000) id 75BC7EF146; Mon, 17 Sep 2007 17:04:23 -0400 (EDT) Date: Mon, 17 Sep 2007 17:04:23 -0400 From: Francesco Lazzarino <deangardner@example.org> To: deangardner@example.org Subject: Re: HTTP OUTGOING CACHING Message-ID: <deangardner@example.org> References: <000001c7f969$07144640$153cd2c0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c7f969$07144640$153cd2c0$@com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0rc3 (smtp.ufl.edu [83.161.120.155]); Mon, 17 Sep 2007 17:04:24 -0400 (EDT) X-UFL-Spam-Status: hits=-1.44, required=5, tests=ALL_TRUSTED X-Scanned-By: CNS Open Systems Group (http://open-systems.ufl.edu/services/smtp-relay/) X-UFL-Scanned-By: CNS Open Systems Group (http://open-systems.ufl.edu/services/smtp-relay/) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: hits=-1.44, required=5, tests=ALL_TRUSTED you can use an alternate EntityResolver. for an example check out: http://daitss.fcla.edu/browser/xmlvalidator/trunk it can be checked out via: svn co http://daitss.fcla.edu/repos/xmlvalidator/trunk/ its a validator that can use a filesystem based cache with temporal expiration. its straightforwardd code. no external jars. and if you want to use the code, its GPL. -franco On Mon, Sep 17, 2007 at 04:26:28PM -0400, Jing Yang wrote: > www.w3.org block my accessing due to re-questing files too often. > > I found one importing schema was <xsd:import > namespace="http://www.w3.org/XML/1998/namespace" > schemaLocation="http://www.w3.org/2001/xml.xsd"/> > > > > Does XSLoader provide the mechanism to avoid repeated loading schema > during high capacity volume process ? > > How to work with this issue ? The Xerces is 2_9_0. The code is as below: > > > > System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom > .DOMXSImplementationSourceImpl"); > > DOMImplementationRegistry registry = > DOMImplementationRegistry.newInstance(); > > XSImplementation impl = (XSImplementation) > registry.getDOMImplementation("XS-Loader"); > > XSLoader schemaLoader = impl.createXSLoader(null); > > DOMConfiguration config = schemaLoader.getConfig(); > > // set error handler > > config.setParameter("error-handler", this); > > // set validation feature > > config.setParameter("validate", Boolean.TRUE); > > // parse document > > XSModel model = schemaLoader.loadURI(schemaURL); > -- Francesco Lazzarino Digital Archive Programmer Florida Center for Library Automation http://daitss.fcla.edu --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Mon Sep 17 21:23:16 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 67124 invoked from network); 17 Sep 2007 21:23:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 17 Sep 2007 21:23:16 -0000 Received: (qmail 65485 invoked by uid 500); 17 Sep 2007 21:23:08 -0000 Delivered-To: deangardner@example.org Received: (qmail 65103 invoked by uid 500); 17 Sep 2007 21:23:07 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 65092 invoked by uid 99); 17 Sep 2007 21:23:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 14:23:07 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO e3.ny.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 21:23:03 +0000 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [83.161.120.155]) by e3.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l8HLMeIg025054 for <deangardner@example.org>; Mon, 17 Sep 2007 17:22:40 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [83.161.120.155]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8HLMel0529118 for <deangardner@example.org>; Mon, 17 Sep 2007 17:22:40 -0400 Received: from d01av03.pok.ibm.com (loopback [83.161.120.155]) by d01av03.pok.ibm.com (83.161.120.15560308/8.13.3) with ESMTP id l8HLMd0X023480 for <deangardner@example.org>; Mon, 17 Sep 2007 17:22:39 -0400 Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155]) by d01av03.pok.ibm.com (83.161.120.15560308/8.12.11) with ESMTP id l8HLMdII023453 for <deangardner@example.org>; Mon, 17 Sep 2007 17:22:39 -0400 In-Reply-To: <deangardner@example.org> Subject: Re: HTTP OUTGOING CACHING To: deangardner@example.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: <deangardner@example.org> From: Michael Glavassevich <deangardner@example.org> Date: Mon, 17 Sep 2007 17:22:55 -0400 X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 09/17/2007 17:22:56 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Specifically you need to register [1] an LSResourceResolver [2]. XSLoader schemaLoader = impl.createXSLoader(null); DOMConfiguration config = schemaLoader.getConfig(); ... LSResourceResolver resolver = ...; config.setParameter("resource-resolver", resolver); ... [1] http://www.w3.org/Submission/2004/SUBM-xmlschema-api-20040309/xml-schema-api.html#Interface-Loader [2] http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/LSResourceResolver.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: deangardner@example.org E-mail: deangardner@example.org Francesco Lazzarino <deangardner@example.org> wrote on 09/17/2007 05:04:23 PM: > you can use an alternate EntityResolver. > > for an example check out: > http://daitss.fcla.edu/browser/xmlvalidator/trunk > > it can be checked out via: > > svn co http://daitss.fcla.edu/repos/xmlvalidator/trunk/ > > its a validator that can use a filesystem based cache with temporal > expiration. its straightforwardd code. no external jars. > > and if you want to use the code, its GPL. > > -franco > > On Mon, Sep 17, 2007 at 04:26:28PM -0400, Jing Yang wrote: > > www.w3.org block my accessing due to re-questing files too often. > > > > I found one importing schema was <xsd:import > > namespace="http://www.w3.org/XML/1998/namespace" > > schemaLocation="http://www.w3.org/2001/xml.xsd"/> > > > > > > > > Does XSLoader provide the mechanism to avoid repeated loading schema > > during high capacity volume process ? > > > > How to work with this issue ? The Xerces is 2_9_0. The code is as below: > > > > > > > > System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom > > .DOMXSImplementationSourceImpl"); > > > > DOMImplementationRegistry registry = > > DOMImplementationRegistry.newInstance(); > > > > XSImplementation impl = (XSImplementation) > > registry.getDOMImplementation("XS-Loader"); > > > > XSLoader schemaLoader = impl.createXSLoader(null); > > > > DOMConfiguration config = schemaLoader.getConfig(); > > > > // set error handler > > > > config.setParameter("error-handler", this); > > > > // set validation feature > > > > config.setParameter("validate", Boolean.TRUE); > > > > // parse document > > > > XSModel model = schemaLoader.loadURI(schemaURL); > > > > -- > Francesco Lazzarino > Digital Archive Programmer > Florida Center for Library Automation > http://daitss.fcla.edu > > --------------------------------------------------------------------- > To unsubscribe, e-mail: deangardner@example.org > For additional commands, e-mail: deangardner@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Wed Sep 19 20:58:59 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 18087 invoked from network); 19 Sep 2007 20:58:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 19 Sep 2007 20:58:58 -0000 Received: (qmail 59219 invoked by uid 500); 19 Sep 2007 20:58:49 -0000 Delivered-To: deangardner@example.org Received: (qmail 59209 invoked by uid 500); 19 Sep 2007 20:58:49 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 59198 invoked by uid 99); 19 Sep 2007 20:58:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 13:58:48 -0700 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF deangardner@example.org) Received: from [83.161.120.155] (HELO exprod7og60.obsmtp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 21:00:44 +0000 Received: from source ([83.161.120.155]) by exprod7ob60.obsmtp.com ([83.161.120.155]) with SMTP; Wed, 19 Sep 2007 13:58:17 PDT Received: from emailcorp2.jnpr.net ([83.161.120.155]) by gamma.jnpr.net with Microsoft SMTPSVC+1-904-295-2291); Wed, 19 Sep 2007 13:57:25 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7235.2 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C7FAFF.AA78B396" Subject: XInclude and entities Date: Wed, 19 Sep 2007 13:57:18 -0700 Message-ID: <deangardner@example.org> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: XInclude and entities Thread-Index: Acf6/6oQyHfOWRrWQoCcoTep1VVbWA== From: "Stuart Norton" <deangardner@example.org> To: <deangardner@example.org> X-OriginalArrivalTime: 19 Sep 2007 20:57:25.0678 (UTC) FILETIME=[AEA19CE0:01C7FAFF] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7FAFF.AA78B396 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C7FAFF.AA78B396" ------_=_NextPart_002_01C7FAFF.AA78B396 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have a question about how Xerces handles text entities when they are defined in both the parent and child of XInclusion. Are text entities supposed to be expanded before or after XIncludes are inserted in the result infoset? =20 =20 Based on a local experiment with Xerxes-J 2.9.0, it appears that text entities are expanded before XIncludes are inserted. But according to the recommendation at http://www.w3.org/TR/xinclude/: "The included items <http://www.w3.org/TR/xinclude/#dt-included-items#dt-included-items> will all appear in the result infoset. This includes unexpanded entity reference information items if they are present." I read this to mean that entity reference information items (e.g. text entities) are not expanded until after they are included in the result document (but I could be wrong). =20 I would really appreciate it if someone could explain what the expected behavior is. =20 In case it helps to clarify my question, I have attached three XML files in a zip file. parent-xinclude-entity-text.xml uses xinclude to include child-xinclude-entity-text, and they both define and use their own version of &text-entity; ('PARENT' in the parent file and 'CHILD' in the child file). After parsing, the result is parent-xinclude-entity-text-out.xml, and you see that the text entity was expanded to 'PARENT' in the content from the parent file, and to 'CHILD' in the content from the child file. My expectation was that it should have been expanded to 'PARENT' in both cases, because the parent's entity definition is included first and it overrides the child's. =20 Thank you in advance! =20 Stuart Norton Document Engineering Juniper Networks, Inc. =20 ------_=_NextPart_002_01C7FAFF.AA78B396 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I have a question about how Xerces handles text = entities when they are defined in both the parent and child of XInclusion.&nbsp; = Are text entities supposed to be expanded before or after XIncludes are = inserted in the result infoset? &nbsp;<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Based on a local experiment with Xerxes-J 2.9.0, it = appears that text entities are expanded before XIncludes are inserted.&nbsp; But = according to the recommendation at <a = href=3D"http://www.w3.org/TR/xinclude/">http://www.w3.org/TR/xinclude/</a= >:<o:p></o:p></span></font></p> <p><font size=3D3 color=3Dblack face=3DArial><span lang=3DEN = style=3D'font-size:12.0pt; font-family:Arial;color:black'>&#8220;The <a href=3D"http://www.w3.org/TR/xinclude/#dt-included-items#dt-included-item= s" title=3D"included items">included items</a> will all appear in the = result infoset. This includes <em><i><font face=3DArial><span = style=3D'font-family:Arial'>unexpanded entity reference information items</span></font></i></em> if they are = present.&#8221;<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I read this to mean that entity reference information = items (e.g. text entities) are not expanded until after they are included in = the result document (but I could be wrong).<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I would really appreciate it if someone could explain = what the expected behavior is.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>In case it helps to clarify my question, I have = attached three XML files in a zip file.&nbsp; parent-xinclude-entity-text.xml = uses xinclude to include child-xinclude-entity-text, and they both define and = use their own version of &amp;text-entity; (&#8216;PARENT&#8217; in the parent = file and &#8216;CHILD&#8217; in the child file).&nbsp; After parsing, the result is parent-xinclude-entity-text-out.xml, and you see that the text entity = was expanded to &#8216;PARENT&#8217; in the content from the parent file, = and to &#8216;CHILD&#8217; in the content from the child file.&nbsp; My expectation was that it = should have been expanded to &#8216;PARENT&#8217; in both cases, because the = parent&#8217;s entity definition is included first and it overrides the = child&#8217;s.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Thank you in advance!<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Stuart Norton<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Document Engineering<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Juniper Networks, Inc.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> </div> </body> </html> ------_=_NextPart_002_01C7FAFF.AA78B396-- ------_=_NextPart_001_01C7FAFF.AA78B396 Content-Type: application/x-zip-compressed; name="xinclude-entity-test.zip" Content-Transfer-Encoding: base64 Content-Description: xinclude-entity-test.zip Content-Disposition: attachment; filename="xinclude-entity-test.zip" UEsDBBQAAAAIAOpoMzf09WB0gAAAAJEAAAAeAAAAY2hpbGQteGluY2x1ZGUtZW50aXR5LXRlc3Qu eG1sTYu7CsJAEABrBf9h3cIuPjrRxBRJxANRi7MIwSpZzcK5AbNI/HvvwMJqYJiJ0+Hp4E2vnjtJ cDVfIpDUXcPySPBq99Ea091kHE/zc2bLSwFKvUIVTHGyxpZeDBqRKOsHMDuYY45+uIUptJ4jI6At Qd2ya+DOjjYw+9u2Pl382i9QSwMEFAAAAAgABmozN1cTvJ+MAAAAqwAAACMAAABwYXJlbnQteGlu Y2x1ZGUtZW50aXR5LXRlc3Qtb3V0LnhtbD2NywrCMBRE1xb6D5e7T9WdlKRFfGBBRKR+QE2uNhBT aaLUvzcNxd3AnDnDy+Fp4EO9050VuMwWCGRlp7R9CLzWe7bCsuCenC/SBKCy4FuCV9OT9XDXhnI4 ry+7Uz22kYNgzG+NI4Gy1UaxQVtp3opYmGj/ZSOUBQiDcTYJIzn5NofquE0TPo+v//ADUEsDBBQA AAAIALlpMzcrljHJ4gAAAD0BAAAfAAAAcGFyZW50LXhpbmNsdWRlLWVudGl0eS10ZXN0LnhtbE2P QWvCMBTH74N9h+c7eEtT52V0aUWcQi9TRgVl7NC1qQ3GtKTRZt/eRAt6Cu/P7//ye2xmTxIuXHei UTFOghCBq6IphTrEuM1W5B1nyesLG32uF9l+swTDOwM/Pll+ZWm2d4E1hCsjzD/gZv7tYnSNX9/y sHsBUgWm5tDm2pFQCckjGD81PzzErIiEKuS55OC0VBdZEWNtTBtR2vd90E+DRh/oWxhO6C69kwi1 5lWMRS1kSezQH9YSLxC4XXizuH9R5VL+5cUxYSNCVsMAp1wfzy0hCaPPzM2LPsT8VXQ46wpQSwEC FAAUAAAACADqaDM39PVgdIAAAACRAAAAHgAAAAAAAAAAACAAAAAAAAAAY2hpbGQteGluY2x1ZGUt ZW50aXR5LXRlc3QueG1sUEsBAhQAFAAAAAgABmozN1cTvJ+MAAAAqwAAACMAAAAAAAAAAAAgAAAA vAAAAHBhcmVudC14aW5jbHVkZS1lbnRpdHktdGVzdC1vdXQueG1sUEsBAhQAFAAAAAgAuWkzNyuW McniAAAAPQEAAB8AAAAAAAAAAACgAAAAiQEAAHBhcmVudC14aW5jbHVkZS1lbnRpdHktdGVzdC54 bWxQSwUGAAAAAAMAAwDqAAAAqAIAAAAA ------_=_NextPart_001_01C7FAFF.AA78B396 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org ------_=_NextPart_001_01C7FAFF.AA78B396-- From j-usersdeangardner@example.org Thu Sep 20 03:10:08 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 33507 invoked from network); 20 Sep 2007 03:10:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 20 Sep 2007 03:10:07 -0000 Received: (qmail 16132 invoked by uid 500); 20 Sep 2007 03:09:58 -0000 Delivered-To: deangardner@example.org Received: (qmail 16111 invoked by uid 500); 20 Sep 2007 03:09:58 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 16099 invoked by uid 99); 20 Sep 2007 03:09:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 20:09:58 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO e5.ny.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 03:09:53 +0000 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [83.161.120.155]) by e5.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l8K39UWt006654 for <deangardner@example.org>; Wed, 19 Sep 2007 23:09:30 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [83.161.120.155]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8K39UWg556272 for <deangardner@example.org>; Wed, 19 Sep 2007 23:09:30 -0400 Received: from d01av03.pok.ibm.com (loopback [83.161.120.155]) by d01av03.pok.ibm.com (83.161.120.15560308/8.13.3) with ESMTP id l8K39UVV021168 for <deangardner@example.org>; Wed, 19 Sep 2007 23:09:30 -0400 Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155]) by d01av03.pok.ibm.com (83.161.120.15560308/8.12.11) with ESMTP id l8K39Ux1021154 for <deangardner@example.org>; Wed, 19 Sep 2007 23:09:30 -0400 In-Reply-To: <deangardner@example.org> Subject: Re: XInclude and entities To: deangardner@example.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: <deangardner@example.org> From: Michael Glavassevich <deangardner@example.org> Date: Wed, 19 Sep 2007 23:09:28 -0400 X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 09/19/2007 23:09:30 MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Stuart, "Stuart Norton" <deangardner@example.org> wrote on 09/19/2007 04:57:18 PM: > I have a question about how Xerces handles text entities when they > are defined in both the parent and child of XInclusion. Are text > entities supposed to be expanded before or after XIncludes are > inserted in the result infoset? XML parsers are required [1] to do this expansion. Conceptually this happens pre-source infoset. > Based on a local experiment with Xerxes-J 2.9.0, it appears that > text entities are expanded before XIncludes are inserted. But > according to the recommendation at http://www.w3.org/TR/xinclude/: > ?The included items will all appear in the result infoset. This inclu= des > unexpanded entity reference information items if they are present.? > I read this to mean that entity reference information items (e.g. > text entities) are not expanded until after they are included in the > result document (but I could be wrong). That's not what that means. An "unexpanded entity reference" is a term defined in the XML Informati= on Set [2] Recommendation. These information items represent external pars= ed entities (e.g. <!ENTITY foo SYSTEM "http://xerces.apache.org/bar">) tha= t weren't expanded by the parser. Non-validating ones [3] in particular m= ay do this. Xerces expands all of them by default. XInclude processing pla= ys no part in that. If there was an unexpanded entity reference in the sou= rce infoset, it's still unexpanded if it's included in the result infoset. > I would really appreciate it if someone could explain what the > expected behavior is. > > In case it helps to clarify my question, I have attached three XML > files in a zip file. parent-xinclude-entity-text.xml uses xinclude > to include child-xinclude-entity-text, and they both define and use > their own version of &text-entity; (?PARENT? in the parent file and > ?CHILD? in the child file). After parsing, the result is parent- > xinclude-entity-text-out.xml, and you see that the text entity was > expanded to ?PARENT? in the content from the parent file, and to > ?CHILD? in the content from the child file. My expectation was that > it should have been expanded to ?PARENT? in both cases, because the > parent?s entity definition is included first and it overrides the child?s. > > Thank you in advance! > > Stuart Norton > Document Engineering > Juniper Networks, Inc. > > ---------------------------------------------------------------------= > To unsubscribe, e-mail: deangardner@example.org > For additional commands, e-mail: deangardner@example.org Thanks. [1] http://www.w3.org/TR/2006/REC-xml-20060816/#entproc [2] http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.rse [3] http://www.w3.org/TR/REC-xml/#include-if-valid Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: deangardner@example.org E-mail: deangardner@example.org= --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Mon Sep 24 19:34:54 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 54613 invoked from network); 24 Sep 2007 19:34:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 24 Sep 2007 19:34:53 -0000 Received: (qmail 14102 invoked by uid 500); 24 Sep 2007 19:34:37 -0000 Delivered-To: deangardner@example.org Received: (qmail 14086 invoked by uid 500); 24 Sep 2007 19:34:37 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 13958 invoked by uid 99); 24 Sep 2007 19:34:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 12:34:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web52805.mail.re2.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Sep 2007 19:34:35 +0000 Received: (qmail 7839 invoked by uid 60001); 24 Sep 2007 19:34:14 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=PqT2metnVcZAwKzAK+1zKIwe0we7GkPM2gV/hBkxdJfMUv1g95ReY6/ennGG5kbmHCPjVKfxcKwulLlGFLOmj2gIR9thc8yNdAFJf/GKdYTg2LkZY4oqAlNwEe3nuC0Y9NqfEPZSO+VyE4hg9yQFtJf8Ox4CgutNELnLzJZw5WQ=; X-YMail-OSG: aDCx_jYVM1nXPeARbyjN8FNlWcKjsCi6rrT0r9wvkG037mcxt_40KD1lHWYxOG8.ta87dX4lBUaX5yaT2ndJqD.1oK5qHQXGls6BCP9yUGfFf_XiTPPEZ9gxMCkP1VPUFjuTPXaNYOl3sgvHfYeEtdPO_Q-- Received: from [83.161.120.155] by web52805.mail.re2.yahoo.com via HTTP; Mon, 24 Sep 2007 12:34:13 PDT Date: Mon, 24 Sep 2007 12:34:13 -0700 (PDT) From: "Anthony N. Frasso" <deangardner@example.org> Reply-To: deangardner@example.org Subject: Building a Project with Ant using Xerces and JDK 1.4.2 To: deangardner@example.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <deangardner@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, and thanks in advance for your help. I'm having some difficulty understanding how to build a project I'm working on. I'm using Xerces v. 2.9.1, JDK 1.4.2, and Ant 1.6.5. As I understand it, I can either place the Xerces jar files in the default endorsed directory ($JAVA_HOME$/lib/endorsed), or I can place them in a separate directory and set it to be the endorsed directory using a system property. However, while I can see how to set a system property using the java command (or task), I don't see how to set a system property using the javac compiler. Am I missing something? Is there an alternate way to set a system property prior to running javac? Thanks again for your help. Best Regards, Anthony Frasso ____________________________________________________________________________________ Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Mon Sep 24 23:52:18 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 46430 invoked from network); 24 Sep 2007 23:52:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 24 Sep 2007 23:52:18 -0000 Received: (qmail 298 invoked by uid 500); 24 Sep 2007 23:52:08 -0000 Delivered-To: deangardner@example.org Received: (qmail 277 invoked by uid 500); 24 Sep 2007 23:52:08 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 266 invoked by uid 99); 24 Sep 2007 23:52:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 16:52:08 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO sd96.btc-net.bg) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Sep 2007 23:52:08 +0000 Received: (qmail 17340 invoked from network); 25 Sep 2007 00:09:21 -0000 Received: from unknown (HELO ?83.161.120.155?) (83.161.120.155) by 0 with SMTP; 25 Sep 2007 00:09:21 -0000 Message-ID: <deangardner@example.org> Date: Tue, 25 Sep 2007 02:51:36 +0300 From: Stanimir Stamenkov <deangardner@example.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:83.161.120.155) Gecko/20070802 SeaMonkey/1.1.4 (Spidey; Mnenhy 83.161.120.155) MIME-Version: 1.0 To: deangardner@example.org Subject: Re: Building a Project with Ant using Xerces and JDK 1.4.2 References: <deangardner@example.org> In-Reply-To: <deangardner@example.org> X-Face: (5^k'[FumQ)D<K'|!m[XIPQMS<@?TEycd`Km]m}j3#aOh6s=*7pqVp9T7Ru-9J1NJ?j64h( vkoM85W+lY%wgItKb-w3OV/yK:?0GO])wfroz}>/*_,+2"Ax+MLyw-[=}5`U9T`X4>1ky(A:/OBmW0 N~qm3*Yo0^iugH;XTH;'lGWv}@;U!P\.:7v;~BU;X<pmnyTVy+VuYy_""nw6{`Q?_;Q_y.q2zQ=>mX wB`d4DX><96a<oQ[>T}f6v}i7oU}bzwjzX`q.yUbgV:+=Zt<A"Kb?P8-0t2N92 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mon, 24 Sep 2007 12:34:13 -0700 (PDT), /Anthony N. Frasso/: > However, while I can see how to set a system property using the java command > (or task), I don't see how to set a system property using the javac compiler. You may try overriding the bootclasspath [1] or prepend the xml-apis.jar to it using -Xbootclasspath/p:<path> option. Although I don't see the later in the online documentation I see it in the help screen issuing javac -X: > -Xbootclasspath/p:<path> Prepend to the bootstrap classpath > -X Print a synopsis of nonstandard options As for Ant I see there's a <compilerarg> element you could use to pass command line arguments to the compiler with the Javac [2] task (the reference is to the Ant 1.7.0 manual but the same is in the 1.6.5 version, too). [1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#crosscomp-options [2] http://ant.apache.org/manual/CoreTasks/javac.html -- Stanimir --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Tue Sep 25 05:15:37 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 41927 invoked from network); 25 Sep 2007 05:15:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 25 Sep 2007 05:15:36 -0000 Received: (qmail 43154 invoked by uid 500); 25 Sep 2007 05:15:26 -0000 Delivered-To: deangardner@example.org Received: (qmail 43132 invoked by uid 500); 25 Sep 2007 05:15:26 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 43121 invoked by uid 99); 25 Sep 2007 05:15:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 22:15:26 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO e6.ny.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 05:15:25 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [83.161.120.155]) by e6.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l8P5GWs5006136 for <deangardner@example.org>; Tue, 25 Sep 2007 01:16:32 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [83.161.120.155]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8P5F3Ih678832 for <deangardner@example.org>; Tue, 25 Sep 2007 01:15:03 -0400 Received: from d01av02.pok.ibm.com (loopback [83.161.120.155]) by d01av02.pok.ibm.com (83.161.120.15560308/8.13.3) with ESMTP id l8P5F3vN012715 for <deangardner@example.org>; Tue, 25 Sep 2007 01:15:03 -0400 Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155]) by d01av02.pok.ibm.com (83.161.120.15560308/8.12.11) with ESMTP id l8P5F2ro012693 for <deangardner@example.org>; Tue, 25 Sep 2007 01:15:02 -0400 In-Reply-To: <deangardner@example.org> Subject: Re: Building a Project with Ant using Xerces and JDK 1.4.2 To: deangardner@example.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: <deangardner@example.org> From: Michael Glavassevich <deangardner@example.org> Date: Tue, 25 Sep 2007 01:15:02 -0400 X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 09/25/2007 01:15:03 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Stanimir Stamenkov <deangardner@example.org> wrote on 09/24/2007 07:51:36 PM: > Mon, 24 Sep 2007 12:34:13 -0700 (PDT), /Anthony N. Frasso/: > > > However, while I can see how to set a system property using the > java command > > (or task), I don't see how to set a system property using the > javac compiler. > > You may try overriding the bootclasspath [1] or prepend the > xml-apis.jar to it using -Xbootclasspath/p:<path> option. Although > I don't see the later in the online documentation I see it in the > help screen issuing javac -X: That's roughly what we do for compiling Xerces itself, except that it's done through an Ant task [1] (which extends javac). > > -Xbootclasspath/p:<path> Prepend to the bootstrap classpath > > -X Print a synopsis of nonstandard options > > As for Ant I see there's a <compilerarg> element you could use to > pass command line arguments to the compiler with the Javac [2] task > (the reference is to the Ant 1.7.0 manual but the same is in the > 1.6.5 version, too). > > [1] > http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac. > html#crosscomp-options > > [2] http://ant.apache.org/manual/CoreTasks/javac.html > > -- > Stanimir > > --------------------------------------------------------------------- > To unsubscribe, e-mail: deangardner@example.org > For additional commands, e-mail: deangardner@example.org [1] http://svn.apache.org/viewvc/xerces/java/trunk/tools/src/XJavac.java?revision=447706&view=markup Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: deangardner@example.org E-mail: deangardner@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Fri Sep 28 19:18:40 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 89801 invoked from network); 28 Sep 2007 19:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 28 Sep 2007 19:18:37 -0000 Received: (qmail 55655 invoked by uid 500); 28 Sep 2007 19:18:26 -0000 Delivered-To: deangardner@example.org Received: (qmail 55638 invoked by uid 500); 28 Sep 2007 19:18:25 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 55627 invoked by uid 99); 28 Sep 2007 19:18:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 12:18:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 19:20:48 +0000 Received: by nf-out-0910.google.com with SMTP id k4so2057320nfd for <deangardner@example.org>; Fri, 28 Sep 2007 12:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=1XhoYE2z1m2NQ7StPKVRBwwbjzXw8kLgTVn1VQ0aXE8=; b=ARtT7cLLGiaY5ZbMrRUByO2jehvZEqfSByhw38GpxjH80DfzvRRMYQ+s0d+7Q565GuEAieMMm3oJmEa24GLhMg6D3IaTC4Fx0usg7+aqB2Z0VSmF9mMVN7XUmwCc2As8H5dHjJ50ay6f4DHp00hgibAucpJ2PyZXeWYQSD8LoWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BEm29HBF0NzOeu0JbbZce/waN8eO+7oZ2n9dWdvVblB4lrQwiTdluET4+quhXGjS2bPTU240M9Xq8Uxem04YDfE+/b2NI2/lDTsEnijAfVrdn+7Cy2ZYYY1obpD/9the/UDRBs9H9WXj7atTKmmVHL+bZYaOXWvwX+u1s5H9OZc= Received: by 83.161.120.155 with SMTP id y15mr227575huf.1191007082697; Fri, 28 Sep 2007 12:18:02 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Fri, 28 Sep 2007 12:18:02 -0700 (PDT) Message-ID: <deangardner@example.org> Date: Fri, 28 Sep 2007 20:18:02 +0100 From: "=?ISO-8859-1?Q?Jo=E3o_Lu=EDs_Pinto?=" <deangardner@example.org> To: deangardner@example.org Subject: Validation of snippet following schema with <xsd:any>: precompile and EntityResolver MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have the following problem: I want to validate a XML snippet that has the namespace attributes set at each element. Since it is a snippet, it does not provide schema location information, although I know the main schema that is being used, and where it is located. The problem is that that schema has <xsd:any> elements, which I believe removes the possibility of having precompiled schema info as in: StreamSource a =3D new StreamSource("a.xsd"); StreamSource b =3D new StreamSource("b.xsd"); Schema schemas =3D sf.newSchema(new Source[]{a, b}); Validator validator =3D schemas.newValidator(); validator.setErrorHandler(myErrorHandler); DOMSource docSource =3D new DOMSource(Doc); validator.validate(docSource); because I don't know b.xsd beforehand and the compiled schema cannot be upd= ated. What I know beforehand is that the elements in <xsd:any> will follow schema from a previously know set, and that the namespace->location mapping is know. Does anyone have some suggestion of what I should do? Or will I have to build a map of namespaces->Sources and compile the aggregated schema in each evaluation? Thanks, Jo=E3o --=20 O Insurgente - http://oinsurgente.org Small Brother - http://small-brother.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: deangardner@example.org For additional commands, e-mail: deangardner@example.org From j-usersdeangardner@example.org Fri Sep 28 19:52:08 2007 Return-Path: <j-usersdeangardner@example.org> Delivered-To: deangardner@example.org Received: (qmail 5340 invoked from network); 28 Sep 2007 19:52:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 28 Sep 2007 19:52:07 -0000 Received: (qmail 99491 invoked by uid 500); 28 Sep 2007 19:51:57 -0000 Delivered-To: deangardner@example.org Received: (qmail 99483 invoked by uid 500); 28 Sep 2007 19:51:57 -0000 Mailing-List: contact deangardner@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:deangardner@example.org> List-Unsubscribe: <mailto:deangardner@example.org> List-Post: <mailto:deangardner@example.org> List-Id: <j-users.xerces.apache.org> Reply-To: deangardner@example.org Delivered-To: mailing list deangardner@example.org Received: (qmail 99472 invoked by uid 99); 28 Sep 2007 19:51:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 12:51:57 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of deangardner@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO e4.ny.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 19:54:18 +0000 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [83.161.120.155]) by e4.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l8SJpXu0022059 for <deangardner@example.org>; Fri, 28 Sep 2007 15:51:33 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [83.161.120.155]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8SJpVEY498800 for <deangardner@example.org>; Fri, 28 Sep 2007 15:51:33 -0400 Received: from d01av04.pok.ibm.com (loopback [83.161.120.155]) by d01av04.pok.ibm.com (83.161.120.15560308/8.13.3) with ESMTP id l8SJpUoF019791 for <deangardner@example.org>; Fri, 28 Sep 2007 15:51:31 -0400 Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155]) by d01av04.pok.ibm.com (83.161.120.15560308/8.12.11) with ESMTP id l8SJpUg2019780 for <deangardner@example.org>; Fri, 28 Sep 2007 15:51:30 -0400 In-Reply-To: <deangardner@example.org> Subject: Re: Validation of snippet following schema with <xsd:any>: precompile and EntityResolver To: deangardner@example.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: <deangardner@example.org> From: Michael Glavassevich <deangardner@example.org> Date: Fri, 28 Sep 2007 15:51:29 -0400 X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 09/28/2007 15:51:30 MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Jo=E3o, If you're willing to stray a little away from writing pure JAXP code, y= ou may be able to achieve what you want by setting the "http://apache.org/xml/features/internal/validation/schema/use-grammar-= pool-only" feature to false on the SchemaFactory. This will tell the validator th= at it should try loading schema documents for target namespaces which are = not already covered by the precompiled Schema object. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: deangardner@example.org E-mail: deangardner@example.org "Jo=E3o Lu=EDs Pinto" <deangardner@example.org> wrote on 09/28/2007 03:= 18:02 PM: > Hello, > > I have the following problem: I want to validate a XML snippet that > has the namespace attributes set at each element. > > Since it is a snippet, it does not provide schema location > information, although I know the main schema that is being used, and > where it is located. > > The problem is that that schema has <xsd:any> elements, which I > believe removes the possibility of having precompiled schema info as > in: > > StreamSource a =3D new StreamSource("a.xsd"); > StreamSource b =3D new StreamSource("b.xsd"); > > Schema schemas =3D sf.newSchema(new Source[]{a, b}); > > Validator validator =3D schemas.newValidator(); > > validator.setErrorHandler(myErrorHandler); > > DOMSource docSource =3D new DOMSource(Doc); > > validator.validate(docSource); > > because I don't know b.xsd beforehand and the compiled schema cannot > be updated. > > What I know beforehand is that the elements in <xsd:any> will follow > schema from a previously know set, and that the namespace->location > mapping is know. > > Does anyone have some suggestion of what I should do? > > Or will I have to build a map of namespaces->Sources and
{'source': 'Apache Software Foundation Public Mail Archives'}