Summary
how to use xsl:stylesheet code in rtf direct with out make separate template and call it
Content
this my code
<?xml version="1.0" encoding='utf-8'?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"><xsl:output method="xml" encoding="UTF-8"/> <xsl:template name="others"> <xsl:variable name="list"> <xsl:for-each-group select="current-group()" group-by="GRP"> <xsl:sort select="sum(current-group()/C_BUDG)" data-type="number" order="descending" /> <v><xsl:value-of select="sum(current-group()/C_BUDG)"/></v> </xsl:for-each-group> </xsl:variable> <xsl:value-of select="sum($list/v[position()>5])"/> </xsl:template></xsl:stylesheet>