wiki Wiki | contuct me Contuct me |

Menu

IV.2. XSLファイルの作成

例 IV.1. 分割HTML出力用のXSLファイル

        	
hello-html.xsl
<?xml version="1.0"?>
<xsl:stylesheet 
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     version='1.0'>
  <xsl:import href="../docbook-xsl-1.70.1/html/chunk.xsl"/> 1

  <xsl:output method="html" encoding="UTF-8" indent="yes" 
       doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" 2
       doctype-system="http://www.w3.org/TR/html4/loose.dtd"   
    />

  <xsl:param name="chapter.autolabel" select="1"/>
  <xsl:param name="section.autolabel" select="1"/>
  <xsl:param name="admon.graphics" select="1"/>
  <xsl:param name="html.stylesheet">
    css/hello-html.css
  </xsl:param>
    
</xsl:stylesheet>
        
1

インポートするXSLファイルを変更します。 /html/chunk.xslにして下さい。

2

HTML文書のDOCTYPE宣言を入れるにはここに 記述するといいはずだが、chunk.xslで定義すると 二重に出力されてしまう。