Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

ElementPgfFormatTag r/w Translation

Explorer ,
May 03, 2009 May 03, 2009

Using: FM 8.0

During the import of a DTD into the related EDD, I am trying to assign the proper TextFormatRules>ElementPgfFormatTag that is needed in the final fm document.

For example when I import a DTD into my EDD with the element name “TableProduct” the r/w rules automatically identifies this as a FrameMaker table element and set the object appropriately, by using:

element "TableProduct" is fm table element;

Is there a r/w rule that would do the same but only for the ElementPgfFormatTag element?

Thanks in advance for everyone’s help.

TOPICS
Structured
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
May 04, 2009 May 04, 2009

I am confused as to what you are trying to do.

You state you are importing a DTD into its related EDD. It is my understanding that the EDD already contains the same structure rules as its related DTD.I do not know what it means to import a DTD into an existing EDD.

Are you trying to open an XML file, which gets converted to a Frame file? If so, you can edit the EDD to assign the correct paragraph format tag to each element. There is no need for a read/write rule.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 04, 2009 May 04, 2009

Van, thanks for your response, I will attempt to clarify my question.

Firstly, you are correct, the EDD is the DTD + CSS all in one, and more. Users can import a DTD into an EDD rather than staring it from scratch, as I did in this case. Then you can further develop the EDD to contain information beyond the DTD specifications. One of these pieces of information that can be added is assigning a certain FM Paragraph Tag to an element.

I use this DTD not only for FM but for other documents as well. For this reason as changes are made to the DTD, it is re-imported into the FM EDD on a regulator basis. Unfortunately when this is done it wipes out the associated Paragraph Tag element “ElementPgfFormatTag” from every element.

This is why I am looking to see if anyone knows a r/w syntax that could be used to established the “ElementPgfFormatTag” for these assigned elements during the DTD import process.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 05, 2009 May 05, 2009

jeddlemen,

I've never tried it, but apparently the Import DTD command is designed for this purpose. Here's a page that talks about it:

http://wiki.scriptorium.com/tiki-index.php?page=Updating+an+EDD+with+DTD+information

Russ

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 05, 2009 May 05, 2009

Hi,

According to fm8 dev guide, the dtd import to edd should keep the formatting rules intact. I haven't used the import dtd for ages, because as said, the update edd from dtd wiped out them and thus I did the changes manually..

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.

R/W rule "preserve fm element definition" can be used to keep the element definition intact during dtd import, but again..the attributes and general rules don't change either..

Martti

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 05, 2009 May 05, 2009

The use of the Import DTD (or Import schema) command is the best way to ensure a correct relationship between the EDD and the DTD or schema. If you have control over the content of the DTD, it makes sense to make structural changes in the DTD only. Then import those changes into the EDD. My reasoning is that in the DTD you have the benefit of parameter entities (and other features), that allow reuse of components. If you export a DTD from the EDD you only get a simple flat DTD.

On the problem of ElementPgfFormatTag elements being removed during the update process, I cannot reproduce this behaviour in FM8 or FM9. Have you tried using the ParagraphFormatTag element in a ContextRule or AllContextRule element instead? 

Regards

Ian

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 05, 2009 May 05, 2009

Hi Ian,

Last time I used import DTD was with FM7 and with that version, the EDD lost all formatting rules for modified elements. If FM8/9 has this fixed, great news.. I'll test this.

BR, Martti

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 05, 2009 May 05, 2009
LATEST

IanProudfoot and MarttiP,

I originally experienced this problem in FM7, I have since moved to FM8. The strange thing is that the problem is gone now. I attempted the ParagraphFormatTag element in a ContextRule and AllContextRule element as Ian suggested. Now regardless of the ElementPgfFormatTag, or ParagraphFormatTag usage these formats are now unaffected by the DTD import.

This anomaly has somehow fixed itself, not sure what changed. In closing, I am no longer experiencing this problem.

Thanks for your help!

And for everyone else who also responded, thanks for your help too.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines