Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 46751 invoked from network); 25 Jul 2007 12:19:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 12:19:47 -0000 Received: (qmail 65346 invoked by uid 500); 25 Jul 2007 12:19:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 65321 invoked by uid 500); 25 Jul 2007 12:19:43 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 65310 invoked by uid 99); 25 Jul 2007 12:19:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 05:19:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.191.69.62] (HELO web30215.mail.mud.yahoo.com) (209.191.69.62) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 25 Jul 2007 05:19:40 -0700 Received: (qmail 16066 invoked by uid 60001); 25 Jul 2007 12:19:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=dHvb7sxQmn4sIR3JjsYrlUnIDJNexEevaEV5RA8qDIVbH5HSgvG7g2SJc+JqcXfBPK4Fe1xviAlfTox6fD536Tt3ES59g0AeZQcLzeP7vEVqz4FnI79sZlgAPxVxLMxizGk6sIzWVCv0qxcd2CiU5ZbXRSmqBxWFBVgAGnW4TPM=; X-YMail-OSG: S4W0_7kVM1mf09SRvc7ZE1QNUkWrIlRdVrBasx97XBJvK0r2VJJliG.s_JXj6RI8e7iQRmLgWs9gsAtYGfu4PPril16CQySoptrPbpjMJg3rNPTSwBKZqQzQNaZrUg-- Received: from [71.8.201.198] by web30215.mail.mud.yahoo.com via HTTP; Wed, 25 Jul 2007 05:19:18 PDT X-Mailer: YahooMailRC/651.41 YahooMailWebService/0.7.119 Date: Wed, 25 Jul 2007 05:19:18 -0700 (PDT) From: Ninju Bohra Subject: Re: Question about usage To: Ant Users List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <678628.15865.qm@web30215.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Dang...I was so close to making a quick 'ANT' solution instead of writing a= first-class JAVA program to apply the modest modifications to the XML file= s.=0ABefore giving up, and writing the JAVA program, what would be miminal = change in the entry to allow the use of the el= ement?=0A=0ANote...I also cross-posted a similar message to the xmltask-use= rs mailing list (which has must less activity that this ANT list) but descr= ibed some error that I was getting.=0ASpecifically, even if I run= the ANT script on a file system where the entry should be r= esolvable (i.e. there is a .dtd file at the location defined by the SYSTEM= entry) I get the error:=0A=0A[xmltask] org.xml.sax.SAXParseException: Rela= tive URIb "/some/directory/to/an/application.dtd"; can not be resolved with= out a base URI.=0A[xmltask] at org.apache.crimson.parser.Parser2.fatal(Pars= er2.java:3376)=0A[xmltask] at org.apache.crimson.parser.Parser2.fatal(Parse= r2.java:3370)=0A[xmltask] at org.apache.crimson.parser.Parser2.resolveURI(P= arser2.java:2952)=0A[xmltask] at org.apache.crimson.parser.Parser2.maybeExt= ernalID(Parser2.java:2924)=0A[xmltask] at org.apache.crimson.parser.Parser2= .maybeDoctypeDecl(Parser2.java:1309)=0A=0AThrough 'trial-and-error' I was a= ble to the get the call to work by adding a 'file://' in front of= the path information (allowing it to locate the file in the native locatio= n, w/o any entries). I don't want to modify the entry, but if I have to, I must (:sigh:)=0A=0AWhat about using the deprec= ated sub-element of to mask/redirect/rem= ove the .dtd reference?=0A=0AThanx,=0A=0ANinju=0A=0A----- Original Message = ----=0AFrom: Brian Agnew =0ATo: Ant Users List <= user@ant.apache.org>=0ASent: Wednesday, July 25, 2007 3:27:57 AM=0ASubject:= Re: Question about usage=0A=0A=0AYou really need the DTDs PUB= LICID for xmlcatalog (see=0Ahttp://ant.apache.org/manual/CoreTypes/xmlcatal= og.html) but you don't=0Aappear to have that in your DTD selection below. I= 'm not au fait with=0A but I don't believe that it'll work with= just a SYSTEM=0Aidentifier.=0A=0ABrian=0A=0AOn Wed, July 25, 2007 03:53, N= inju Bohra wrote:=0A> Hello all,=0A>=0A> I've been given a directory of XML= files that I need to process. All the=0A> files have the following text a= t the top=0A>=0A> =0A> <= !DOCTYPE Simpson SYSTEM "/some/directory/to/an/application.dtd ">=0A> =0A> =0A> =0A> = .=0A> .=0A> .=0A>=0A> Now I am planning to proces th= e files using the cool (see=0A> http://www.oopsconsultancy.com/so= ftware/xmltask/ for more info) to process=0A> the file.=0A>=0A> However the= problem is that I need to 'redirect' (or ignore) the DTD=0A> entry..since = it will not be findable at the path specified in the file=0A> during proces= sing=0A>=0A> I tried the following:=0A>=0A> =0A> = location=3D3D= "${source.dir}/application.dtd"/>=0A> =0A>=0A> and then refere= ncing the 'id' from within the like this:=0A>=0A> =0A> =0A> =0A> =0A> = .=0A> .=0A> .=0A> =0A> =0A>= =0A> However it does not work. I still errors stating that it can't find t= he=0A> application.dtd (in the original location)=0A>=0A> I have copy of th= e DTD file (in a different path) so how can I either=0A> redirect where the= DTD is picked from (without modifying the file) or can=0A> I tell ANT to '= ignore' the DTD entry.=0A>=0A> Thanx,=0A>=0A> Ninju=0A>=0A>=0A>=0A> _______= ___________________________________________________________________________= __=0A> Got a little couch potato?=0A> Check out fun summer activities for k= ids.=0A> http://search.yahoo.com/search?fr=3Doni_on_mail&p=3Dsummer+activit= ies+for+kids&cs=3Dbz=0A>=0A> ----------------------------------------------= -----------------------=0A> To unsubscribe, e-mail: user-unsubscribe@ant.ap= ache.org=0A> For additional commands, e-mail: user-help@ant.apache.org=0A>= =0A>=0A=0A=0A-- =0ABrian Agnew http://www.oopsconsultancy.= com=0AOOPS Consultancy Ltd=0ATel: +44 (0)7720 397526=0AFax: +44 (0)20 8682 = 0012=0A=0A=0A--------------------------------------------------------------= -------=0ATo unsubscribe, e-mail: user-unsubscribe@ant.apache.org=0AFor add= itional commands, e-mail: user-help@ant.apache.org=0A=0A=0A =0A______= ___________________________________________________________________________= ___Ready for the edge of your seat? =0ACheck out tonight's top picks on Yah= oo! TV. =0Ahttp://tv.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org