Login  Register

Re: Orbeon Nightly regression: DTD entity imports no longer working

Posted by Erik Bruchez on Dec 14, 2010; 2:20am
URL: https://discuss.orbeon.com/Orbeon-Nightly-regression-DTD-entity-imports-no-longer-working-tp3085139p3086384.html

Ralf,

We just disabled loading of external entities for security reasons.

I guess that means we should provide an option to the URL generator
instead. The only problem is that the XML parser configuration is
really nasty (JAXP is a horrible thing).

Do you have a workaround for this?

-Erik

On Mon, Dec 13, 2010 at 1:09 AM, Ralf Jung <[hidden email]> wrote:

> Hi,
>
> I am using Orbeon to verify a document based on a DTD, and to resolve the
> entities used by it. This includes both custom entities and those pre-defined
> by XHTML, which are imported like this:
>
> <!ENTITY % HTMLlat1 SYSTEM "xhtml-lat1.ent">
> %HTMLlat1;
> <!ENTITY % HTMLspecial SYSTEM "xhtml-special.ent">
> %HTMLspecial;
> <!ENTITY % HTMLsymbol SYSTEM "xhtml-symbol.ent">
> %HTMLsymbol;
>
> The documented is imported using the url-generator with validation enabled.
> This works fine in Orbeon 3.8. However, while attempting to reproduce an issue
> with the current nightly, I noticed a regression: Running the same pipeline
> (through the command-line) results in tons of errors like this one:
>
> 2010-12-13 09:43:20,852 INFO  org.orbeon.oxf.xml.XMLUtils  - Error:
> org.xml.sax.SAXParseException; systemId:
> oxf:/var/lib/tomcat6/webapps/<path>/<file>.xml; lineNumber: 17626;
> columnNumber: 41; The entity "nbsp" was referenced, but not declared.
>
> However, the entities defined directly in the DTD are resolved fine. It seems
> that for some reason, importing entities does not work anymore. Is there some
> configuration option to control how and where Orbeon looks for DTDs and entity
> files?
>
> Kind regards,
> Ralf Jung
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws