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

If no parameters,then what should be sent

Subject: If no parameters,then what should be sent
From: himanshu padmanabhi <himanshu.padmanabhi@xxxxxxxxx>
Date: Tue, 24 Feb 2009 19:00:40 +0530
 If no parameters
Hi all,

This is my code.What should I pass if I don't have any value to pass?
Should I pass blank value because not including parameter gives me error.

if($in{'flag'} eq "2") {
            my $results = $stylesheet->transform($source, args  =>
"'$in{'args'}'",val => "'1'",cnt => "' '",idx => "' '",sidx => "' '",
new => "' '");
            print $stylesheet->output_string($results);
}else{
            my $results = $stylesheet->transform($source, args => "'
'",val => "'2'",cnt => "'$in{'cnt'}'",idx => "'$in{'idx'}'",sidx =>
"'$in{'sidx'}'",new => "'$in{'new'}'");
            print $stylesheet->output_string($results);
}

btw,what is the meaning of this error,

Unfinished literal
runtime error
Evaluating user parameter cnt failed

means variable 'cnt' is passed though it is not exising?
----------------------------
Regards,
Himanshu Padmanabhi

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-2011 All Rights Reserved.