First idea that comes to my mind: [1] Your XSLT style sheet writes the number in a text file.
[2] The content of the text file is then read and passed to <cfg:command name="alert" parameter="The number is %_" /> by the means of a <cfg:read> child element of the process command. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/read.html See also http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_reference.html --- A process-command returns the result of its last executed child element which itself returns a result (if any). The following child elements may return a result: post, read, invoke, subProcess. --- Huditsch, Roman (LNG-VIE) wrote: > > Once again I am having a very specific problem. > I am doing rather complex xsl transformations which are initiated over > XMLMind. > In these transformations I am accessing a database for retrieving a > specific number. > I would now need to display this number in an alert command. Is there a > way to do this? > My commands look as follows: > > <cfg:command name="release"> > <cfg:macro> > <cfg:sequence> > <cfg:command name="confirm" > parameter="Wollen sie diesen Artikel als News freigeben?'"/> > <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="MultiPick" > parameter="Kategorien true Arbeitsrecht 1 > Banken- und Wertpapierrecht 2"/> > <cfg:set variable="kat" expression="%_" > plainString="true"/> > <cfg:get expression="concat('"', > $vorname, '" "', > $nachname, '" "', > $kat, '"')"/> > <cfg:command name="transform2news" > parameter="%_"/> > > <!-- I would need to alert the number > retrieved in my XSLTs here --> > > <cfg:command name="clean" > parameter="%_"/> > <cfg:command name="alert" parameter="Der > Artikel wurde erfolgreich als News freigegeben!"/> > </cfg:sequence> > </cfg:macro> > </cfg:command> > <cfg:command name="transform2news"> > <cfg:process showProgress="true"> > <cfg:transform > stylesheet="xsl/release_news.xslt" file="%D" > to="G:/XMLMind_V33/temp/%R.xml" cacheStylesheet="true"> > <cfg:parameter name="para">%0 %1 > %2</cfg:parameter> > </cfg:transform> > </cfg:process> > </cfg:command> > <cfg:command name="clean"> > <cfg:process showProgress="false"> > <cfg:delete files="G:/XMLMind_V33/temp/%R.xml"/> > </cfg:process> > </cfg:command> >

