RE: can't output text before document element

2001-09-06 Thread JEULIN Olivier
Hello World! This is my first Cocoon page! the testsheet.xsl http://www.w3.org/1999/XSL/Transform";> you don't even create a root element with your stylesheet. create a template matching 'page' or '/': --

RE: get xml-file into a xsp

2001-09-06 Thread JEULIN Olivier
> but what i now need, is a xsp-function, which gets the content of an > xml-file (because i want to select something before > formatting it in an > xsl). read the samples in your 'samples/xinclude/' distribution of cocoon (this path is for C1, but I guess there's one for C2 too) Olivier --

RE: Pure XML & Javascript on client-side

2001-08-31 Thread JEULIN Olivier
> onclick="function(getAttribute('name'))"> > > becomes > > onclick="function(getAttribute('name'))"> try something like this: function(getAttribute('name')) or with - Please check that your question has not already bee

RE: javascript on cocoon

2001-08-24 Thread JEULIN Olivier
> I'm trying to build a website with two frames, one for > navigation purposes > and a second one for the main content. > I'm checking out JavaScript; I'm not very familiar with it, > but I got it > working in XMLSpy with saxon. > The problem is that JavaScript is often complaining about newline

RE: esql logicsheet, insert, update and delete, examples

2001-08-09 Thread JEULIN Olivier
> > I'll send you an example in a few minutes (I'm not sure the > rest of the > > mailing list would be interested) > > I would OK, then: this an old file I made to test something in the xml fragment I read from the DB, and I've changed a few things between the working version and this one. It'

RE: esql logicsheet, insert, update and delete, examples

2001-08-09 Thread JEULIN Olivier
I'll send you an example in a few minutes (I'm not sure the rest of the mailing list would be interested) > does anybody have any examples where you insert, update and > delete records > in databases, using xsp and esql logicsheet? ---

RE: Connecting database and XML pages

2001-08-08 Thread JEULIN Olivier
> I did as you said, but I still get the same error message. OK, I've tried to use MySQL or Mysql (in the processor.xsp.pool.database.adaptor lines): and I got the exception too. So try to use DBMM instead of MySQL or Mysql, and it works... Dunno why... It seems to be a name conflict. I hope thi

RE: ESQLl where condition

2001-08-08 Thread JEULIN Olivier
It should work. The only problem I can think of, is that something goes wrong when the java class is generated. So take a look at it (in your 'repository' directory) and search for the string "select deviceID, description from terminal" to see if it's correct or not (truncated for exemple).

RE: Connecting database and XML pages

2001-08-08 Thread JEULIN Olivier
> I tried to implement your example, but can't get the > connection pooling to > work (I guess). It _works_ when I _don't_ use pooling, so I > can't understand > what's wrong. The driver is mm.mysql 2.0.4 and is located in > TOMCAT_HOME/lib. > > Below is the error message and cocoon.properties:

RE: [C1] ESQL in XSL

