Re: Writing output of pipeline to a file

2002-12-17 Thread Anna Afonchenko
Thank you all for answering me, but I still can't manage to do it. Here is my pipeline:               Here is my writeToFile.xsl: http://www.w3.org/1999/XSL/Transform"  xmlns:fo=http://www.w3.org/1999/XSL/Format xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element

Re: XML Schema's or DTDs for sitemaps/logicsheets?

2002-12-17 Thread Konstantin Piroumian
You'll find a more or less up-to-date XSD for the sitemap in /src/documentation/xdocs/drafts/sitemap-2.1-draft.xsd There is also a DTD for the sitemap and a RelaxNG schema somewhere there... Konstantin From: "Ben Young" <[EMAIL PROTECTED]> > Are there any Schemas or DTDs available for the sitem

Re: Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Dr. Robert Spiske
Hi! At 10:14 18.12.2002 +0300, you wrote: Hello, As far as I understood, should print "december" - right? Well, it doesn't. What am I doing wrong? Try: Have a nice day Robert - Please check that your question has not alre

Re: Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Anna Afonchenko
Lenya I tried your example, it prints the parameter for me. You may have a typo in expression should be At least, this is the only reason I see. Anna - Original Message - From: "Lenya L. Khachaturov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 9:14

AW: Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Kirchhoff, Lars
hi you have to reference the param with a $. In your case ciao Lars > -Ursprüngliche Nachricht- > Von: Lenya L. Khachaturov [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 18. Dezember 2002 15:15 > An: [EMAIL PROTECTED] > Betreff: Passing request parameters - and making use of

Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Lenya L. Khachaturov
Hello, It seems like everybody knows how to do this, at least the docs mention this so briefly, that it must be dead simple. Anyway, I didn't get it :-) Please help me on this: ... ... Now, when I point the browser to http://mysite/archives/december, the parameter named "param" with the "

Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
OK, thank you, I now understand how to set a doctype. But what about other settings, like converting quotes to entities. Not that I need it so much, but I am just curious, why this doesn't work through jtidy-config. I just want to know if that's me doing something wrong, or maybe this is some JTidy

Re: cvs2.1 xmlform sample broken?

2002-12-17 Thread Ivelin Ivanov
Thanks for the notification Thor. Nicola, what is the deal? Ivelin - Original Message - From: "Thor Heinrichs-Wolpert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 10:03 PM Subject: cvs2.1 xmlform sample broken? I see some files moved in CVS by nicol

RE: sub sitemaps problems

2002-12-17 Thread Geoff Howard
What about as a better solution? (if relative links are not an issue) Geoff Howard > -Original Message- > From: Joerg Heinicke [mailto:[EMAIL PROTECTED]] > > > I posted a question to this list, but no better > > solution was posted nor any hint, why the problem > > exists. > > I don't

cvs2.1 xmlform sample broken?

2002-12-17 Thread Thor Heinrichs-Wolpert
I see some files moved in CVS by  nicolaken such as src/java/org/apache/cocoon/samples/xmlform UsageFeedbackAction.java UserBean.java WizardAction.java but the sitemaps and examples don't seem to have been modified. Is something up? Cheers, Thor HW --

Re: schematron

2002-12-17 Thread Ivelin Ivanov
Joerg's response is correct, although a technical detail is that Schematron is based on XPath, not XSTL (which uses XPath itself). - Original Message - From: "Joerg Heinicke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 1:27 PM Subject: Re: schematron >

Re: FORMS

2002-12-17 Thread Ivelin Ivanov
Josema, Many people requested an example of XMLForm with Xindice. Can you submit some source code or even better a HOW-TO doc? Thank you, Ivelin - Original Message - From: "Josema Alonso" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 9:59 AM Subject: Re

Re: FORMS

2002-12-17 Thread Ivelin Ivanov
Title: FORMS   XMLForm is not supported in version before 2.1.   You can download 2.1 here: http://cvs.apache.org/snapshots/xml-cocoon2/   - Original Message - From: Carlos González To: [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 8:34 AM Subject: FORMS

context problem

2002-12-17 Thread Hong Gia Dinh
Title: context problem Hi all i got the headache prolem like this i have the files and sitemap like this :                                                                                        

Re: sub sitemaps problems

2002-12-17 Thread Joerg Heinicke
> I posted a question to this list, but no better > solution was posted nor any hint, why the problem > exists. I don't know a better solution, but isn't the reason obvious? http://localhost:8080/cocoon/mount/tm/gallery/ points to a directory 'gallery' while http://localhost:8080/cocoon/mount/t

Re: sub sitemaps problems

2002-12-17 Thread SAXESS - Hussayn Dabbous
I had essentially the same problem with my webapp. I solved it as follows: I posted a question to this list, but no better solution was posted nor any hint, why the problem exists. regards, hussayn Tomasz Muldner wrote: Hi, I'm using Tomcat 4.1.12 and Cocoon: cocoon-2.0.4-vm14-bin,

return connection to jbean from connection pool question

2002-12-17 Thread Bas Peters
I am trying to get familiar with Cocoon (2.1) and try to expand the XMLform HowToWizard demo by adding an insert statement to write data to a MySQL database. I added a jBean.insert() method in the HowToWizardAction class, added an insert() method in the bean class and added a DB class with a static

sub sitemaps problems

2002-12-17 Thread Tomasz Muldner
Hi, I'm using Tomcat 4.1.12 and Cocoon: cocoon-2.0.4-vm14-bin, jdk 1.4.1, windows xp I tried one example from the Cocoon book, listing 4.28 (gallery listing) to be executed from a sub sitemap. In the directory mount I created a directory tm and in this directory, I created a directory gallery (with

RE: Cocoon Action Problem

2002-12-17 Thread Geoff Howard
> Caused by: java.lang.ClassNotFoundException: > I think it is caused by the following tag in my sitemap.xmap > > > > > I guess it is unable to find the class test.HelloWorldAction. But > I already put the test/HelloWorldAction.class inside the > web-inf/classes directory. I also trie

Re: excalibur-xmlutils sources

2002-12-17 Thread Ahmed
On Tue, 2002-12-17 at 19:46, Phil Shafer wrote: > Is there an archived set of sources available for the > contents of excalibur-xmlutil-20020820.jar? I'm getting > a NPE in org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX() > and can't see what I'm doing wrong. The current sources for > jakarta-

Re: for loop in XSLT

2002-12-17 Thread Yves Vindevogel
Something like this : http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";> Test Page

Re: for loop in XSLT

2002-12-17 Thread Tony Collen
Lautaro Brasseur wrote: Somebody knows how to implement a for-like loop in XSLT? I found the following example in XSLT 2.0, but it doesn't work in 1.0: Lautaro, Please ask any XSL-related questions to the Mulberry XSL-List. It's located at http://www.mulberrytech.com/xsl/xsl-list/

for loop in XSLT

2002-12-17 Thread Lautaro Brasseur
Somebody knows how to implement a for-like loop in XSLT? I found the following example in XSLT 2.0, but it doesn't work in 1.0:          

CDATA sections

2002-12-17 Thread m batsis
Hi all, I'm building an app that involves client-side editing of XML delivered by Cocoon. I'm using an XSLT transformer to deliver a visual representation of an XML document and another transformer to convert the modified visual representation to XML. My problem lies in CDATA section preserva

Cocoon Action Problem

2002-12-17 Thread Linjun Xu !
I am having problems with the hello world example in the cocoon documentation action section. It's giving me an ConfigurationException. The exception is shown below: org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : at org.apache.cocoon.www.

[Fwd: [ANN] Apache Tomcat 4.1.17 Stable released]

2002-12-17 Thread Antonio Gallardo
The Tomcat Team announces the immediate availability of Apache Tomcat 4.1.17 Stable. Tomcat 4.1.17 includes many bugfixes and performance tweaks over Tomcat 4.1.12. Please see the release notes for a complete list of the changes. Downloads (source and binaries): http://jakarta.apache.org/builds/j

Re: schematron

2002-12-17 Thread Joerg Heinicke
jtbamcai wrote: > Hi! > how can I validate a date like this "-mm-dd" with schematron? > thanks in advance. > iker. Hello, Schematron is XSLT, so you can use normal expressions. Example: But XSLT has no date-specific functionality, it knows nothing about dates. So I think there is a bett

schematron

2002-12-17 Thread jtbamcai
Hi! how can I validate a date like this "-mm-dd" with schematron? thanks in advance. iker. - Please check that your question has not already been answered in the FAQ before posting.

excalibur-xmlutils sources

2002-12-17 Thread Phil Shafer
Is there an archived set of sources available for the contents of excalibur-xmlutil-20020820.jar? I'm getting a NPE in org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX() and can't see what I'm doing wrong. The current sources for jakarta-avalon-excalibur don't have this class (but do have the i

Build ERROR last cocoon2 CVS

2002-12-17 Thread Cocoon User
error msg: BUILD FAILED file:C:/Documents and Settings/root/My Documents/CVS/cocoon/xml-cocoon2/build.xml:1039: IOException: java.net.MalformedURLException: unknown protocol: c system: windows XP j2sdk1.4.1_01 any idea to solve this problem? thnx Stavros Kounis -

Re: Configuring JTidy

2002-12-17 Thread Martin Holz
Hi, "Anna Afonchenko" <[EMAIL PROTECTED]> writes: > Hi Hussayn. > Thank you for pointing my out my typo, I corrected it. > But I still don't get the output that I want. > I changed the serializer to the html, but looking at the source of the > output page, I still get: > > http://www.w3.org/199

RE: Using the Cocoon pipeline outside web apps

2002-12-17 Thread Geoff Howard
I'm so sorry - this was you on the dev list. I should have checked before sending. Geoff > -Original Message- > From: Geoff Howard [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 17, 2002 11:27 AM > To: [EMAIL PROTECTED] > Subject: RE: Using the Cocoon pipeline outside web apps > >

RE: Using the Cocoon pipeline outside web apps

2002-12-17 Thread Geoff Howard
i believe someone is working on this (unless that was you?). Check the dev list archives over the last week for Cocoon Bean. Geoff > -Original Message- > From: Upayavira [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 17, 2002 7:24 AM > To: [EMAIL PROTECTED] > Subject: Re: Using th

Re: Writing output of pipeline to a file

2002-12-17 Thread Upayavira
The question is, do you want to run Cocoon as a servlet (i.e. accessing it via HTTP), and have the pipeline save a file on the way, or do you just want to get the file saved, without needing a servlet? If it is the latter, then you should consider using the Command Line interface. Basically,

Re: FORMS

2002-12-17 Thread Josema Alonso
FORMSHello, Yes, you must download 2.1 from CVS and build it. Information on how to get it and build it step by step is available at: http://xml.apache.org/cocoon/installing/index.html Then you could test the XMLForm samples. I've been succesfully using them for a few months backed by a Xindice re

Cocoon 2.0.3 and WebSphere Studio Application Developer 5.0

2002-12-17 Thread robert_hitchins
Hi All, Was wondering if anyone has had any experience deploying the Cocoon 2.0.3 WAR file under WebSphere Studio Application Developer 5.0 or WebSphere Application Server 5.0? I import the WAR in WSAD 4.0.3 and it works just fine...when I import it under WSAD 5.0, it appears to import fin

XML Schema's or DTDs for sitemaps/logicsheets?

2002-12-17 Thread Ben Young
Are there any Schemas or DTDs available for the sitemap or logicsheets? Thanks, Ben - Please check that your question has not already been answered in the FAQ before posting. T

Interbase JDBC bugs when migrating to JDK 1.4

2002-12-17 Thread Paolo Scaffardi
Title: Messaggio I have a linux web application based on Cocoon 2.0.3, tomcat 4.1.12, JDK 1.3, InterClient 2.0.1 and Firebird SuperServer 1.0. I need to migrate to JDK 1.4 but i still have problems with InterClient because some queries now throw this exception: "interbase.interclient.Invalid

Re: Writing output of pipeline to a file

2002-12-17 Thread Ludovic de Beaurepaire
First, i had just to save it (not to send the result file to the client). I did it in a stylesheet like this :    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redirect">     output for the client  

AW: Writing output of pipeline to a file

2002-12-17 Thread Sternath Elmar
Hi Anna,   if no cocoon standard solution exists for this problem, you could implement your own Transformer inheriting from Cocoon's AbstractTransformer. The transformer processes all elements of your XML stream in corresponding methods like startElement, etc. You could redefine these metho

FORMS

2002-12-17 Thread Carlos González
Title: FORMS Hi All, I am very interested in something that would let me fill some forms, and bind these form data to xml. I am evaluating products like Altova's Authentic Web Edition (very expensive, 30k USD per 50 concurrent users), but the functionality, except the client behavior that

Re: Writing output of pipeline to a file

2002-12-17 Thread Boris Althaus
Halle Anna,   With a stylesheet like that you can write files and having an output as well. If it is the best method?   http://www.w3.org/1999/XSL/Transform" xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redirect">      

Re: Writing output of pipeline to a file

2002-12-17 Thread Anna Afonchenko
Hi Ludovic. Thank you for answering. Can you say what do you do to save this XML file? I mean, if I have the following pipeline:             this pipeline produces an xml file. What should I use in order to save this file as "some.xml".   Sorry for asking almost exactly the same, I jus

Cocoon 2.0.3, namespace-alias and Xalan

2002-12-17 Thread Rano, Didier
I tested a namespace-alias with XSLTTransformer, cocoon 2.0.3 an Xalan. But it is ignored. Is it normal ? A higher version of cocoon solves this problem ? Didier Rano Serv'N Data - Please check that your question has not alrea

Re: Writing output of pipeline to a file

2002-12-17 Thread Ludovic de Beaurepaire
Hi Anna,   I had this problem and didn't find a solution for caching the output of the pipeline to perform an OutputAction as saving in a file. Finally i chose to save the XML, and to perfom the transformation/serialization when a request need the transformed file. It supposes that the trans

CDATA sections

2002-12-17 Thread Emmanuil Batsis (Manos)
[resending this one, seems I used a non-subscribed address originally] Hi all, I'm building an app that involves client-side editing of XML delivered by Cocoon. I'm using an XSLT transformer to deliver a visual representation of an XML document and another transformer to convert the modified

Writing output of pipeline to a file

2002-12-17 Thread Anna Afonchenko
Hello All! I know that today I ask too many questions, but since cocoon is new to me, sometimes I don't even know where to look for the information, so you are my only help. Thanks for everyone who took time to answer my questions. Here is another one:   At the end of the pipeline the result

AW: value-substitution in Cocoon

2002-12-17 Thread Sternath Elmar
Hi Anna,   you could implement an action which takes your HTTP request parameter as input parameter, then execute some JAVA code inside the action getting the last character, incrementing it or whatever else and let the action return the result. Inside the tags in your sitemap, you can the

RE: how to connect two pipelines in cocoon?

2002-12-17 Thread Vermeulen, Francis
Hi, you can use the sitemap element to invoke a pipeline fragment from another pipeline. I use this too, here is en extract from my sitemap:

Re: Using the Cocoon pipeline outside web apps

2002-12-17 Thread Upayavira
Olivier, What you are asking for is currently 'kind of' provided by the command line interface. However, when I have made enquiries about this to the various Cocoon lists, it has been suggested that someone could develop a 'Cocoon Bean'. This would be a programmatic interface to Cocoon, allowi

Re: Java 1.4 configuration for Cocoon

2002-12-17 Thread Joerg Heinicke
Hello Ines, /lib/core is the directory in the source distribution. In the binary one you have it's %CONTAINER_HOME%/webapps/cocoon/WEB-INF/lib/ if you have already deployed it into a container. Or if you have still only the zip, unzip it. A cocoon.war shell appear, unzip it, and you will find t

RE: Java 1.4 configuration for Cocoon

2002-12-17 Thread Luca Morandini
Ines, you could either download the source distribution and build it (I prefer this method), or search those JARs under /webapps/cocoon/WEB-INF/lib. The lib directory is filled with JARs the first time Cocoon in invoked (the servlet container takes care of expanding the cocoon.war): try invokin

how to connect two pipelines in cocoon?

2002-12-17 Thread Oskar Casquero
Hello, I have the following pipelines in cocoon: I want to store the XML file in the database, so I would like to connect the first pipeline with the second one, creating a chain, where the first pi

Re: value-substitution in Cocoon

2002-12-17 Thread Konstantin Piroumian
Hi! (Please do not use HTML mails in the mailing list.) I see two ways to solve this task: 1. Use an action that will get the original parameter and generate another one, which you'll pass to the transformer. 2. Use a the Request input module, e.g. - this sample will give you the first lette

Java 1.4 configuration for Cocoon

2002-12-17 Thread Ines Robbers
Hello! I'm trying to install cocoon with the help of http://xml.apache.org/cocoon/installing/index.html and got stuck here: Java 1.4 configuration "...follow these steps: 1. Create %JAVA_HOME%\jre\lib\endorsed directory. 2. Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the .\li

value-substitution in Cocoon

2002-12-17 Thread Anna Afonchenko
I have the following question: I know that in Cocoon I can use value substitution inside a pipeline, e.g. if I have a pipeline                     and if I write the URI http://localhost:8080/cocoon/param1/some.html   then in the pipeline the stylesheet some.xsl will receive a

RE: cocoon container: tomcat or not?

2002-12-17 Thread Luca Morandini
Stavros, I used both Tomcat and WebLogic in production environments: I've found both of them quite reliable with Cocoon, bar a nasty problem when compiling Cocoon components with Tomcat under Solaris. No statistics to show though. Best regards, -

Re: Configuring JTidy

2002-12-17 Thread Bertrand Delacretaz
Anna Afonchenko wrote: >. . . description org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint [html] >. . . Seems to indicate that you're indeed running the right version. Where can I see this message "Loading confi

Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
I downloaded a new version 2.0.4 of Cocoon this week. If I change the name of the file in jtidy-config to unexisting file, I get the following error message: type fatal message UnnamedSelector: ComponentSelector could not find the component for hint [html] description org.apache.avalon.framework

cocoon container: tomcat or not?

2002-12-17 Thread Cocoon User
after one year from the first stable cocoon 2 version is tomcat the best container for cocoon? we use the first cocoon2 rc1 version on tomcat the last 18 months in production. we have test other cocoon2 versions in development environment but never something else than tomcat! your experiences

Re: Configuring JTidy

2002-12-17 Thread Bertrand Delacretaz
Anna Afonchenko wrote: >. . . Maybe someone can explain me what am I doing wrong and how can I make HTMLGenerator to tidy the input according given properties. I haven't used this feature yet, but from the source code of the HTMLGenerator you can see that it should output a message saying "Loa

Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
Hi Hussayn. Thank you for pointing my out my typo, I corrected it. But I still don't get the output that I want. I changed the serializer to the html, but looking at the source of the output page, I still get: http://www.w3.org/1999/xhtml";> Untitled some " t

Re: Configuring JTidy

2002-12-17 Thread SAXESS - Hussayn Dabbous
hi; i didn't use the jtidy with cocoon yet, hence i'm just guessing: 1.) if you want HTML as output, your serialiser should be the html serialiser. You are using the xml serialiser so you get xml back instead of html. 2.) In your jtidy.properties you may have a typo: output-xml=no out

request-error description

2002-12-17 Thread Andrea Pöschel
request-error description   description of the error:   environment:   Orion Application Server 1.5.2Java1.4Cocoon 2.0.3Windows 2000   The resource requested was www.xxx.com/index.html without any request-parameters.   We are using the UserManager which is integrated into Orion.The file inde

strange javax lines in the output

2002-12-17 Thread Anna Afonchenko
Hi all. I am getting html file, transform it and serialize the output as xml. In the output I get a few lines like this: javax.xml.transform.disable-output-escaping ?>   I get this line only if I use tag with disable-output-escaping attribute in my stylesheet. Can somebody explain to me w

Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
Maybe I do something wrong, but I don't get the result that I want. I declared the HTMLGenerator with jtidy-config property and created the jtidy.properties file in the same directory with the sitemap.xmap file. In the jtidy.properties file I wrote the following lines: output-xml=no outpu-xhtml=ye

Re: How to call a servlet in the generator part of the cocoon pipeline

2002-12-17 Thread SAXESS - Hussayn Dabbous
hy, Concerning call of a servlet, that depends, where it is running. If it's in another webapp, simply call the file generator, e.g.: http://www.yoursite.com/pathTotheServlet"/> If it is in the same webapp, you have to integrate your servlet first into the cocoon app -> look into http://o