Page 1 of 1
TEI.2 to TEI P5 conversion
Posted: Tue Oct 04, 2022 12:09 pm
by vandana
I am new to Oxygen editor.
Do Oxygen Editor automatically or by using some stylesheet convert from TEI.2 to TEI P5. I have 338 files in TEI.2 which needs to be converted into TEI P5 format. Can anyone let me know any process by which it can be done fast, please?
Re: TEI.2 to TEI P5 conversion
Posted: Tue Oct 04, 2022 12:25 pm
by Radu
Hi,
There is a migration procedure here:
https://tei-c.org/Vault/P4/migrate.html
There is also an XSLT stylesheet which can be applied on a TEI P4 document to convert it to P5, I just added an XML refactoring operation which does this here:
https://github.com/oxygenxml/dita-refac ... 20TEI%20P5
So for example if you download this entire project:
https://github.com/oxygenxml/dita-refac ... master.zip
unzip it, then in the Oxygen "Preferences"->"XML / XML Refactoring" page you add a reference to the folder "42 TEI P4 to TEI P5" then save the preferences, afterwards in the Oxygen main menu "Tools->XML Refactoring" dialog you will find an action named "Convert TEI P4 to P5" which can pe applied on multiple resources, you also have a Preview to double check.
Regards,
Radu
Re: TEI.2 to TEI P5 conversion
Posted: Tue Oct 04, 2022 1:16 pm
by vandana
Thanks it does most of the things. Only one small doubt, I have word like this
Code: Select all
<w rend="assidue" xml:id="C010037129">assidue</w>
and I want to remove
element and want the tags to look like this
Code: Select all
<w xml:id="C010037129">assidue</w>
can it be done automatically similar to as you suggested earlier
Re: TEI.2 to TEI P5 conversion
Posted: Tue Oct 04, 2022 4:42 pm
by adrian_sorop
Hi,
In order to remove an attribute (or more) from an element you can use
XML Refactoring's
Delete attribute operation.
The documentation of the operation is here:
https://www.oxygenxml.com/doc/versions/ ... zz_bgk_54b
In your case, the values of the
Delete attribute operation can be
Regards,
Adrian S.
Re: TEI.2 to TEI P5 conversion
Posted: Tue Oct 04, 2022 5:24 pm
by vandana
Thanks a lot. It worked out.