Re: Set SQL results into an array

2003-01-20 Thread admin
Why don't you write a stored procedure on SQL Server ? Something like create procedure myProc as declare myCurs cursor for "your first select that gets the array" open myCurs fetch from myCurs into while (@@fetch_status = 0) begin insert into .. fetch next from end Th

Re: How to declare the template in the xml code?

2003-01-06 Thread admin
I agree with Jeremy Aston (couldn't do differently, I bought his book ;-) ) but, if you really want to, I think you can do it with XSP. There's an option in XSP to do processing instructions: Maybe you should look into that. > In my specific case it's usefull to declare the xslt-template hard

Re: Using the Cocoon pipeline outside web apps

2002-12-16 Thread admin
Oh, what else you can do: 1) Create a pipeline to create the content.xml file (one of the files within an OpenOffice file). You can use ESQL and XSL to create such a file. 2) Use wget http://server/file.xml content.xml 3) Zip it into an .sxw file, together with the manifest.xml and other files.

Re: Using the Cocoon pipeline outside web apps

2002-12-16 Thread admin
It must be possible to do, since an OpenOffice file is just a set of XML files, zipped into one. I did the opposite thing: create one XML file from the Zip file, in order to publish them through Cocoon. I used Perl. Here's my script. This doesn't do what you want it to do, but hey, it's Open S

Making a new Action

2002-08-16 Thread admin
Hi, I understand how to implement new actions in the sitemap, however i don't understand exacly how to define those actions. Actions are java code which i write seperatly from everything else. Do i save this file as a.java or .jsp? What directories do i have to place in into in order for it t