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 '/':
--
> 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
--
> 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
> 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
> > 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'
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?
---
> 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
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).
> 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:
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).
#
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
> 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
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
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
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
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/
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
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
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
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");
>
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
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
> > 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
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-
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
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
> > 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
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
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
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]
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
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
my "a.xsl" file looks like
>
>
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
>
>
> (header)
>
>
>
>
>
>
>Rev
>
>
>
>
>
>
>
>
>
>
>Rev
>
>
>
>
>
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
_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 -
>
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: &
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
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
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:
...
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
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
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
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...)
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
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
> 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
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";>
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
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 :
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
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
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
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
---
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
54 matches
Mail list logo