Current Position:Home > FM Variables renamed and duplicated after save to XML

FM Variables renamed and duplicated after save to XML

Update:11-30Source: network consolidation
Advertisement
Hello again,
I am also encountering an issue where saving structured docs as XML results in duplication and renaming of variables.  For example, in a particular document I have the name of the web service inserted as a variable 4 times throughout the piece. After I save to XML, the variable is renamed fmvar1, fmvar2, fmvar3, and fmvar4.  So, when I open the doc again, instead of having 1 variable in 4 locations, I now have 4 variables in 4 locations.
Is this something I should expect, as there is no legitimate way to tell the XML doc (or for FM to pass that information on) that it is the same variable, used in 4 places?
Regards,
Hannah

The Best Answer

Advertisement
Hannah,
  You don't mention the name of your FrameMaker variable. I suspect that it contains a space or other special character that is not permitted in an XML name.
  FrameMaker writes variables to XML as general entity references. If a variable name is a valid MXL name, by default it uses the variable name as the entity name. Multiple references to such an entity can occur. If not, it names the variable fmvar# where # is an integer. In this case, you are correct that it generates a different entity for each occurrence of the variable. I also consider this proliferation of general entities to be a bug.
  You can change the default behavior with a r/w rule in the form:
    entity "twowords" is fm variable "two words";
  In your case, thus, you have at least 3 choices:
1) Live with the multiple entities
2) Rename the variable to something that can be used as an entity name
3) Add a r/w rule for each variable in any document that causes this problem
        --Lynne
  • FM Variables renamed and duplicated after save to XML Update:11-30

    Hello again, I am also encountering an issue where saving structured docs as XML results in duplication and renaming of variables.  For example, in a particular document I have the name of the web service inserted as a variable 4 times throughout the

  • In Pages I used to be able to edit a template and "save a version" to update the template. Now i have to rename the template to save the changes. Why is this happening? what happen to "save a version"? its no longer an option under "file". Update:10-11

    In Pages, In the past, I was able to edit a template and "save a version" to update the template. Now i have to rename the template to save the changes. Why is this happening? what happen to "save a version"? its no longer an option un

  • Using a variable value in CDATA for generating an XML type in Oracle Update:10-11

    Hello, I have prepared a function given below where I have some input variables & I have to generate one XML with those input variables as tag attribute value: create or replace function NEW_PROJECT_DETAILS ( p_ReferenceId in varchar2 , p_Project_No

  • How can I save a XML file with JAXP1.1? Update:10-11

    Dear All. I write a program to create XML file with DOM model, but I can't know how to save it? My environment is JAXP1.1 and JDK1.3.1,I has been required not use other XML parser toolkits,only JAXP1.1. How can I do? thank you. Many person give me a

  • Error while passing ODI variable in JNDI Url for JMS Queue XML Update:10-11

    Hi, Facing a weird problem while passing ODI variable in JNDI Url for JMS Queue XML. Below is the JNDI Url configured under ODI Topology: JNDI Url: t3://<host_location>?d=#TEST.SCHEMA_FILE&s=<schema_name>&JMS_DESTINATION=jms/<queue_

  • Dynamic variable value based on a value from xml Update:10-11

    I have a invoice template and it is for 4 different companies in my organization. Based on the organization I need to have a different value for a variable that adds blank lines to the end of the invoice. Is there anyway to assign a value to variable

  • Rename or Tag Element for particular Xml Element. Update:11-30

    hi, How to rename or Tag Element for particular Xml Element using Java Script. eg)label to labels Thanks in advance SmileHi,        Thanks a lot Jeff...         I'm doing a huge program with lot of tasks. While doing that,my mind didn't strike to che

  • Save whole XML file in SQL table field Update:11-30

    Hi  All,  I want to save whole XML message in sql table field which is with datatype XML(.).. how can i achieve this. Thanks in advance. 2Venture2I did a prototype to do what you are asking. I actually haven't inserted into the xml data type in SQL S

  • Error during "Save as XML" - SVG Image Update:11-30

    Hi, I am trying to save the book as XML (File à Save as XML), but its showing the attached error (FMError.PNG). FrameMaker created a error log and am pasting its header contents below. === Header Begin === Internal Error: 9004, 6920492, 9676798, 0 Fr

  • Automate Save As XML Update:11-30

    I have a bunch of PDFs that I want to save as XML, is there any way to do this automatically? Without having to open them all up and go to File -> Save As -> XML. ThanksI am trying to solve the exact same problem.  What is batch sequencing?  I need