<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tei-c.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Filologanoga</id>
	<title>TEIWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tei-c.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Filologanoga"/>
	<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Special:Contributions/Filologanoga"/>
	<updated>2026-04-21T21:07:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Publishing_printed_critical_editions_from_TEI&amp;diff=9925</id>
		<title>Publishing printed critical editions from TEI</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Publishing_printed_critical_editions_from_TEI&amp;diff=9925"/>
		<updated>2011-09-08T15:02:35Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: added link to TEI with ConTeXt&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Publishing printed critical editions from TEI encoded files is possible, but requires the use of third-party tools and some specific knowledge. This page aims at providing information on the various ways of producing a camera-ready file, including the usual features of critical editions, i.e. multiple layers of footnotes, and optionally footnotes referencing the line numbers in the text, instead of footnote calls, etc. &lt;br /&gt;
&lt;br /&gt;
This transformation could be most easily done with XSL FO, but it is unclear whether FO supports the more elaborate options needed in a complex critical edition, like the multiple layers of footnotes or the references to line numbers. Any precision or experience on this welcome. For features unsupported by FO, the recommended solution is to convert the TEI to another format, which allows the publication as wanted. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TEI to InDesign ==&lt;br /&gt;
&lt;br /&gt;
http://www.unc.edu/~reedkm/files/TEIPublishingWorkflow_KR.pdf&lt;br /&gt;
&lt;br /&gt;
InDesign does not support roundtripping (conversing back to XML TEI)&lt;br /&gt;
&lt;br /&gt;
See also: http://wiki.tei-c.org/index.php/Publishing_printed_critical_editions_from_TEI&lt;br /&gt;
&lt;br /&gt;
== TEI to PDF / PS ==&lt;br /&gt;
&lt;br /&gt;
=== using LaTeX ===&lt;br /&gt;
There are [http://www.tei-c.org/release/doc/tei-xsl-common/profiles/default/latex/to.html TEI to LaTeX stylesheets], with the expectation of processing using XeLaTeX, and they come with a command-line script &amp;quot;teitolatex&amp;quot; for Unix/Linux. But there's a lot more to do there to get the right output.&lt;br /&gt;
&lt;br /&gt;
ledmac is a LaTeX extension which can be used for this precise purpose. Maybe one can think of using: TEI &amp;gt; XSLT &amp;gt; LaTeX with ledmac &amp;gt; PDF&lt;br /&gt;
&lt;br /&gt;
Checking this page [http://www.djdekker.net/ledmac/ ''Typesetting Critical Editions with LaTeX''], about ledmac, will provide useful information. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of a printed version of a volume of the Leibniz-Edition (Reihe 8), produced with LaTeX, which can be found as a pdf here: http://nbn-resolving.de/urn:nbn:de:kobv:b4-opus-11675 &lt;br /&gt;
Some differences between TUSTEP and LaTeX by comparing the two printed Leibniz volumes:&lt;br /&gt;
* TUSTEP can count the lines as well in normal footnotes (margins), whereas LaTeX/ledmac cannot (or at least we haven't found a way to do so). This is however no problem, because you can for example use the package &amp;quot;fnlineno&amp;quot; for that.&lt;br /&gt;
* LaTeX has advantages with the math mode, which was extremely helpful in editing the mathematical texts of Leibniz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== using ConTeXt ===&lt;br /&gt;
ConTeXt is a document processing system which is a TeX macro package created and maintained by Pragma ADE. On ConTeXt wiki (contextgarden) there is a nicely written description of typesetting TEI XML with ConTeXt: [http://wiki.contextgarden.net/TEI_xml] (there is a good succinct description of TEI strenghts and limitations, too).&lt;br /&gt;
&lt;br /&gt;
=== using TUSTEP ===&lt;br /&gt;
&lt;br /&gt;
Advantage: does the job&lt;br /&gt;
&lt;br /&gt;
Drawback: very difficult to learn&lt;br /&gt;
&lt;br /&gt;
The powerful typesetting routines support up to 9 critical apparatuses, layers of footnotes, endnotes, marginal notes, synopses (with individual apparatuses), special characters and character sets etc. A further benefit is that programming and typesetting interact very smoothly and in various directions. Thus, you can enrich the original XML-Markup with page or line references of the printed result automatically, which is useful when electronic and printed editions are supposed to accompany each other. TEI data (as all XML data) can be imported easily into TUSTEP. It treats XML data string based but not as node tree, which might be an advantage and a disadvantage as well. The output is PS or PDF. Therefore TEI &amp;gt; XSLT (to prepare encoding for TUSTEP with XML technologies) &amp;gt; TUSTEP &amp;gt; PDF or TEI &amp;lt;&amp;gt; TUSTEP &amp;gt; PDF are possible workflows respectively. Once the typesetting routine is set up for a specific edition it can be plugged as black box into XML-environments (e.g. Oxygen) to &amp;quot;typeset-on-demand&amp;quot; during XML-encoding.&lt;br /&gt;
The shortcomings: Learning TUSTEP is not a walk in the park and there are no prepackaged solutions or patterns or cookbooks. A scholar with no or minor technical background will need support to get things work.&lt;br /&gt;
For more information in English see http://www.tustep.uni-tuebingen.de/tustep_eng.html, which covers a list of scholarly edition made with use of TUSTEP. &lt;br /&gt;
For editions produced with TUSTEP have a look at http://www.uni-muenster.de/Leibniz/bd_1_1_2009.html or http://www.albertus-magnus-institut.de/MeteoraSpecimen.pdf for example.&lt;br /&gt;
&lt;br /&gt;
With TUSTEP roundtripping is no problem. Sometimes one just wants to have the information about page- and linebreaks within your outgoing XML, in order to show that information later in an online representation or use it while comparing the output with further witnesses. Then how do you do that? Here you need a system that can give you a XML-output with just that information.&lt;br /&gt;
&lt;br /&gt;
Just besides, TUSTEP is much more than a publishing system. Within the scope of a critical edition you usually need to enrich data in various forms, compare witnesses, automatically generate apparatuses and indexes etc. TUSTEP even comprises a very powerful scripting language of it's own, Tuscript.&lt;br /&gt;
&lt;br /&gt;
=== using XEP ===&lt;br /&gt;
&lt;br /&gt;
Advantage: very good&lt;br /&gt;
&lt;br /&gt;
Drawback: expensive&lt;br /&gt;
&lt;br /&gt;
http://www.renderx.com/tools/xep.html&lt;br /&gt;
&lt;br /&gt;
TEI -&amp;gt; XSLT -&amp;gt; XSL:FO -&amp;gt; XEP -&amp;gt; PDF&lt;br /&gt;
&lt;br /&gt;
Nota: FOP http://xmlgraphics.apache.org/fop/ can be a free alternative, depending on your needs (it does not implement all XSL FO)&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9918</id>
		<title>User:Filologanoga</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9918"/>
		<updated>2011-09-07T12:45:04Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: updating the ffzg.hr domain&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://filologanoga.blogspot.com Neven Jovanović]&lt;br /&gt;
&lt;br /&gt;
[http://www.ffzg.unizg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.unizg.hr Filozofski fakultet Sveučilišta u Zagrebu]&lt;br /&gt;
&lt;br /&gt;
Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb&lt;br /&gt;
&lt;br /&gt;
Hrvatska / Croatia&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Why I'm interested in TEI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Preparing a collection of Croatian Latin writers (from 14th to 20th century), with texts encoded in TEI XML.&lt;br /&gt;
&lt;br /&gt;
The collection, with TEI XML texts served through PhiloLogic is available here: [http://www.ffzg.unizg.hr/klafil/croala/ CroALa] (unfortunately, at the moment our PhiloLogic search does not work, due to system-wide administrative update at the Faculty of Humanities and Social Sciences).&lt;br /&gt;
&lt;br /&gt;
TEI XML texts from CroALa are freely available [http://sourceforge.net/p/croala/home/Home/ as a Sourceforge project].&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9917</id>
		<title>User:Filologanoga</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9917"/>
		<updated>2011-09-07T12:44:06Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Why I'm interested in TEI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://filologanoga.blogspot.com Neven Jovanović]&lt;br /&gt;
&lt;br /&gt;
[http://www.ffzg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.hr Filozofski fakultet Sveučilišta u Zagrebu]&lt;br /&gt;
&lt;br /&gt;
Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb&lt;br /&gt;
&lt;br /&gt;
Hrvatska / Croatia&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Why I'm interested in TEI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Preparing a collection of Croatian Latin writers (from 14th to 20th century), with texts encoded in TEI XML.&lt;br /&gt;
&lt;br /&gt;
The collection, with TEI XML texts served through PhiloLogic is available here: [http://www.ffzg.unizg.hr/klafil/croala/ CroALa] (unfortunately, at the moment our PhiloLogic search does not work, due to system-wide administrative update at the Faculty of Humanities and Social Sciences).&lt;br /&gt;
&lt;br /&gt;
TEI XML texts from CroALa are freely available [http://sourceforge.net/p/croala/home/Home/ as a Sourceforge project].&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9916</id>
		<title>User:Filologanoga</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9916"/>
		<updated>2011-09-07T12:35:58Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Why I'm interested in TEI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://filologanoga.blogspot.com Neven Jovanović]&lt;br /&gt;
&lt;br /&gt;
[http://www.ffzg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.hr Filozofski fakultet Sveučilišta u Zagrebu]&lt;br /&gt;
&lt;br /&gt;
Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb&lt;br /&gt;
&lt;br /&gt;
Hrvatska / Croatia&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Why I'm interested in TEI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Preparing a collection of Croatian Latin writers (from 14th to 20th century), with texts encoded in TEI XML.&lt;br /&gt;
&lt;br /&gt;
The collection, with TEI XML texts served through PhiloLogic is available here: [http://www.ffzg.unizg.hr/klafil/croala/ CroALa] (unfortunately, at the moment our PhiloLogic search does not work, due to system-wide administrative update at the Faculty of Humanities and Social Sciences).&lt;br /&gt;
&lt;br /&gt;
TEI XML texts are freely available [http://sourceforge.net/p/croala/home/Home/ as a Sourceforge project].&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9915</id>
		<title>User:Filologanoga</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9915"/>
		<updated>2011-09-07T12:35:37Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Why I'm interested in TEI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://filologanoga.blogspot.com Neven Jovanović]&lt;br /&gt;
&lt;br /&gt;
[http://www.ffzg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.hr Filozofski fakultet Sveučilišta u Zagrebu]&lt;br /&gt;
&lt;br /&gt;
Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb&lt;br /&gt;
&lt;br /&gt;
Hrvatska / Croatia&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Why I'm interested in TEI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Preparing a collection of Croatian Latin writers (from 14th to 20th century), with texts encoded in TEI XML.&lt;br /&gt;
&lt;br /&gt;
The collection, with TEI XML texts served through PhiloLogic is available here: [http://www.ffzg.unizg.hr/klafil/croala/ CroALa] (unfortunately, at the moment our PhiloLogic search does not work, due to system-wide administrative update at the Faculty of Humanities and Social Sciences).&lt;br /&gt;
&lt;br /&gt;
TEI XML texts are freely available: [http://sourceforge.net/p/croala/home/Home/ as a Sourceforge project].&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9914</id>
		<title>User:Filologanoga</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=9914"/>
		<updated>2011-09-07T12:34:30Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Why I'm interested in TEI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://filologanoga.blogspot.com Neven Jovanović]&lt;br /&gt;
&lt;br /&gt;
[http://www.ffzg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.hr Filozofski fakultet Sveučilišta u Zagrebu]&lt;br /&gt;
&lt;br /&gt;
Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb&lt;br /&gt;
&lt;br /&gt;
Hrvatska / Croatia&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Why I'm interested in TEI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Preparing a collection of Croatian Latin writers (from 14th to 20th century), with texts encoded in TEI XML.&lt;br /&gt;
&lt;br /&gt;
The collection (CroALa), with TEI XML texts served through PhiloLogic is at: [http://www.ffzg.unizg.hr/klafil/croala/] (unfortunately, at the moment our PhiloLogic search does not work, due to system-wide administrative update at the Faculty of Humanities and Social Sciences).&lt;br /&gt;
&lt;br /&gt;
TEI XML texts are freely available through Sourceforge: [http://sourceforge.net/p/croala/home/Home/].&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=ProsopToDiv.xsl&amp;diff=8846</id>
		<title>ProsopToDiv.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=ProsopToDiv.xsl&amp;diff=8846"/>
		<updated>2011-02-20T21:53:01Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet from the Croatiae auctores Latini TEI XML collection. For publishing under PhiloLogic, the TEI XML should conform to [http://sites.google.com/site/philologic3/encoding PhiloLogic specifications]; this stylesheet reformats a prosopography list for easier referencing, searching and retrieving by PhiloLogic.&lt;br /&gt;
&lt;br /&gt;
==Required input==&lt;br /&gt;
TEI XML file with a prosopography (see TEI P5 Guidelines 13.3 [http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ND.html Biographical and Prosopographical Data]).&lt;br /&gt;
&lt;br /&gt;
== Expected output ==&lt;br /&gt;
&lt;br /&gt;
Valid TEI XML file conforming to PhiloLogic specification (with headings containing a standard Croatian variant of persons' names).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known restrictions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point (5) below not implemented yet.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; &lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- title: TEI prosopography to PhiloLogic divs --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: (1) removes the general listPerson element --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: (2) wraps each person in a separate listPerson --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: (3a) add a pb so PhiloLogic can reference it --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: (3) adds div/head to each listPerson --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: (4) uses the persName[1] text for head text --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: [(5) hopefully links each listPerson with next/prev mechanism] --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: prosop2div.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-12 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file with a prosopography (see TEI P5 Guidelines 13.3 Biographical and Prosopographical Data) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: tei xml file easier to retrieve in PhiloLogic (with headings) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: (5) left for later --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- prosop2div.xsl --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- copy all --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;@*|node()&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;!-- (1) delete listPerson --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:listPerson&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- (2) wrap up each person separately in a listPerson element --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:person&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- (3a) add a pb so PhiloLogic can reference it --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:element name=&amp;quot;pb&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;n&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:number/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:element&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:element name=&amp;quot;div&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;type&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;!-- @type = persona --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;persona&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;!-- add an @xml:id --&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;xml:id&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;!-- ids begin with p --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;p&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;!-- Here we generate an identifier&lt;br /&gt;
                    &amp;quot;if you call generate-id() more than once in one run with the same &lt;br /&gt;
                    node as an argument, the processor generates the same ID value each &lt;br /&gt;
                    time for that node.&amp;quot; DuCharme, XML Quickly, p. 244-245. --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:attribute&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;!-- (3) divs have heads, with (4) value of first persName text node --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:element name=&amp;quot;head&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;tei:persName[1]/text()&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:element&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:element name=&amp;quot;listPerson&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:element&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=NotesToRefs.xsl&amp;diff=8831</id>
		<title>NotesToRefs.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=NotesToRefs.xsl&amp;diff=8831"/>
		<updated>2011-02-12T23:21:11Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: summaries&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Summary==&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet from the Croatiae auctores Latini TEI XML collection. For publishing under PhiloLogic, the TEI XML should conform to [http://sites.google.com/site/philologic3/encoding PhiloLogic specifications]; this stylesheet reformats  notes in the text, adding (empty) ref elements, creating attributes both for ref and note as required, and moving all note elements to a separate div in the back.&lt;br /&gt;
&lt;br /&gt;
==Required input==&lt;br /&gt;
TEI XML file with note and pb elements (pb is used by PhiloLogic for backlinks).&lt;br /&gt;
&lt;br /&gt;
== Expected output ==&lt;br /&gt;
&lt;br /&gt;
TEI XML file conforming to PhiloLogic specification.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known restrictions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Resp element is hardwired to auctor; ref type set to &amp;quot;nota&amp;quot;, specific for CroALa.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; &lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- title: ref for notes, moves notes to back div --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds ref elements in front of notes elements --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds xml:id, target and resp attributes to notes --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds type, xml:id, target and n attributes to refs --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: moves notes to a separate div in the back --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: makes possible linking from refs to notes and vice versa --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: movingnotes.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-12 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar), with notes and pbs (for linking back) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: tei xml file according to PhiloLogic specification --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: resp hardwired to auctor; ref type set to &amp;quot;nota&amp;quot; for CroALa --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- movingnotes.xsl --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- copy all... --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;@*|node()&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;!-- ... but the note elements, for which call the scribrefs template to edit --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:note&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:call-template name=&amp;quot;scribrefs&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;!-- test if the last child is named &amp;quot;back&amp;quot; --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:template match=&amp;quot;//tei:text/*[last()]&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:when test=&amp;quot;tei:back&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;xsl:call-template name=&amp;quot;backref&amp;quot;/&amp;gt;&lt;br /&gt;
                    &lt;br /&gt;
                &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                    &lt;br /&gt;
                    &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
                        &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- create a back element --&amp;gt;&lt;br /&gt;
                        &amp;lt;xsl:element namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot; name=&amp;quot;back&amp;quot;&amp;gt;&lt;br /&gt;
                            &amp;lt;!-- create a div with a type atrribute = notes --&amp;gt;&lt;br /&gt;
                            &amp;lt;xsl:element name=&amp;quot;div&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:attribute name=&amp;quot;type&amp;quot;&amp;gt;notes&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
                                &amp;lt;!-- give it a Latin heading  --&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:element name=&amp;quot;head&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                                    &amp;lt;xsl:text&amp;gt;Notae&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                                &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                                &amp;lt;!-- Philologic says a pb element should be here --&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:element name=&amp;quot;pb&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                                    &amp;lt;xsl:attribute name=&amp;quot;n&amp;quot;&amp;gt;nts&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
                                &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                                &amp;lt;!-- put inside it all notes from the document --&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:for-each select=&amp;quot;//tei:note&amp;quot;&amp;gt;&lt;br /&gt;
                                    &amp;lt;xsl:call-template name=&amp;quot;scribnot&amp;quot;/&amp;gt;&lt;br /&gt;
                                &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
                            &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                        &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                    &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:template name=&amp;quot;scribrefs&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--  which we replace with empty refs, citing carefully the TEI namespace --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:element name=&amp;quot;ref&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- structure: typed as notae (Latin), have ids (beginning with ref),  --&amp;gt;&lt;br /&gt;
        &amp;lt;!--  have targets (beginning with n); --&amp;gt;&lt;br /&gt;
        &amp;lt;!--  notes will have ids and targets the other way around --&amp;gt;&lt;br /&gt;
        &amp;lt;!-- the attributes should really have xml:id; --&amp;gt;&lt;br /&gt;
        &amp;lt;!-- have to check if this agrees with the philosubs.pl of PhiloLogic.  --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;type&amp;quot;&amp;gt;nota&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;xml:id&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;!-- ids begin with ref --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:text&amp;gt;r&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;!-- Here we generate an identifier --&amp;gt;&lt;br /&gt;
            &amp;lt;!-- &amp;quot;if you call generate-id() more than once in one run with the same &lt;br /&gt;
                node as an argument, the processor generates the same ID value each &lt;br /&gt;
                time for that node.&amp;quot; DuCharme, XML Quickly, p. 244-245. --&amp;gt;&lt;br /&gt;
            &amp;lt;!-- Without this feature it would be tough connecting refs with their respective notes.  --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;target&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:text&amp;gt;n&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;n&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:number/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&amp;lt;xsl:template name=&amp;quot;backref&amp;quot; match=&amp;quot;//tei:back&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;!-- we introduce a new div, typed as notes --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:element name=&amp;quot;div&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;type&amp;quot;&amp;gt;notes&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;!-- with a Latin heading  --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:element name=&amp;quot;head&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;Notae&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
            &amp;lt;!-- inside it go all notes from the document --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:for-each select=&amp;quot;//tei:note&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:call-template name=&amp;quot;scribnot&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template name=&amp;quot;scribnot&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
            &amp;lt;!-- their id begins with n, their targets with ref --&amp;gt;&lt;br /&gt;
            &amp;lt;!--  (vice versa compared to refs inside text) --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;place&amp;quot;&amp;gt;foot&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;!-- otherwise, almost the same as with ref elements (except notes are not empty) --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;xml:id&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;n&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;target&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;r&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;!-- after we select and copy everything enclosed in note, --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;!-- add a carriage return, for tidiness --&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:copy&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=NotesToRefs.xsl&amp;diff=8830</id>
		<title>NotesToRefs.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=NotesToRefs.xsl&amp;diff=8830"/>
		<updated>2011-02-12T23:16:07Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: New page: This is a stylesheet from the Croatiae auctores Latini TEI XML collection. For publishing under PhiloLogic, the TEI XML should conform to [http://sites.google.com/site/philologic3/encoding...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a stylesheet from the Croatiae auctores Latini TEI XML collection. For publishing under PhiloLogic, the TEI XML should conform to [http://sites.google.com/site/philologic3/encoding PhiloLogic specifications]; this stylesheet reformats  notes in the text, adding (empty) ref elements, creating attributes both for ref and note as required, and moving all note elements to a separate div in the back.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; &lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- title: ref for notes, moves notes to back div --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds ref elements in front of notes elements --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds xml:id, target and resp attributes to notes --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds type, xml:id, target and n attributes to refs --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: moves notes to a separate div in the back --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: makes possible linking from refs to notes and vice versa --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: movingnotes.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-12 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar), with notes and pbs (for linking back) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: tei xml file according to PhiloLogic specification --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: resp hardwired to auctor; ref type should be changed to &amp;quot;nota&amp;quot; for CroALa --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- movingnotes.xsl --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- copy all... --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;@*|node()&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;!-- ... but the note elements, for which call the scribrefs template to edit --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:note&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:call-template name=&amp;quot;scribrefs&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;!-- test if the last child is named &amp;quot;back&amp;quot; --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:template match=&amp;quot;//tei:text/*[last()]&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:when test=&amp;quot;tei:back&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;xsl:call-template name=&amp;quot;backref&amp;quot;/&amp;gt;&lt;br /&gt;
                    &lt;br /&gt;
                &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                    &lt;br /&gt;
                    &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
                        &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- create a back element --&amp;gt;&lt;br /&gt;
                        &amp;lt;xsl:element namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot; name=&amp;quot;back&amp;quot;&amp;gt;&lt;br /&gt;
                            &amp;lt;!-- create a div with a type atrribute = notes --&amp;gt;&lt;br /&gt;
                            &amp;lt;xsl:element name=&amp;quot;div&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:attribute name=&amp;quot;type&amp;quot;&amp;gt;notes&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
                                &amp;lt;!-- give it a Latin heading  --&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:element name=&amp;quot;head&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                                    &amp;lt;xsl:text&amp;gt;Notae&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                                &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                                &amp;lt;!-- Philologic says a pb element should be here --&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:element name=&amp;quot;pb&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                                    &amp;lt;xsl:attribute name=&amp;quot;n&amp;quot;&amp;gt;nts&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
                                &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                                &amp;lt;!-- put inside it all notes from the document --&amp;gt;&lt;br /&gt;
                                &amp;lt;xsl:for-each select=&amp;quot;//tei:note&amp;quot;&amp;gt;&lt;br /&gt;
                                    &amp;lt;xsl:call-template name=&amp;quot;scribnot&amp;quot;/&amp;gt;&lt;br /&gt;
                                &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
                            &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                        &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
                    &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:template name=&amp;quot;scribrefs&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--  which we replace with empty refs, citing carefully the TEI namespace --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:element name=&amp;quot;ref&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- structure: typed as notae (Latin), have ids (beginning with ref),  --&amp;gt;&lt;br /&gt;
        &amp;lt;!--  have targets (beginning with n); --&amp;gt;&lt;br /&gt;
        &amp;lt;!--  notes will have ids and targets the other way around --&amp;gt;&lt;br /&gt;
        &amp;lt;!-- the attributes should really have xml:id; --&amp;gt;&lt;br /&gt;
        &amp;lt;!-- have to check if this agrees with the philosubs.pl of PhiloLogic.  --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;type&amp;quot;&amp;gt;nota&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;xml:id&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;!-- ids begin with ref --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:text&amp;gt;r&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;!-- Here we generate an identifier --&amp;gt;&lt;br /&gt;
            &amp;lt;!-- &amp;quot;if you call generate-id() more than once in one run with the same &lt;br /&gt;
                node as an argument, the processor generates the same ID value each &lt;br /&gt;
                time for that node.&amp;quot; DuCharme, XML Quickly, p. 244-245. --&amp;gt;&lt;br /&gt;
            &amp;lt;!-- Without this feature it would be tough connecting refs with their respective notes.  --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;target&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:text&amp;gt;n&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:attribute name=&amp;quot;n&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:number/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&amp;lt;xsl:template name=&amp;quot;backref&amp;quot; match=&amp;quot;//tei:back&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;!-- we introduce a new div, typed as notes --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:element name=&amp;quot;div&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;type&amp;quot;&amp;gt;notes&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;!-- with a Latin heading  --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:element name=&amp;quot;head&amp;quot; namespace=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;Notae&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
            &amp;lt;!-- inside it go all notes from the document --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:for-each select=&amp;quot;//tei:note&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:call-template name=&amp;quot;scribnot&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:copy&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template name=&amp;quot;scribnot&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:copy&amp;gt;&lt;br /&gt;
            &amp;lt;!-- their id begins with n, their targets with ref --&amp;gt;&lt;br /&gt;
            &amp;lt;!--  (vice versa compared to refs inside text) --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;place&amp;quot;&amp;gt;foot&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;!-- otherwise, almost the same as with ref elements (except notes are not empty) --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;xml:id&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;n&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:attribute name=&amp;quot;target&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;r&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;generate-id(.)&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
            &amp;lt;!-- after we select and copy everything enclosed in note, --&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates select=&amp;quot;@*|node()&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;!-- add a carriage return, for tidiness --&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:copy&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8796</id>
		<title>Tei2wikisource1.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8796"/>
		<updated>2011-02-05T10:30:31Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* TEI to Wikisource (Vicifons) */  link to stylesheet 3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the first in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple prose texts.&lt;br /&gt;
&lt;br /&gt;
Cf. [[Tei2wikisource2.xsl]], [[Tei2wikisource3.xsl]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts prose texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds navigatione elements (vicifons formula liber) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1102wiki-prorsa.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2 and liber formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: formula Titulus2 should be repeated at the beginning of each chapter --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:teiHeader&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- content for formula Titulus2 --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:sourceDesc//tei:biblStruct)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:profileDesc//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= Liber &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- should be corrected for front and ch. 1! --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
==&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;==&lt;br /&gt;
&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;tei:p&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;.&amp;quot; mode=&amp;quot;back&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- modes for repeating the Liber formula --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;    &lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot; mode=&amp;quot;back&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
             }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:back//text()&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;!-- remove any notes from the back --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8795</id>
		<title>Tei2wikisource2.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8795"/>
		<updated>2011-02-05T10:30:06Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* TEI to Wikisource (Vicifons) */  link to stylesheet 3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the second in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple poetry texts.&lt;br /&gt;
&lt;br /&gt;
Cf. [[Tei2wikisource1.xsl]], [[Tei2wikisource3.xsl]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- remove the xmlns with exclude-result-prefixes --&amp;gt; &lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 1 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts poetry texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1005wiki-carmen.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2, liber, and versus formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: lg element becomes &amp;quot;poem&amp;quot; (change for poetry collection) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons versus: http://la.wikisource.org/wiki/Formula:Versus --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: versus formula wraps badly --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:fileDesc/tei:titleStmt&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:editionStmt|//tei:publicationStmt|//tei:revisionDesc&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:sourceDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:biblStruct//tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:profileDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div[@type eq 'poesis']&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
                    &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;verse&amp;quot;&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:head|//tei:opener&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Uses head or opener contents for title --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;== &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt; ==&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:lg&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;poem&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
        &amp;lt;/poem&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt;{{versus|&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(@n)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;}}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource3.xsl&amp;diff=8794</id>
		<title>Tei2wikisource3.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource3.xsl&amp;diff=8794"/>
		<updated>2011-02-05T10:29:21Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is last in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for bibliographic data, given in &amp;quot;Disputatio&amp;quot; tab of the text.&lt;br /&gt;
&lt;br /&gt;
Cf. [[Tei2wikisource1.xsl]], [[Tei2wikisource2.xsl]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- title: tei to wiki 3 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts bibliographic elements to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts metadata from teiHeader to operisInfo (vicifons) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1102wiki-operisinfo.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons operisInfo formula --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons operisInfo: http://la.wikisource.org/wiki/Formula:OperisInfo --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires additional manual clipping of newlines --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: text quality hardwired, should be changed accordingly --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:teiHeader&amp;quot;&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{OperisInfo&lt;br /&gt;
        |Editio= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- using title, author, editor etc. --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Fons= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:sourceDesc/tei:biblStruct)&amp;quot;/&amp;gt;&lt;br /&gt;
            &amp;lt;!-- there should be a biblStruct element in sourceDesc --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Alii Fontēs= [&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc//tei:monogr[2]/@facs)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc//tei:monogr[2])&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;]&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;!-- if there is a digital facsimile available on the internet, it is described as a second monogr --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:text&amp;gt;|Conlationes=&lt;br /&gt;
            |Qualitas={{Textquality|50%}}&amp;lt;!-- change if necessary --&amp;gt;&lt;br /&gt;
            |Nota=&lt;br /&gt;
            |Bislectus=&lt;br /&gt;
            }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:text//text()&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;!-- delete all other text --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8793</id>
		<title>Tei2wikisource1.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8793"/>
		<updated>2011-02-05T10:24:16Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* TEI to Wikisource (Vicifons) */  link to Tei2wikisource2.xsl&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the first in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple prose texts.&lt;br /&gt;
&lt;br /&gt;
Cf. [[Tei2wikisource2.xsl]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts prose texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds navigatione elements (vicifons formula liber) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1102wiki-prorsa.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2 and liber formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: formula Titulus2 should be repeated at the beginning of each chapter --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:teiHeader&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- content for formula Titulus2 --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:sourceDesc//tei:biblStruct)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:profileDesc//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= Liber &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- should be corrected for front and ch. 1! --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
==&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;==&lt;br /&gt;
&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;tei:p&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;.&amp;quot; mode=&amp;quot;back&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- modes for repeating the Liber formula --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;    &lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot; mode=&amp;quot;back&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
             }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:back//text()&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;!-- remove any notes from the back --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8792</id>
		<title>Tei2wikisource2.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8792"/>
		<updated>2011-02-05T10:23:43Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* TEI to Wikisource (Vicifons) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the second in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple poetry texts.&lt;br /&gt;
&lt;br /&gt;
Cf. [[Tei2wikisource1.xsl]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- remove the xmlns with exclude-result-prefixes --&amp;gt; &lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 1 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts poetry texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1005wiki-carmen.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2, liber, and versus formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: lg element becomes &amp;quot;poem&amp;quot; (change for poetry collection) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons versus: http://la.wikisource.org/wiki/Formula:Versus --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: versus formula wraps badly --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:fileDesc/tei:titleStmt&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:editionStmt|//tei:publicationStmt|//tei:revisionDesc&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:sourceDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:biblStruct//tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:profileDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div[@type eq 'poesis']&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
                    &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;verse&amp;quot;&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:head|//tei:opener&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Uses head or opener contents for title --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;== &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt; ==&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:lg&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;poem&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
        &amp;lt;/poem&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt;{{versus|&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(@n)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;}}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8791</id>
		<title>Tei2wikisource2.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8791"/>
		<updated>2011-02-05T10:23:13Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* TEI to Wikisource (Vicifons) */  link to Tei2wikisource1.xsl&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the second in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple poetry texts.&lt;br /&gt;
&lt;br /&gt;
Cf. [[Tei2wikisource1.xsl]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- remove the xmlns with exclude-result-prefixes --&amp;gt; &lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 1 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts poetry texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1005wiki-carmen.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2, liber, and versus formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: lg element becomes &amp;quot;poem&amp;quot; (change for poetry collection) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons versus: http://la.wikisource.org/wiki/Formula:Versus --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: versus formula wraps badly --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:fileDesc/tei:titleStmt&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:editionStmt|//tei:publicationStmt|//tei:revisionDesc&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:sourceDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:biblStruct//tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:profileDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div[@type eq 'poesis']&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
                    &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;verse&amp;quot;&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:head|//tei:opener&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Uses head or opener contents for title --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;== &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt; ==&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:lg&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;poem&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
        &amp;lt;/poem&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt;{{versus|&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(@n)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;}}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8790</id>
		<title>Tei2wikisource2.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource2.xsl&amp;diff=8790"/>
		<updated>2011-02-05T10:22:04Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the second in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple poetry texts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- remove the xmlns with exclude-result-prefixes --&amp;gt; &lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 1 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts poetry texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1005wiki-carmen.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2, liber, and versus formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: lg element becomes &amp;quot;poem&amp;quot; (change for poetry collection) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons versus: http://la.wikisource.org/wiki/Formula:Versus --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: versus formula wraps badly --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:fileDesc/tei:titleStmt&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:editionStmt|//tei:publicationStmt|//tei:revisionDesc&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:sourceDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:biblStruct//tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:profileDesc&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div[@type eq 'poesis']&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:front/tei:div/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/@type)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
                    &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;verse&amp;quot;&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:head|//tei:opener&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Uses head or opener contents for title --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;== &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt; ==&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:lg&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;poem&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
        &amp;lt;/poem&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;xsl:text&amp;gt;{{versus|&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(@n)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;}}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8789</id>
		<title>Tei2wikisource1.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8789"/>
		<updated>2011-02-05T10:12:57Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* TEI to Wikisource (Vicifons) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the first in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala Croatiae auctores Latini] documents to Wikisource (namely its Latin version, [http://la.wikisource.org/wiki/Pagina_prima Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple prose texts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts prose texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds navigatione elements (vicifons formula liber) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1102wiki-prorsa.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2 and liber formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: formula Titulus2 should be repeated at the beginning of each chapter --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:teiHeader&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- content for formula Titulus2 --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:sourceDesc//tei:biblStruct)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:profileDesc//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= Liber &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- should be corrected for front and ch. 1! --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
==&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;==&lt;br /&gt;
&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;tei:p&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;.&amp;quot; mode=&amp;quot;back&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- modes for repeating the Liber formula --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;    &lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot; mode=&amp;quot;back&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
             }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:back//text()&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;!-- remove any notes from the back --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8788</id>
		<title>Tei2wikisource1.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Tei2wikisource1.xsl&amp;diff=8788"/>
		<updated>2011-02-05T10:10:41Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TEI to Wikisource (Vicifons) ==&lt;br /&gt;
This is the first in the set of three stylesheets which convert TEI [http://www.ffzg.hr/klafil/croala|Croatiae auctores Latini] documents to Wikisource (its Latin version, [http://la.wikisource.org/wiki/Pagina_prima|Vicifons]) format, inserting wikisource &amp;quot;formulae&amp;quot; at appropriate places.&lt;br /&gt;
&lt;br /&gt;
This is a stylesheet for simple prose texts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
    exclude-result-prefixes=&amp;quot;tei&amp;quot;&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;!-- tei to wiki 2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: converts prose texts from Croatiae auctores Latini to wikisource (mediawiki) markup --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- description: adds navigatione elements (vicifons formula liber) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- author: Neven Jovanović, Croatiae auctores Latini --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- filename: 1102wiki-prorsa.xsl --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- modified: 2011-02-04 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- required input: tei xml file, using a CroALa subset (or similar) --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- expected output: text file conforming to vicifons with titulus2 and liber formulae --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons titulus2: http://la.wikisource.org/wiki/Formula:Titulus2 --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- vicifons liber: http://la.wikisource.org/wiki/Formula:Liber --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: requires removal of indent spaces --&amp;gt;&lt;br /&gt;
    &amp;lt;!-- known restrictions: formula Titulus2 should be repeated at the beginning of each chapter --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;html&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:teiHeader&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- content for formula Titulus2 --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{titulus2&lt;br /&gt;
            |Scriptor= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:author)&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |OperaeTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;!-- Operae Titulus (required) --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |OperaeWikiPagina= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- Latina Vicifontis Pagina --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Liber= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:sourceDesc//tei:biblStruct)&amp;quot;/&amp;gt;&amp;lt;!-- Liber --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |SubTitulus= &amp;lt;/xsl:text&amp;gt;&amp;lt;!-- SubTitulus --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Annus= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:profileDesc//tei:creation/tei:date)&amp;quot;/&amp;gt;&amp;lt;!-- Annus/Saeculum --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:front/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        {{Liber&lt;br /&gt;
        |Ante= Titulus operis&lt;br /&gt;
        |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:fileDesc/tei:titleStmt/tei:title)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        |Post= Liber &lt;br /&gt;
        |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(//tei:body/tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
        &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- should be corrected for front and ch. 1! --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
==&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;==&lt;br /&gt;
&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;tei:p&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&amp;quot;.&amp;quot; mode=&amp;quot;back&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- modes for repeating the Liber formula --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;    &lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:body/tei:div/tei:div&amp;quot; mode=&amp;quot;back&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            {{Liber&lt;br /&gt;
            |Ante= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |AnteNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(preceding-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
            |Post= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt; &lt;br /&gt;
            |PostNomen= &amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;normalize-space(following-sibling::tei:div[1]/tei:head)&amp;quot;/&amp;gt;&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
             }}&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;//tei:back//text()&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;!-- remove any notes from the back --&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4547</id>
		<title>LineNumber.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4547"/>
		<updated>2008-09-04T20:53:55Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Expected Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This is a XSLT script for adding a line number to each fifth line of poetry. Such numbering is standard in scholarly editions.&lt;br /&gt;
&lt;br /&gt;
This is also one of my first exercises in writing XSL; it would be interesting to see how it could be improved.&lt;br /&gt;
&lt;br /&gt;
Add any comments to the 'discussion' tab.&lt;br /&gt;
&lt;br /&gt;
== Required Input ==&lt;br /&gt;
&lt;br /&gt;
Any TEI XML file, preferably with &amp;quot;l&amp;quot; elements in it.&lt;br /&gt;
&lt;br /&gt;
== Expected Output ==&lt;br /&gt;
&lt;br /&gt;
Text only, but with line counts added in every fifth verse, enclosed in square brackets. &lt;br /&gt;
All lines are indented by one tab and several spaces.&lt;br /&gt;
&lt;br /&gt;
== Known Restrictions or Problems ==&lt;br /&gt;
Text only. Numbers lines consecutively, therefore is not appropriate for collections of poems, or for poems with several cantos etc.&lt;br /&gt;
&lt;br /&gt;
== Bibliography ==&lt;br /&gt;
&lt;br /&gt;
* Bauman, Syd, [[Count_Metrical_Lines_P5.xslt]], 2006.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2002/01/02/whitespace.html Controlling Whitespace, Part Three], 2002.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2001/05/07/xsltmath.html Math and XSLT], 2001.&lt;br /&gt;
* Nic, Miloslav, [http://www.zvon.org/xxl/XSLTreference/Output/index.html ZVON XSLT Reference], 2002.&lt;br /&gt;
&lt;br /&gt;
== Stylesheet ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Retain only text, but number every 5th line of poetry, P5 version --&amp;gt;&lt;br /&gt;
&amp;lt;!-- An exercise done and tested in oXygen --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Neven Jovanović, 2008 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:output method = &amp;quot;text&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/tei:TEI/tei:text&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- The line above was lifted from Syd Bauman's TEI stylesheet for lines of poetry --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;xsl:for-each select=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;!-- select only verse lines; should be improved for collections of poems etc. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;(position() mod 5 = 0)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Taken from XSLT math operations by Bob DuCharme: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- &amp;quot;the mod operator shows the remainder if you divide the first term by the second. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- E. g. 11 mod 4 equals 3, because 4 goes into 11 twice with 3 left over.&amp;quot; --&amp;gt;&lt;br /&gt;
&amp;lt;!-- We check whether line number divides into 5 evenly, testing whether the line number mod 5 equals zero. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
            [&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;position()&amp;quot; /&amp;gt;             &lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;]&amp;amp;#9;&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt; &lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
                &amp;amp;#9;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;!-- another by Bob DuCharme: pretty-printing with tabs (&amp;amp;#9;) --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- adapted from www.zvon.org and Bob DuCharme on whitespace --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt; &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4546</id>
		<title>LineNumber.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4546"/>
		<updated>2008-09-04T20:53:05Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Known Restrictions or Problems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This is a XSLT script for adding a line number to each fifth line of poetry. Such numbering is standard in scholarly editions.&lt;br /&gt;
&lt;br /&gt;
This is also one of my first exercises in writing XSL; it would be interesting to see how it could be improved.&lt;br /&gt;
&lt;br /&gt;
Add any comments to the 'discussion' tab.&lt;br /&gt;
&lt;br /&gt;
== Required Input ==&lt;br /&gt;
&lt;br /&gt;
Any TEI XML file, preferably with &amp;quot;l&amp;quot; elements in it.&lt;br /&gt;
&lt;br /&gt;
== Expected Output ==&lt;br /&gt;
&lt;br /&gt;
Text only, but with line counts added in every fifth verse, enclosed in square brackets. &lt;br /&gt;
All lines are indented by one tab.&lt;br /&gt;
&lt;br /&gt;
== Known Restrictions or Problems ==&lt;br /&gt;
Text only. Numbers lines consecutively, therefore is not appropriate for collections of poems, or for poems with several cantos etc.&lt;br /&gt;
&lt;br /&gt;
== Bibliography ==&lt;br /&gt;
&lt;br /&gt;
* Bauman, Syd, [[Count_Metrical_Lines_P5.xslt]], 2006.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2002/01/02/whitespace.html Controlling Whitespace, Part Three], 2002.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2001/05/07/xsltmath.html Math and XSLT], 2001.&lt;br /&gt;
* Nic, Miloslav, [http://www.zvon.org/xxl/XSLTreference/Output/index.html ZVON XSLT Reference], 2002.&lt;br /&gt;
&lt;br /&gt;
== Stylesheet ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Retain only text, but number every 5th line of poetry, P5 version --&amp;gt;&lt;br /&gt;
&amp;lt;!-- An exercise done and tested in oXygen --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Neven Jovanović, 2008 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:output method = &amp;quot;text&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/tei:TEI/tei:text&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- The line above was lifted from Syd Bauman's TEI stylesheet for lines of poetry --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;xsl:for-each select=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;!-- select only verse lines; should be improved for collections of poems etc. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;(position() mod 5 = 0)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Taken from XSLT math operations by Bob DuCharme: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- &amp;quot;the mod operator shows the remainder if you divide the first term by the second. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- E. g. 11 mod 4 equals 3, because 4 goes into 11 twice with 3 left over.&amp;quot; --&amp;gt;&lt;br /&gt;
&amp;lt;!-- We check whether line number divides into 5 evenly, testing whether the line number mod 5 equals zero. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
            [&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;position()&amp;quot; /&amp;gt;             &lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;]&amp;amp;#9;&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt; &lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
                &amp;amp;#9;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;!-- another by Bob DuCharme: pretty-printing with tabs (&amp;amp;#9;) --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- adapted from www.zvon.org and Bob DuCharme on whitespace --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt; &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4545</id>
		<title>LineNumber.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4545"/>
		<updated>2008-09-04T20:52:30Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Bibliography */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This is a XSLT script for adding a line number to each fifth line of poetry. Such numbering is standard in scholarly editions.&lt;br /&gt;
&lt;br /&gt;
This is also one of my first exercises in writing XSL; it would be interesting to see how it could be improved.&lt;br /&gt;
&lt;br /&gt;
Add any comments to the 'discussion' tab.&lt;br /&gt;
&lt;br /&gt;
== Required Input ==&lt;br /&gt;
&lt;br /&gt;
Any TEI XML file, preferably with &amp;quot;l&amp;quot; elements in it.&lt;br /&gt;
&lt;br /&gt;
== Expected Output ==&lt;br /&gt;
&lt;br /&gt;
Text only, but with line counts added in every fifth verse, enclosed in square brackets. &lt;br /&gt;
All lines are indented by one tab.&lt;br /&gt;
&lt;br /&gt;
== Known Restrictions or Problems ==&lt;br /&gt;
Text only. Numbers lines consecutively, therefore it is not appropriate for collections of poems, or for poems with several cantos etc.&lt;br /&gt;
&lt;br /&gt;
== Bibliography ==&lt;br /&gt;
&lt;br /&gt;
* Bauman, Syd, [[Count_Metrical_Lines_P5.xslt]], 2006.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2002/01/02/whitespace.html Controlling Whitespace, Part Three], 2002.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2001/05/07/xsltmath.html Math and XSLT], 2001.&lt;br /&gt;
* Nic, Miloslav, [http://www.zvon.org/xxl/XSLTreference/Output/index.html ZVON XSLT Reference], 2002.&lt;br /&gt;
&lt;br /&gt;
== Stylesheet ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Retain only text, but number every 5th line of poetry, P5 version --&amp;gt;&lt;br /&gt;
&amp;lt;!-- An exercise done and tested in oXygen --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Neven Jovanović, 2008 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:output method = &amp;quot;text&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/tei:TEI/tei:text&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- The line above was lifted from Syd Bauman's TEI stylesheet for lines of poetry --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;xsl:for-each select=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;!-- select only verse lines; should be improved for collections of poems etc. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;(position() mod 5 = 0)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Taken from XSLT math operations by Bob DuCharme: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- &amp;quot;the mod operator shows the remainder if you divide the first term by the second. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- E. g. 11 mod 4 equals 3, because 4 goes into 11 twice with 3 left over.&amp;quot; --&amp;gt;&lt;br /&gt;
&amp;lt;!-- We check whether line number divides into 5 evenly, testing whether the line number mod 5 equals zero. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
            [&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;position()&amp;quot; /&amp;gt;             &lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;]&amp;amp;#9;&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt; &lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
                &amp;amp;#9;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;!-- another by Bob DuCharme: pretty-printing with tabs (&amp;amp;#9;) --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- adapted from www.zvon.org and Bob DuCharme on whitespace --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt; &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4544</id>
		<title>LineNumber.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4544"/>
		<updated>2008-09-04T20:51:18Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Stylesheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This is a XSLT script for adding a line number to each fifth line of poetry. Such numbering is standard in scholarly editions.&lt;br /&gt;
&lt;br /&gt;
This is also one of my first exercises in writing XSL; it would be interesting to see how it could be improved.&lt;br /&gt;
&lt;br /&gt;
Add any comments to the 'discussion' tab.&lt;br /&gt;
&lt;br /&gt;
== Required Input ==&lt;br /&gt;
&lt;br /&gt;
Any TEI XML file, preferably with &amp;quot;l&amp;quot; elements in it.&lt;br /&gt;
&lt;br /&gt;
== Expected Output ==&lt;br /&gt;
&lt;br /&gt;
Text only, but with line counts added in every fifth verse, enclosed in square brackets. &lt;br /&gt;
All lines are indented by one tab.&lt;br /&gt;
&lt;br /&gt;
== Known Restrictions or Problems ==&lt;br /&gt;
Text only. Numbers lines consecutively, therefore it is not appropriate for collections of poems, or for poems with several cantos etc.&lt;br /&gt;
&lt;br /&gt;
== Bibliography ==&lt;br /&gt;
&lt;br /&gt;
* Bauman, Syd, [[Count_Metrical_Lines_P5.xslt]], 2006.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2001/05/07/xsltmath.html Math and XSLT], 2001.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2002/01/02/whitespace.html Controlling Whitespace, Part Three], 2002.&lt;br /&gt;
* Nic, Miloslav, [http://www.zvon.org/xxl/XSLTreference/Output/index.html ZVON XSLT Reference], 2002.&lt;br /&gt;
&lt;br /&gt;
== Stylesheet ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Retain only text, but number every 5th line of poetry, P5 version --&amp;gt;&lt;br /&gt;
&amp;lt;!-- An exercise done and tested in oXygen --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Neven Jovanović, 2008 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:output method = &amp;quot;text&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/tei:TEI/tei:text&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- The line above was lifted from Syd Bauman's TEI stylesheet for lines of poetry --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;xsl:for-each select=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;!-- select only verse lines; should be improved for collections of poems etc. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;(position() mod 5 = 0)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Taken from XSLT math operations by Bob DuCharme: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- &amp;quot;the mod operator shows the remainder if you divide the first term by the second. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- E. g. 11 mod 4 equals 3, because 4 goes into 11 twice with 3 left over.&amp;quot; --&amp;gt;&lt;br /&gt;
&amp;lt;!-- We check whether line number divides into 5 evenly, testing whether the line number mod 5 equals zero. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
            [&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;position()&amp;quot; /&amp;gt;             &lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;]&amp;amp;#9;&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt; &lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
                &amp;amp;#9;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;!-- another by Bob DuCharme: pretty-printing with tabs (&amp;amp;#9;) --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- adapted from www.zvon.org and Bob DuCharme on whitespace --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt; &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4543</id>
		<title>LineNumber.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4543"/>
		<updated>2008-09-04T20:49:22Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: /* Stylesheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This is a XSLT script for adding a line number to each fifth line of poetry. Such numbering is standard in scholarly editions.&lt;br /&gt;
&lt;br /&gt;
This is also one of my first exercises in writing XSL; it would be interesting to see how it could be improved.&lt;br /&gt;
&lt;br /&gt;
Add any comments to the 'discussion' tab.&lt;br /&gt;
&lt;br /&gt;
== Required Input ==&lt;br /&gt;
&lt;br /&gt;
Any TEI XML file, preferably with &amp;quot;l&amp;quot; elements in it.&lt;br /&gt;
&lt;br /&gt;
== Expected Output ==&lt;br /&gt;
&lt;br /&gt;
Text only, but with line counts added in every fifth verse, enclosed in square brackets. &lt;br /&gt;
All lines are indented by one tab.&lt;br /&gt;
&lt;br /&gt;
== Known Restrictions or Problems ==&lt;br /&gt;
Text only. Numbers lines consecutively, therefore it is not appropriate for collections of poems, or for poems with several cantos etc.&lt;br /&gt;
&lt;br /&gt;
== Bibliography ==&lt;br /&gt;
&lt;br /&gt;
* Bauman, Syd, [[Count_Metrical_Lines_P5.xslt]], 2006.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2001/05/07/xsltmath.html Math and XSLT], 2001.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2002/01/02/whitespace.html Controlling Whitespace, Part Three], 2002.&lt;br /&gt;
* Nic, Miloslav, [http://www.zvon.org/xxl/XSLTreference/Output/index.html ZVON XSLT Reference], 2002.&lt;br /&gt;
&lt;br /&gt;
== Stylesheet ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!-- Retain only text, but number every 5th line of poetry, P5 version --&amp;gt;&lt;br /&gt;
&amp;lt;!-- An exercise done and tested in oXygen --&amp;gt;&lt;br /&gt;
&amp;gt;!-- Neven Jovanović, 2008 --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:output method = &amp;quot;text&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/tei:TEI/tei:text&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Above was lifted from Syd Bauman's TEI stylesheet for lines of poetry --&amp;gt;&lt;br /&gt;
         &amp;lt;xsl:for-each select=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;!-- select only verse lines; should be improved for collections of poems etc. --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;(position() mod 5 = 0)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Taken from XSLT math operations by Bob DuCharme: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- &amp;quot;the mod operator shows the remainder if you divide the first term by the second. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- E. g. 11 mod 4 equals 3, because 4 goes into 11 twice with 3 left over.&amp;quot; --&amp;gt;&lt;br /&gt;
&amp;lt;!-- We check whether line number divides into 5 evenly, testing whether the line number mod 5 equals zero. --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
            [&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;position()&amp;quot; /&amp;gt;             &lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;]&amp;amp;#9;&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt; &lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
                &amp;amp;#9;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;!-- another by Bob DuCharme: pretty-printing with tabs (&amp;amp;#9;) --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
         &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
        &amp;lt;!-- adapted from www.zvon.org and Bob DuCharme on whitespace --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt; &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4542</id>
		<title>LineNumber.xsl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=LineNumber.xsl&amp;diff=4542"/>
		<updated>2008-09-04T20:47:47Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: New page: == Summary == This is a XSLT script for adding a line number to each fifth line of poetry. Such numbering is standard in scholarly editions.  This is also one of my first exercises in writ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This is a XSLT script for adding a line number to each fifth line of poetry. Such numbering is standard in scholarly editions.&lt;br /&gt;
&lt;br /&gt;
This is also one of my first exercises in writing XSL; it would be interesting to see how it could be improved.&lt;br /&gt;
&lt;br /&gt;
Add any comments to the 'discussion' tab.&lt;br /&gt;
&lt;br /&gt;
== Required Input ==&lt;br /&gt;
&lt;br /&gt;
Any TEI XML file, preferably with &amp;quot;l&amp;quot; elements in it.&lt;br /&gt;
&lt;br /&gt;
== Expected Output ==&lt;br /&gt;
&lt;br /&gt;
Text only, but with line counts added in every fifth verse, enclosed in square brackets. &lt;br /&gt;
All lines are indented by one tab.&lt;br /&gt;
&lt;br /&gt;
== Known Restrictions or Problems ==&lt;br /&gt;
Text only. Numbers lines consecutively, therefore it is not appropriate for collections of poems, or for poems with several cantos etc.&lt;br /&gt;
&lt;br /&gt;
== Bibliography ==&lt;br /&gt;
&lt;br /&gt;
* Bauman, Syd, [[Count_Metrical_Lines_P5.xslt]], 2006.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2001/05/07/xsltmath.html Math and XSLT], 2001.&lt;br /&gt;
* DuCharme, Bob, [http://www.xml.com/pub/a/2002/01/02/whitespace.html Controlling Whitespace, Part Three], 2002.&lt;br /&gt;
* Nic, Miloslav, [http://www.zvon.org/xxl/XSLTreference/Output/index.html ZVON XSLT Reference], 2002.&lt;br /&gt;
&lt;br /&gt;
== Stylesheet ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!-- Retain only text, but number every 5th line of poetry, P5 version --&amp;gt;&lt;br /&gt;
&amp;lt;!-- An exercise done and tested in oXygen --&amp;gt;&lt;br /&gt;
&amp;gt;!-- Neven Jovanović, 2008 --&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot;&lt;br /&gt;
    xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;br /&gt;
    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:output method = &amp;quot;text&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/tei:TEI/tei:text&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Above was lifted from Syd Bauman's TEI stylesheet for lines of poetry --&amp;gt;&lt;br /&gt;
         &amp;lt;xsl:for-each select=&amp;quot;//tei:l&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;!-- select only verse lines; should be improved for collections of poems etc. --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;(position() mod 5 = 0)&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;!-- Taken from XSLT math operations by Bob DuCharme: &amp;quot;the mod operator shows the remainder if you divide the first term by the second. E. g. 11 mod 4 equals 3, because 4 goes into 11 twice with 3 left over.&amp;quot; We check whether line number divides into 5 evenly, testing whether the line number mod 5 equals zero. --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
            [&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;position()&amp;quot; /&amp;gt;             &lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;]&amp;amp;#9;&amp;lt;/xsl:text&amp;gt; &lt;br /&gt;
        &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt; &lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text &amp;gt;&lt;br /&gt;
                &amp;amp;#9;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;!-- another by Bob DuCharme: pretty-printing with tabs (&amp;amp;#9;) --&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select = &amp;quot;.&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
         &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
        &amp;lt;!-- adapted from www.zvon.org and Bob DuCharme on whitespace --&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt; &lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=4541</id>
		<title>User:Filologanoga</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=4541"/>
		<updated>2008-09-04T20:28:54Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://filologanoga.blogspot.com Neven Jovanović]&lt;br /&gt;
&lt;br /&gt;
[http://www.ffzg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.hr Filozofski fakultet Sveučilišta u Zagrebu]&lt;br /&gt;
&lt;br /&gt;
Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb&lt;br /&gt;
&lt;br /&gt;
Hrvatska / Croatia&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Why I'm interested in TEI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Preparing a collection of Croatian Latin writers (from 14th to 20th century), with texts encoded in TEI XML.&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=4540</id>
		<title>User:Filologanoga</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=User:Filologanoga&amp;diff=4540"/>
		<updated>2008-09-04T20:28:02Z</updated>

		<summary type="html">&lt;p&gt;Filologanoga: New page: [http://filologanoga.blogspot.com Neven Jovanović]  [http://www.ffzg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.hr Filozofski fakultet Sveučilišta u Zagrebu] Department...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://filologanoga.blogspot.com Neven Jovanović]&lt;br /&gt;
&lt;br /&gt;
[http://www.ffzg.hr/klafil Odsjek za klasičnu filologiju], [http://www.ffzg.hr Filozofski fakultet Sveučilišta u Zagrebu]&lt;br /&gt;
Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb&lt;br /&gt;
Hrvatska / Croatia&lt;br /&gt;
&lt;br /&gt;
Preparing a collection of Croatian Latin writers, with texts encoded in TEI XML.&lt;/div&gt;</summary>
		<author><name>Filologanoga</name></author>
		
	</entry>
</feed>