Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

how to use xsl:stylesheet code in rtf direct with out make separate template and call it

Received Response
21
Views
1
Comments

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()&gt;5])"/>    </xsl:template></xsl:stylesheet>

Answers

  • Brajesh Shukla-95078
    Brajesh Shukla-95078 Rank 7 - Analytics Coach

    Hi,

    You can create tags and put your xsl template code there....and call as bellow.

    Please note in each tag you can put only 240 characters so you need to create number of tags so that you can place all your template code:

    E.g.

    I have below xsl code and I put in three tags

    <xsl:template name="Brajesh">

    <fo:inline font-size="10.0pt" white-space-collapse="false" height="11.160001pt" font-family="Times New Roman" letter-spacing="2.0pt">Brajesh Shukla</fo:inline>

    </xsl:template>

    image

    CLLTEMP : <xsl:call-template name="Brajesh"></xsl:call-template>

    TAG1: <xsl:template name="Brajesh">

    TAG2: <fo:inline font-size="10.0pt" white-space-collapse="false" height="11.160001pt" font-family="Times New Roman" letter-spacing="2.0pt">Brajesh Shukla</fo:inline>

    TAG3: </xsl:template>

    ;