2001-08-06 Thread JEULIN Olivier
I use ESQL in one of my logicsheet (see below). I think you have to put xmlns:esql="http://apache.org/cocoon/SQL/v2"; in your XML file if you use ESQL in a logicsheet (I use ESQL in both the XML file and the logicsheet, so I didn't have any troubles). #

RE: [c1] xsp:logic compiling

2001-08-03 Thread JEULIN Olivier
Take a look at the auth taglib (http://ulim.cocoonhost.com/) -Message d'origine- > De : Brent L Johnson [mailto:[EMAIL PROTECTED]] > Envoyé : vendredi 3 août 2001 00:07 > À : [EMAIL PROTECTED] > Objet : [c1] xsp:logic compiling > > > I'm fairly new to Cocoon - but I've been muddling thr

RE: Connecting database and XML pages

2001-08-01 Thread JEULIN Olivier
> Thank you, Olivier, you helped me to get started! You're welcome > I'm running c1.8.2 so I implemented your example. > > But when I try to open the pages, I get a > java.lang.ClassNotFoundException. > The same happens when I try to open pages from > cocoon/samples/sql. I guess I > have done

RE: xinclude before xslt, how retrieve the url ?

2001-08-01 Thread JEULIN Olivier
Well, in fact, the best way (it's more clean) is to use xpointer (see the 'xinclude' subdirectory in the samples) and the file xinclude_poem.xml > > Your index could also look like: > > > > > > ... > > > > and you could load what you want using document({@url},title) > > in a template > > mat

RE: xinclude before xslt, how retrieve the url ?

2001-07-31 Thread JEULIN Olivier
what about But if the files are big, wouldn't it be better to use document(page1.xml,title) to get exactly the titles? Your index could also look like: ... and you could load what you want using document({@url},title) in a template matching item Olivier P.S. pas trop chaud à Sophia-An

RE: xsl transfromation.

2001-07-31 Thread JEULIN Olivier
In this case, there's a problem with the body tag, opened in a template and closed in another one. There are also 3 (!) templates matching "guide"... It's useless, only the 1st or last one will be used (I don't remember if this is in the spec or XSLT engine dependant) I would advise you to use id

RE: Connecting database and XML pages

2001-07-31 Thread JEULIN Olivier
As usual here, you forgot to tell which version of cocoon you're using... Here is an (short!) example of what you can do with C1.8.2 (it may slightly differ with C2): http://www.apache.org/1999/XSP/Core"; xmlns:auth="http://ulim.cocoonhost.com/auth"; xmlns:request="http://www.apache.org/1999/XSP/

RE: C1: problem with FOR STATEMENT

2001-07-27 Thread JEULIN Olivier
Take a look at the generated java file around the line 6735: you will probably see that part of your code is interpreted as text (-> put in a text node!). Surround your code with another inside -Message d'origine- De : Simone Bortolaso [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 27 jui

RE: esql:query + esql:parameter bug

2001-07-19 Thread JEULIN Olivier
Here is an example of what I did. This works inside a "xsp:logic" tag... In your case, you may use xsp:logic instead of xsp:expr * using a variable (_ensemble) : if ( != null) { [some code here] ... select i.idtitle, t.xml from _ensemble identifiant i, title t where

RE: Doubt in aplying stylesheet using Cocoon's xslt processor.

2001-07-19 Thread JEULIN Olivier
Use You may find http://www.dpawson.co.uk/xsl/sect2/sect21.html usefull for this king of questions Olivier > -Message d'origine- > De : Hema Rajan [mailto:[EMAIL PROTECTED]] > Envoyé : jeudi 19 juillet 2001 11:52 > À : [EMAIL PROTECTED] > Objet : Doubt in aplying stylesheet using Cocoon

RE: include xsp:expr inside attributes?

2001-07-17 Thread JEULIN Olivier
Or: foo.getBar()"/> > -Message d'origine- > De : Anthony Diodato [mailto:[EMAIL PROTECTED]] > Envoyé : mardi 17 juillet 2001 17:44 > À : '[EMAIL PROTECTED]' > Objet : RE: include xsp:expr inside attributes? > > > > Element mynode = document.createElement("mynode"); >

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier
RPM of C1.8.2-2 + tomcat 3.2.1 + apache 1.3.12-25 on redhat 7.? > -Message d'origine- > Tell me Olivier, what platform are you using? > > Paolo. - Please check that your question has not already been answered in the FA

RE: XSP Problem - UnsupportedEncodingException

2001-07-12 Thread JEULIN Olivier
Hello, this a bit OT... And the message from the compiler is quite explicit In java, you must declare all exception in the prototype of the function; in this case, you should enclose your code in a try/catch bloc > -Message d'origine- > Hello, > > i have following Problem with xsp:logic

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier
> > This is weird, because the java file and the counter change, > > so the request > > *is* processed by cocoon and it should reflect the text > > change (my version > > works fine on this part: java file modified, class recompiled). > > On my system it's the same: java file gets modified and

RE: How to set session attribute correctly

2001-07-12 Thread JEULIN Olivier
I strongly encourage you to try all your ideas and to look at the generated java file... It's the best way to see what really happens. Anyway, here are my personal feelings (I work with C1)... But I'm not a cocoon guru yet :) (the code will tell you the all truth!) > -Message d'origine-

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier
This is weird, because the java file and the counter change, so the request *is* processed by cocoon and it should reflect the text change (my version works fine on this part: java file modified, class recompiled). Try to delete _clean-page.* from your repository *without* restarting cocoon and r

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier
Does the java file take your modification into account ? What happens when you reload the xml file just after the modification? Does the counter change ? If it's immediate, the page is in cache somewhere: try to use netscape with memory & disk cache size=0. > -Message d'origine- > De : D

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
> > 2) load this page in your browser. (At this point, the page > > prints 'FOO Hi, > > I'm your ...' in my browser) > > OK. Do you see 'FOO ...' in your browser ? If not, what is the *complete* path to the _clean-page.java file and the *complete* path to your clean-page.xml file ? They should

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
OK, let's try step by step : 0) restart cocoon; delete all the files named '_clean-page.*' in your repository 1) in the (your servlet engine path)/webapps/cocoon/samples/xsp directory, change the file 'clean-page.xml' by adding FOO to the 1st paragraph like this: FOO Hi, I'm your ... 2) l

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
Well, it could, that's why I advised you to upgrade: at least, we could compare comparable things. > -Message d'origine- > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]] > Envoyé : mercredi 11 juillet 2001 12:16 > À : '[EMAIL PROTECTED]' > Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
Yes, of course, if you java file has changed, you'll (well, should) see the modification. I've added "foo" in the "I've bee requested...", and it appears in the java file, as well as in the html page generated... Olivier -Message d'origine- > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
Well, you should upgrade to C1.8.2 (latest versions always have less bugs, if this is one). This example works fine (the page counter is incremented everytime I reload the page) with C1.8.2 NS, lynx and IE... (...) > > It's probably a navigator's cache problem. Especially with IE > > (you can't

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
It's probably a navigator's cache problem. Especially with IE (you can't deactivate the cache). Try to clear your navigator's cache > -Message d'origine- > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]] > Envoyé : mardi 10 juillet 2001 20:17 > À : '[EMAIL PROTECTED]' > Objet : XSP with Co

RE: Executing XML inside XML

2001-07-10 Thread JEULIN Olivier
my "a.xsl" file looks like > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> > > > > (header) > > > > > > >Rev > > > > > > > > > > >Rev > > > > >

RE: Executing XML inside XML

2001-07-09 Thread JEULIN Olivier
to use xinclude you'll need: to call the processor, xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"; in tag, where you want to include a file The only drawback is that if you use xsp, the content of your included files will be "static", that is if you change them, you won't see the modifi

RE: esql problem

2001-07-06 Thread JEULIN Olivier
_esql_query.max_rows - 1) { > _esql_query.position++; > break; > } > _esql_query.position++; > } > > but I don't see any error. Am I mistake? > Marco > > > - Original Message - >

RE: esql problem

2001-07-06 Thread JEULIN Olivier
rigine- > De : Christian Haul [mailto:[EMAIL PROTECTED]] > Envoyé : vendredi 6 juillet 2001 14:49 > À : [EMAIL PROTECTED] > Objet : Re: esql problem > > > On 06.Jul.2001 -- 02:30 PM, JEULIN Olivier wrote: > > Well, esql:get-int needs a column name, > > so try: &

RE: esql problem

2001-07-06 Thread JEULIN Olivier
Well, esql:get-int needs a column name, so try: "select count(*) as thecount from..." and use: Olivier -Message d'origine- Hi all, I have a question about esql. In my application I do a query "select count(*) from." and I try to get the number result in this way: elenco1

RE: how to precompile the xsp ?

2001-07-03 Thread JEULIN Olivier
I'm working with C1, but I think XSP works the same way in C2: XSP pages are compiled if - the java file doesn't exist - the XML file is newer than the java file So, if you want to "precompile" XML files, you'll have to send a request for those files to your web server. I guess the

RE: xsp & create-session="true" ?

2001-06-29 Thread JEULIN Olivier
Hi, after your message I took a look to my own files: I had the same problem. For me, it comes from an attribute copy in the auth taglib. I removed tags around the template, so it now look like: ...

RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread JEULIN Olivier
You're right, it doesn't work. You've found a bug :-/ I haven't found it in the bug database (but you may want to check again; see it in the 'bug database' section of cocoon's homepage). I'll let you submit it, to take ll credit for it... Fame starts small ;) > -Message d'origine- > D

RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread JEULIN Olivier
Yup, "...served from cache in 1 ms..." My advices are: 1) (how could I forget this one) clear your browser's cache... ! I've try it right now: IE was reading the old file. I bet 1 euro on this one ;) 2) if you have invalidated the cache while developping you app., restart cocoon to be sure the ne

RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread JEULIN Olivier
Hi, as explained in the "caching" section of the documentation, some contents are never cached, except if you tell cocoon to do so. If you use XSP, you'll have to overload the 'hasChanged' method and put a . Anyway, here is a small example that is cached for me, and with the very same configuratio

RE: namespaces, document() and include

2001-06-21 Thread JEULIN Olivier
I've got something that does your inclusion, but don't ask my why you have to do it this way :) ! I did it with xinclude, because document() returns nothing. And if anyone knows another or a better way to do it, I'm very interested in it :) ! (still haven't found out how cocoon does his stuff...)

RE: Strange Caching issues

2001-06-21 Thread JEULIN Olivier
Restarting cocoon clears the cache. However, you should also clear your browser's cache, and if your page is a xsp one, try to delete the message.* files in your repository directory. Olivier > -Message d'origine- > De : Mark McGettrick [mailto:[EMAIL PROTECTED]] > Envoyé : jeudi 21 juin

RE: Xsl Formatting

2001-06-15 Thread JEULIN Olivier
I'm using Stylus 2.0. Althought it's not a WYSIWYG editor the way you (we?) want, it helps stylesheet editing: you can see the effect of your templates in real time, all the templates can be accessed in a scroll list, auto-completion... Here is a 30 days free evaluation: http://www.exceloncorp.com

