[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL: parsing

Subject: XSL: parsing
From: Jeff Sese <jeferson.sese@xxxxxxxxxxxx>
Date: Tue, 12 Aug 2008 17:09:47 +0800
 XSL: parsing
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.sese@xxxxxxxxxxxx>
Date: August 12, 2008 5:06:57 PM GMT+08:00
To: "Sathasivam, Elayaraja" <elayaraja.sathasivam@xxxxxxxxxxxxx>
Subject: Re:  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.sese@xxxxxxxxxxxx]
Sent: Tuesday, August 12, 2008 12:39 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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
[@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


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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.