Jump to a a particular tag by number

Are you missing a feature? Request it's implementation here.
feedee
Posts: 5

Jump to a a particular tag by number

Tue Oct 14, 2014 3:09 pm

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: 5386

Re: Jump to a a particular tag by number

Tue Oct 14, 2014 3:22 pm

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

Re: Jump to a a particular tag by number

Wed Oct 15, 2014 1:07 am

Works a treat! Many thanks Radu!

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 5 guests