Page 1 of 1

Some issue for tei conversion html

Posted: Wed Jun 08, 2022 1:12 pm
by moon_scar
At present, I use oxgarage to build a web service to convert tei to html .
There are some issues with the generated html page.
  • The number of TOC entries is not reasonable. I want to use the value of the n attribute in the head tag in the original tei file as the directory number.
  • The conversion method of formula tag in tei file is unreasonable. I want the formula content in the html to be wrapped by a tag, such as a div.
  • The content in the abstract in the Tei file is not converted into the html file, I want to create a template for the abstract part.
The number of the xslt file is huge and I would like to get some suggestions for modifications, which files should be modified .

Re: Some issue for tei conversion html

Posted: Wed Jun 08, 2022 1:35 pm
by Radu
Hi,

Oxygen uses for TEI to XHTML publishing the TEI XSLT stylesheets maintained by the TEI C organization:
https://github.com/TEIC/Stylesheets
We do not know many details about how they work and can be configured.
Maybe you can try to register on the TEI mailing list and ask there: https://tei-c.org/support/#tei-l
If you are using Oxygen XML Editor for TEI to XHTML publishing, if in the Oxygen "Configure Transformation Scenarios" dialog you edit the transformation scenario you can click the "Parameters" button and Oxygen will show you all pameters defined in the TEI stylesheets, for example there is a param named "tocDepth".
There is also some documentation here:
https://tei-c.org/tools/stylesheets/tei ... -handbook/

Regards,
Radu

Re: Some issue for tei conversion html

Posted: Thu Jun 09, 2022 5:53 am
by moon_scar
Thanks for your replies, these are very useful to me