override the setup() method

    public void setup(
        SourceResolver resolver,
        Map objectModel,
        String src,
        Parameters par)
        throws ProcessingException, SAXException, IOException {

            if (par.isParameter("myparameter")) {
                this.parameter = par.getParameter("myparameter");
            }


Stefan Pietschmann wrote:


Hi,



i’ve written a transformer in java,



<map:transformer name="addLinks" src="de.amacont.dom.transformation.LinkTransformer"/>



which works well. Now I want to use a parameter in it, which I can set in the sitemap, like





<map:transform type="addLinks">

<map:parameter name="componentTag" value="span"/>

</map:transform>



I don’t know how to, though. I know who I can use such a parameter in XSL Stylesheets, but Java? How do I instantiate them?

My transformer extends from AbstractDOMTransformer and just implements the transform(Document) method.





Thx for your help

stefan





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to