RE: XPath transformer?

2002-08-30 Thread Koen Pellegrims
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

RE: problems generating input to sql transformer with stylesheet (a la Langham Ziegeler book)

2002-08-30 Thread Koen Pellegrims
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

RE: Handler information not found

2002-08-30 Thread Koen Pellegrims
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,

RE: problems generating input to sql transformer with stylesheet (a la Langham Ziegeler book)

2002-08-30 Thread Koen Pellegrims
, 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

RE: Import packages and classes

2002-08-30 Thread Koen Pellegrims
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

RE: How to encode ISO-8859-1 characters into the Database?

2002-08-30 Thread Koen Pellegrims
-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

RE: How to encode ISO-8859-1 characters into the Database?

2002-08-29 Thread Koen Pellegrims
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]]

RE: bug with javascript ?

2002-08-29 Thread Koen Pellegrims
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

RE: bug with javascript ?

2002-08-29 Thread Koen Pellegrims
-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

RE: Fop and extensions ... sorry

2002-08-29 Thread Koen Pellegrims
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

RE: Making a new Action

2002-08-29 Thread Koen Pellegrims
-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.

RE: Counting rows in a resultset

2002-08-28 Thread Koen Pellegrims
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

RE: jsp-engine II. Partially solved

2002-08-28 Thread Koen Pellegrims
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

RE: 2.0.2 - 2.0.3

2002-08-28 Thread Koen Pellegrims
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

RE: #xxxx in resulting HTML source

2002-08-27 Thread Koen Pellegrims
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

OT: How to get xml-entities into Javascript strings?

2002-08-26 Thread Koen Pellegrims
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

RE: How to get xml-entities into Javascript strings?

2002-08-26 Thread Koen Pellegrims
('/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

RE: Common practice: how to keep links to html-trees consistent

2002-08-19 Thread Koen Pellegrims
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

RE: Excel generator

2002-07-23 Thread Koen Pellegrims
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...

RE: Excel generator

2002-07-23 Thread Koen Pellegrims
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

RE: Refresh Problem with included XSLs

2002-07-14 Thread Koen Pellegrims
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

RE: Cocoon as an application server

2002-07-13 Thread Koen Pellegrims
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

RE: Cocoon as an application server

2002-07-13 Thread Koen Pellegrims
-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

RE: Stream generator XMLForms

2002-07-13 Thread Koen Pellegrims
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

RE: QUESTION: Dynamic XSL

2002-07-09 Thread Koen Pellegrims
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

RE: ERROR 10257 Please specify at least one starting URI -- cocoon 2.0.2

2002-07-06 Thread Koen Pellegrims
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

xml-namespace in XSP result

2002-06-14 Thread Koen Pellegrims
/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

Re: produce SVG

2002-02-27 Thread Koen Pellegrims
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

Re: Simple SQL Example

2002-02-21 Thread Koen Pellegrims
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

Re: webDAV

2002-02-07 Thread Koen Pellegrims
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

Competition: Cocoon in php

2002-02-07 Thread Koen Pellegrims
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

Re: Sitemap configuration to generate pdf.

2002-01-25 Thread Koen Pellegrims
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

Re: Problems, switching off svg

2002-01-23 Thread Koen Pellegrims
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

Usage patterns

2002-01-17 Thread Koen Pellegrims
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