WinXP + Eclipse 3.2 + plugin Oxygen 7.1.0 + dtd and schemas
Posted: Wed Jun 28, 2006 9:06 pm
Hi,
I am doing validating a document using both dtd and schemas, using dtds to provide entities. But I seem to have a couple of problems with the validation and entity resolving.
1)
What happens is this, when we start the document ( see end of mail ) the entity auto complete list does not contain the entities defined in the dtd. To make it display, we nee to remove the link to the schema, save the document and use the "reset cache and validate option". If we readd the schema link, it still works. Why ? Is it a config problem on our side ?
2)
When we enter an entity from the list (after doing 1) the validation barfs and the problem shown is "The entity "FOO" was referenced, but not declared."
To solve this once again use the "reset cache and validate option" and all is well.
It would seem that the dtd vs. schema validation is unclear, what are the config I need to have to make this work ?
In the content completion preferences I have set the "Show all entities"
In the XML | XML Parser I have the "Ignore the dtd for validation if a schema is specified"
anything else ?
thanks
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//FOO//DTD FOO DITA Composite//EN"
"../data/dtd/client/FOOditabase.dtd">
<concept id="per1151510968828" xml:lang="en"
>
<!-- For concept titles use nouns it title caps; avoid verbs.-->
<!-- e.g. Bus Type -->
<title>test2entity</title>
<shortdesc/>
<prolog>
<metadata/>
</prolog>
<conbody><p>&BAR;&&BAR;</p>
</conbody>
</concept>
I am doing validating a document using both dtd and schemas, using dtds to provide entities. But I seem to have a couple of problems with the validation and entity resolving.
1)
What happens is this, when we start the document ( see end of mail ) the entity auto complete list does not contain the entities defined in the dtd. To make it display, we nee to remove the link to the schema, save the document and use the "reset cache and validate option". If we readd the schema link, it still works. Why ? Is it a config problem on our side ?
2)
When we enter an entity from the list (after doing 1) the validation barfs and the problem shown is "The entity "FOO" was referenced, but not declared."
To solve this once again use the "reset cache and validate option" and all is well.
It would seem that the dtd vs. schema validation is unclear, what are the config I need to have to make this work ?
In the content completion preferences I have set the "Show all entities"
In the XML | XML Parser I have the "Ignore the dtd for validation if a schema is specified"
anything else ?
thanks
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//FOO//DTD FOO DITA Composite//EN"
"../data/dtd/client/FOOditabase.dtd">
<concept id="per1151510968828" xml:lang="en"
>
<!-- For concept titles use nouns it title caps; avoid verbs.-->
<!-- e.g. Bus Type -->
<title>test2entity</title>
<shortdesc/>
<prolog>
<metadata/>
</prolog>
<conbody><p>&BAR;&&BAR;</p>
</conbody>
</concept>