tei

XSL:FO float for displaying margin notes - breaks document

陌路散爱 提交于 2019-12-05 22:31:19
I have a large medieval manuscript transcribed into XML (using TEI schema). I am using xsl:fo and Apache FOP to process into PDF. The file is constructed using nested <body> , <p> , <seg> as shown below. Occasionally <add> is used for margin notes. <body> <p> <title>title here</title> <seg>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque a orci non mauris convallis imperdiet consequat nec purus. Cras mollis lacus vel lectus facilisis, non hendrerit velit tempor. Phasellus tempor urna vel accumsan dignissim.</seg> <seg>Aliquam porta eu nunc sed laoreet. Sed<add type='margin

XSLT output to HTML: add an HTML element with incremented number, based on another element

倖福魔咒の 提交于 2019-12-02 21:06:43
问题 I have tei:xml documents which I am transforming into HTML with XSLT 2.0. The effective structure of the tei documents look like this: ... <p xml:lang="LA"> <seg type="a" corresp="#fooid"><date type="doc_date" when="1245"/>In non hendrerit metus. Sed in posuere eros, sit amet pharetra lacus.</seg> <seg type="a">Nullam semper varius justo, vitae mollis turpis dapibus sit amet. Donec<note type="public_note"></note> rhoncus tempor urna sit amet imperdiet.</seg> <seg type="a">Integer id ante nunc

XSLT 2.0 creating incremental footnote numbers in HTML output through multi-stage transformation

六月ゝ 毕业季﹏ 提交于 2019-12-02 11:05:37
This question builds on the responses to my original question , where it was suggested that I post a followup. This concerns attempting to integrate the XSL code from the previous post. In the previous question I presented a simplified version of the TEI:XML document I am transforming into HTML using XSLT 2.0 (the full tei file and current xslt can be found here https://xsltfiddle.liberty-development.net/bdxtqT/6 ). This is a fuller view of the hierarchy, but not all details: <tei> <teiHeader/> <text> <front/> <body> <p xml:lang="LA"> <seg type="typefoo" corresp="#foo601" xml:id="foo361">

XSLT output to HTML: add an HTML element with incremented number, based on another element

霸气de小男生 提交于 2019-12-02 09:15:35
I have tei:xml documents which I am transforming into HTML with XSLT 2.0. The effective structure of the tei documents look like this: ... <p xml:lang="LA"> <seg type="a" corresp="#fooid"><date type="doc_date" when="1245"/>In non hendrerit metus. Sed in posuere eros, sit amet pharetra lacus.</seg> <seg type="a">Nullam semper varius justo, vitae mollis turpis dapibus sit amet. Donec<note type="public_note"></note> rhoncus tempor urna sit amet imperdiet.</seg> <seg type="a">Integer id ante nunc. Curabitur at ligula sed arcu consequat gravida et id orci. Morbi quis porta dolor.</seg> <seg type="a

Load XML to Dataframe in R with parent node attributes

☆樱花仙子☆ 提交于 2019-11-27 08:44:24
问题 I have an XML file (a TEI-encoded play) that I want to process into a data.frame in R, where every row of the data.frame contains one line of the play, the line number, the speaker of that line, the scene number, and the scene type. The body of the XML file looks like this (but longer): <text> <body> <div1 type="scene" n="1"> <sp who="fau"> <l n="30">Settle thy studies, Faustus, and begin</l> <l n="31">To sound the depth of that thou wilt profess;</l> <l n="32">Having commenced, be a divine