RE: Converting a TREE FRAGMENT to a node-set()

2002-09-03 Thread Luca Morandini
Phil, if you're not afraid of something NOT standard (XSLT 1.1 has no provision for tree-fragment conversion, while the upcoming 2.0 has), you could use a Xalan extension function, see http://xml.apache.org/xalan-j/extensionslib.html#nodeset . Best regards,

RE: XPath transformer?

2002-09-03 Thread Luca Morandini
Jeff, it came up to my mind just now... why don't you use a Xalan extension ? There is an evaluate function in there for such cases. Though I never use it, it seems to fit the bill: see for youself at http://xml.apache.org/xalan-j/extensionslib.html#evaluate . Best regards,

Re: XPath transformer?

2002-09-03 Thread Nicola Ken Barozzi
Luca Morandini wrote: Jeff, it came up to my mind just now... why don't you use a Xalan extension ? There is an evaluate function in there for such cases. Though I never use it, it seems to fit the bill: see for youself at http://xml.apache.org/xalan-j/extensionslib.html#evaluate . It's

Can't run commands from exec()

2002-09-03 Thread Ganael LAPLANCHE
Hi ! I would like to execute some commands with exec(). But some work,some won't. Commands like mv, touch,unzip, zip, rm are OK and work perfectly well. But I'd like to call a java application (Saxon),and it doesn't work (java -jar /usr/local/saxon/saxon.jar ...). I've tried exactly the

Name of uploaded file converted...?

2002-09-03 Thread Peter Bär
Hi all there, after while of staying back just lurking I'm back --- with a new (?) little problem. We want to upload files from the client to the server. The example packaged with the C2.0.3 distribution is just right for what we want, with just one little snag: If the filename contains

[SUMMARY?] How to parse an error

2002-09-03 Thread Antonio Gallardo Rivera
Hi, The first but not the best solution I found was using i18n to parse all the string. Obviously this is not the best way to do that. I think a little enhancement to Cocoon can be a better parsing of the errors like this: org.apache.cocoon.ProcessingException: Could not add record:

Nullpointer Exception - SessionTransformer

2002-09-03 Thread u15603
Hallo @ all, I use cocoon 2.1dev and think I have a problem with the SessionTransformer. With the attached pipelinefragment I want to buil a html-site. Therefor I aggregate some xml-documents in a nested aggregation. In the pipeline mobiharzauth-navigation-* I want to integrate a login

Re: XMLForm Wizard and Data Access

2002-09-03 Thread Bobby Mitchell
I have been working with Mod-DB and XMLForm and found that when you use the DatabaseSelectAction the values selected from the DB are stored in the request header. If you use xsp-request:get-attribute-names it will give you an attribute name like

Problem with sunRise, please help :)

2002-09-03 Thread Antonio Gallardo Rivera
Hi, please help me. I was trying to setup a handler with sunRise. I am using Cocoon 2.0.3 After the login I got this error: java.lang.NullPointerException Note java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at

variables in cocoon

2002-09-03 Thread praktikant
Hello, I try to get an input to store it later on in a xml database. I've looked in Samples/Serverpages/Logicsheet but I didn't understand: - how to get input into the variables and - how to send the variables to another xsp, xml, ... -file This is my code so far: It shows me String

send mail with attachment

2002-09-03 Thread Barbara Post
Hi Themba Mbatha and Paul Pattison, please can you give me hints about the action I write to send email with attachments, since the attachment should be produced by cocoon itself... (a cocoon:// pipeline for example). How can I do this ? Thanks a lot to any other replier ;-) Barbara, C2.0.3.

Re: Problem with sunRise, please help :)

2002-09-03 Thread Barbara Post
You may have a problem with your parser, check it and look in the archives for your error message: XMLUtil.getNodesFromPath, I've read this a couple of times... Babs - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03,

RE: Problem with sunRise, please help :)

2002-09-03 Thread Matthew Langham
Antonio, try this: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102927633032114w=2 Matthew -Original Message- From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 2:08 PM To: [EMAIL PROTECTED] Subject: Problem with sunRise, please help :)

RE: HTMLGenerator customizing

2002-09-03 Thread Marcin Stefaniuk
I've added some tags in the config file. Is other way to force HTMLGenerator to do not strip non-html tags? [EMAIL PROTECTED] wrote: Just a thought -- someone correct me if my reach is exceeding my grasp here -- would subclassing the HTMLGenerator to a derived 'HTMLGoLiveGenerator'

