Find dialog, XPath, and attributes
Posted: Tue Nov 25, 2008 7:43 pm
I love being able to limit searches using XPath in the find dialog. However, either I'm using it wrong, or I can't use it to limit the search to values in attributes.
Here's the kind of thing I'm doing. First the source:I'd like to change the \ character in the href attribute to a / but leave the \ in "foo\bar" alone.
If I do a find/replace and use //@href, the example code isn't found. If, instead, I do //*[@href], it is found. However, the replace would change the string "foo\bar" to "foo/bar".
Any tips on how to do this in oxygen?
Here's the kind of thing I'm doing. First the source:
Code: Select all
<relcell>
<topicref href="..\homepage\home_taskbar.xml">foo\bar</topicref>
</relcell>
If I do a find/replace and use //@href, the example code isn't found. If, instead, I do //*[@href], it is found. However, the replace would change the string "foo\bar" to "foo/bar".
Any tips on how to do this in oxygen?