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

RE: XSL: parsing

Subject: RE: XSL: parsing
From: "Sathasivam, Elayaraja" <elayaraja.sathasivam@xxxxxxxxxxxxx>
Date: Tue, 12 Aug 2008 11:49:52 +0530
RE:  XSL: parsing
The condition matches perfect. I can able to get the output as Debug.
Please find the value as follows,

$conf:  <xsl:variable name="conf" select="document('bgh_config.xml')"/>
No issues, just loading the input xml file.
$TZ : TZAOP
$TM: TZ003

There is not output of===========>   <xsl:value-of select="@brk"/>


Regards,
Raja

-----Original Message-----
From: Kamal Bhatt [mailto:kbhatt@xxxxxxxxx]
Sent: Tuesday, August 12, 2008 11:33 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  XSL: parsing

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[@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
>
>
>


--
Kamal Bhatt

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.