Auto generated IDs

rknechte
Posts: 1
Joined: Wed Oct 24, 2012 9:28 pm

Auto generated IDs

Post by rknechte » Wed Oct 24, 2012 9:31 pm

I am wondering if there is anyway to auto-generate id numbers for paragraphs in a TEI document (<p xml id="p11"> or something like that) without using an xslt transformation - thoughts?

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

Re: Auto generated IDs

Post by Radu » Thu Oct 25, 2012 8:40 am

Hi,

Here's one way:
If you open the TEI document in the Author page, in the TEI P5 main menu there is an entry called ID Options....
You can check the auto-generate IDs checkbox and add <p> to the list (maybe removing <div>).

Then select the entire content in the Author page, right click and choose Generate IDs.

The IDs will also be generated when new paragraphs are inserted when working in the Author page.

The ID pattern can use either ${id} or ${uuid} to generate an unique identifier, the ${id} generates a shorter unique ID.

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

Post Reply