Difference between revisions of "Category:P4toP5"
m |
|||
Line 22: | Line 22: | ||
include a <nowiki><xsl:import href="Copy-All.xsl"/></nowiki> at the beginning of your stylesheets as the others below do. If you are going to use any of the stylesheets, then you should also download that one. | include a <nowiki><xsl:import href="Copy-All.xsl"/></nowiki> at the beginning of your stylesheets as the others below do. If you are going to use any of the stylesheets, then you should also download that one. | ||
− | (For | + | The shell script [[P4_enroute_to_P5.bash]] is provided to make it easy to execute |
+ | all of these in a row on a single input file. | ||
+ | (For an alternative, more flexible method of executing a sequence of stylesheets one after the other, see [[PipedStylesheets.bash]].) 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) or ask one of the wiki mainters to do so for you. | ||
− | There is no need to put "P4toP5" or anything like that in the name of | + | There is no need to put "P4toP5" or anything like that in the name of your stylesheet — that much is implied by its being on this page! |
− | your stylesheet — that much is implied by its being on this page! | ||
To make your stylesheet appear in this sub-section simply include at the top of the page: | To make your stylesheet appear in this sub-section simply include at the top of the page: |
Revision as of 19:41, 3 July 2006
Stylesheets in this subcategory should handle a particular aspect of
P4 to P5 translation. That is, the stylesheet should expect to read in
an XML instance that conforms to a P4:2004 vanilla DTD, and write out
the same document with one particular aspect changed so that it (the
particular aspect) would conform to P5. (Which release, you ask?
Whichever one is current at the time you write the stylesheet will
have to do — but please document the release number in your
stylesheet.)
The idea is not to build a single, monolithic stylesheet that converts P4 to P5, but rather to build a long pipeline of smaller transformations that will do the job. This makes division of labor easier, makes debugging much easier, and permits multiple possibilities for a given task (e.g., one person might write a stylesheet that converts lang= to xml:lang=, and just deletes all <language> elements; another might write a similar stylesheet that retains <language> elements).
Because all of these stylesheets need to copy all elements that they are not dealing with, you should include a <xsl:import href="Copy-All.xsl"/> at the beginning of your stylesheets as the others below do. If you are going to use any of the stylesheets, then you should also download that one.
The shell script P4_enroute_to_P5.bash is provided to make it easy to execute all of these in a row on a single input file. (For an alternative, more flexible method of executing a sequence of stylesheets one after the other, see PipedStylesheets.bash.) 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) or ask one of the wiki mainters to do so for you.
There is no need to put "P4toP5" or anything like that in the name of your stylesheet — that much is implied by its being on this page!
To make your stylesheet appear in this sub-section simply include at the top of the page:
[[Category:P4toP5]]
If your stylesheet is also of use to those doing something other than just P4 to P5 conversion, you might also want to include:
[[Category:XSLT]]
Pages in category "P4toP5"
The following 17 pages are in this category, out of 17 total.