Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 26105 invoked from network); 18 Sep 2003 21:14:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Sep 2003 21:14:36 -0000 Received: (qmail 38459 invoked by uid 500); 18 Sep 2003 21:13:46 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 38417 invoked by uid 500); 18 Sep 2003 21:13:46 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 38388 invoked from network); 18 Sep 2003 21:13:45 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 18 Sep 2003 21:13:45 -0000 Received: (qmail 25798 invoked by uid 1059); 18 Sep 2003 21:13:57 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 18 Sep 2003 21:13:57 -0000 Date: Thu, 18 Sep 2003 14:13:57 -0700 (PDT) From: "Craig R. McClanahan" To: Jakarta Commons Users List Subject: RE: [digester] validating against system dtd? In-Reply-To: Message-ID: <20030918140956.K20074@minotaur.apache.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, 18 Sep 2003, Phillip Qin wrote: > Date: Thu, 18 Sep 2003 14:05:49 -0400 > From: Phillip Qin > Reply-To: Jakarta Commons Users List > To: 'Jakarta Commons Users List' > Subject: RE: [digester] validating against system dtd? > > Craig, > > If I don't use InputSource, is following snippet "not to avoid"? > > Digester d = DigesterLoader.createDigester(url); > d.push(this); > d.parse(input); > The key question is what "input" is. If it's an InputStream, then the XML parser has no way to know what the absolute URL of the input document was, and therefore no way to resolve relative URLs. (The URL you pass to createDigester() is for the XML document containing the Digester rules, not the XML document to be parsed.) Note that this issue is by no means specific to Digester -- it'll happen to you with direct calls to DOM or SAX parsers as well, because it is the XML parser that actually resolves these things. Digester doesn't have a clue. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org