Copy link to clipboard
Copied
Hi guys.
I have a dtd file that i have to modify.
i t contains the following element:
<!ELEMENT Pubinfo (Pubdate, Pubnumber)>
I modified it in this way:
<!ELEMENT Pubinfo (Pubdate, Pubnumber?)>
so now the Pubnumber is optional and not mandatory.
I opened the dtd on framemaker (7.x) and then saved it to optain an edd file.
I got a template file that use the edd file i just modified so i have to update the template file to use the modified edd.
so i open both files and then i do: import element definitions and then choose my modified edd from the list and framemaker says that the edd files was imported correctly. Now if i open a file to modify and choose to use my template, the document still require the Pubnumber element to be mandatory.
It seems that the modifications i made on the edd and reimported on the template doesn't take effect.
Can anyone help me please?. Is there something wrong on what i'm doing?
Thanks in advance.
Copy link to clipboard
Copied
Hi, ds!
I don't see anything wrong with your ELEMENT definition so, make sure that the structure change took effect in the template. With the template file opened in FrameMaker, select File | Structure Tools | Export Element Catalog as EDD. This will take a few minutes, depending on the size of the structure definition. You should see something that resembles EDD's structure definition. Search for "Pubinfo" and see if the definition is correct.
Regards
Chuck
Copy link to clipboard
Copied
If the ELEMENT definiton is OK for the template, verify it in the document.
Copy link to clipboard
Copied
Hi Chuck,
thanks for the reply.
I do the export catalog and i still see Pubnumber mandatory. what is wrong?
can you tell me what is the procedure to take to modify the edd an then reimport it on the template to override catalog?
i do the following steps:
-modify the DTD (Pubnumber now is optional)
-open the DTD on FM and then save it as document.
Maybe i'm saving the EDD in a wrong way. When i open the DTD i just do File -> Save As and then chose Document.
Is that correct?
-Then i open the template document and the EDD. From the template document i do: File -> Import -> Elements Definitions and then choose my EDD from the list.
- If the thing are Ok FM says that the EDD was imported on the template correctly (That's what it syas to me).
Is it correctly?
Copy link to clipboard
Copied
I've never done the complete DTD import thing. Whenever I make small changes to the DTD, I manually maked them in the EDD file as well. With the EDD open and with the template open, you should be able to import element definitions into the template from the EDD as I suspect you are now doing.
Copy link to clipboard
Copied
I do not use an updated DTD to update an EDD, but the following is from the structure applications guide:
Updating an EDD from a DTD
These are two of the reasons you may need to update an EDD:
• If you started the EDD from a DTD, in most cases you need to modify the translation by
developing and testing read/write rules in an iterative process. As part of each iteration, you
update the EDD using the DTD and your current set of read/write rules.
• If any element or attribute declarations in the DTD change, you update the EDD to revise the
corresponding definitions in the EDD.
To update an EDD from a DTD, choose Import DTD from the File>Structure Tools submenu in the
EDD. Select the DTD in the Import DTD dialog box. If the Use Application dialog box appears,
select a structure application for the EDD. (Use Application appears only if no application is
specified in the EDD.)
In the updated EDD, FrameMaker adds definitions for new elements from the DTD, removes
definitions for elements that are no longer defined, and revises the content rules and attribute
definitions for the remaining elements to match changes in the DTD and the current read/write
rules. Any format rules and comments in the EDD are not affected, except for those in definitions
that have been removed. (The software records these changes in a log file.) You can save the
modified EDD if you want to keep the changes.
Good luck,
Van
Copy link to clipboard
Copied
Two comments on the process you describe:
1) You say you open the DTD. I assume you opened it with StructureTools > Open DTD rather than simply opening it as a file.
2) Opening the EDD and then using StructurreTools > Import DTD to add the ? to the general rule is correct. Remember, though, that simply changing and saving the EDD will not update existing documents or your template. You must import element definitions from the modified EDD (or from a file into which those definitions have been imported) into the template and existing documents.
--Lynne