View Single Post
 
Old August 1st, 2007, 10:09 AM
kgoldvas kgoldvas is offline
Authorized User
 
Join Date: Jan 2006
Location: tel aviv, israel, Israel.
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default template calling

Hello

I would like to know if I can call the template Request_SLA and get from it only some of the lines that there are in the template (for example
       <column name="RED" />
       <column name="YELLOW" />
       <column name="GREEN" />
if so how can I do it?

<xsl:template name="Request_SLA">

    <case v2="requests-display">
        <xsl:call-template name="counter_column_execution">
            <xsl:with-param name="name" select="/etd/counters/counter/data[@class='execution']/@dbcolumn"/>
            </xsl:call-template>
    </case>
           <case v2="sla-display">
       <column name="RED" />
       <column name="YELLOW" />
       <column name="GREEN" />
       <column name="NO_SLA" />
       <xsl:call-template name="counter_column_execution">
        <xsl:with-param name="name" select="concat('F_', /etd/counters/counter/data[@class='execution']/@dbcolumn)"/>
       </xsl:call-template>
        </case>
</xsl:template>

Thanks