Auto generated IDs

Posts: 1

Auto generated IDs

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?
Posts: 5921

Re: Auto generated IDs

Thu Oct 25, 2012 8:40 am


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

Return to “TEI”

Who is online

Users browsing this forum: No registered users and 0 guests