Re: [xslt] Entity resolution fails in a DTD
- From: "spencer 'sporty' portee" <spa3 sporty org>
- To: xslt gnome org
- Subject: Re: [xslt] Entity resolution fails in a DTD
- Date: Mon, 24 Sep 2001 17:30:33 -0400
i think i'm having a similar problem.
my xml dtd is in one file (product.dtd), where an entity is defined, USA. I have an xml document (product.xml) that implements the dtd (product.dtd). Entities defined product.dtd, used in product.xml are not being processed if my stylesheet is a third file (product.xslt).
"xsltproc product.xslt product.xml"
yields...
product.xml:5: error: Entity 'USA' not defined
though product.xml has a dtd (product.dtd) which has the line
<!ENTITY % USA "United States">
*boggle*
-s
On Mon, Sep 24, 2001 at 11:11:11PM +0200, ben wrote:
> Hello,
>
> I try to use the N. Walsh's jrefentry DTD to build my references.
> However, it fails at these lines:
>
> <!ENTITY % docbook PUBLIC "-//OASIS//DTD XML DocBook V4.1.2//EN"
>
> "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
> %docbook;
>
> Even if in one of the SGML_CATALOG_FILES catalog the XML DocBook DTD
> public ID is defined, xsltproc fails with the following message:
>
> xsltproc --catalogs --nonet ../xsl/jrefhtml.xsl
> ../references/reference.xml > reference.html
> Attempt to load network entity
> http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
> ../references/dtd/jrefentry/1.0/jrefentry.dtd:30: warning: PEReference:
> ommon.attrib; not found
> %common.attrib;
> ^
>
> It seems that xsltproc doesn't try to resolve the public ID. What's
> wrong? What can I do without patching the DTD?
>
> Thanks,
> BG
>
>
>
> _______________________________________________
> xslt mailing list
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
--
--
It's an awful truth that suffering can deepen us, give a greater luster to
our colours, a richer resonance to our words. That is, if it doesn't
destroy us, if it doesn't burn away the optimism and the spirit, the capacity
for visions, and the respect for simple yet indispensable things.
- Anne Rice, "Queen of the Damned"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]