Home Forums General XMetaL Discussion Macro to search through attribute value Reply To: Macro to search through attribute value

jshick

Reply to: Macro to search through attribute value

Alright, after some time away from this, I'm back. Perhaps there is no way for me to do what I'm looking for in a macro since it doesn't seem like I can even do it using the dialog box.

If I bring up the “Find & Replace” dialog box (ctrl+F), there are 3 tabs at the top: Text, Element, Entity. “Text” will find PCDATA within an element. I'm actually trying to find the value (r101) of an attribute (href) in a specific element (ref-callout) when in Normal or TagsOn Views. The ref-callout element doesn't actually contain any PCDATA, only attributes.

I can switch to plain text and just search for “r101” (but it doesn't seem like I am able to restrict by element in PlainTextView) and it will cycle through all of the occurrences of “r101”. This is not ideal as I do not want the content authors to switch into PlainTextView.

Thanks,
Jeff

Reply

Products
Downloads
Support