source: trunk/docs/docs_dev/source/guides/main_many01_html.xsl

Last change on this file was 640, checked in by pinsard, 10 years ago

fix thanks to coding rules; typo; dupe empty lines

File size: 2.9 KB
Line 
1<?xml version='1.0' encoding="iso-8859-1"?>
2<xsl:stylesheet
3xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4xmlns:xl="http://www.w3.org/1999/xlink"
5xmlns:d="http://docbook.org/ns/docbook"
6version="1.0">
7<!--
8
9MODULE
10======
11
12transformation en plusieurs fichiers html
13
14FILES
15=====
16
17/usr/home/fplod/incas/varamma/varamma_ws/adm/guides/main_many01_html.xsl sur aedon.locean-ipsl.upmc.fr
18
19TODO
20====
21
22robot policy
23
24do not show book/info
25
26EVOLUTIONS
27==========
28
29$Id$
30
31- fplod 2009-05-15T10:42:45Z aedon.locean-ipsl.upmc.fr (Darwin)
32
33  * creation
34
35-->
36
37<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.75.2/xhtml/chunk.xsl"/>
38
39<xsl:output method="xml"
40encoding="utf-8"
41indent="yes"
42omit-xml-declaration="no"
43doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
44doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
45
46<xsl:param name="chunker.output.doctype-public">-//W3C//DTD XHTML 1.0 Strict//EN</xsl:param>
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">
60book toc,figure,table
61chapter nop
62sect1 nop
63sect2 nop
64sect3 nop
65sect4 nop
66</xsl:param>
67
68<!--
69special moche (NOM) et manque les éditeurs ++
70<xsl:param name="bibliography.style">iso690</xsl:param>
71-->
72
73<!--
74d'après chunk-code.xsl
75template suivant pour forçage des chemins des fichiers "images"
76si dans le source xml on écrit
77<imagedata fileref="Nasa_langley.jpg" .../>
78on aura dans le html
79<img src="../../images/Nasa_langley.jpg" ... >
80tout ça à cause de la gestion des "." dans chunk-code.xsl
81c'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<!--
89do 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">
98d: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">
108d:info
109</xsl:message>
110</xsl:template>
111
112<xsl:template match="info">
113<xsl:message terminate="no">
114info
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>
Note: See TracBrowser for help on using the repository browser.