passing parameters to xslt
qMax <[email protected]> Wed, 25 Jan 2006 16:00:06 +0600
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi.
I'm using my own pipeline like this:
<map:when test="xmldoc">
<map:include label="bxcmsGenerator"/>
<map:transform type="xslt" src="{stylesheet}">
<!-- some standard parameters here -->
</map:transform>
<map:include label="standardOutput"/>
</map:when>
This pipeline is selected from my plugin xmldoc.
Stylesheet could be different for each resource, handled by plugin,
but usually common to collection.
Now i want to pass _random_ (stylesheet dependant) parameters to this
stylesheet, configuring them in collection config for whole collection or some
particular resource (eg: section numbering, TOC generation, etc.)
I can set up some parameters in .configxml:
<plugin name="xmldoc">
<parameter type="..." name="..." value="..."/>
</plugin>
And theres a way to get them in plugin instance: $this->getParameter($this->getCurrentRequest('collUri'),$param_name,$param_type)
The question is - how to pass them to stylesheet ?
I guess i could take them right in stylesheet using php:functionString,
but dunno if plugin instance acessable there.
--
qMax
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms