Page 1 of 1

Value of the fr_name parameter in ${framework(fr_name)} and ${frameworkDir(fr_name)} variables

Posted: Sat May 03, 2025 3:33 pm
by daliboris
For those trying to get the URL path for the installed TEI framework (in my case, in <oXygen/> XML Editor 27.1, build 2025032106 on Windows).

This is only hit (and maybe a warning about a bug) for other users that need to use following variables (for example, to create a scenario that works on both Windows and macOS):
  • ${framework(fr_name)} - The path (as URL) of the fr_name framework.
  • ${frameworkDir(fr_name)} - The path (as file path) of the fr_name framework
The value of the fr_name parametr is the name of the framework, you can find it in the Document Type Associations settings or in the frameworks-components.xml file (value of the /third-party/component/name element).

Don't use quotes around the name, use only the name, for example

Code: Select all

${framework(XHTML)}
${framework(TEI P5)}
${framework(XLIFF 2.0)}
${framework(XSL-FO 1.1 with Antenna House extensions)}
Unfortunately, querying the following frameworks returns an empty string (not tested with every framework):

Code: Select all

${framework(XLIFF 2.1 [extension of: XLIFF 2.0])}
${framework(OASIS DocBook schemas)}
${framework(Open Document Format)}

Re: Value of the fr_name parameter in ${framework(fr_name)} and ${frameworkDir(fr_name)} variables

Posted: Mon May 05, 2025 7:16 am
by Radu
Hi,
So:

Code: Select all

${framework(XLIFF 2.1 [extension of: XLIFF 2.0])}
The name of the framework itself is "XLIFF 2.1", this can be found out if you press "Edit" when selecting it in the Preferences->Document Type Association page, the [extension of: XLIFF 2.0] part is extra information added on the tooltip to show extra information.

Code: Select all

${framework(OASIS DocBook schemas)}
Looking in the Preferences->"Document Type Association page" we do not ship any framework with this name.

Code: Select all

${framework(Open Document Format)}
Again, we ship a framework with the name "ODF 1.2", there is no framework named "Open Document Format" in the list.

Regards,
Radu