"Sathasivam, Elayaraja" wrote:
<xsl:template match="/" >
<xsl:for-each
select="document(/Envelope/Part/@File)/Document/CallDetails/Call">
<xsl:variable name="TZ" select="XCD/@TZ"/>
<xsl:variable name="TM" select="XCD/@TM"/>
<xsl:choose>
<xsl:when
test="$conf/Configuration/BreakdownList/BreakdownMatrix/BrkSection[(_at_)tm=$
TM]/BrkCode[tz=$TZ]"> Debug
<xsl:value-of select="@brk"/>
I don't understand, I thought that was answered in the last email.
The expression @brk is relative to the current item, which is a Call
element. xsl:when doesn't change the current item. Only a few
instructions change the current item (out of the top of my head:
xsl:apply-template, xsl:for-each and xsl:for-each-group). So you want
something like:
<xsl:variable name="code" as="element(BrkCode)?" select="
$conf/Configuration/BreakdownList/BreakdownMatrix
/ BrkSection[(_at_)tm=$TM]/BrkCode[tz=$TZ]"/>
<xsl:choose>
<xsl:when test="exists($code)">
<xsl:text>Debug </xsl:text>
<xsl:value-of select="$code/@brk"/>
Regards,
--drkm
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--