Skip to main content
lowflow
Known Participant
June 28, 2016
Question

Changing variables

  • June 28, 2016
  • 3 replies
  • 732 views

hi

i'm relativliy new to Framemaker 11. but i need to change the layout and add more titles.

I allready added the new title to the edd. but some how the elements are not updated atomataclly.

so i startet to open each element and adding the new format manualy to its variable, but that will take me probably a other week of work, because there are so many ;-(.

it would be awsome if it would be possible to update all variables with the same name in each element at once.

im looking forward to your answers.

best regards

beat

This topic has been closed for replies.

3 replies

lowflow
lowflowAuthor
Known Participant
July 5, 2016

Dear Alex,

your answer helped me a lot, thanks!

best regards

beat

lowflow
lowflowAuthor
Known Participant
July 4, 2016

Dear Gorly,

Thanks for your answer, i thoght i do some thing wrong!

however , I allread updatet the EDD saved it as EDD. i will have to check it by one of are tecnical writers if it works like they need it.

what meke's me wonder is:

the file strukter is as followed:

>xml_Ablage (in here are files which are used in the books, i dont touch does)

>xml_strucktur (thas the part i worked in, it is split as followed)

>>02_Template (in here im working on a new Layout on the template.fm)

>>01_Struktur (in here is the edd and dtd saved an a whole bunch of text-, präfix-, sufix-ruls. if i open one of this, than there is a variable caled "LanguageTest":

Unfortunately this Variable does not contain the Titel_E4 which I added previosly in the EDD.

so i thoght i need to open each of them and add the Titel_E4 to the variable.

So the question is, do i have to update this variable manauly in each of them, or should it be updated automatacly by any prosses?

best regards,

beat

Inspiring
July 4, 2016

Hi beat,

what I can see from that small snippet, your DTD is somewhat - just being honest - stupid.

Whoever created the DTD made one major mistake: creating an element for each occurrence of an element within the structure hierarchy.

This makes things now overly complicated.

To preserve your legacy documents, you will need to keep this awkward structure in its basic configuration - at least for now (you really should consider a transformation to "real" XML in the long run).

So much for me ranting - now to the (part) solution:

As you mentioned, you've already created a new element <Titel_E4> - this is good. You will now need to add this element to the DTD too for your XML roundtripping. After this, you'll need to set up a context rule in the EDD, that gives your new element the desired formatting ("in allen Kontexten/absatzformatierung/titel4").

When you've done that, you will also need to import the "new" EDD into the template .fm file. Be sure to have a paragraph format called "titel4" (see above). This will reliably set your formatting to the desired output for each document, that uses your NEW template.

As you have an XML process in the background, even older documents should then recognize this new feature, when they are opened in FM.

Regarding the variable: don't touch it - at least not as long as some process requires it. The EDD snippet you provided leads me to believe that your language stuff is controlled by the attribute "Sprache". The variable on the other side suggests, that it was only used for testing purposes. But I could be wrong on that one

It is hard to judge from here how your process is set up and what might be involved. If there are other programs involved than FM, you will need to teach them how to react to your new element too.

cheers Alex

Legend
June 29, 2016

beat,

I can't understand your question. By nature, variables of the same name always update as a batch. Can you clarify?

Russ

lowflow
lowflowAuthor
Known Participant
June 29, 2016

Dear Russ

it's updating the same variable whitin one element but not over all elements and there are may elements.

but maybe i do some thing wrong.

Until now i opened 10 elements, then in the varianble pot i sorted the names and added to each "languageTest" variable the title4 manualy.

i cant open more than 10 elements at the time because framemaker will crash or will take for ever.

i hope this clarifys a bit.

beat

Legend
June 30, 2016

beat,

I am very sorry, but I cannot understand what you are asking about. Maybe someone else can.

Russ