I'd expect that if you set up your own EntityResolver that looked for

"-//[http://basistech.com//DTD] basistech.com//DTD RLP Regular Expression 
Config 1.0//EN"

and supplied a local copy for the dtd, you would fix the problem.

That's assuming of course you know what ids you are expecting.

see [1] for an example


[1] 
http://tomailer.svn.sourceforge.net/viewvc/tomailer/trunk/tomailer/src/com/mebigfatguy/tomailer/ToMailerEntityResolver.java?revision=77&view=markup

-----Original Message-----
From: "Benson Margulies" <bimargul...@gmail.com>
Sent: Tuesday, November 17, 2009 11:25am
To: j-users@xerces.apache.org
Subject: urn: in system ids in doctypes

This question is motivated by a behavior of the copy of Xerces captured and 
renamed in the Sun 1.5 JDK, so feel free to send me away.

I am trying to use the LSParser interface, since it seems rather more 
straightforward for parsing XML in a string than JAXP.

It rejects the following due to urn: being an unknown protocol. I thought 
someone here posted a suggestion to use them to avoid relative pathname 
surprises, so now I'm not sure what to try next. Except to rethink the use of 
DTDs as soon as possible.

<!DOCTYPE regexpset PUBLIC "-//[http://basistech.com//DTD] basistech.com//DTD 
RLP Regular Expression Config 1.0//EN" "urn:regexpset.dtd">


Reply via email to