Re: Re : map parameter value and cocoon://

2002-09-03 Thread Vadim Gritsenko
Barbara Post wrote: Forgot to mention : I use C 2.0.3 and cannot switch to 2.1 for this project for now... :-( - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:57 AM Subject: map parameter value and cocoon:// Hello,

Re: Is aggregate element attribute optional

2002-09-03 Thread Vadim Gritsenko
Daniel Fournier wrote: Hi everybody. According to sitemap DTD v0.2 (C2.0.3), the aggregate element attribute is implied, then optional. It is required. See xitemap.xsl, line 1428 Vadim However, omitting it triggers a language exception when compiling the sitemap. What's the reason?

Re: Error in mounted sitemap (After update 2.0.2 - 2.0.3)

2002-09-03 Thread Vadim Gritsenko
Frank Borkowsky wrote: Hello all! After an update from Cocoon 2.0.2 to 2.0.3 we have problems with mounted sitemaps in our project. We now get errors of the following type: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies Try compiled sitemap. AFAIR, this bug

[SUMMARY] sunRise throw java.lang.NullPointerException in Java 1.4

2002-09-03 Thread Antonio Gallardo Rivera
PROBLEM: When you are trying to use sunRise and your plataform is: Cocoon 2.0.3 Tomcat 2.1.8 or 2.1.9 Java 1.4 or 1.4.1 You get the following error: java.lang.NullPointerException java.lang.NullPointerException at

Re: Re : map parameter value and cocoon://

2002-09-03 Thread Barbara Post
ok Vadim... I had a look into the archives and SourceWritingTransformer (I can import in into my C2.0.3, can't I ?). However it seems that it can only write xml to a file, not pdf... My problem is rather dull: I have an xml file and a pdf one. I can get them from cocoon:// or a database (using

Livesite www.helnwein.com

2002-09-03 Thread leo leonid
hi list, there is a new C2.0.3 livesite: http://www.helnwein.com It is the official website of the austrian artist Gottfried Helnwein. Lots of articles, thousands of images, guestbook, simple lucene-search... . It is 100% cocoon, 100% db-driven, with a web-based maintainace interface. I'd be

Cocoon : Content Transformation from WORD/PDF/EXCEL to XML

2002-09-03 Thread Rajesh Parekh
Title: Message Hi, I have a requirement to convert hundreds of unstructured documents in WORD/PDF/TXT/EMAIL formats into a structured repository of XML Metadata of the document and the documents itself. I need to parse each of these documents and extract the relevant information to build

Re: Re : map parameter value and cocoon://

2002-09-03 Thread Vadim Gritsenko
Barbara Post wrote: ok Vadim... I had a look into the archives and SourceWritingTransformer (I can import in into my C2.0.3, can't I ?). However it seems that it can only write xml to a file, not pdf... It can. It was recently explained on this list (something about specifying serializer).

Re: still trying to create a searchable lucene index of my xml docments

2002-09-03 Thread Vadim Gritsenko
Harry J. Foxwell wrote: I have a collection of xml documents in http://cs2.gmu.edu:8080/cocoon/Marchive, a.xml, b.xml, etc. I have an AE.xsl stylesheet in the Marchive directory that successfully transforms my documents into html when I browse to http://cs2.gmu.edu:8080/cocoon/Marchive/a, for

RE: [SUMMARY] sunRise throw java.lang.NullPointerException in Java 1.4

2002-09-03 Thread Matthew Langham
Many thanks to Matthew Langham that provide me the link to: Glad to see that solved your problem. Matthew -Original Message- From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 3:07 PM To: [EMAIL PROTECTED] Subject: [SUMMARY] sunRise throw

Re: Name of uploaded file converted...?

2002-09-03 Thread Vadim Gritsenko
Peter Bär wrote: Hi all there, after while of staying back just lurking I'm back --- with a new (?) little problem. We want to upload files from the client to the server. The example packaged with the C2.0.3 distribution is just right for what we want, with just one little snag: If the

Today usability of 2.1 version ?

2002-09-03 Thread Barbara Post
Hi, I finally may use 2.1 version but need to know : are the main components in use in 2.0.3 version still stable ? New components may be less stable, ok. What is the difference between 2.1-dev and 2.1 beta ? What's missing today from cvs-head ? What about sunRise, is it as stable as in 2.0.3 ?

Re: repost : activeX (.cab) and C 2.0.3

2002-09-03 Thread reinhard_poetz
Barbara, Are you sure that your pipeline works? Try to include an image which has the same path as the active-x. When this works change to .cab/application/octet-stream. Regards, Reinhard Cocoon does not add my activeX component to the html page it outputs. Even application/octet-stream set

RE: Today usability of 2.1 version ?

2002-09-03 Thread Carsten Ziegeler
Barbara Post wrote: Hi, I finally may use 2.1 version but need to know : are the main components in use in 2.0.3 version still stable ? New components may be less stable, ok. This is not easy to anser. Most main components are still stable in 2.1, but some core components have changed -

Re: Today usability of 2.1 version ?

2002-09-03 Thread Barbara Post
Thanks Carsten, I will try it and help debugging if I can... at least post bugs. Does caching problem involve that I may have sudden deaths of Tomcat ? I will update it again and fully retest my app before we go on production stage... Barbara - Original Message - From: Carsten Ziegeler

Re: Cocoon 2.1-dev in Tomcat 4.1.7

2002-09-03 Thread leo leonid
On Tuesday, September 3, 2002, at 03:39 Uhr, Matthew Langham wrote: Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything.

Re: Today usability of 2.1 version ?

2002-09-03 Thread Antonio Gallardo Rivera
OK Lets go to 2.1! I will give a try in it. :) Antonio Gallardo El Martes, 03 de Septiembre de 2002 08:14, Carsten Ziegeler escribió: Barbara Post wrote: Hi, I finally may use 2.1 version but need to know : are the main components in use in 2.0.3 version still stable ? New components

RE: Today usability of 2.1 version ?

2002-09-03 Thread Carsten Ziegeler
Barbara Post wrote: Thanks Carsten, I will try it and help debugging if I can... at least post bugs. Does caching problem involve that I may have sudden deaths of Tomcat ? No, I don't think so - you might get a NPE very rarely but this should not kill Tomcat. Carsten

CVS build - missing WEB-INF/lib !

2002-09-03 Thread Barbara Post
I use T 2.0.4 and jdk 1.3.1, wanted to use latest c2.1 war (from one hour ago cvs head). Tomcat strangely didn't unpack, and when I manually unpack it says : The requested service (Servlet Cocoon2 is currently unavailable) is not currently available. When I built cocoon it told it was targeted

Re: CVS build - missing WEB-INF/lib !

2002-09-03 Thread Barbara Post
Precision : no jar in the war. ok, I copy all the jars to the right place and Tomcat says it's ok now excepted : org.apache.avalon.framework.configuration.ConfigurationException: Cannot get component selector for 'serialize' at jndi:/localhost/cocoon/sitemap.xmap:386:31 So I comment the views/

RE: CVS build - missing WEB-INF/lib !

2002-09-03 Thread Carsten Ziegeler
-Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 4:47 PM To: [EMAIL PROTECTED] Subject: Re: CVS build - missing WEB-INF/lib ! Precision : no jar in the war. ok, I copy all the jars to the right place and Tomcat says it's ok now

Re: CVS build - missing WEB-INF/lib !

2002-09-03 Thread Barbara Post
ah, I used -Dinclude.webapp.libs=yes webapp instead... guess I was on the wrong page. Will rebuild then. Yes my JAVA_HOME is jdk1.3.1. Your site is great with my other questions : http://ziegeler.bei.t-online.de/c2auth.html :-) Thanks. - Original Message - From: Carsten Ziegeler

bug ? latest build and xml serializer in views /

2002-09-03 Thread Barbara Post
org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml' is not defined for 'serialize' at file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31 map:views map:view from-label=content name=content -- map:serialize type=xml/ /map:view What's wrong ? today's

Re: CVS build - missing WEB-INF/lib !

2002-09-03 Thread Nicola Ken Barozzi
Barbara Post wrote: ah, I used -Dinclude.webapp.libs=yes webapp instead... guess I was on the wrong page. Will rebuild then. also build installwar or build installscratchpadwar can help for an easy install. -- Nicola Ken Barozzi [EMAIL PROTECTED] -

RE: Cocoon 2.1-dev in Tomcat 4.1.7

2002-09-03 Thread Matthew Langham
Leo, thanks. The problem was in the way we were building the war file. Matthew -Original Message- From: leo leonid [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 4:25 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon 2.1-dev in Tomcat 4.1.7 On Tuesday, September 3,

RE: bug ? latest build and xml serializer in views /

2002-09-03 Thread Carsten Ziegeler
Are you sure you're using the latest code? I think this bug was fixed three or four weeks ago. The latest cvs works for me without any problems. Do you have an older avalon framework or excalibur in your classpath? HTH Carsten -Original Message- From: Barbara Post [mailto:[EMAIL

xml:db API and C 2.1 ? [Re: bug ? latest build and xml serializer in views /]

2002-09-03 Thread Barbara Post
Hi Carsten, No I don't have anything special in my classpath, using Tomcat 4.0.4, and it separates webapps so jars... Anyway there is still (CVS HEAD from this afternoon...) something wrong with View and serializers : org.apache.avalon.framework.configuration.ConfigurationException: Type

Cocoon 2.1-dev in Tomcat 4.1.7

2002-09-03 Thread Matthew Langham
Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything. Calling any Cocoon URI gives a 404. The log lists this exception: 2002-09-03

[mark your calendars] Cocoon GetTogether / Belgium - 2002-11-19

2002-09-03 Thread Steven Noels
Dear all, Outerthought is happy to announce its one-year anniversary, and is hosting a Cocoon/Forrest-related event on November 19th 2002 to celebrate this. In the 'morning' (10AM-2:30PM), we will host an informal Cocoon Users and Developers get-together with a couple of presentations, in the

Re: bug ? latest build and xml serializer in views /

2002-09-03 Thread Marcus Crafter
Found it. build.xml doesn't copy across *-block.jar files for webapp-local (which invokes copy-webapp-libs rather than prepare-webapp-libs). I'll submit a patch via bugzilla. Cheers, Marcus On Tue, Sep 03, 2002 at 05:53:40PM +0200, Marcus Crafter wrote: Hi Carsten, Did you try the

Re: Error in mounted sitemap (After update 2.0.2 - 2.0.3)

2002-09-03 Thread Werner Guttmann
Vadim, can you please explain the problem. I had a very similar issue, but realised that Cocoon was giving misleading error messages. IOw, once I pulled the pipeline definitions from the sub-sitemap into the main, I was finally able to see the original problem. Thanks Werner Vadim Gritsenko

Re: Cocoon : Content Transformation from WORD/PDF/EXCEL to XML

2002-09-03 Thread Andrew C. Oliver
Rajesh Parekh wrote: Hi, I have a requirement to convert hundreds of unstructured documents in WORD/PDF/TXT/EMAIL formats into a structured repository of XML Metadata of the document and the documents itself. I need to parse each of these documents and extract the relevant

Re: C2.0.3 silently ignoring exceptions

2002-09-03 Thread Christopher Painter-Wakefield
Did any of the Cocoon developers read this thread? Should I post it to cocoon-dev? I want to make sure these bugs get addressed. Thanks, Christopher Christopher Painter-Wakefield wrote: Thanks for the reply. I've attached some sample code that exhibits the problem, and a sitemap,

Cocoon runtime error: 'Session is required'

2002-09-03 Thread Alan Hodgkinson
Dear All, I'm trying to implement session besed forms and have run into the following error: ERROR (2002-09-03) 18:56.26:764 [sitemap] (/tc/test-form.html) HttpProcessor[8080][4]/PipelineNode: Error while processing pipeline at jndi:/localhost/tc/sitemap.xmap:440:19

Re: Error in mounted sitemap (After update 2.0.2 - 2.0.3)

2002-09-03 Thread Vadim Gritsenko
Werner Guttmann wrote: Vadim, can you please explain the problem. Nothing to explain, really. AFAIU, treeprocessor had some bug inheriting components declared in the parent sitemap. Compiled engine never had this bug. IIRC, this bug was fixed in the CVS by Sylvain. Vadim I had a very

The order of the atributes can help developers

2002-09-03 Thread Antonio Gallardo Rivera
Hi, I am using jEdit (http://www.jedit.org) like the source editor. jEdit has a plug-in called XML-Tree. In this plug-in we can see the tree XML of tags and There we can see the attributes of a given tag. I think it can help better if the attribute name of the components will be the first

Re: The order of the atributes can help developers

2002-09-03 Thread Steven Noels
Antonio Gallardo Rivera wrote: I think it can help better if the attribute name of the components will be the first declared attribute in the sitemap. Of course if it exists ;). Attribute order is irrelevant in an XML document - it is up to the application if the order is preserved. IIRC,

Re: The order of the atributes can help developers

2002-09-03 Thread Antonio Gallardo Rivera
El Martes, 03 de Septiembre de 2002 13:30, Steven Noels escribió: Antonio Gallardo Rivera wrote: I think it can help better if the attribute name of the components will be the first declared attribute in the sitemap. Of course if it exists ;). Attribute order is irrelevant in an XML

Cocoon installation problem

2002-09-03 Thread Daniel Buskirk
I have successfully installed Cocoon on MS Windows 2000, running under Tomcat. However, my installation on Linux is not working. Tomcat is working and set to the default port 8080, but when an xml file is accessed I see only the xml itself; no processing is taking place. I tried substituting

Re: C2.0.3 silently ignoring exceptions

2002-09-03 Thread Nicola Ken Barozzi
Christopher Painter-Wakefield wrote: Did any of the Cocoon developers read this thread? Should I post it to cocoon-dev? I want to make sure these bugs get addressed. I am a Cocoon dev (I also wrote the error handling code, but it's not a compliment ATM I guess), but I have limited time ATM

Re: The order of the atributes can help developers

2002-09-03 Thread Steven Noels
Antonio Gallardo Rivera wrote: El Martes, 03 de Septiembre de 2002 13:30, Steven Noels escribió: Attribute order is irrelevant in an XML document - it is up to the application if the order is preserved. IIRC, Xalan sorts attributes alfabetically. I know that. But for the programmers can

Session-Timeout

2002-09-03 Thread Michael Mangeng
Hi I was wondering where i can define the session timeout for my cocoon application. I get errors if i try to set it anywhere in the web.xml with the following entry: session-config session-timeout60/session-timeout /session-config --- How can i change the default timeout value of my webapp

Xopus2 has been open sourced

2002-09-03 Thread Michael Wechner
Hi As you probably have heard or read somewhere, Xopus 2 (or at least the most important modules of it) has been open sourced under the Apache license on August 30th: http://www.xopus.org We already have built an interface for an alpha version of Xopus 2 (which we kindly received from Q42

XMLForm - Howto - Mailing List - Not working

2002-09-03 Thread grenoml
I installed Cocoon 2.1 successfully (at least I can browse to http://localhost:8080/cocoon) and I am trying to get the Howto Mailing List example working. I've double checked all of my steps but I can't get it to work. I'm using Tomcat 4.1.9 and Cocoon 2.1 (09/02). I put all the .xml

Re: XMLForm - Howto - Mailing List - Not working

2002-09-03 Thread grenoml
When I browse to http://localhost:8080/cocoon I get http://localhost:8080/cocoon/documents/index.html. Is this correct? It's just a documentation page. Shouldn't I be able to view samples from this first page? There's no sample link anywhere on this page I'm seeing. --- grenoml [EMAIL

Re: XMLForm - Howto - Mailing List - Not working

2002-09-03 Thread Antonio Gallardo Rivera
Yes, this is correct. In this versión the home page is the documentation. You can point the browser to: http://localhost:8080/cocoon/samples/ to see the samples. Antonio Gallardo El Martes, 03 de Septiembre de 2002 19:23, grenoml escribió: When I browse to http://localhost:8080/cocoon I get

Re: XMLForm - Howto - Mailing List - Not working

2002-09-03 Thread Ivelin Ivanov
Are you able to reach: http://localhost:8080/cocoon/samples/welcome and then follow the links under this section XMLForm: Form Handling and Web ServicesServices Also try the pre-bundled XMLForm demo http://localhost:8080/cocoon/samples/xmlform/wizard Ivelin - Original Message -

Re: XMLForm - Howto - Mailing List - Not working

2002-09-03 Thread Ivelin Ivanov
This is a good question. The link to all samples is http://localhost:8080/cocoon/samples/welcome How does one get there from the front page? - Original Message - From: grenoml [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 8:23 PM Subject: Re: XMLForm - Howto

Re: XMLForm Wizard and Data Access

2002-09-03 Thread Ivelin Ivanov
Sure, see org.apache.cocoon.samples.xmlform.WizardAction perform() returns a Map which is the action map. If you don't have anything extra to add to the map, you can use return page ( PAGE_NAME ); Otherwise you can do: Map actionMap = page( PAGE_NAME ); actionMap.add( myOwnKey, andObject ); you

RE: send mail with attachment

2002-09-03 Thread Paul Pattison
Hi Barbara, I finally got this to work just yesterday. I think I did it in a pretty ugly way, but it works. I changed the sendmail logicsheet so that it uses a URLDataSource instead of a FileDataSource for the attachment and then I gave it a hardcoded URL (ie http://localhost/whatever.pdf). I