Hi,

I am in search for a simple if - then - else command sequence.
Reading your documentation I could not figure it out myself. 
I tried several code constructs with <choice> and <test> but nothing worked.

I would just like to test, if a variable's text is set to a value other than 
"LexisNexis".
If that is true, a new attribute should be inserted with the appropriate value.

<!-- IF ($foo:autor!='LexisNexis)-->
<cfg:command name="pick" parameter="Kodex false AVG BR HR StrR VfR WohnG ZGV"/>
<cfg:set variable="kodex" expression="%_" plainString="true"/>
<cfg:get expression="$kodex"/>
<cfg:command name="putAttribute" parameter="kodex %_"/>
<!-- ELSE -->
        ...

How can I achieve that?

wbr,
Roman


> -----Urspr?ngliche Nachricht-----
> Von: xmleditor-support-bounces at xmlmind.com 
> [mailto:xmleditor-support-bounces at xmlmind.com] Im Auftrag von 
> Huditsch Roman
> Gesendet: Dienstag, 22. Februar 2005 08:20
> An: xmleditor-support at xmlmind.com
> Betreff: AW: [XXE] Giving an alert on finishing a process command
> 
> Hi Hussein, 
> 
> ah, thank you very much for this hint. 
> As you see, I am quite new to the XMLMind customization topic ;)
> 
> all the best,
> Roman
> 
> 
> > -----Urspr?ngliche Nachricht-----
> > Von: Hussein Shafie [mailto:hussein at pixware.fr]
> > Gesendet: Montag, 21. Februar 2005 17:05
> > An: Huditsch Roman
> > Cc: xmleditor-support at xmlmind.com
> > Betreff: Re: [XXE] Giving an alert on finishing a process command
> > 
> > Huditsch Roman wrote:
> > > I would like to define a button, which should onClick copy
> > the current
> > > file to a specified directory.
> > > So far so good, but after the copying process is 
> finished, I would 
> > > like to alert a user-defined message like "Document released".
> > > Is that possible? I could not find any clue how to do this
> > in the DTD
> > > part for the process element...
> > > 
> > > Here are my definitions so far:
> > > 
> > >   <cfg:button toolTip="Freigeben" icon="icons/release.gif">
> > >           <cfg:command name="release"/>
> > >   </cfg:button>
> > >   ...
> > >   <cfg:command name="release">
> > >           <cfg:process showProgress="false">
> > >                   <cfg:copyDocument
> > > to="R:\Produktion\Legislations\source"/>
> > >                   ???
> > >           </cfg:process>
> > >   </cfg:command>
> > 
> > Your "Freigeben" button should invoke a macro-command like the one 
> > below, instead of directly invoking the "release"
> > process-command.
> > 
> > ---
> >    <cfg:command name="release_onClick">
> >      <cfg:macro>
> >        <cfg:sequence>
> >     <cfg:command name="release" />
> >     <cfg:command name="alert" parameter="Document released." />
> >        </cfg:sequence>
> >      </cfg:macro>
> >    </cfg:command>
> > ---
> > 
> > More info about command "alert" in
> > http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s01.html
> > 
> > See also command "status" 
> > 
> (http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s63.html)
> > and command "beep
> > "(http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06
> > s04.html)
> > 
> > 
>  
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> 

Reply via email to