rendered paste body<?xml version="1.0"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsp="http://apache.org/xsp" xmlns:math="http://localhost/cocoon/logic/math"> <xsl:template match="xsp:page"> <xsp:page> <xsl:apply-templates select="@*" /> <xsp:structure> <xsp:include>java.lang.Math</xsp:include> </xsp:structure> <xsl:apply-templates /> </xsp:page> </xsl:template> <xsl:template match="math:add"> <result> <xsp:attribute name="value"> <xsp:expr> <xsl:value-of select="a" /> + <xsl:value-of select="b" /> </xsp:expr> </xsp:attribute> </result> </xsl:template> <!-- copy unknown elements/attributes --> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="@*" /> <xsl:apply-templates /> </xsl:copy> </xsl:template></xsl:stylesheet>