add --shared
[pylucene.git] / lucene-java-3.4.0 / lucene / src / site / src / documentation / skins / common / xslt / svg / document-to-svg.xsl
1 <?xml version="1.0"?>
2 <!--
3   Licensed to the Apache Software Foundation (ASF) under one or more
4   contributor license agreements.  See the NOTICE file distributed with
5   this work for additional information regarding copyright ownership.
6   The ASF licenses this file to You under the Apache License, Version 2.0
7   (the "License"); you may not use this file except in compliance with
8   the License.  You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17 -->
18 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
19   <xsl:output method="xml" media-type="image/svg" omit-xml-declaration="yes" indent="yes"/>
20 <!-- the skinconf file -->
21   <xsl:param name="config-file"/>
22   <xsl:variable name="config" select="document($config-file)/skinconfig"/>
23 <!-- Get the section depth to use when generating the minitoc (default is 2) -->
24   <xsl:variable name="toc-max-depth" select="number($config/toc/@max-depth)"/>
25   <xsl:param name="numbersections" select="'true'"/>
26 <!-- Section depth at which we stop numbering and just indent -->
27   <xsl:param name="numbering-max-depth" select="'3'"/>
28   <xsl:param name="ctxbasedir" select="."/>
29   <xsl:param name="xmlbasedir"/>
30   <xsl:template match="/">
31     <svg width="1305" height="1468" xmlns="http://www.w3.org/2000/svg">
32       <g transform="translate(0 0)">
33         <xsl:apply-templates/>
34       </g>
35     </svg>
36   </xsl:template>
37   <xsl:template match="document">
38     <text x="00px" y="30px" style="font-size:20;">
39       <xsl:value-of select="header/title"/>
40     </text>
41     <text x="0px" y="50px" style="font-size:12;">
42       <xsl:apply-templates/>
43     </text>
44   </xsl:template>
45 </xsl:stylesheet>