T
Thomas Sommer
Hi group,
I am really desperate but
I think I am missing only a minor part. Basically I want to pipe
a global entity (the one you dereference with the &) through my
dtd into the xml-file I am writing. Basically something like
the € in docbook. If I put the parameter entity into the
[] Brackets in the xml file(test2.xml) it works. But if
I wan't to use it via a catalog in the dtd(test.xml) it does not work.
I would be really thankful for any help.
Here the files:
test.xml:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<!DOCTYPE test SYSTEM "Mydtd">
<test>
&entity;
</test>
test2.xml:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<!DOCTYPE test SYSTEM "Mydtd"
[
<!ENTITY % W SYSTEM "Website_Links">
%W;
]<test>
&entity;
</test>
Mydtd.dtd:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<!ELEMENT test (#PCDATA)>
<!ENTITY % W SYSTEM "Website_Links">
%W;
Catalog:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<catalog xmlns="urnasis:names:tc:entity:xmlns:xml:catalog">
<group prefer="system" xml:base="file:///home/goofy/docbook/" >
<system systemId="Mydtd" uri="dtd/Mydtd.dtd"/>
<system systemId="W" uri="Entities/W.xml/>
</group>
</catalog>
W.xml:
contains tons of entities like:
<!ENTITY entity SYSTEM "TESTSTRING">
I am really desperate but
I think I am missing only a minor part. Basically I want to pipe
a global entity (the one you dereference with the &) through my
dtd into the xml-file I am writing. Basically something like
the € in docbook. If I put the parameter entity into the
[] Brackets in the xml file(test2.xml) it works. But if
I wan't to use it via a catalog in the dtd(test.xml) it does not work.
I would be really thankful for any help.
Here the files:
test.xml:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<!DOCTYPE test SYSTEM "Mydtd">
<test>
&entity;
</test>
test2.xml:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<!DOCTYPE test SYSTEM "Mydtd"
[
<!ENTITY % W SYSTEM "Website_Links">
%W;
]<test>
&entity;
</test>
Mydtd.dtd:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<!ELEMENT test (#PCDATA)>
<!ENTITY % W SYSTEM "Website_Links">
%W;
Catalog:
<?xml version='1.0' encoding="ISO-Latin-1"?>
<catalog xmlns="urnasis:names:tc:entity:xmlns:xml:catalog">
<group prefer="system" xml:base="file:///home/goofy/docbook/" >
<system systemId="Mydtd" uri="dtd/Mydtd.dtd"/>
<system systemId="W" uri="Entities/W.xml/>
</group>
</catalog>
W.xml:
contains tons of entities like:
<!ENTITY entity SYSTEM "TESTSTRING">