Auto generated IDs

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

Auto generated IDs

Post by rknechte »

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?
Posts: 8171
Joined: Fri Jul 09, 2004 5:18 pm

Re: Auto generated IDs

Post by Radu »


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.

Radu Coravu
<oXygen/> XML Editor
Post Reply