how to create an xml document with XMLForm

2002-08-22 Thread Oskar Casquero
Hi, I would like to use XMLFormto collect data through a wizard andsavedata in a DOM tree (bindingforms to DOM nodes). How can be produced SAX events from this DOM tree? Thanks, Oskar

XML instance validation

2002-10-23 Thread Oskar Casquero
Hello, I would like to configure validation (against anXML schema)in some pipelines. When I turn on the validation feature of the parser in cocoon.xconf, I'm asked for the sitemapgrammar, even if the sitemap doesn't refer to any schema or DTD.I modify the sitemap in order to do the

XML instance validation

2002-10-23 Thread Oskar Casquero
Hello, I would like to configure validation (against anXML schema)in some pipelines. When I turn on the validation feature of the parser in cocoon.xconf, I'm asked for the sitemapgrammar, even if the sitemap doesn't refer to any schema or DTD.I modify the sitemap in order to do the

question about uploading

2002-10-18 Thread Oskar Casquero
Hello, I want to upload an xml file to cocoon in order to apply some transformations to it. I have seen upload.xsp example, but I don't wantto save the file in the server, just take the input stream in the http request and pass it to a transformer. How could it be done? Oskar

Re: question about uploading

2002-10-18 Thread Oskar Casquero
Where is that UploadAction.java? I can't find it. Oskar - Original Message - From: Sreenivasan N. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 18, 2002 1:03 PM Subject: Re: question about uploading Hi Can you tell me what to do after downloading that

simple question about StreamGenerator

2002-10-21 Thread Oskar Casquero
What does the "form-name" parameter mean in the context of the Stream Generator? Oskar

pipeline problem

2002-10-24 Thread Oskar Casquero
Hello, Is it possible to call a pipeline, that returnsSAX events representing an stylesheet, fromthe "src" attribute of a map:transform element? I'm trying to do it in the following pipeline but it doesn't work. map:match pattern="schematronValidationResponse" map:generate type="stream"

Re: pipeline problem

2002-10-25 Thread Oskar Casquero
On Thursday, Oct 24, 2002, at 20:27 Europe/London, Oskar Casquero wrote: Hello, Is it possible to call a pipeline, that returns SAX events representing an stylesheet, from the src attribute of a map:transform element? I'm trying to do it in the following pipeline but it doesn't work

xml document validation against schema or dtd

2002-10-29 Thread Oskar Casquero
Hello, Has anybody tried to implement xml document validation in cocoon? I can'tconfigure validation in cocoon.xconf, because cocoon needs a grammar when this feature is setup. So, I would like to know if it is a good idea to build a component that doesthe validation, and in this case,

StreamGenerator again

2002-10-30 Thread Oskar Casquero
Hello, I'm trying to modify StreamGenerator so it can accept "multipart" content-type in HTTP request. To do it I'm using "marsh" project classes (in sourceForge.net). I've used them in a test servlet and they work well, but when I copy the code in the StreamGenerator it doesn't work.

jar files in cocoon/WEB-INF/lib

2002-10-30 Thread Oskar Casquero
Hello, When a jar file is saved in cocoon/WEB-INF/lib directory, does cocoonconfigure it automatically, or do I have to do something else (in cocoon.xconf, ...)? I've done a generator that needs some classes stored in a jar file, but it seems like if it is not using them. Oskar

XercesParser

2002-10-30 Thread Oskar Casquero
Hello, I´vemodifiedXercesParserin order to turn on validation, but when I configure it in cocoon.xconf, I can't start cocoon. I've seen that this class deprecated and that cocoon uses avalon's XercesParser. So, how can I turn on validation? Oskar

xml version procesing instruction and text serializer?

2002-11-05 Thread Oskar Casquero
I want to obtain a text file (not xml) from an XSLT transformation. The problem is that after doing the transformation and serializing the result with a text serializer, the ?xml version="1.0"? processing instruction appears at the beginning of the text file,so I have to delete it

Re: Reference to a servlet in sitemap

2002-11-07 Thread Oskar Casquero
I'm very interested in this because I want to use some classes than only work well with servlet's HttpServlet Request and not with cocoon's HttpServletRequest request = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); I've read in cocoon wiki that the servlet must

HttpServletRequest

2002-11-07 Thread Oskar Casquero
Hi, Is there any alternative to HttpServletRequest request = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); ? What type of object does objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT) return? I'm having problems with this declaration and I think that

Re: File upload with Cocoon

2002-11-08 Thread Oskar Casquero
And what can I do to disable cocoon's automatic file uploading? I want to send files to cocoon but not to save them in disk And another question about http://outerthought.net/wiki/Wiki.jsp?page=FileUploadWithAction I've seen that the example uses Request request =

Re: xml version procesing instruction and text serializer?

