perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Passing parameters to XSLT style sheet?
Date Sat, 28 Sep 2002 03:25:47 GMT
> Is there a way to pass parameters to a XSLT style sheet from Execute so
> that it can be used with <xsl:param>?
> 

Yes:

 Execute({inputfile => 'foo.xml', recipe => 'XSLT',
xsltstylesheet => 'foo.xsl',
xsltparam => {'foo' => 'bar'}});

If bar should be a string (and not a node set) it must be quoted e.g.

xsltparam => {'foo' => "'bar'"}});

(That's not something Embperl needs, but the xslt processor)

Gerald




-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message