Adding sequential numbers to table rows

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
SathyaOX
Posts: 14
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Adding sequential numbers to table rows

Post by SathyaOX » Tue Jan 31, 2017 7:07 am

Is there any option to add sequential numbers to rows in a defined pattern?
-Sathya

Radu
Posts: 6328
Joined: Fri Jul 09, 2004 5:18 pm

Re: Adding sequential numbers to table rows

Post by Radu » Tue Jan 31, 2017 9:25 am

Hi,

Is this for publishing or for editing? Do you want the numbers to actually be there in the XML? Or do you want the sequence of numbers only to appear in the published table? Having the numbers actually in the XML content does not seem like a good idea to me. For each line you add in the middle of the table you would need to manually change the number for each subsequent row. So if you choose this variant Oxygen does not have an automated way to re-number rows, we have lots of Java-based API which would allow you to build extensions for this.

If you want the rows numbered only in the publishing stage, then you probably need to customize the XSLT stylesheets which produce the output in order to output an extra column for each generated table, column containing numbers.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

SathyaOX
Posts: 14
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Adding sequential numbers to table rows

Post by SathyaOX » Fri Feb 03, 2017 10:09 am

Thanks so much Radu.
-Sathya

Post Reply