Utils and conversion tools for the R stemmatology package.
⚠ This is not the main repository of the package, available at: https://github.com/Jean-Baptiste-Camps/stemmatology
The xsl
stylesheet TEI-parallel-app_to_CSV.xsl
is intended to convert
a TEI-encoded parallel-segmentation document to the tabular format, implemented
as csv.
The stylesheet as three parameters:
appTypes
: a sequence of strings containing theapp/@type
to be retained. Set to empty (''
) for no selection at all. DEFAULT:substantive
.printTypes
: a boolean, wether or not to print the variant location type (app/@type
) as the first column. DEFAULT:false()
The stylesheet outputs a document:
filename.csv
, the document to be imported instemmatology
.
Note that if variant locations (app
) have an @xml:id
, it will be used as their identifier.
Otherwise, an id will be assigned (based on order in the document).