Page 1 of 1

Jump to a a particular tag by number

Posted: Tue Oct 14, 2014 3:09 pm
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

Re: Jump to a a particular tag by number

Posted: Tue Oct 14, 2014 3:22 pm
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

Re: Jump to a a particular tag by number

Posted: Wed Oct 15, 2014 1:07 am
by feedee
Works a treat! Many thanks Radu!