I am trying with little success to read an attribute value for a tag in a topic using ACL. This is the script that I am using:
$othermeta = tag_attr_value('othermeta', 'content', current_doc());
message "content: $othermeta";
It does not return a value for $othermeta, even though the topic I'm reading has this tag. Am I misusing the tag_attr_value method or is there a better way to do this? There could be zero or more <othermeta> tags in the topic. I have confirmed that current_doc() is referencing the expected topic.
var othermetas = doc.getElementsByTagName('othermeta');
It is preferable for me to do this in ACL.
The topic contains content like this:
<topic id="accessibility_enabling" otherprops="none" product="all"<br"/>xmlns:atict="
<title><ph id="topic-title">Enabling Accessibility Mode</ph></title>
More content here
Any help is appreciated.