Hi Robert, thanks for the tip. I did try moving it and the xml files to different places inside my webapp subdirectory with no luck. But I didn't try the web-inf directory. Unfortunately, I can't change the xml instance itself, so I have to figure out a way to use it as is.
-Brian -----Original Message----- From: Robert Wray [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 10:41 AM To: Tomcat Users List Subject: RE: XML DOCTYPE problem Have you tried moving your .dtd file to somewhere else? Try moving so that is accessible via web or say in the /WEB-INF/dtds/innovtech/datasheet.dtd of your application. Is there a particular reason you need to store all your dtd's in "c:/dtds" ? At 07:42 AM 10/07/2003 -0700, you wrote: >This seems very strange. Almost any xml editor or xml system uses the public >or system identifier to point to a the DTD so it can vaildate the instance. >The public or system identifier is part of EVERY valid xml file. There must >be some way to handle it?? It's true that the jstl xml parser doesn't >validate it, that's not what I need since I will be producing valid xml, I >just need the jstl x:parse to ignore it so I don't get an error?? Someone >must have run into this before. > >Thanks for the help though. I'll keep researching it. > >-Brian > >-----Original Message----- >From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 10, 2003 1:15 AM >To: Tomcat Users List >Subject: RE: XML DOCTYPE problem > > >And i think it even has to have a http:// in front > >-----Original Message----- >From: Abid Ali Teepo >Sent: 10. juli 2003 09:38 >To: Tomcat Users List >Subject: RE: XML DOCTYPE problem > > >I think the reference to a doctype has to be on the format >www.somesite.com/dtd/data.dtd or similar > >Besides i don't thinkt it will actually validate against that >DTD anyway .... > >-----Original Message----- >From: Brian Menke [mailto:[EMAIL PROTECTED] >Sent: 10. juli 2003 07:21 >To: Tomcat Users List >Subject: XML DOCTYPE problem > > >Hi everyone, > >I have created a JSP page that use the jstl xml tag library, specifically >using >xpath. Everything works perfectly fine as long as I don't have a doctype >declaration like the following in my XML instance: > ><!DOCTYPE datasheet PUBLIC "-//Innovtech//DTD datasheet//EN" >"c:/dtds/innovtech/datasheet.dtd"> > >If I remove it, everything works great, but if I don't, I get a java error >like this: > >org.apache.jasper.JasperException: Could not resolve entity reference: >"///c:/dtds/innovtech/datasheet.dtd" > >I have to have the doctype in the xml. Does anyone know how I can fix this?? > >I did post this to the taglib email list, but it doesn't seem to get near >the traffic as this group. > >Thanks! > >-Brian > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
