What you are trying to do can just as easily be achieved with xslt, can't
it?
If you *really* want xpath, you can always write a small xsp-page that
generates an xinclude-statement and then run it through the
xinclude-transformer (which, IIRC will be merged with the cinclude
transformer into a
try your stylesheet as follows:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:sql=http://apache.org/cocoon/SQL/2.0;
xsl:template match=bootstrap
user
sql:execute-query
AFAIK cocoon:// goes back to the higher-level sitemap; have you tried
cocoon:/ ? (only one slash)
-Oorspronkelijk bericht-
Van: u15603 [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 30 augustus 2002 15:02
Aan: [EMAIL PROTECTED]
Onderwerp: Handler information not found
Hi all,
,
INITIALS
from
STAFF
where
STAFFID = '24'
/sql:query
/sql:execute-query
/user
Koen Pellegrims wrote:
try your stylesheet as follows:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform
Johannes,
Maybe you should brush up on your common Java and Application-server
technologies; this is very common practice.
You should put:
1. your jar-file in WEB-INF/lib
OR
2. your class file in WEB-INF/classes/package/MyClass.class
eg if your class is in the package com.soft.mine, the
-Oorspronkelijk bericht-
Van: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 30 augustus 2002 16:05
Aan: [EMAIL PROTECTED]
Onderwerp: Re: How to encode ISO-8859-1 characters into the Database?
Koen Pellegrims wrote:
I don't know about Postgres, but with MySQL
I don't know about Postgres, but with MySQL, you can set a parameter on the
jdbc-driver in web.xml
eg.:
jdbc name=mydb
encodingISO-8859-15/encoding
dburljdbc:mysql://server/db
/jdbc
-Oorspronkelijk bericht-
Van: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]]
mmm, I don't see where you need to use lt; and gt; tags.
To make sure your javascript remains untouched, you could put the code in a
CDATA section:
script language=javascript
![CDATA[
if (document.all) {
...
}
]]
/script
Koen.
-Oorspronkelijk bericht-
Van: Barbara Post
-posting I was warned by the antivirus software.
- Original Message -
From: Koen Pellegrims [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 29, 2002 11:22 AM
Subject: RE: bug with javascript ?
mmm, I don't see where you need to use lt; and gt; tags.
To make sure your
Simple solution: you could match on any extension, so the browser can ask
for display_Works/file.pdf?style=green
map:match pattern=display_Works/**.*
You could use this mapping to remove the 'pdf' request parameter as well.
Koen
-Oorspronkelijk bericht-
Van: Tim Cavanagh
-Oorspronkelijk bericht-
Van: praktikant [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 29 augustus 2002 15:10
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Making a new Action
Hi,
I have a further question on this.
Actions are java code which i write seperatly from everything else.
Try SELECT(id) FROM names WHERE id = 1;
K.
-Oorspronkelijk bericht-
Van: Tuomo Lesonen [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 28 augustus 2002 12:07
Aan: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Onderwerp: Re: Counting rows in a resultset
On Wed, 28 Aug 2002, Christian
Raul,
I have had the same problem you are facing with the welcome.xml page. It
seems as though Resin does something weird with files that end in .xml
eg.
map:match pattern=content/news.xml
map:generate type=serverpages src=xsp/news.xsp/
/map:match
map:match pattern=news.html
I cannot tell you what has changed, but I can help you look for the error.
The exception is thrown during the compile phase for the sitemap. When the
sitemap (or any xsp/logicsheet) is recompiled, cocoon generates a java
source file that gets compiled. The line number in the exception is in this
The
#; numerical notation is the standard way for XML to handle less common
characters (meaning: non-english).
I'm
assuming you are including some russian characters in your document, but not
everyone has these in their codepage, that is why they are encoded.
AFAIK
there is no way
Hi,
(Not specifically cocoon-related, flame me if you want to...)
I ran into some trouble trying to generate a snippet of JavaScript from an
XML-file, containing entity-references.
The problem can be reduced to this:
XML-file:
product name=industri#235;le merkers/
#235; is euml; in HTML, or
('/xsl:text
xsl:value-of select=@name/
xsl:text');/xsl:text
2. alert('xsl:value-of select=normalize-space(@name)/');
best,
-Rob
-Original Message-
From: Koen Pellegrims [mailto:[EMAIL PROTECTED]]
Hi,
(Not specifically cocoon-related, flame me if you want to...)
I ran
to keep links to html-trees
consistent
why don't you use absolute references?
/index.html
/products/productA.html
/products/productB.html
-Original Message-
From: Koen Pellegrims [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 4:43 PM
To: Cocoon-Users@Xml. Apache. Org
Personally, I think it makes most sense to use the Gnumeric format. Granted,
it is not the easiest format, but it allows you to express most anything you
have in your stylesheet.
I think that -at least in theory- the Generator, followed by the Serializer
should give you the same worksheet back...
which depend on the serializer already.
Sven
Koen Pellegrims schrieb:
Personally, I think it makes most sense to use the Gnumeric
format. Granted,
it is not the easiest format, but it allows you to express most
anything you
have in your stylesheet.
I think that -at least
During development, I usually use:
find stylesheets/ -name *.xsl -exec touch \{\} \;
... that helps ;)
K.
-Oorspronkelijk bericht-
Van: Alexander Schatten [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 14 juli 2002 15:46
Aan: [EMAIL PROTECTED]
Onderwerp: Refresh Problem with
Yes, Cocoon can do all this (and a lot more)!
If I were you I would take a closer look at XForms, the will provide you
with extensive form-handling capabilities, including complex validation
support.
For the database part, you can use either XSPs or the DatabaseActions.
I would suggest you take
-Oorspronkelijk bericht-
Van: Leszek Gawron [mailto:[EMAIL PROTECTED]]
Verzonden: zaterdag 13 juli 2002 16:20
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Cocoon as an application server
On Sat, Jul 13, 2002 at 02:43:41PM +0200, Koen Pellegrims wrote:
Don't cling too much to the fact
Maybe off-topic, but are you sure you are taking the right approach with
this?
If the communication is wireless, how will you add transaction support?
You have to make sure that each invoice is sent and that it is sent only
once!
I have a lot of expierence in this area and I can tell you that
Your idea is not as far-fetched as you might think (I think there is a
sample with dynamically generated content *and* stylesheets).
You will, however, need to use the cocoon:/ protocol in your sitemap to
allow your .xsl to be machted by the appropriate pipeline:
map:match pattern=*.html
Where are you typing run? You should not start Cocoon yourself, you should
place the cocoon.war file in your tomcat 'webapps' directory and start
Tomcat (or, in your case: Apache). When you access you webserver via a
browser (http://server:port/cocoon), Cocoon is automagically unpacked
(this
/xsp:page
Kind regards,
Koen Pellegrims
-
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
First of all, sorry for the empty post... CTRL-X instead of CTRL-C
...
if you take your snippet, uncomment the last-but-one line, comment the
last line; change 'name' to 'type' and you should have a real SVG with
mime-type and all !
K.
On Wed, 27 Feb 2002, Ahmad Morad wrote:
Hi,
I try to
Empty HTML pages might be caused by a bug in your stylesheet (eg. an
element that is not being matched).
Try accessing the page, but adding the parameter cocoon-view=content to
the URL, that should give you the actual XML content that is coming from
the database...
On Thu, 21 Feb 2002 [EMAIL
Normally, the webDAV servlet will be enabled on Tomcat. The servlet makes
all files under ${TOMCAT_HOME}/webapps/webdav available to a webdav
client.
The easiest way to make your cocoon files accessible is to put a symbolic
link in this directory and make it point to the Cocoon documents
Guys,
has anyone seen this (http://www.interakt.ro/products/Krysalis/)?
it seems to be a publishing framework in php and the developers have
really (and I mean *really*) been inspired by Cocoon 2...
regards,
Koen.
-
Please
map:generate defines where you will get your initial
XML from.
In your case, this should be your xsp, you need:
map:generate type="serverpages"
src="whereveryourxspis/{1}.xsp"/
In your example, cocoon will try to mach {1} (which is the
filename, without the extension) somewhere else in
We have had the same problem. We solved it by installing Xvfb, which is a
virtual framebuffer. It acts as an Xserver, without an actual display
connected to it.
Once you get it up-and-running on Solaris you go: Xvfb :0 to start it
on (non-existant) display 0
if your DISPLAY is set to
of overhead when -for example- I want to include each
employee for every department...
I hope this makes some sense...
regards,
Koen Pellegrims
-
Please check that your question has not already been answered in the
FAQ before
34 matches
Mail list logo