Question
Variables with the colon character
I am trying to create a variable in my book template that will reference the "xml:lang" attribute in my highest level "topic" tag. Presently ,the variable always shows up blank, I think due to the fact that FM reads the colon as an indicator to look in a specific tag for a specific attribute. Since there is no "xml" or "lang" tag it turns up no result.
Here are some options I've tried.
<$attribute[xml:lang]>
<$attribute[xml:lang:topic]>
<$attribute[topic:xml:lang]>
<$attribute["xml:lang"]>
<$attribute[(xml:lang)]>
<$attribute[xml\lang]>
<$attribute[xml/lang]>
...and other various incarnations of these
So far, the only option I can come up with that works is to create a user variable and simply change it before I publish to PDF each time or to mirror the value in an attribute which does not contain a colon like "audience" or "otherprops". Either of these is kind of a pain and I would like to avoid them if I can. If I can't, thats okay, but I'd prefer to automate as much as I can.
I am using FM 8.
Here are some options I've tried.
<$attribute[xml:lang]>
<$attribute[xml:lang:topic]>
<$attribute[topic:xml:lang]>
<$attribute["xml:lang"]>
<$attribute[(xml:lang)]>
<$attribute[xml\lang]>
<$attribute[xml/lang]>
...and other various incarnations of these
So far, the only option I can come up with that works is to create a user variable and simply change it before I publish to PDF each time or to mirror the value in an attribute which does not contain a colon like "audience" or "otherprops". Either of these is kind of a pain and I would like to avoid them if I can. If I can't, thats okay, but I'd prefer to automate as much as I can.
I am using FM 8.