xsl-list
[Top] [All Lists]

[xsl] XSL: parsing

2008-08-12 02:06:58
Forwarding my response to the list, I failed to notice that my response was addressed to the OP only.

Begin forwarded message:

From: Jeff Sese <jeferson(_dot_)sese(_at_)asiatype(_dot_)com>
Date: August 12, 2008 5:06:57 PM GMT+08:00
To: "Sathasivam, Elayaraja" 
<elayaraja(_dot_)sathasivam(_at_)capgemini(_dot_)com>
Subject: Re: [xsl] XSL: parsing

<xsl:for-each
select="document(/Envelope/Part/@File)/Document/CallDetails/Call">
        <!-- instructions called here -->

inside this instruction, the current node would be the Call element that you are iterating, if this Call element does not have the @brk then the <xsl:value-of select="@brk"/> will not return anything.

In your first post, the @brk is in the BrkCode element, if you want to access that, then the current node must that particular element.

Kindly provide a simple working sample of you xsl file and source xml files so that people can understand your problem better.

</xsl:for-each>

Input xml file
< Document>
<CallDetails>
<Call>

  <XCD DV="40" Id="26231918"  UM="" DC="0.000000" OAmt="0.000"
DAmt="1.000" CC="EGP" TM="TZ003" SN="RTEL" TT="ETP01WOP01" TZ="ZT095"
RT="BASE" CTI="0" CT="1" RTON="1" APN="111635766" NI="H" NN="EGYEM"
ANP="APN" URP="1" TTR="0.000" DES="NV" DZP="gprse" CGI="60203"
OPN="etisalat" UV="544.000000" DLV="565.000000" RQSP="0" RQSR="0"
RQSD="0" RQSPT="0" RQSMT="0" NQSP="0" NQSR="0" NQSD="0" NQSPT="0"
NQSMT="0" DAV="1109.000000" DAUM="GPRS" CQV="544.000000" CQUM="Byte"
SP="GSP" />
</Call>
</CallDetails>
</ Document>

Regards,
Raja
_________________________________________________________________

-----Original Message-----
From: Jeff Sese [mailto:jeferson(_dot_)sese(_at_)asiatype(_dot_)com]
Sent: Tuesday, August 12, 2008 12:39 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] XSL: parsing


On 08 12, 08, at 1:32 PM, Sathasivam, Elayaraja wrote:
File.xsl
********
<xsl:choose>
        <xsl:when
test="$conf/Configuration/BreakdownList/BreakdownMatrix/BrkSection
[(_at_)tm=$
TM]/BrkCode[tz=$TZ]"> Debug
           <xsl:value-of select="@brk"/>

maybe the current node does not have the said attribute... but I
can't confirm cause you don't show in what template this instructions
are called....

--
Jeferson L. Sese
jeferson dot sese at asiatype dot com
Asiatype Inc.
Suite 114 Columbia Tower
Ortigas Ave., Greenhills
Mandaluyong City 1550 Philippines
Tel: +632-744-6262
Mobile: +63927-671-7901




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


Jeferson L. Sese
jeferson dot sese at asiatype dot com
Asiatype Inc.
Suite 114 Columbia Tower
Ortigas Ave., Greenhills
Mandaluyong City 1550 Philippines
Tel: +632-744-6262
Mobile: +63927-671-7901




Jeferson L. Sese
jeferson dot sese at asiatype dot com
Asiatype Inc.
Suite 114 Columbia Tower
Ortigas Ave., Greenhills
Mandaluyong City 1550 Philippines
Tel: +632-744-6262
Mobile: +63927-671-7901




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