<?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=TestUser</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=TestUser"/>
	<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Special:Contributions/TestUser"/>
	<updated>2026-04-22T01:22:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Category:P4toP5&amp;diff=2682</id>
		<title>Category:P4toP5</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Category:P4toP5&amp;diff=2682"/>
		<updated>2006-07-04T12:32:53Z</updated>

		<summary type="html">&lt;p&gt;TestUser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XSLT]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Stylesheets in this subcategory should handle a particular aspect of&lt;br /&gt;
P4 to P5 translation. That is, the stylesheet should expect to read in&lt;br /&gt;
an XML instance that conforms to a P4:2004 vanilla DTD, and write out&lt;br /&gt;
the same document with one particular aspect changed so that it (the&lt;br /&gt;
particular aspect) would conform to P5. (Which release, you ask?&lt;br /&gt;
Whichever one is current at the time you write the stylesheet will&lt;br /&gt;
have to do &amp;amp;mdash; but please document the release number in your&lt;br /&gt;
stylesheet.)  Currently there is not a full set of conversion stylesheets, so please add some!&lt;br /&gt;
&lt;br /&gt;
== Rational ==&lt;br /&gt;
The idea is not to build a single, monolithic stylesheet that&lt;br /&gt;
converts P4 to P5, but rather to build a long pipeline of smaller&lt;br /&gt;
transformations that will do the job. This makes division of labor&lt;br /&gt;
easier, makes debugging much easier, and permits multiple&lt;br /&gt;
possibilities for a given task (e.g., one person might write a&lt;br /&gt;
stylesheet that converts lang= to xml:lang=, and just deletes all&lt;br /&gt;
&amp;lt;language&amp;gt; elements; another might write a similar stylesheet that&lt;br /&gt;
retains &amp;lt;language&amp;gt; elements).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Shell Scripts to Help Transformation ==&lt;br /&gt;
The shell script [[P4_enroute_to_P5.bash]] is provided to make it easy to execute&lt;br /&gt;
all of these in a row on a single input file.&lt;br /&gt;
For an alternative, more flexible method of executing a sequence of stylesheets one after the other, see [[PipedStylesheets.bash]].&lt;br /&gt;
&lt;br /&gt;
== Adding Your Own Stylesheets ==&lt;br /&gt;
If you add a new stylesheet to this category, please either update [[P4_enroute_to_P5.bash]] (by adding your stylesheet to the STYLESHEETS variable before Dot-two.xslt) or ask [mailto:stylesheets@tei-c.org stylesheets@tei-c.org] to do so for you.&lt;br /&gt;
There is no need to put &amp;quot;P4toP5&amp;quot; or anything like that in the name of your stylesheet &amp;amp;mdash; that much is implied by its being on this page!&lt;br /&gt;
&lt;br /&gt;
To make your stylesheet appear in this sub-section simply include at the top of the page:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[[Category:P4toP5]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your stylesheet is also of use to those doing something other than just &lt;br /&gt;
P4 to P5 conversion, you might also want to include:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[[Category:XSLT]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Stylesheet Assumptions ==&lt;br /&gt;
&lt;br /&gt;
The XSLT stylesheets available here make certain assumptions, and we should all make the same assumptions so that they inter-operate well:&lt;br /&gt;
&lt;br /&gt;
=== Copying Existing Elements ===&lt;br /&gt;
Because all of these stylesheets need to copy all elements that they are not dealing with, you should &lt;br /&gt;
include a &amp;lt;nowiki&amp;gt;&amp;lt;xsl:import href=&amp;quot;Copy-All.xsl&amp;quot;/&amp;gt;&amp;lt;/nowiki&amp;gt; at the beginning of your stylesheets -- see the existing stylesheets below for examples.  If you are going to use any of the stylesheets, then you should also download that one.&lt;br /&gt;
&lt;br /&gt;
=== Namespaces ===&lt;br /&gt;
TEI P5 uses the http://www.tei-c.org/ns/1.0 namespace.  However, since it is more complicated to write stylesheets which cope with both possibilities of the incoming data either already being in a namespace or not, we have standardized on leaving the transfer of the elements to the TEI namespace to the final stylesheet 'Dot-two.xslt'.  This changes the TEI P4 element 'TEI.2' to 'TEI' and imports the rest of the document into the TEI namespace.  So if you are writing P4toP5 stylesheets you should output everything without a namespace, and assume the input had no namespace.&lt;/div&gt;</summary>
		<author><name>TestUser</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=Category:Customization&amp;diff=2368</id>
		<title>Category:Customization</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Category:Customization&amp;diff=2368"/>
		<updated>2006-01-04T11:38:05Z</updated>

		<summary type="html">&lt;p&gt;TestUser: Spam Removal&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page collects together any pages relating to customizations of the TEI schemas.  If you have created a customization &lt;br /&gt;
that you think may be of use to others in the TEI community, then the TEI wiki is one place to put it.  &lt;br /&gt;
All of the customizations posted here are freely available for public use. They are offered as is, and we make no guarantees about their usefulness or effectiveness. Please feel free to experiment with them. If you make any useful revisions, please post the modified version here.  Customizations can be made on the web via [[Roma]], and saved as [[ODD]] files.  It is these saved customizations which we are encouraging people to share.&lt;br /&gt;
----&lt;br /&gt;
'''To create a new page and post your customization, you should:'''&lt;br /&gt;
* Log in (Create a user account for this WIKI if you have not done so.)&lt;br /&gt;
* Add a new page. &lt;br /&gt;
** To do this, add the name of the new page to the URL in your browser's address bar after index.php/&lt;br /&gt;
** For example, if you wish to create a new page called &amp;quot;MyNewCustomization.odd&amp;quot;, just edit the URL in your web browser's address bar to look like this: &lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;http://www.tei-c.org.uk/wiki/index.php/MyNewCustomization.odd&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
*  Assuming no one else has made a page with the name you chose, you will be brought to a blank page. Click the edit button and do the following:&lt;br /&gt;
** Provide accompanying detailed explanation at the top of the page&lt;br /&gt;
** Cut and paste your ODD into the window.&lt;br /&gt;
** Wrap any ODD content content in &amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>TestUser</name></author>
		
	</entry>
</feed>