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.
I wasn't able to find a method in ACL that is similar to the following call in JavaScript that makes it easy to parse the tags:
var othermetas = doc.getElementsByTagName('othermeta');
It is preferable for me to do this in ACL.
The topic contains content like this:
"ditabase.dtd">
<topic id="accessibility_enabling" otherprops="none" product="all"<br"/>xmlns:atict="
<title><ph id="topic-title">Enabling Accessibility Mode</ph></title>
<prolog><metadata>
<keywords>
<ind...
More content here
</topic>
Any help is appreciated.
-Mark