| 1 |
<?xml version='1.0'?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
version='1.0'> |
| 4 |
|
| 5 |
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> |
| 6 |
<xsl:include href="stylesheet-common.xsl" /> |
| 7 |
<xsl:include href="stylesheet-html-common.xsl" /> |
| 8 |
<xsl:include href="stylesheet-speedup-xhtml.xsl" /> |
| 9 |
|
| 10 |
<!-- except when referencing the online stylesheet, embed stylesheet --> |
| 11 |
<xsl:param name="generate.css.header" select="$website.stylesheet = 0"/> |
| 12 |
|
| 13 |
<!-- embed SVG images into output file --> |
| 14 |
<xsl:template match="imagedata[@format='SVG']"> |
| 15 |
<xsl:variable name="filename"> |
| 16 |
<xsl:call-template name="mediaobject.filename"> |
| 17 |
<xsl:with-param name="object" select=".."/> |
| 18 |
</xsl:call-template> |
| 19 |
</xsl:variable> |
| 20 |
|
| 21 |
<xsl:copy-of select="document($filename)"/> |
| 22 |
</xsl:template> |
| 23 |
|
| 24 |
</xsl:stylesheet> |