I'm working with poetry and I want to give to every verse an own ID that mixes the number of the poem and the number of the verse.
Header:
<?xml version="1.0" encoding ="UTF-8" standalone ="no" ?>
<TEI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<teiHeader>
<fileDesc>
<titleStmt>
<title n="013">13</title>
Verses:
<lg>
<l n="01"></l>
</lg>
I want to create an xml:id attribute for <l>
like p013-v01 (poem 13, from n@title; verse 1 from n@l). Is there any way to do it automatically for every single line?
The purpose of this is to compare versions and editions of the same poem. I was told to do this, but to be honest I'm not sure of the utility of this xml:id attribute. I hope you can help me. Thanks!
question from:
https://stackoverflow.com/questions/65846638/xml-tei-how-to-call-two-attributes 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…