Difference between revisions of "Category:XSLT"

From TEIWiki
Jump to navigation Jump to search
 
(31 intermediate revisions by 9 users not shown)
Line 2: Line 2:
  
 
All of the stylesheets 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.
 
All of the stylesheets 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.
 
 
The [[call for stylesheets]] includes more details about what we are seeking and how you can help.
 
The [[call for stylesheets]] includes more details about what we are seeking and how you can help.
 
 
----
 
----
'''To contribute a stylesheet, please create a new page within this category. To do this, you should:'''
+
'''To contribute a stylesheet, please create a new page within this category and post your stylesheet.'''
* Create a user account for this WIKI if you have not done so.
+
<p>
* Log in
+
'''To create a new page and post your stylesheet, you should:'''
 +
* Log in (Create a user account for this WIKI if you have not done so.)
 
* Add a new page.  
 
* Add a new page.  
**To do this, simply add to the main url the pagename you wish to create:
+
** To do this, add the name of the new page to the URL in your browser's address bar after index.php/
** For example: <nowiki>http://www.tei-c.org.uk/wiki/index.php/MyNewStylesheet.xsl</nowiki>
+
** For example, if you wish to create a new page called "MyNewStylesheet.xsl", just edit the URL in your web browser's address bar to look like this: '''<nowiki>http://www.tei-c.org/wiki/index.php/MyNewStylesheet.xsl</nowiki>'''
* Edit the page, making sure to:
+
* 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:
 
** Provide some accompanying explanation at the top of the page
 
** Provide some accompanying explanation at the top of the page
** Wrap any stylesheet content in <nowiki><pre> .... </pre></nowiki> tags
+
** Cut and paste your stylesheet into the window.
** Add <nowiki>[[Category:XSLT]]</nowiki> to the bottom of it.
+
** Wrap any stylesheet content in <nowiki><pre>&lt;nowiki> .... &lt;/nowiki></pre></nowiki> tags
 +
** Add the text <nowiki>[[Category:XSLT]]</nowiki> to the bottom of the page. This is important. It ensures that your page will show up on the XSLT page.
 +
** Click "Save Page" when you are finished. Your page should show up on this page in the list of stylesheets. You can go back and edit at any time.
 +
** As a reference [[SampleXSLTPage]] displays the text that was entered to create the [[Remove-Namespaces.xsl]] page.
 +
* '''Note:''' We strongly suggest providing a Summary, and information about Required Input, Expected Output, and Known Restrictions or Problems before the Stylesheet itself, as done in the [[SampleXSLTPage]].
 +
</p>
  
A [[SampleXSLTPage]] displays the original text for the [[Remove-Namespaces.xsl]] page, and may provide a useful reference.
+
[[Category:Code]]
 +
[[Category:Conversion and preprocessing tools]]

Latest revision as of 15:23, 7 October 2014

This page collects together any pages relating to XSLT (Extensible Stylesheet Language Transformations) for TEI resources. The main TEI website has a page about stylesheets as well.

All of the stylesheets 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. The call for stylesheets includes more details about what we are seeking and how you can help.


To contribute a stylesheet, please create a new page within this category and post your stylesheet.

To create a new page and post your stylesheet, you should:

  • Log in (Create a user account for this WIKI if you have not done so.)
  • Add a new page.
    • To do this, add the name of the new page to the URL in your browser's address bar after index.php/
    • For example, if you wish to create a new page called "MyNewStylesheet.xsl", just edit the URL in your web browser's address bar to look like this: http://www.tei-c.org/wiki/index.php/MyNewStylesheet.xsl
  • 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:
    • Provide some accompanying explanation at the top of the page
    • Cut and paste your stylesheet into the window.
    • Wrap any stylesheet content in <pre><nowiki> .... </nowiki></pre> tags
    • Add the text [[Category:XSLT]] to the bottom of the page. This is important. It ensures that your page will show up on the XSLT page.
    • Click "Save Page" when you are finished. Your page should show up on this page in the list of stylesheets. You can go back and edit at any time.
    • As a reference SampleXSLTPage displays the text that was entered to create the Remove-Namespaces.xsl page.
  • Note: We strongly suggest providing a Summary, and information about Required Input, Expected Output, and Known Restrictions or Problems before the Stylesheet itself, as done in the SampleXSLTPage.