Tagging filepath elements that contain variables

Last Updated : Apr 26, 2016 |
When DITA content is translated, the filepath element is not translated because information like paths, filenames, directory names should remain in English. However, variables within a filepath element should be translated. Therefore, for the content to be translated properly, we need to tag the variables separately outside of the filepath, but the whole path should be contained with an element. This procedure provides the steps for tagging a filepath with variables so that the filepath is not translated but any variables are. This process is more complicated than putting the whole path in one filepath and including the varname tag within filepath, but it ensures that the translation is correct.
Prolog information
  1. Position the cursor where you want to insert the filepath, press Enter, and select ph.
  2. Put the cursor in the ph element, press Enter, and select filepath.
  3. Put the cursor in the filepath element and enter the part of the filepath that appears before any variables.
  4. Put the cursor after the filepath with the ph element, press Enter, and select varname.
  5. Put the cursor in the varname element and enter the variable.
  6. If the filepath continues after the variable, put the cursor after the varname element within the ph, press Enter, and select filepath.
  7. Put the cursor in the filepath element and enter the part of the filepath that appears after any variables.
  8. If the filepath contains multiple variables, repeat the steps to insert additional varname or filepath elements within the ph to add the entire path.