RE: Rant (was: Re: Style-free XSLT Style Sheets samples code)

2001-06-15 Thread JEULIN Olivier
> On Fri, 15 Jun 2001, Daniel Schneider wrote: > > > . and IE users can't see the *.text as intended. This > is one very simple > > reason why I really do not recommend IE in any educational > environment. > > Even worse with Cocoon-generated XML ==> HTML files. Say you > have foo.xml > a

RE: Why is Cocoon returning the XML and not adding in my XSL??? !

2001-06-14 Thread JEULIN Olivier
Could you please describe which operations your performing and how/where you call the XSLT processor ? > -Message d'origine- > De : Tim Darling [mailto:[EMAIL PROTECTED]] > Envoyé : jeudi 14 juin 2001 00:06 > > It returns: > "http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd";>

RE: Formating !

2001-06-12 Thread JEULIN Olivier
Hi, WARNING: you are using a deprecated taglib! The correct one is esql, not sql. Take a look at your cocoon/samples/sql for a sample. You will find the available elements in esql.xsd in the same directory. Olivier > -Message d'origine- > De : Gustavo Mejia [mailto:[EMAIL PROTECTED]] > En

RE: Netscape can't define the tag

2001-06-11 Thread JEULIN Olivier
Hi, try to generate a 'cocoon-format' processing instruction for 'text/html' (see any sample from cocoon). This is strange anyway, because even without this line, cocoon HTMLize my pages well ( -> , etc.). I'm using mosilla 0.9 and netscape 4.75 under linux OJ > -Message d'origine- > De :

RE: element and xinclude

2001-06-06 Thread JEULIN Olivier
Bonsoir JC :) I have asked the same question as (many!) others before (it's all in the list archives... shame on us :) ) you *must* use an 'include' element for xinclude to work: ... -Message d'origine- I would like to include the content of a file into my xsp page. So I think I need to

RE: ESQL and Access

2001-05-31 Thread JEULIN Olivier
Hi Dino, I think there is no JDBC driver for Access, so you'll have to use a generic ODBC driver. I guess such subject has been discussed, please take a look at a mail list archive (they are referenced in http://xml.apache.org/cocoon/mail-archives.html; I suggest 'RealTime - U', search in it wit

RE: HTML in XML Content

2001-05-30 Thread JEULIN Olivier
If you content is a XML well-formed document, try using the 'esql' taglib and the 'esql:get-xml' tag to get the column value (see 'samples/sql/esql.xsd' in cocoon's directory for a complete list of available tags, and the sample in the same directory) Olivier -Message d'origine- My probl

RE: How to remove the last line added by cocoon

2001-05-30 Thread JEULIN Olivier
change the 'verbosity' variable to 'false' in your 'cocoon.properties' file (at the end of the file; and restart cocoon!) -Message d'origine- Hi there Anybody knows how to skip the last line added by cocoon like this "" Thanks for your precious time Sudhir ---

[C1] xinclude tags not processed if called inside a taglib (3 steps approach)

2001-05-29 Thread JEULIN Olivier
Hello, I'm trying to use a custom taglib to include (parts of) xml files. My goal is to achieve a complete separation between xml sources, xsp which merge them, and further XSLT/XSL processing. I would also like to have all "cocoon-process" instructions grouped in the xsp file. If I uncomment my