[27] | 1 | <?xml version='1.0' encoding="iso-8859-1"?> |
---|
| 2 | <xsl:stylesheet |
---|
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
| 4 | xmlns:xl="http://www.w3.org/1999/xlink" |
---|
| 5 | xmlns:d="http://docbook.org/ns/docbook" |
---|
| 6 | version="1.0"> |
---|
| 7 | <!-- |
---|
| 8 | |
---|
| 9 | MODULE |
---|
| 10 | ====== |
---|
| 11 | |
---|
| 12 | transformation en plusieurs fichiers html |
---|
| 13 | |
---|
| 14 | FILES |
---|
| 15 | ===== |
---|
| 16 | |
---|
| 17 | /usr/home/fplod/incas/varamma/varamma_ws/adm/guides/main_many01_html.xsl sur aedon.locean-ipsl.upmc.fr |
---|
| 18 | |
---|
| 19 | TODO |
---|
| 20 | ==== |
---|
| 21 | |
---|
| 22 | robot policy |
---|
| 23 | |
---|
| 24 | do not show book/info |
---|
| 25 | |
---|
| 26 | EVOLUTIONS |
---|
| 27 | ========== |
---|
| 28 | |
---|
| 29 | $Id$ |
---|
| 30 | |
---|
[640] | 31 | - fplod 2009-05-15T10:42:45Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
[27] | 32 | |
---|
| 33 | * creation |
---|
| 34 | |
---|
| 35 | --> |
---|
| 36 | |
---|
[30] | 37 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.75.2/xhtml/chunk.xsl"/> |
---|
[27] | 38 | |
---|
| 39 | <xsl:output method="xml" |
---|
| 40 | encoding="utf-8" |
---|
| 41 | indent="yes" |
---|
| 42 | omit-xml-declaration="no" |
---|
| 43 | doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
| 44 | doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> |
---|
| 45 | |
---|
[32] | 46 | <xsl:param name="chunker.output.doctype-public">-//W3C//DTD XHTML 1.0 Strict//EN</xsl:param> |
---|
[27] | 47 | <xsl:param name="chunker.output.omit-xml-declaration">no</xsl:param> |
---|
| 48 | <xsl:param name="chunker.output.encoding">utf-8</xsl:param> |
---|
| 49 | <xsl:param name="chunker.output.indent">yes</xsl:param> |
---|
| 50 | <xsl:param name="doctype-system">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</xsl:param> |
---|
| 51 | |
---|
| 52 | <xsl:param name="chunk.first.sections" select="0"/> |
---|
| 53 | <xsl:param name="chunk.section.depth" select="0"/> |
---|
| 54 | <xsl:param name="use.id.as.filename" select="1"/> |
---|
| 55 | <xsl:param name="css.decoration">1</xsl:param> |
---|
| 56 | <xsl:param name="chapter.autolabel" select="0"/> |
---|
| 57 | <xsl:param name="section.autolabel" select="0"/> |
---|
| 58 | |
---|
| 59 | <xsl:param name="generate.toc"> |
---|
| 60 | book toc,figure,table |
---|
| 61 | chapter nop |
---|
| 62 | sect1 nop |
---|
| 63 | sect2 nop |
---|
| 64 | sect3 nop |
---|
| 65 | sect4 nop |
---|
| 66 | </xsl:param> |
---|
| 67 | |
---|
| 68 | <!-- |
---|
| 69 | special moche (NOM) et manque les éditeurs ++ |
---|
| 70 | <xsl:param name="bibliography.style">iso690</xsl:param> |
---|
| 71 | --> |
---|
| 72 | |
---|
| 73 | <!-- |
---|
| 74 | d'après chunk-code.xsl |
---|
| 75 | template suivant pour forçage des chemins des fichiers "images" |
---|
| 76 | si dans le source xml on écrit |
---|
| 77 | <imagedata fileref="Nasa_langley.jpg" .../> |
---|
| 78 | on aura dans le html |
---|
| 79 | <img src="../../images/Nasa_langley.jpg" ... > |
---|
| 80 | tout ça à cause de la gestion des "." dans chunk-code.xsl |
---|
| 81 | c'est un peu violent mais je ne comprends pas comment fonctionne |
---|
| 82 | <xsl:template name="relative-uri"> de common/common.xsl |
---|
| 83 | --> |
---|
| 84 | <xsl:template match="@fileref"> |
---|
| 85 | <xsl:value-of select="concat('../../images/',.)"/> |
---|
| 86 | </xsl:template> |
---|
| 87 | |
---|
| 88 | <!-- |
---|
| 89 | do not show book/info ++ |
---|
| 90 | --> |
---|
| 91 | <xsl:template match="/d:book/d:info"> |
---|
| 92 | <xsl:message terminate="no"> |
---|
| 93 | /d:book/d:info |
---|
| 94 | </xsl:message> |
---|
| 95 | </xsl:template> |
---|
| 96 | <xsl:template match="d:book/d:info"> |
---|
| 97 | <xsl:message terminate="no"> |
---|
| 98 | d:book/d:info |
---|
| 99 | </xsl:message> |
---|
| 100 | </xsl:template> |
---|
| 101 | <xsl:template match="//d:book/d:info"> |
---|
| 102 | <xsl:message terminate="no"> |
---|
| 103 | //d:book/d:info |
---|
| 104 | </xsl:message> |
---|
| 105 | </xsl:template> |
---|
| 106 | <xsl:template match="d:info"> |
---|
| 107 | <xsl:message terminate="no"> |
---|
| 108 | d:info |
---|
| 109 | </xsl:message> |
---|
| 110 | </xsl:template> |
---|
| 111 | |
---|
| 112 | <xsl:template match="info"> |
---|
| 113 | <xsl:message terminate="no"> |
---|
| 114 | info |
---|
| 115 | </xsl:message> |
---|
| 116 | </xsl:template> |
---|
| 117 | |
---|
| 118 | <xsl:template name="user.head.content"> |
---|
| 119 | <meta name="robots"> |
---|
| 120 | <xsl:attribute name="content">noindex,nofollow,noarchive</xsl:attribute> |
---|
| 121 | </meta> |
---|
| 122 | </xsl:template> |
---|
| 123 | |
---|
| 124 | </xsl:stylesheet> |
---|