
Hi Roderik, This looks quite hard to properly implement. You could probably use our StylesFilter API from a plugin:
http://www.oxygenxml.com/doc/ug-oxygen/#concepts/stylesfilter-plugin.html
to dynamically add some static content before each image and table title. But you would still need to somehow compute that counter for each figure and title so you would need to go over the entire list of topics referenced in the DITA Map and count all occurrences of figures and titles which are before the ones from the current edited DITA topic. This would take a lot of time so you would need to somehow create a cache and update it when topics are edited and saved. And a topic can be referenced multiple times in the DITA Map, what counter number would you compute for figures and tables inside it? Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/26/2015 2:46 PM, Roderik Dernison wrote:
Hi Radu,
Thanks for your response.
I mean displaying numbers for images etc. in oXygen, your second option.
Kind regards,
Roderik Dernison
-----Oorspronkelijk bericht----- Van: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] Namens Oxygen XML Editor Support (Radu Coravu) Verzonden: donderdag 26 februari 2015 13:07 Aan: oxygen-user@oxygenxml.com Onderwerp: Re: [oXygen-user] count objects in ditamaps?
Hi Roderik,
Do you want to count them as a statistic? Do you want to show the number of the image/table when editing DITA topics? Or do you want it to appear when publishing the DITA content to a certain output format? And to what particular output format?
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 2/26/2015 11:17 AM, Roderik Dernison wrote:
Hi,
We need a way to automatically count images, tables, examples in topics grouped in ditamaps.
I.e.:
Map 1
Topic 1
Example 1.1
Example 1.2
Topic 2
Example 1.3
Example 1.4
Map 2
Topic 3
Example 2.1
Topic 4
Example 2.2
Example 2.3
Is this possible? I know that per topic you can count with css with preceding siblings. Should I make a plugin that can count and number objects over ditamaps?
Kind regards,
Ing. Roderik Dernison Programmeur/ontwikkelaar
*INL *** **Schatkamer van de Nederlandse Taal*/ /Matthias de Vrieshof 2 * Kamer 106a * 2311 BZ Leiden
Tel. +31 (0)71 527 2491 * www.inl.nl <http://www.inl.nl/>
---------------------------------------------------------------------- --
---------------------------------------------------------- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien het bericht niet voor u is bestemd, verzoeken wij u dit aan ons te melden en het bericht te verwijderen.
This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us and delete the message. ----------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
________________________________
---------------------------------------------------------- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien het bericht niet voor u is bestemd, verzoeken wij u dit aan ons te melden en het bericht te verwijderen.
This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us and delete the message. ----------------------------------------------------------