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.: map:match pattern=*testme map:generate type=file src=http://www.yoursite.com/pathTotheServlet/ map:serialize type=xml/ /map:match If it is in the same

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

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 xsl:text tag with disable-output-escaping attributein my stylesheet. Can somebody explain

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

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

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: html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type

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

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

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

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

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, -

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 map:pipeline map:match pattern="*/*.html" map:generate src=""/ map:transform src="" map:parameter name="param" value="{1}"/ /map:transform /map:match

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

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. map:parameter name=param

how to connect two pipelines in cocoon?

2002-12-17 Thread Oskar Casquero
Hello, I have the following pipelines in cocoon: !-- This pipeline generates an XML document from an structured text file -- map:match pattern=MAST_TXT2MAST_XMLresponse map:act type=fileUploadAction map:parameter name=file-name value=mast/ map:generate type=textparser

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 your-servlet-container-home/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

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

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,

RE: how to connect two pipelines in cocoon?

2002-12-17 Thread Vermeulen, Francis
Hi, you can use the map:call resource. sitemap element to invoke a pipeline fragment from another pipeline. I use this too, here is en extract from my sitemap: map:pipeline map:match pattern=do-*.html map:act set=process

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 elseand let the action return the result. Inside the act tags in your sitemap, you can

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

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

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

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: map:match pattern="some.html" map:generate src=""/ map:transform src=""/ map:serialize type="xml"/ /map:match this pipeline produces an xml file. What

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? ?xml version="1.0" encoding="ISO-8859-1"?xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

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

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 streamin corresponding methods like startElement, etc. You could redefine these methods

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 : ?xml version="1.0" encoding="ISO-8859-1"?xsl:stylesheet version="1.0"

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:

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. http://xml.apache.org/cocoon/faq/index.html To

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

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: 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: 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 the

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 i

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: html

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

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.

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: assert test=substring(date, 1, 4) 2000 and substring(date, 1, 4) lt; 2005 /assert But XSLT has no

[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):

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

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

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: xsl:for-each select="1 to 5" xsl:variable name="x" select="$x+1"/ xsl:for-each

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: xsl:for-each select=1 to 5 xsl:variable name=x select=$x+1/ xsl:for-each Lautaro, Please ask any XSL-related questions to the Mulberry

Re: for loop in XSLT

2002-12-17 Thread Yves Vindevogel
Something like this : ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:template match=/ pTest Page/p xsl:call-template name=forloop

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

RE: Cocoon Action Problem

2002-12-17 Thread Geoff Howard
snip/ Caused by: java.lang.ClassNotFoundException: snip/ I think it is caused by the following tag in my sitemap.xmap map:actions map:action name=hello-world class=test.HelloWorldAction/ /map:actions I guess it is unable to find the class test.HelloWorldAction. But I already put

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

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

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: map:match pattern=gallery map:redirect-to session=false uri=gallery// /map:match map:match pattern=gallery/** map:mount uri-prefix=gallery check-reload=yes reload-method=synchron

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

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 : map:resources map:resource name=admin-page map:generate type=serverpages src=""> map:transform type=i18n map:parameter name=locale value={../locale}/ /map:transform

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

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: 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

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: sub sitemaps problems

2002-12-17 Thread Geoff Howard
What about map:match type=regexp pattern=^gallery[/]?$ 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

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 nicolaken

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

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: map:match pattern=archives/** ... map:transform src=my.xsl type=xslt map:parameter name=param value={1}

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 xsl:value-of select=$param 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

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 xsl:value-of select=param should be xsl:value-of select=$param At least, this is the only reason I see. Anna - Original Message - From: Lenya L. Khachaturov [EMAIL PROTECTED] To: [EMAIL

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, xsl:value-of select=param should print december - right? Well, it doesn't. What am I doing wrong? Try: xsl:value-of select=$param Have a nice day Robert

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 sitemap

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: map:match pattern="test.html" map:generate src=""/ map:transform src=""/ map:serialize type="xml"/ map:match Here is my writeToFile.xsl: ?xml version="1.0" encoding="UTF-8"? xsl:stylesheet