Re: [docbook-apps] include MathML files with the help of XSL

From
Zoltán János Jánosi <>
Date
2012-06-21T12:45:24+00:00
ID
Thread
Re: [docbook-apps] include MathML files with the help of XSL
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="/docbook-xsl-1.76.1/html/docbook.xsl"/>
	<xsl:output method="html" encoding="utf-8" indent="yes" />

	<xsl:template match="inlineequation">
		<xsl:variable name="id" select="@id"/>
		<xsl:variable name="mathml" select="concat($id, '.xml')"/>
		<xsl:apply-templates select="document($mathml,.)/*"/>
	</xsl:template>
  
	<xsl:template match="/">
		<xsl:text disable-output-escaping='yes'></xsl:text>
			<html>
				<body>
					<xsl:apply-templates/>
				</body>
			</html>
	</xsl:template>

</xsl:stylesheet>