Multiple matches in a protected resource

2003-01-31 Thread Lionel Crine
Hello, I use sunrise framework. I'd like to protected multiple patterns but I don't know how. Here is what I tried : !-- the handle -- ... map:action name=sunRise_auth src=org.apache.cocoon.sunshine.sunrise.acting.AuthAction handlers handler name=foo_handler

Get session variables for a generator

2003-01-31 Thread Lionel Crine
Hello, I' d like to get two session variables and use them as parameter for my custom generator. 1/Should I get them in the sitemap and use map:parameter ? in the sitemap. how do I write that ? 2/Or should I get them direclty in the generator ? How do I do that ? Lionel

session variables from sunshine framework

2003-01-31 Thread Lionel Crine
I have a smal portal with a login page. I get them with : map:parameter name=parameter_name value=request:name/ map:parameter name=parameter_password value=request:password/ to check them with an xsl page. I presume this two variable are stored in a sunshine context. If yes : how can i get

Re: Question on generators...

2003-01-31 Thread Lionel Crine
Yes you can do a generator : Here is what I did, this is a main structure : import your_package; public class your_class extends ComposerGenerator (or absctractGenerator) { ... public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws

Create a transformer for a custom database

2003-02-03 Thread Lionel Crine
I would like to create a custom transformer. The primary method of this transfomer should have this look: Protected String primary_method (String query){} Is it possible or should I use the methods startElement ,endElement ? Is there some documentation I could read about custom tranformer ?

Problem with cocoon itself

2003-02-03 Thread Lionel Crine
I'm working on cocoon-dev under WEBAPPS. This is a copy of cocon with less things. For now, it's not working (cocoon-dev) anymore instead of cocoon which runs normally. Here is the error : Cocoon 2 - Internal servlet error type fatal message Cocoon was not initialized. description Cocoon

Re: Problem with cocoon itself

2003-02-03 Thread Lionel Crine
I found the error, it was in my web.xml. I badly add a new logicsheet. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe,

Custom transformer

2003-02-04 Thread Lionel Crine
I have an xml document : ?xml version=1.0 encoding=UTF-8? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:my_NS=http://www.my_NS.com/my_NS/query/1.0; my_NS:document my_NS:query VERSION=2.0 RESULTSPACE=R1 my_NS:property NAME = DocType my_NS:elemDOCUMENT/my_NS:elem

Re: Custom transformer

2003-02-04 Thread Lionel Crine
I saw that and I've already implemented this method. Where I'm stuck is that these methods return a void so how can I store my tags and text in a StringBuffer? Lionel - Please check that your question has not already been

RE: Custom transformer

2003-02-04 Thread Lionel Crine
I see, thanks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

startSerializedXMLRecording and endSerializedXMLRecording

2003-02-04 Thread Lionel Crine
I'm trying to implements my transformer but I can't figured out how to use these methods. Here is what I did : protected Stringbuffer body = new StringBuffer(); public void startElement(String namespaceURI, String localName, String qName, Attributes attributes) throws SAXException {

convert String into Sax events into my own transformer

2003-02-05 Thread Lionel Crine
I would like convert a String into SAX events into my transformer. In my enddocument method i wrote : super.character(my_String.toCharArray(), 0, myString.length()); But I don't want that because it spit text in my browser. I want my String to be decomposed into elements and text. Is there a

Re: AW: convert String into Sax events into my own transformer

2003-02-06 Thread Lionel Crine
OK, it's allmost working because i still have : ?xml version=1.0 encoding=UTF-8? and In my browser I have : ?xml version=1.0 encoding=UTF-8? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:ixia-query=http://www.ixiasoft.com/ixia/query/1.0; ixia-query:document ?xml version=1.0

remove header in the sax parser

2003-02-06 Thread Lionel Crine
I'm using the avalon component sax parser and I parse a string value. but it returns the header . I don't want it because the String value is inline in the document : here is what I have in my browser : ?xml version=1.0 encoding=UTF-8? xsp:page xmlns:xsp=http://apache.org/xsp;

Re: AW: AW: convert String into Sax events into my own transformer

2003-02-06 Thread Lionel Crine
post, is that you have xsp code in your browser... Maybe you could explain in more detail what you are trying to do, then we might help you better. Regards, -Jan -Ursprüngliche Nachricht- Von: Lionel Crine [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 6. Februar 2003 10:33

Re: AW: AW: convert String into Sax events into my own transformer

2003-02-06 Thread Lionel Crine
. Regards, -Jan -Ursprüngliche Nachricht- Von: Lionel Crine [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 6. Februar 2003 10:33 An: [EMAIL PROTECTED] Betreff: Re: AW: convert String into Sax events into my own transformer OK, it's allmost working because i still have : ?xml

change encoding of avalon SAX parser

2003-02-06 Thread Lionel Crine
I 'd like to change the encoding in the header of my file. How can I do that. For example with DOM I do : TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); java.util.Properties properties = transformer.getOutputProperties();

no source in the page after two transformation

2003-02-07 Thread Lionel Crine
I made a query in my XMLDB : In the sitemap : map:match pattern=query map:generate type=serverpages src=demo/query.xsp/ map:transform type=DBQuery map:parameter name=url value=blabla/ map:parameter name=domain value=blabla/

Re: no source in the page after two transformation

2003-02-07 Thread Lionel Crine
OK!! I was sure there was no error, now It's working.. Sorry for the question, I should have found this error myself. - Please check that your question has not already been answered in the FAQ before posting.

Call a css into an xsl

2003-02-10 Thread Lionel Crine
I'd like to generate an html document using a css file, with an xsl transformation. Here is what i wrote : xsl:template match=content html head /head link rel=stylesheet type=text/css href=style.css/ body h1 align=centerDEMO/h1 xsl:apply-templates/ /body /html /xsl:template

Re: Call a css into an xsl

2003-02-10 Thread Lionel Crine
I did, my mistake. At 14:09 10/02/2003 +0100, you wrote: Lionel Crine wrote: xsl:template match=content html head /head link rel=stylesheet type=text/css href=style.css/ I assume this was just a typo, but you need to put the link element inside the head element, not outside. Ugo

Re: custom generator not working on a fresh install

2003-02-11 Thread Lionel Crine
Usually this error happens when I jar file is missing in the classpath or it is a syntax error in the sitemap. Hope this help. At 22:09 10/02/2003 +0100, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi again! nobody any idea? i'm getting desperate here, so any hint/pointer/tip

passing sax events through transformer

2003-02-11 Thread Lionel Crine
Hello, I'm trying to pass sax events through my transformer but nothing is happening. here is my pattern : map:match pattern=protected/request map:generate type=request/ map:transform type=xslt src=demo/request.xsl/ map:transform type=My_transformer/ ==It seems that

Re: passing sax events through transformer

2003-02-11 Thread Lionel Crine
It's working now At 16:11 11/02/2003 +0100, you wrote: Hello, I'm trying to pass sax events through my transformer but nothing is happening. here is my pattern : map:match pattern=protected/request map:generate type=request/ map:transform type=xslt

error links to the sitemap

2003-02-11 Thread Lionel Crine
I have a strange error. I wrote this pipeline : !-- generate an xml request file -- map:match pattern=ixia/request map:generate type=request/ map:transform type=xslt src=demo/request.xsl/ map:transform type=IXIASOFTQuery/ map:serialize type=xmltext/ /map:match

how always regenerate sitemap.xmap

2003-02-11 Thread Lionel Crine
How can I do that ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

sub sitemap whith protected resource

2003-02-12 Thread Lionel Crine
Hello, Every time I need a pattern I need to pass cocoon-reload=true to relaod the sitemap even it 's unchanged. The issue is that is really slow, so I've decided to create a sub sitemap so that only it would be reloaded. I'm not sure it will works. The thing is that I need to insert

Too much java in xsp

2003-02-12 Thread Lionel Crine
I'm using an xsp in which I manipulate some code (xsp:request parameters, for example). But unfortunately, There is too much code java in it and so the xsp is very HUGE. I was thinking about using an action in the sitemap to modify my document instead of java code in the xsp, is it a good

RE: Too much java in xsp

2003-02-12 Thread Lionel Crine
Please, can you give me more information (hints) about the helper Geoff ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To

Re: Too much java in xsp

2003-02-12 Thread Lionel Crine
Robert, Here is my issue : I have create a portal : When I come to the form page : 1/An xsp file is generated from the form. 2/This xsp get the request parameters and modify the structure as I want it to be 3/A transformer Get the SAX events of the xsp generator, get information from XML DB

RE: Too much java in xsp

2003-02-13 Thread Lionel Crine
to this as well. Some of the logicsheets do this as well, and would make good examples, though they are slightly more complicated because they introduce one layer of abstraction from an xsp. Geoff -Original Message- From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED

Re: newbies : problem with sitemap.xmap

2003-02-13 Thread Lionel Crine
you need a reader : map:readers default=resource map:reader logger=sitemap.reader.resource name=resource pool-max=32 src=org.apache.cocoon.reading.ResourceReader/ /map:readers in the components see the sitemaAt 09:55 13/02/2003 +0100, you wrote: hi i got a problem with cocoon 2 i would

RE: newbies : problem with sitemap.xmap

2003-02-13 Thread Lionel Crine
message in browser -Message d'origine- De : Lionel Crine [mailto:[EMAIL PROTECTED]] Envoye : jeudi 13 fevrier 2003 10:01 A : [EMAIL PROTECTED] Objet : Re: newbies : problem with sitemap.xmap you need a reader : map:readers default=resource map:reader logger

RE: Too much java in xsp

2003-02-13 Thread Lionel Crine
an xsp. Geoff -Original Message- From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: RE: Too much java in xsp Please, can you give me more information (hints) about the helper Geoff

RE: newbies : problem with sitemap.xmap

2003-02-13 Thread Lionel Crine
Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 java.lang.RuntimeException: Fatal: Errors in XSLT transformation: Warning: File jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem

question about cocoon object

2003-02-13 Thread Lionel Crine
/* I'm reading the code located in the requestgenerator */ public void generate() throws SAXException { Request request = ObjectModelHelper.getRequest(objectModel); this.contentHandler.startDocument(); === this method comes from AbstractXMLProducer /*** Add xmlns ***/

RE: Too much java in xsp

2003-02-13 Thread Lionel Crine
II figured it out. It was a stupid question from me. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail:

RE: question about cocoon object

2003-02-13 Thread Lionel Crine
where attribute() is inherited from, but it shouldn't take long to find out - the java docs will tell you where it came from. Geoff -Original Message- From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 8:23 AM To: [EMAIL PROTECTED

RE: question about cocoon object

2003-02-13 Thread Lionel Crine
, but it shouldn't take long to find out - the java docs will tell you where it came from. Geoff -Original Message- From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 8:23 AM To: [EMAIL PROTECTED] Subject: question about cocoon

parameters for custom requestgenerator

2003-02-14 Thread Lionel Crine
Hello, I hava to get some parameters from a form but I'm stuck. I have some code like in my html file (created with an xsl transformation): index NAME=Prices Index tr td class=text_align_right_withoutPrices Index : From : /tdtd class=text_align_left_withoutinput name=numericindex_Start

Re: parameters for custom requestgenerator

2003-02-14 Thread Lionel Crine
Sorry I did a bad manipulation. Herer is the thing : Hello, I have to get some parameters from a form but I'm stuck. I have some code like in my html file (created with an xsl transformation): index NAME=Prices Index tr td class=text_align_right_withoutPrices Index : From : /tdtd

RE: parameters for custom requestgenerator

2003-02-14 Thread Lionel Crine
I found a solution. I'm gonna pass as parameter: input name=Prices Index_numericindex_Start size=10 type=text And in the generator I'll separate the name into 3 parts. At 10:51 14/02/2003 -0500, you wrote: send me your generator file Geoff -Original Message- From: Lionel Crine

cocoon-reload parameter

2003-02-17 Thread Lionel Crine
I generate file from a form and I need to use cocoon-reload parameter, I don't know why but I had to. To use it I'm doing, from my xsl file. ... form method=post target=_top action=../ixiarequest?cocoon-reload=true ... Is there another way to use it without passing it in the URL.

What does cocoon-reload initialized

2003-02-17 Thread Lionel Crine
I'd like to know which objects and files and parsed during the initialization (in a very detailed way) - Please check that your question has not already been answered in the FAQ before posting.

Re: cocoon-reload parameter

2003-02-18 Thread Lionel Crine
You're right, but when I don't use it the sax events from my transformer are lost. They are in the tomcat console (the windows where we see the error) but the xslt transformer do not get them. At 13:22 17/02/2003 -0500, you wrote: I would really suggest going back and finding the solution to

Re: cocoon-reload parameter

2003-02-18 Thread Lionel Crine
The pipeline : map:match pattern=request map:generate type=Mygenerator/ map:transform type=Mytransformer map:parameter name=url value=http://localhost/there.wdsl/ map:parameter name=domain value=domain/ map:parameter

partial answer of cocoon-reload parameter

2003-02-18 Thread Lionel Crine
I have a partial answer about cocoon-reload. In my transformer, I initialized a parser like this : public void compose( ComponentManager manager ) { super.compose(manager); try { this.parser = (Parser) manager.lookup(Parser.ROLE); } catch ( ComponentException cme

sunrise authentication and request Object

2003-02-19 Thread Lionel Crine
I'm using sunrise authentication and I need to get the request parameter send by the form tag. It seems that during the pipelines processing, the request parameters are lost so when I use xsp-request:get-parameter name=login/ in my xsp page, there is nothing. If I don't use sunrise

Re: sunrise authentication and request Object

2003-02-19 Thread Lionel Crine
=cocoon://login_page/ authentication uri=cocoon:raw://authuser/ /handler /handlers At 16:01 19/02/2003 +0100, you wrote: Lionel, please send also the definition of the handler. Martin - Original Message - From: Lionel Crine [EMAIL PROTECTED] To: [EMAIL PROTECTED

get sunrise session values from an xsp page

2003-02-19 Thread Lionel Crine
How can I get sunrise session values in an xsp page. I'm trying this ? My login page : ?xml version=1.0 encoding=UTF-8? page content form urllogin?resource=ixia_demo/url field name=name type=text length=24 description=User/ field name=password type=password length=10

Re: sunrise authentication and request Object

2003-02-19 Thread Lionel Crine
It's not working. At 16:48 19/02/2003 +0100, you wrote: Try to replace cocoon:raw: with cocoon: in authentication uri=cocoon:raw://authuser/ I am not sure, but I think the raw attribute causes parameters to be lost. Martin - Original Message - From: Lionel Crine [EMAIL PROTECTED

Re: Is this question too simple to be answered ?

2003-02-20 Thread Lionel Crine
here is what I did : In the main sitemap : !-- === mount sub sitemap === -- map:pipeline map:match pattern=request/* map:mount uri-prefix=request check-reload=true src=demo/sitemap.xmap method-reload=synchron/ /map:match

RE: Is this question too simple to be answered ?

2003-02-20 Thread Lionel Crine
i''m using cocoon 2.0.4 and tomcat 3.3.1. I didn't encounter this trouble. It's working fine for me. If your subsitemap is not reloaded you should look at te different option in map:mount ... At 11:23 20/02/2003 +0100, you wrote: Hi, and thanks for your reply :) quote Try relative location

Re: class and package

2003-02-24 Thread Lionel Crine
found the error. At 09:54 24/02/2003 +0100, you wrote: I'm trying to link my classes into cocoon but It seem that nothing works. I have two classes : Generator and Access : Generator is supposed to use Access (create an object) but it doesn't work. private Access access = new Access(); --send a

Change default encoding in the transformer

2003-03-10 Thread Lionel Crine
I'd like to change the default encoding in my custom transformer, how can I do that ? Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Change default encoding in the transformer

2003-03-10 Thread Lionel Crine
the header ISO-8859-1 encoding. At 14:45 10/03/2003 +0100, you wrote: Lionel Crine [EMAIL PROTECTED] writes: I'd like to change the default encoding in my custom transformer, how can I do that ? How is a transformer related to encoding? It's a internal component and is working on java strings

Re: Change default encoding in the transformer

2003-03-10 Thread Lionel Crine
the header ISO-8859-1 encoding. At 14:45 10/03/2003 +0100, you wrote: Lionel Crine [EMAIL PROTECTED] writes: I'd like to change the default encoding in my custom transformer, how can I do that ? How is a transformer related to encoding? It's a internal component and is working on java strings only

Re: object in a transformer

2003-03-11 Thread Lionel Crine
If I understand well, this is possible. But how can I add the object to the session. I think I should do that in the transformer. Can you tell me some more ? At 14:32 11/03/2003 +0100, you wrote: On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote: I have a pipeline in which there is my custom

enable getlogger error

2003-03-11 Thread Lionel Crine
How can I enable the getlogger error ? does the errors are showed in the console. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: object in a transformer

2003-03-11 Thread Lionel Crine
custom transfomer, should I use a resource ? At 14:51 11/03/2003 +0100, you wrote: On 11.Mar.2003 -- 02:46 PM, Lionel Crine wrote: At 14:32 11/03/2003 +0100, you wrote: On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote: I have a pipeline in which there is my custom transformer

Re: object in a transformer

2003-03-11 Thread Lionel Crine
Yes. Shouldn't be too big, though, unless you have enough memory. 2/In the xsp page, haow can I get attribute from the DOM object in the session ? Like that : xsp-session:get-attribute name=the_object_in_the DOM/ Retrieve the object and use e.g. jxpath or the dom java api on it. I'm confused

Re: object in a transformer

2003-03-11 Thread Lionel Crine
Perhaps it would be simpler to manipulate the DOM -- to be precise the resulting XML -- with XSL rather than XSP? For now I manipulate the result object in the transformer : for (int i = 0; i = count; i++) { try { SpecialDocument doc =

How using writeDOMsession and readDOMsession, nobody seams to know!!!

2003-03-11 Thread Lionel Crine
I'd like to use this two transformer but don't know how. Can people who used it explain to me ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

how to parse an object

2003-03-11 Thread Lionel Crine
I have a transformer in which I want to parse a Document Object : I use org.apache.avalon.excalibur.xml.Parser : Is it possible to give an object to the parser ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

send form attribute from one pattern to another ?

2003-03-12 Thread Lionel Crine
Hello, I have these four pipelines : 1/ map:match pattern=start map:generate type=XMLDB=indexdefinition.xml/ map:transform type=xslt src=proto/xsl/start.xsl/ map:serialize type=html/ /map:match 2/ !-- Frame page (the xsl call search and empty

loop for into xsp

2003-03-12 Thread Lionel Crine
I'm trying to use a for loop into my xsp page but the character is interpreted by the sax parser. xsp:logic ... for (int i = 0; i array.length(); i++) { ... /xsp:logic Why ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: loop for into xsp

2003-03-12 Thread Lionel Crine
Found an answer : i use lt; instead of . At 17:19 12/03/2003 +0100, you wrote: I'm trying to use a for loop into my xsp page but the character is interpreted by the sax parser. xsp:logic ... for (int i = 0; i array.length(); i++) { ... /xsp:logic Why ?

generator and action

2003-03-13 Thread Lionel Crine
Does an action can get the SAX events created by a generator ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: generator and action

2003-03-13 Thread Lionel Crine
That's what I did. But I have a problem in my transformer. In the transformer I query an XMLDB but the results are really long to come up due to the XMLDB methods (this methods applies to a proprietary object). So I need to display the results piece by piece. Now I'm trying different ways :

empty session attribute ?

2003-03-13 Thread Lionel Crine
I have a Transformer which store an object into the session and thean Action, but the Action only get the name of the attribute, why ? Here is my action code : public class MyAction extends AbstractAction implements ThreadSafe { public Map act (Redirector redirector, SourceResolver resolver,

Re: Auth-protect action problem

2003-03-17 Thread Lionel Crine
Hi, Here is the sunshine part from my sitemap. I use cocoon-2.0.4. 1/ in the map:components element !-- === SunShine === -- map:actions map:action name=sunRise_login src=org.apache.cocoon.sunshine.sunrise.acting.LoginAction/ map:action

Get a sitemap parameter for an xsl page

2003-03-17 Thread Lionel Crine
Is it possible to get a sitemap parameter and using it into an xsl page. Here is my pipeline: map:match pattern=search map:generate type=Request/ map:transform type=Query map:parameter name=interval value=50/ /map:transform map:transform type=xslt src=proto/xsl/documents.xsl/

RE: Auth-protect action problem

2003-03-17 Thread Lionel Crine
You're right, I use the scratchpad. Be careful to my code, I only use sunrise actions and not auth-protect. By the way, is there a pre compiled version of 2.1 ? At 13:10 17/03/2003 +0100, you wrote: To clarify versioninng issues of the authentication and portal frameworks: 2.0.4 contains these

Re: Get a sitemap parameter for an xsl page

2003-03-17 Thread Lionel Crine
I think there is a confusion. I only want to use a parameter which have the same value in all the pipelines without declare it in each pipeline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

manage the sessions ?

2003-03-17 Thread Lionel Crine
What actions should I use ? How does they act between the pipeline ? Is there any documentation, besides besides these on the cocoon site ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: manage the sessions ?

2003-03-17 Thread Lionel Crine
I have these two books. I want to manage the sessions in the pipeline. At 14:55 17/03/2003 +0100, you wrote: You can use xsp-session for this. Docs: the website under XSP / Session Two good books: Cocoon, Building XML applications (Langham / Ziegeler) Cocoon, Developer's handbook (Moczar /

Re: Cant get an exception

2003-03-18 Thread Lionel Crine
Hello, I also have created my own transformer, generator, etc ... I didn't had time to use getlogger, so instead of that I use System.err.println to get my message into the console. At 16:43 17/03/2003 +, you wrote: Hi, I have built my own generator, using the tutorials. I can get it to

Re: Passing parameters from xsp to xsp

2003-03-18 Thread Lionel Crine
I don't know if it's possible but why don't you try this : map:match pattern=db/*/*.xsp map:generate src=db/{1}/{2}.xsp type=xsp/ map:transform src=xsl/db.generatexsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=db/*/*.html map:generate

action in a pipeline

2003-03-18 Thread Lionel Crine
I wrote that this match: map:match pattern=save/* map:act type=Save map:parameter name=save value={1}/ /map:act /map:match Cocoon didn't find the resource. Is it illegal to write that ?

cocoon.xconf error

2003-03-19 Thread Lionel Crine
Hello, I use cocoon 2.0.3 : I tried to add some new components-instance in cocoon.xconf as Jeremy Quinn wrote it in http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104490756424028w=2 : ... component-instance class=org.apache.cocoon.components.modules.input.XMLFileModule

Re: action in a pipeline

2003-03-20 Thread Lionel Crine
{../1} instead. Since actions add their own parameters to the sitemap you need to tell Cocoon to get the parameter from the match. Lionel Crine wrote: I wrote that this match: map:match pattern=save/* map:act type=Save map:parameter name=save value={1}/ /map:act

Re: Cant get an exception

2003-03-20 Thread Lionel Crine
I tried the log transformer but it write the getLogger.debug() statements in a file ? At 10:23 18/03/2003 -0800, you wrote: Lionel Crine wrote: Hello, I also have created my own transformer, generator, etc ... I didn't had time to use getlogger, so instead of that I use System.err.println

RE: WELCOME to cocoon-users@xml.apache.org

2003-03-20 Thread Lionel Crine
Look at the sitemap.xmap for examples. And : http://xml.apache.org/cocoon http://wiki.cocoondev.org/Wiki.jsp Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tabs in the output

2003-03-20 Thread Lionel Crine
Why don't you try : a xsl:attribute name=hrefresults?city=xsl:value-of select=name//xsl:attribute xsl:value-of select=name/ /a instead of : a href=results?city={name} xsl:value-of select=name/ /a At 16:10 20/03/2003 +0100, you wrote: Hi! I don' know if this is OT,

encoding problem and xsp

2003-03-25 Thread Lionel Crine
Hello, I'm having trouble with my xsp page and ISO-8859-1 encoding. I use cocoon-2.0.4. I have an xsp which get the request object of a form and create again a link for an xsl page which redirect all to frame. All generators, transfomers and serializer have to encoding parameter. the sitemap

Re: [SUMMARY] : Encoding problems

2003-03-25 Thread Lionel Crine
This method works well. But for me it's more complicated. In my case, The URL should go from the xsp (which have the good encoding) through an xsl page in a frame element as src attribute. But at this moment, characters are converted into UTF-8, which I don't want. Does I reach the cocoon

RE: [SUMMARY] : Encoding problems

2003-03-25 Thread Lionel Crine
THis error means that the eclaration of the sitemap is UTF-8 and you insert ISO character in it maybe in comment) .At 15:44 25/03/2003 +0100, you wrote: hello, any one ever have this problem with the Webserviceproxy mode ? : org.apache.cocoon.ProcessingException : Failed to execute pipeline :

Re: Newbie question about CSS display

2003-03-28 Thread Lionel Crine
Joe, you're question is so wide. Here is how I use a CSS in an XSL file. load the CSS. map:pipeline map:match pattern=style/*.css map:read mime-type=text/css src=demo/{1}.css/ /map:match /map:pipeline load the file : map:match pattern=welcome

Re: Newbie question about CSS display

2003-03-28 Thread Lionel Crine
It's a little bit confused but if you want to do it. You should declare do : map:pipeline map:match pattern=*.css map:read src={1}.css mime-type=text/css/ /map:match /map:pipeline then : map:pipeline map:match pattern=book map:generate src=book.xml/ map:transform src=book.xsl map:parameter

Re: Changing doctype (newbi)

2003-03-31 Thread Lionel Crine
hum, I think you have an error in your sitemap. map:serialize name=frame/ should be map:serialize type=frame/. Lionel At 13:42 31/03/2003 +0200, you wrote: Hi I have some problems with the doctype of a page. I want to set the doctype for one xsp page different from the others. I want to have

Re: XSP Problem

2003-04-01 Thread Lionel Crine
hi, Can we see the code in the xsp:logic and the pipeline. Lionel At 14:18 31/03/2003 -0800, you wrote: I use Cocoon 2.0.4 for JDK1.3 on Weblogic 7.0 SP1. I need to use Xalan Extensions to write javascript in my XSL. I use Xalan 2.5.D1 and the XercesImpl that comes with it. If I add the

Re: [XSP] expr not for int?

2003-04-02 Thread Lionel Crine
the xsp:logic tag should be between the page tag. Lionel At 11:21 02/04/2003 +0200, you wrote: Hello, the following XSP causes an LanguageException: ?xml version=1.0 ? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:logic int value = 1; value = value + 1; /xsp:logic page

Re: XSP Problem

2003-04-03 Thread Lionel Crine
I won't be able to answer all your questions. for xalan, be careful to put the new jar in the cocoon lib directory \webapps\cocoon\WEB-INF\lib and remove the old one. I don't think that you need to change anything in the cocoon.xconf. Browse the mailing list to be sure. Lionel

Re: Stripping space from XSP output

2003-04-04 Thread Lionel Crine
can you tell us more . The spaces are created by the xsp page? Lionel At 12:07 03/04/2003 -0800, you wrote: Anyone know a way (besides XSLT) to strip white space from XSP output. I tried the following: xsp:page default-space=strip xml:space=default However, this has no effect on whitespace in

XMLMetaModule

2003-04-04 Thread Lionel Crine
Hello, I'd like to load a module (another xml file) into my cocoon.xconf but I do not have the XMLMetaModule (I use cocoon 2.0.4). this component is not working : component-instance class=org.apache.cocoon.components.modules.input.XMLFileModule logger=core.modules.xml name=RLR-conf file

Generate() method called two times.

2003-06-05 Thread Lionel Crine
I have created a generator and the generate is called two times. Which is amazing is that another generator is almost exactly the same and works fine. Any idea ? Lionel CRINE Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70

Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-06 Thread Lionel Crine
/cocoon/ description The requested resource (/cocoon/) is not available. Do you have sugestions what am I doing wrong? I get only Tomcat's index.jsp It appears in work directory on my eclipse server and that's all! Thank you in advance! Galia Lionel Crine [EMAIL PROTECTED] wrote: With the tomcat

Re: [SOLUTION]Re: Need to use getInputStream() from HttpRequest !!!

2003-05-28 Thread Lionel Crine
Yes, it is. The example in the book use an enumeration to get the document. It test if the file is a filepartfile or a filepartarray. I've decided to work with filepartArray. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: No buffer space available

2003-06-04 Thread Lionel Crine
It seems that the buffer is full. Do you open a connection for every rows ? At 15:28 03/06/2003 +0200, you wrote: Hi, I'm trying to extract rows from my MySQL database and convert it to an XML file, using Tomcat/Cocoon. I'm running : FreeBSD 5.0R Sun JRE 1.3.1 (patchset 8) Tomcat 4.1.18

Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Lionel Crine
I use tomcat cocoon and the sdk 1.4 All is working fine. Do you have an error message ? At 07:27 03/06/2003 -0700, you wrote: Hi, I would like to debug cocoon with eclipse and tomcat. I have the blueskytime plugins for eclipse and tomcat but could not make them debug cocoon. May be there's

  1   2   >