I have the following XML in a directory with the required entity file in place:
<!DOCTYPE refentry [ <!ENTITY % mathent SYSTEM "math.ent"> %mathent; ]>
<!-- Converted by db4-upgrade version 1.1 -->
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="glBlendEquation">
<info>
<copyright>
<year>1991-2006</year>
<holder>Silicon Graphics, Inc.</holder>
</copyright>
<copyright>
<year>2010-2014</year>
<holder>Khronos Group</holder>
</copyright>
</info>
<refmeta>
<refentrytitle>glBlendEquation</refentrytitle>
<manvolnum>3G</manvolnum>
</refmeta>
<refnamediv>
<refname>glBlendEquation</refname>
<refpurpose>specify the equation used for both the RGB blend equation and the Alpha blend equation</refpurpose>
</refnamediv>
<refsynopsisdiv><title>C Specification</title>
<funcsynopsis>
<funcprototype>
<funcdef>void <function>glBlendEquation</function></funcdef>
<paramdef>GLenum <parameter>mode</parameter></paramdef>
</funcprototype>
<funcprototype>
<funcdef>void <function>glBlendEquationi</function></funcdef>
<paramdef>GLuint <parameter>buf</parameter></paramdef>
<paramdef>GLenum <parameter>mode</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
</refentry>
I am applying the following XSL:
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:fns="http://www.w3.org/2002/Math/preference"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
extension-element-prefixes="msxsl fns doc"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:doc="http://www.dcarlisle.demon.co.uk/xsldoc"
xmlns:ie5="http://www.w3.org/TR/WD-xsl"
exclude-result-prefixes="h ie5 fns msxsl fns doc mml"
>
<xsl:template match="refpurpose">
<xsl:value-of select="." />
</xsl:template>
<xsl:template match="/">
{
<xsl:apply-templates select="refnamediv/refpurpose" />
}
</xsl:template>
</xsl:stylesheet>
I expect the output to be:
<?xml version="1.0"?>
{
specify the equation used for both the RGB blend equation and the Alpha blend equation
}
But the output I'm getting is:
<?xml version="1.0"?>
{
}
Why is my "refpurpose" template not matching? I'm using xsltproc.