Mercurial > mplayer.hg
comparison DOCS/xml/README.maintainers @ 11188:6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
author | lumag |
---|---|
date | Mon, 20 Oct 2003 09:56:48 +0000 |
parents | 753395e422d0 |
children | b61680a0b29a |
comparison
equal
deleted
inserted
replaced
11187:bd4a5a954644 | 11188:6dfed0b2a300 |
---|---|
26 2) Make sure to create a 'Makefile' for the translation -- you can | 26 2) Make sure to create a 'Makefile' for the translation -- you can |
27 use 'en/Makefile' as an example. | 27 use 'en/Makefile' as an example. |
28 3) Set <book lang="XX"> to your language code if the DocBook XSL | 28 3) Set <book lang="XX"> to your language code if the DocBook XSL |
29 stylesheets support it. | 29 stylesheets support it. |
30 4) If you want to use a customized XSL stylesheet, create one and name it | 30 4) If you want to use a customized XSL stylesheet, create one and name it |
31 'html.xsl'. And do not forget to import the toplevel XSL file: | 31 'html-common.xsl'. Also create two additional XSL stylesheets ('html.xsl' |
32 and 'html-chunk.xsl', with such content: | |
32 | 33 |
33 <xsl:import href="../html.xsl"/> | 34 html.xsl: |
35 | |
36 <?xml version="1.0" encoding="ISO-8859-1"?> | |
37 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
38 version="1.0"> | |
39 | |
40 <xsl:import href="../html.xsl"/> | |
41 <xsl:include href="html-common.xsl"/> | |
42 | |
43 </xsl:stylesheet> | |
44 | |
45 html-chunk.xsl: | |
46 | |
47 <?xml version="1.0" encoding="ISO-8859-1"?> | |
48 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
49 version="1.0"> | |
50 | |
51 <xsl:import href="../html-chunk.xsl"/> | |
52 <xsl:include href="html-common.xsl"/> | |
53 | |
54 </xsl:stylesheet> | |
55 | |
34 | 56 |
35 Note: You mustn't xsl:include or xsl:import chunk.xsl directly! | 57 Note: You mustn't xsl:include or xsl:import chunk.xsl directly! |
36 Including it can (and will) break building of documentation if chunk.xsl | 58 Including it can (and will) break building of documentation if chunk.xsl |
37 is installed at a nonstandard location. | 59 is installed at a nonstandard location. |
38 5) If you wish to change output encoding of generated files, create html.xsl | 60 5) If you wish to change output encoding of generated files, create |
39 as suggested in step 4) and add somwhere after <xsl:import .../> such string: | 61 html-common.xsl as suggested in step 4) and add such strings somewhere |
62 between <xsl:stylesheet ...> and </xsl:stylesheet> tags | |
63 (please, pay attention to quotes): | |
40 | 64 |
41 <xsl:param name="chunker.output.encoding" select="'your_encoding'"/> | 65 <xsl:param name="chunker.output.encoding" select="'your_encoding'"/> |
42 | 66 <xsl:output encoding="your_encoding"/> |
43 Use ru/html.xsl as example. | 67 |
68 Use ru/html-common.xsl as example. | |
44 6) If you are using your own HTML stylesheet, edit your Makefile and set | 69 6) If you are using your own HTML stylesheet, edit your Makefile and set |
45 the HTML_STYLESHEET variable to its name. | 70 the HTML_STYLESHEET variable to its name. Please, don't give name |
71 'default.css' to your HTML stylesheet. | |
46 7) In each translated file after the <?xml ... ?> tag you must put a note | 72 7) In each translated file after the <?xml ... ?> tag you must put a note |
47 like <!-- synced with 1.2 -->, where 1.2 is the revision of corresponding | 73 like <!-- synced with 1.2 -->, where 1.2 is the revision of corresponding |
48 English file (see comment at the top of file). | 74 English file (see comment at the top of file). |
49 8) While your translation isn't finished, you can change USE_SYMLINKS | 75 8) While your translation isn't finished, you can change USE_SYMLINKS |
50 to "yes" in your Makefile. This will help you testing your translation: | 76 to "yes" in your Makefile. This will help you testing your translation: |