Hi Hussein,

Thank you very much for this brilliant idea!

best regards,
Roman

> -----Urspr?ngliche Nachricht-----
> Von: Hussein Shafie [mailto:hussein at xmlmind.com]
> Gesendet: Dienstag, 28. November 2006 10:54
> An: Huditsch, Roman (LNG-VIE)
> Cc: xmleditor-support at xmlmind.com
> Betreff: Re: [XXE] Using parameters for <cfg:transform>
> 
> Huditsch, Roman (LNG-VIE) wrote:
> >
> > 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?
> 
> Replace:
> 
> <cfg:get expression="$kat"/>
> 
> by:
> 
> <cfg:get expression="concat('&quot;', $vorname, '&quot; &quot;',
>                             $nachname, '&quot; &quot;',
>                             $kat, '&quot;')"/>
> 
> The idea is to create a %_ variable which contains something like:
> '"John" "Doe" "Bank"'
> for use by command "transform2news"
> 
> 


Reply via email to