Jump to a a particular tag by number

Are you missing a feature? Request its implementation here.
feedee
Posts: 5
Joined: Sun Feb 23, 2014 1:24 am

Jump to a a particular tag by number

Post by feedee »

Oxygen XML Author has a Find > Go to option, which enables you to jump to a specific line number in Text mode. In Author mode, would it be possible to have an option that lets you jump to a particular tag number e.g. go to the 57th <p> tag in a topic or the 99th <topicref> in a map? This would be useful for debugging builds, where the log (presented in an HTML page) reports issues with specific numbered tags in files. The source file itself could be error-free, but conditional or other processing could cause such errors to be generated. Thanks
Radu
Posts: 9438
Joined: Fri Jul 09, 2004 5:18 pm

Re: Jump to a a particular tag by number

Post by Radu »

Hi,

You can use our XPath toolbar for such cases.
For example if you want to see where the 55'th topicref is in the DITA Map you should execute this XPath:

Code: Select all

(//*[contains(@class, ' map/topicref ')])[10]
The element check is done using the DITA @class attribute because there may be other references to topics which are not explicitly named "topicref", for example you could have "chapter" or "keydef".

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
feedee
Posts: 5
Joined: Sun Feb 23, 2014 1:24 am

Re: Jump to a a particular tag by number

Post by feedee »

Works a treat! Many thanks Radu!
Post Reply