Extend Script - How can I access the prefix of a prefix rule for a certain element
I need to publish structured documents to xml. Some of the Headings are created by prefix rules in the EDD. When I publish the document to xml, the headings are missing in the xml.
I am a scripting novice to be honest, I have no clue how to get the text out of the prefix rule, which depends on the context. In the FrameMaker scripting guide I found the following objects which may or may not handle the prefixes
- Element.MatchingPrefixClause; of data type Objects (ID of the prefix clause that apply to the element)
- ElementDef.PrefixRules; of data type objects (IDs of the prefix format rules)
- FmtRuleClause.ElemPrefixSuffix: of data type string (The text of the string)
I am able to select the heading element, but how the hell do I get the content of the prefix from there?
Any hints appreciated!
