XSLTFLAGS=
COPYDOC := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" \
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" \
+ xmlns:doc="http://docbook.org/ns/docbook" \
version="1.0"> \
<xsl:template match="*[local-name() = 'param']"> \
+ <xsl:call-template name="copy-xsl-source"/> \
+ </xsl:template> \
+ <xsl:template match="*[local-name() = 'attribute-set']"> \
+ <xsl:call-template name="copy-xsl-source"/> \
+ </xsl:template> \
+ <xsl:template name="copy-xsl-source"> \
<xsl:variable \
name="source" \
select="concat('../../params/',@name,'.xml')"/> \
- <xsl:apply-templates select="document($$source)/refentry"/> \
+ <xsl:apply-templates select="document($$source)/*[local-name() = 'refentry']"/> \
<xsl:copy> \
<xsl:apply-templates select="@* | node()"/> \
</xsl:copy> \
<xsl:apply-templates select="@* | node()"/> \
</xsl:copy> \
</xsl:template> \
- <xsl:template match="refentry"> \
+ <xsl:template match="*[local-name() = 'refentry']"> \
<xsl:text>&\#x0a;</xsl:text> \
- <doc:refentry id="{@id}"> \
+ <doc:refentry id="{@*[local-name() = 'id']}"> \
<xsl:apply-templates/> \
</doc:refentry> \
<xsl:text>&\#x0a;</xsl:text> \
</xsl:template> \
- <xsl:template match="refsynopsisdiv"/> \
+ <xsl:template match="*[local-name() = 'refsynopsisdiv']"/> \
</xsl:stylesheet>
all: $(PARAMFILESDOCD)