xsl-list
[Top] [All Lists]

Re: [xsl] XSL: parsing

2008-08-11 23:04:07
Sathasivam, Elayaraja wrote:
Could any one reply for the following,

XSLT: Version 1.0
Processor: Xalan-C_1_8_0-windows_2000-msvc_60
/xerces-c_2_5_0-windows_nt-msvc_60 Platform: Windows XP

Expected output: FIXED
Actual Output: Debug < No output of @brk ???? >
File.xsl
********
<xsl:choose> <xsl:when
test="$conf/Configuration/BreakdownList/BreakdownMatrix/BrkSection[(_at_)tm=$
TM]/BrkCode[tz=$TZ]"> Debug
           <xsl:value-of select="@brk"/>
        </xsl:when>
        <xsl:otherwise> Otherwise </xsl:otherwise>
</xsl:choose>


Hi, what are the variables $conf, $TZ and $TM. Can you give the full template? I think the reference to @brk is suspicious, but without more information, we cannot really help you. That would only work if the current match is BrkCode, which doesn't seem right.

Input.xml *********
<Configuration>
<BreakdownList>
<BreakdownMatrix>
        <BrkSection tm="TZAOP" comment="Optimaal Special Edition">
                <BrkCode brk="FIXED" comment="nummers: fixed + WAP">
<tz>TZ001</tz> <tz>TZ003</tz> </BrkCode>
        </BrkSection>
</BreakdownMatrix>
</BreakdownList>
</Configuration>

Regards,
Raja
--~------------------------------------------------------------------
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>
--~--




--
Kamal Bhatt


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>