2002-11-11 Thread Oskar Casquero
version procesing instruction and text serializer? In your XSLT file, right under xsl:stylesheet, include: xsl:output omit-xml-declaration=yes method=text / -Original Message- From: Oskar Casquero [mailto:jtacaoio;bi.ehu.es] Sent: Tuesday, November 05, 2002 11:31 AM To: [EMAIL PROTECTED

two components implementing parser role?

2002-11-13 Thread Oskar Casquero
Hello, I would like to know if it is posible to define two components that implement parser role: one ofwould be the default parser of cocoon (with its default configuration) and the other would use xerces parser but with the validation feature turned on (I'm thinking of looking up the

Re: Weird Saxon errors

2002-11-18 Thread Oskar Casquero
Jeremy, I have got exactly the same problem when I use saxon 6.5.2 with cocoon 2.0.3 or cocoon 2.1 (invalid processing instruction name (saxon:warning) at line 13 column -1 (what column is that?)). I have configured saxon role in the same way as you (as described in

XSLT processor problems

2002-11-18 Thread Oskar Casquero
Hello, I have done a simple pipeline in cocoon that applies some transformations to an xml document and obtains a text document: map:match pattern="MAST" map:generate src=""/ map:transform src=""/ map:serialize type="text"/ /map:match Depending on the cocoon version, the result is

Re: Weird Saxon errors

2002-11-18 Thread Oskar Casquero
far from the data in your email. But if you send me a small XML/XSLT combination that triggers this problem, i will check this against my cocoon-2.0.3/saxon-6.5.2 setup and uncover the cause of the problem. This is, what i can offer so far. regards, hussayn Oskar Casquero wrote: Jeremy, I

how to lock a pipeline?

2002-11-18 Thread Oskar Casquero
Hello, Does anyone know if it is possible to lock the access to a pipeline while that pipeline is being executed? I want to use a pipeline as a shared resource: when a user calls that pipeline from the browser, thepipeline is locked untilit finish its execution and then itisunlocked, being

Re: Weird Saxon errors

2002-11-18 Thread Oskar Casquero
solution, i'd like to hear about it. I'm interested, if this helps to fix your problem, and if this is something for the HOWTO docs ;-) regards, hussayn Oskar Casquero wrote: Here you have XML/XSLT combination. Can you tell me the steps you followed to setup saxon role? Thanks, Oskar

Re: How may I get the FilePart object ?

2002-12-04 Thread Oskar Casquero
The FilePart object represents the uploaded file. Depending on how you configure "autosave-upload" parameter in WEB-INF/web.xml cocoon returns a FilePartFile (the file is written to disk; autosave-upload=true) or a FilePartArray (the file is in memory; autosave-upload=false).Here is the

Re: How may I get the FilePart object ?

2002-12-04 Thread Oskar Casquero
The FilePart object represents the uploaded file. Depending on how you configure autosave-upload parameter in WEB-INF/web.xml cocoon returns a FilePartFile (the file is written to disk; autosave-upload=true) or a FilePartArray (the file is in memory; autosave-upload=false). Here is the code

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

serializing inside a transformer

2003-01-20 Thread Oskar Casquero
Hi, I would like toserializeSAX events to a file inside a transformer, so that I can validate the file with the parser. The problem is that I don't how to set theserializer in order to make it able to receive the SAX events which the transformer is receiving from the previous component (a

Re: serializing inside a transformer

2003-01-20 Thread Oskar Casquero
{ ... super.setContentHandler(verifierHandler); ... } Thank you Oskar - Original Message - From: Jeff Turner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 1:22 PM Subject: Re: serializing inside a transformer On Mon, Jan 20, 2003 at 01:00:41PM +0100, Oskar Casquero wrote: Hi

Re: Schematron transform in a Cocoon pipeline

2003-01-21 Thread Oskar Casquero
Hi Jack, I have done the same to validate an XML document with an schematron. I think that it would be also useful to get the XPATH path of the errors in the XML output. The template which does this is done in skeleton1-5 (axsl:template match=*|@* mode=schematron-get-full-path); so you have to

Re: Schematron transform in a Cocoon pipeline

2003-01-22 Thread Oskar Casquero
Jack, I also use it to validate uploaded documents. When cocoon receives the document, first, I check with the parser (inside the generator), that the document is well formed and valid according to a certain W3C Schema. But there are some verifications that the W3C Schema can't check, so, for

ValidationTransformer

2003-01-27 Thread Oskar Casquero
Hi, I am trying to do a ValidationTransformer that will validate an xml document with a grammar (W3C Schema, RELAX NG, DTD). To do this I am using JARV, that gives a validation interface which can control a validation engine (for example, Xerces-2) through the suitable driver. I have done the

Re: convert text in xml wel form

2003-01-30 Thread Oskar Casquero
Hi Angelo, You can convert structured text to XML with Chaperon parser generator (a parser because it parses the text and generator because it creates an XML document) which is integrated in cocoon as a generator. See for more details: http://chaperon.sourceforge.net/

custom transformer problem

2003-02-05 Thread Oskar Casquero
Hello, My question is about exception handling in cocoon. I've a transformer that checks the validity of an XML document. If the document is not valid it throws an exception. When the transformer is after a generator it works well: it throws an exception and the error page is sent to the

Re: change encoding of avalon SAX parser

2003-02-06 Thread Oskar Casquero
Try using xsl:output encoding="ISO-8859-1"/ after the xml declaration in the stylesheet Oskar