Hi Hussein,

I'm having a little problem specifying multiple parameters for a
stylesheet transformation.
I want to prompt the editor to enter its surname and firstname (in two
seperate steps).
Having the following macro, the stylesheet only gets the "kat"
parameter.
I read that I can specify multiple <parameter> elements under
<transform>, but my variables won't 
be in scope for that I suppose...

         <cfg:command name="release">
                <cfg:macro>
                        <cfg:sequence>
                                <cfg:command name="prompt"
parameter="Redakteur 'Vorname:'"/>
                                <cfg:set variable="vorname"
expression="%_" plainString="true"/>
                                <cfg:command name="prompt"
parameter="Redakteur 'Nachname:'"/>
                                <cfg:set variable="nachname"
expression="%_" plainString="true"/>
                                <cfg:command name="pick"
parameter="Kategorien true Arbeitsrecht 1
Banken-&#160;und&#160;Wertpapierrecht 2"/>
                                <cfg:set variable="kat" expression="%_"
plainString="true"/>
                                <cfg:get expression="$kat"/>
                                <cfg:command name="transform2news"
parameter="%_"/>
                                <cfg:command name="clean"
parameter="%_"/-->
                        </cfg:sequence>
                </cfg:macro>
        </cfg:command>
        <cfg:command name="transform2news">
                <cfg:process showProgress="false">
                        <cfg:transform
stylesheet="stylesheets/release_news.xslt" file="%d"
to="G:/XMLMind_V33/temp/%D.xml" cacheStylesheet="true"/>
                </cfg:process>
        </cfg:command>

Is there a simple way to do this?

Thanks a lot for your help!

best regards,
Roman

Reply via email to