Update jflex to 1.8.2
[scilab.git] / scilab / modules / helptools / schema / extendedStyle.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 xmlns:fo="http://www.w3.org/1999/XSL/Format"
4                 xmlns:latex="http://forge.scilab.org/p/jlatexmath"
5                 version='1.0'>
6
7 <xsl:include href="STYLE_DOC"/>
8
9 <xsl:template match="latex:*">
10   <xsl:choose>
11     <xsl:when test="@align != ''">
12       <fo:block>
13         <xsl:attribute name="text-align">
14           <xsl:value-of select="@align"/>
15         </xsl:attribute>
16         <fo:instream-foreign-object>
17           <xsl:copy>
18             <xsl:copy-of select="@*"/>
19             <xsl:if test="@align = 'center'">
20               <xsl:attribute name="fwidth">
21                 <xsl:value-of select="concat($page.width,',-',$body.start.indent,',-',$page.margin.inner,',-',$page.margin.outer)"/>
22               </xsl:attribute>
23             </xsl:if>
24             <xsl:apply-templates/>
25           </xsl:copy>
26         </fo:instream-foreign-object>
27       </fo:block>
28     </xsl:when>
29     <xsl:otherwise>
30       <fo:instream-foreign-object>
31         <xsl:copy>
32           <xsl:copy-of select="@*"/>
33           <xsl:apply-templates/>
34         </xsl:copy>
35       </fo:instream-foreign-object>
36     </xsl:otherwise>
37   </xsl:choose>
38 </xsl:template>
39
40 </xsl:stylesheet>