Auto-number elements

Questions about XML that are not covered by the other forums should go here.
ellensf
Posts: 1
Joined: Sun Jun 26, 2022 8:52 pm

Auto-number elements

Post by ellensf »

Hello,
I'm wondering if it is possible to auto-generate n="x" for <p>, <s>, and <w> elements.
So far, I've been adding the numbers manually, but with a large document or large corpus, this is exceedingly tedious and time-consuming. Is there a way to select, say, a group of words tagged with <w> and auto-add n="x" in proper sequence?
Thanks!
-Ellen
Radu
Posts: 9212
Joined: Fri Jul 09, 2004 5:18 pm

Re: Auto-number elements

Post by Radu »

Hi Ellen,

I'm afraid we do not have such default functionality in the TEI editing framework bundled with Oxygen.
There is a TEI users list, maybe you could ask there if others have created such a customization: https://tei-c.org/support/
Generally speaking Oxygen has API support for adding specific custom actions, are you editing the XML content in the Text or in the Author visual editing mode?
We have for example the possibility to add a custom XML refactoring operation based on XSLT which would be applied on the entire XML document:
https://www.oxygenxml.com/doc/versions/ ... tools.html

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