xsl-list
[Top] [All Lists]

[xsl] If no parameters,then what should be sent

2009-02-24 08:31:02
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

--~------------------------------------------------------------------
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>
  • [xsl] If no parameters,then what should be sent, himanshu padmanabhi <=