in reply to Push + variable argument
This is how I access in XSL file.MY.cgi my $xslt = XML::LibXSLT->new(); my $stylesheet = $xslt->parse_stylesheet_file('abc.xsl'); push @xsltParams, ('arg', $str); push @xsltParams, ('val', '1'); my $result = $stylesheet->transform_file('abc.xml', @xsltParams); print $stylesheet->output_string($result);
Can you please tell more about XPath and how can I access parameters in XSL file passed from cgi file?MY.xsl <xsl:value-of select="$arg"/>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Push + variable argument
by dHarry (Abbot) on Feb 10, 2009 at 14:19 UTC | |
by himanshu.padmanabhi (Acolyte) on Feb 11, 2009 at 06:48 UTC | |
by dHarry (Abbot) on Feb 11, 2009 at 08:25 UTC | |
by himanshu.padmanabhi (Acolyte) on Feb 11, 2009 at 09:23 UTC |