Re: XHTML and Entities: apos; fails in IE

2004-10-05 Thread Derek Hohls
Is this not a case for submitting a patch request; ie, for the XHTMLSerializer to create a numbered entity instead of a named one? [EMAIL PROTECTED] 2004/10/05 12:43:32 PM Hi Cocoon community, I wonder if there is a solution for this problem by now - searching the list only revealed questions,

Re: Link Livesites: Cocoon 2.1

2004-10-01 Thread Derek Hohls
Wow, that's ironic, if anything is! [EMAIL PROTECTED] 2004/09/30 07:59:59 PM Hi We just released our new website, based on complete based on Cocoon. So it would be glad if you could add the following Url: www.learnkey.de Description: Computer Based Trainings, Lernprogramme für die MS

Re: Link livesites: Swiss glaciers

2004-10-01 Thread Derek Hohls
It does look nice but, unfortunately, the link to display English does not work... makes it hard to navigate. [EMAIL PROTECTED] 2004/10/01 09:20:19 AM Martin Lüthi wrote: Hi Here are two more live sites running on Cocoon http://glaciology.ethz.ch/swiss-glaciers/

Re: Conversion - performance

2004-10-01 Thread Derek Hohls
One way is to avoid using the docbook.xsl ... or work with a very stripped down and customized view of it. Its a very large set of sheets that you are accessing here... I had similar problems. [EMAIL PROTECTED] 2004/10/01 11:40:08 AM Hi, I have performance problems when generating documents.

Re: conversion Docbook XML to HTML/PFD

2004-10-01 Thread Derek Hohls
\fo\docbook.xsl. Do you think it dosent support using svg and mathml in docbook xml? thanks Niaz On Fri, 01 Oct 2004 08:28:05 +0200, Derek Hohls [EMAIL PROTECTED] wrote: What does your stylesheet look like; maybe the construction of your fo:flow is incorrect? [EMAIL PROTECTED] 2004/10/01

Re: About DTDs, Mathematic expressions, PDF and HMTL

2004-09-28 Thread Derek Hohls
João Welcome to the Cocoon Universe... all your wishes will soon be granted (after you add in some hard work, of course ;-) I am not sure about the Math part - perhaps the combination of SVG and the appropriate Unicode selection will help towards the creation of math expressions... there is

Re: problem with passing variables - please help.

2004-09-21 Thread Derek Hohls
Are you sure that the {request-param:username} in the sitemap actually contains a value; what happens if you put actual data in there eg. map:parameter name=username value=me/ map:parameter name=password value=secret/ [EMAIL PROTECTED] 2004/09/20 10:20:38 PM this is the authentication

Re: Location of Recourses required in Sytelsheets.

2004-09-21 Thread Derek Hohls
Jan Unfortunately absolute references to file paths *are* required by FOP... this has been discussed many times in this group; you can pass in the path as an external parameter value to your stylesheet; say from the sitemap, in order to ease migration. You can then add an extra transformation

Re: [quite OT] XML editor

2004-09-20 Thread Derek Hohls
Does Cocoon *have* a DTD that can be used? [EMAIL PROTECTED] 2004/09/19 06:13:40 AM Antonio Gallardo wrote: fabrizio picca dijo: you, cocoon users, can suggest me a good free xml editor ? I use jedit - http://www.jedit.org/ jEdit is not good only for XML. It has bult-in syntax

Re: duplicate attribute problem

2004-09-20 Thread Derek Hohls
1. it does not seem that user is part of the http://apache.org/cocoon/SQL/2.0 namespace 2. rather than putting default namespaces on each element; try and have: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns=http://mynamespace.com;

Re: Problem install cocoon on Tomcat5.0.X

2004-09-20 Thread Derek Hohls
or build.bat war if you are on windoze [EMAIL PROTECTED] 2004/09/20 03:09:12 PM execute build.sh war rasul m wrote: Hi tomcat is working fine but problem is cocoon doesnot have cocoon.war to copy into tomcat webaps i downloaded cocoon from

Re: Help ! General questions about Cforms and flowscript.

2004-09-17 Thread Derek Hohls
Of course you mean lower level users ;-) ... but the original poster had a good point; perhaps its because CForms are stil under development that much of what is around them is not properly documented as yet. In the long run, the API should not be the first point of call - I see that more for

[SOLVED] RE: Data access to/from JXTemplate

2004-09-16 Thread Derek Hohls
encoding=ISO-8859-1? test target=test /test So it should be correct. What version of cocoon are you using? Jeroen -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Posted At: Thursday, September 09, 2004 8:41 AM Posted To: Cocoon User List Conversation: Data access to/from

CForms - ensuring unique attributes in tags

2004-09-15 Thread Derek Hohls
I have a form where users can enter a number which is stored in the id attribute of the tag eg. mytag id= How can I ensure that the number is unique amongst all tags of that name (assuming they are all siblings)? Thanks Derek -- This message has been scanned for viruses and dangerous content

Re: instead of writing XSP in Java

2004-09-15 Thread Derek Hohls
I think they are trying to avoid writing Java... I know I do ;-) [EMAIL PROTECTED] 2004/09/15 01:12:39 PM [EMAIL PROTECTED] wrote: If you don't like writing XSP in Java. There is another solution create action with Script Action :) Or put your businesslogic in java classes,

RE: Fundamental Cocoon Philosophy Question

2004-09-14 Thread Derek Hohls
/13 04:21:23 PM Derek Hohls wrote: The bottom line, for me anyway, is that Cocoon works because of a great community that has always supported it. If you choose to get involved and not just watch from the sidelines, you will find that out for yourself. While agreeing that this is true, I would

Re: [CForms] HTMLArea: how to retrieve the content as a set of xml-no des

2004-09-14 Thread Derek Hohls
Yup - same problem I just posted... see: http://archives.real-time.com/pipermail/cocoon-users/2004-September/056112.html [EMAIL PROTECTED] 2004/09/14 10:04:33 AM Dear all, I'm creating a webapp containing a basic use case which is nearly the same as the HTMLArea sample: Information is

Re: Upgrading the Upload File sample to handle binary formats

2004-09-14 Thread Derek Hohls
Jean-Claude Thanks for the reply; I was hoping someone could come up with changes to that Javascript code you refer to ... Derek [EMAIL PROTECTED] 2004/09/13 11:03:26 PM I'm searching for the same solution. My users must download OpenOffice files which are binary files. In the

Re: Dynamic forms with Cforms

2004-09-14 Thread Derek Hohls
* replies below [EMAIL PROTECTED] 2004/09/13 10:40:17 AM Thanks ! David Please post in plain text next time... Ok, I adapt now ! There were three quesitons there: 1. In my sitemap, am I supposed to call JXGenerator ? No, rather call this from your flowscript, passing in the value(s)

Re: Fundamental Cocoon Philosophy Question

2004-09-13 Thread Derek Hohls
Julian I'll jump in again. Not sure of the history of Struts, but Cocoon has been around (and evolving!) since at least 1999 - I think it more than qualifies to be a long lived product. As for stability; well, the Web is in a constant state of flux - I think any product that wants to maximise

Re: Out of Memory error base64 encoded to SVG to JPG

2004-09-13 Thread Derek Hohls
Linc Just a comment - 448MB is *very* low for a Java-based servlet such as Cocoon - I think at least 2GB is recommended... Derek [EMAIL PROTECTED] 2004/09/11 04:15:08 AM I need to convert multiple wordml images (base64 encoded) to JPG. I am currently using the following code but get an Out of

Re: Dynamic forms with Cforms

2004-09-13 Thread Derek Hohls
David Please post in plain text next time... There were three quesitons there: 1. In my sitemap, am I supposed to call JXGenerator ? No, rather call this from your flowscript, passing in the value(s) of the form template you want to be dynamic. 2. Am I supposed to call an XSL transformation

Re: CForms - nested repeater-widgets

2004-09-13 Thread Derek Hohls
Yup, I posted the same query twice now already - still desperately awaiting a reply from a guru See: http://archives.real-time.com/pipermail/cocoon-users/2004-September/055875.html [EMAIL PROTECTED] 2004/09/10 07:37:07 PM Hi, i'm quite new to Cocoon and CForms. I'm checking out

Re: Fundamental Cocoon Philosophy Question

2004-09-13 Thread Derek Hohls
for those questions as they fit in more with Thomas' post. Oh, and regarding the blocks system, I hope that it will be akin to Linux modules that are separately downloaded and documented for clarity sake. Thanks, Julian --- Derek Hohls [EMAIL PROTECTED] wrote: Julian I'll jump in again. Not sure

RE: Advantage using Hibernate with Cocoon

2004-09-10 Thread Derek Hohls
Hugo, Not too late (I hope, depending on delivery time!) - I still that integration with Cocoon is the area where some serious write-ups need to happen... I know people have done the work - its just a case of them writing some good guidelines and supplying useful working samples. Thanks Derek

Re: when to use XSP ?

2004-09-10 Thread Derek Hohls
Simple answer - avoid it if you do not need it... (bear in mind XSP was developed before the advent of flow and many of the newer Cocoon components - its generally harder to maintain and can very easily lead to violation of the SOC principles; putting layout, logic etc all in one file) [EMAIL

Re: when to use XSP ?

2004-09-10 Thread Derek Hohls
Stavros What do you mean when you say flow destroys URL; the flow is simply there to route the application process from one URL to another; you could replicate it in some ways by writing custom actions but that approach is far more tedious and less maintainable. See also:

Re: when to use XSP ?

2004-09-10 Thread Derek Hohls
Stavros I really don't understand what you're saying; but Cocoon is more than big enough to accomodate our different ways of doing things ;-) Derek [EMAIL PROTECTED] 2004/09/10 02:47:53 PM On Fri, 10 Sep 2004, Derek Hohls wrote: Derek i like flow and i use it but in simple cases

Re: Advantage using Hibernate with Cocoon

2004-09-10 Thread Derek Hohls
and add your comments. Hope we can shrink the Elephant :-) Greetings, Johannes Derek Hohls wrote: Hugo, Not too late (I hope, depending on delivery time!) - I still that integration with Cocoon is the area where some serious write-ups need to happen... I know people have done the work - its just

Re: Fundamental Cocoon Philosophy Question

2004-09-10 Thread Derek Hohls
Julian A quick question here before the debate goes further; what do you mean by standards ?? Cocoon is based on Java and XML; the former an industry standard (of sorts) and the latter an open standard. In other words, Cocoon *is* built on a Java framework - maybe a different one from

Expression matching for form widgets

2004-09-09 Thread Derek Hohls
I am looking for some guidance for developing patterns to help validate some form fields; for example I need to check that an entry is in the form AA00 where AA are uppercase letters and 00 are two numbers. If someone can help with this and, more generally, point me to a good resource for

Data access to/from JXTemplate

2004-09-09 Thread Derek Hohls
Hi There have been two recent posts on this topic, both unanswered and both, I think!, quite simple questions: http://archives.real-time.com/pipermail/cocoon-users/2004-September/055826.html http://archives.real-time.com/pipermail/cocoon-users/2004-September/055837.html If anyone has a few

Modifying documents via flowscript...

2004-09-09 Thread Derek Hohls
I am using flowscript to handle the process around modifying a form - so far so good! Now I would like to be able - from flowscript, I suppose - to modify the just-saved form in some way, probably by appending a comment line to the end (say with a time and date stamp, and an user id). Is there

RE: Data access to/from JXTemplate

2004-09-09 Thread Derek Hohls
/test So it should be correct. What version of cocoon are you using? Jeroen -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Posted At: Thursday, September 09, 2004 8:41 AM Posted To: Cocoon User List Conversation: Data access to/from JXTemplate Subject: Data access to/from

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Derek Hohls
Johannes I think you hit the nail on the head when you raised the whole elephant thing. I used the same terminology in a previous thread. ;-) http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=108799013931354w=2 A number of folks are pushing OJB... obviously each person has there own choices,

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Derek Hohls
Ugo I hope your talk will be online, for those of us not lucky enough to make the events? Thanks Derek [EMAIL PROTECTED] 2004/09/09 10:54:49 AM Il giorno 09/set/04, alle 10:38, [EMAIL PROTECTED] ha scritto: I'm wondering what might be the advantage of using Hibernate - or another O/R

Re: Problem transforming: one xml works fine, the other don't !!

2004-09-08 Thread Derek Hohls
I cannot see these sites - why not post some sample XML and the stylesheet that is problematic [EMAIL PROTECTED] 2004/09/08 03:36:14 AM Hello, I'm having some trouble rendering one of my xml files. Through conventinal methods (i.e, regular browser parsing, saxxon, xalan...) I get

Pattern matching for static resources

2004-09-08 Thread Derek Hohls
Please help with a simple match that I cannot get to work... in HTML I will have: src=/dir1/dir2/dir3/resources/custom/images/icon.gif or src=dir2/dir3/resources/custom/images/icon.gif or src=dir3/resources/custom/images/icon.gif I need all of these to match to the same file in the same

RE: Pattern matching for static resources

2004-09-08 Thread Derek Hohls
Daniel Thanks, I think I need to add the following to make it fit exactly: map:match pattern=**/resources/custom/**/*.gif map:read src=resource/actual-dir/{2}/{3}.gif mimetype=image/gif/ /map:match Derek [EMAIL PROTECTED] 2004/09/08 02:14:22 PM Hi Derek, Please help with a

Re: Repeater widgets in group tabs

2004-09-07 Thread Derek Hohls
id=separator//td tdft:widget id=mapDelete//td /tr /ft:repeater-widget /table /fi:items /fi:group Scott. Derek Hohls wrote: Quick and simple question: is it possible to have ft:repeater... tags inside of fi:group tags; if so

Re: Repeater widgets in group tabs

2004-09-07 Thread Derek Hohls
Answer: not having the right styling type! (Scott has answered this one...) [EMAIL PROTECTED] 2004/09/07 01:01:14 AM On 06.09.2004 13:44, Derek Hohls wrote: Quick and simple question: is it possible to have ft:repeater... tags inside of fi:group tags; Counterquestion: What should prevent

RE: Configuring the HTMLarea for table operations

2004-09-07 Thread Derek Hohls
is in a table cell; it is a bug in IE; and if this applies to you, you should decide for yourself whether you want to work around it. Hugo Burm -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Monday, September 06, 2004 4:54 PM To: [EMAIL PROTECTED] Subject

Re: Configuring the HTMLarea for table operations

2004-09-07 Thread Derek Hohls
[EMAIL PROTECTED] 2004/09/06 06:17:49 PM On Mon, 2004-09-06 at 16:54, Derek Hohls wrote: If anyone has experience with the problem below, I'd appreciate hearing a solution.. I have modified the forms-htmlarea-styling.xsl to include the following - inserted after the line: script type

Nested repeaters in CForms

2004-09-07 Thread Derek Hohls
I am sure this topic comes up often; the most recent thread I found does not seem to be answered, http://www.mail-archive.com/[EMAIL PROTECTED]/msg18607.html and I cannot get this functionality to work: ft:widget-label id=outer/br/ ft:repeater-size id=outer/ table border=0 tr

[SOLVED] Re: Configuring the HTMLarea for table operations

2004-09-07 Thread Derek Hohls
at 08:51, Derek Hohls wrote: Bruno I have now tried the following: 1. Create an external htmlareaconfig.js file with the following: // Load plugins HTMLArea.loadPlugin(TableOperations); HTMLArea.loadPlugin(FullPage); function initFunction(areaID) { // inititalize editor editor

Re: cforms and flow examples

2004-09-07 Thread Derek Hohls
Agreed, the samples/blocks/tour/flow/docs/multi-page.html shows off two pages, with info passed between them; also the use of JXTemplates which are also key to the display of info from flow and forms. [EMAIL PROTECTED] 2004/09/07 12:33:56 PM first take a look at supersonic tour (tour) in

[SOLVED] Re: Mounting sitemaps located in jar files

2004-09-07 Thread Derek Hohls
Just curious - did you use: map:match pattern=test/** map:mount check-reload=yes src=resource://my/package/name/sitemap.xmap uri-prefix=test/ /map:match or map:match pattern=test/** map:mount check-reload=yes src=resource://my/package/name uri-prefix=test/ /map:match [EMAIL PROTECTED]

Formatting without commas in CForm decimal widget storage

2004-09-06 Thread Derek Hohls
With reference to this issue: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=109091824427273w=2 Can anyone suggest how to override the hard coding of the decimal formatting so as to remove the comma when a decimal number is stored in an XML file as a result of binding (given that it is not

Getting parameters from the sitemap via JX Template

2004-09-06 Thread Derek Hohls
In the sitemap, I have: map:match pattern=view2/* map:generate src=docs/view.jx type=jx map:parameter name=fileID value={1}/ /map:generate map:serialize type=html/ /map:match When I call this, via, say view2/test In the view.jx template page: ... p

Repeater widgets in group tabs

2004-09-06 Thread Derek Hohls
Quick and simple question: is it possible to have ft:repeater... tags inside of fi:group tags; if so, is there an example I can follow? Thanks Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec

[SOLVED] Re: Formatting without commas in CForm decimal widget storage

2004-09-06 Thread Derek Hohls
Bruno Yes, you are absolutely right - my brain must be set to off - not sure which archive this was in, but I missed it when I searched. Hopefully, having made the same mistake twice now, I will now remember! Derek [EMAIL PROTECTED] 2004/09/06 03:50:35 PM On Mon, 2004-09-06 at 08:15, Derek

Configuring the HTMLarea for table operations

2004-09-06 Thread Derek Hohls
If anyone has experience with the problem below, I'd appreciate hearing a solution.. I have modified the forms-htmlarea-styling.xsl to include the following - inserted after the line: script type=text/javascript src={$resources-uri}/htmlarea/htmlarea.js/script script type=text/javascript

Re: Resizing the HTMLarea in CForms

2004-09-03 Thread Derek Hohls
PROTECTED] 2004/09/02 02:39:33 PM Derek Hohls wrote: Is there any way for the htmlarea NOT to be a fixed width; ie it sits inside a variable width div and needs to resize - TEXT AREA and BUTTONBAR (not just the outer frame) - when the browser resizes. div textarea width=100%/ /div should

Forms styling: showing required OR validation symbols

2004-09-03 Thread Derek Hohls
The current forms stylesheets supplied with Cocoon work very well for most purposes... however, I now have a quite crowded form where space is at a premium. Ideally I would only like to have one hint symbol next to each field ie. if the field is required it will have a *. But if the user

Re: Forms styling: showing required OR validation symbols

2004-09-03 Thread Derek Hohls
corrections as needed. Thanks Derek [EMAIL PROTECTED] 2004/09/03 10:20:28 AM On 03.09.2004 08:41, Derek Hohls wrote: The current forms stylesheets supplied with Cocoon work very well for most purposes... however, I now have a quite crowded form where space is at a premium. Ideally I

Re: Forms styling: showing required OR validation symbols

2004-09-03 Thread Derek Hohls
Derek Hohls wrote: Thanks Jorge - that works well... next question then is if there is any quick way to alert a user as to when there is an error anywhere in a form; a message could then be displayed alterting him to the fact (say, at the top of the form) and that he should look for field/s

Customized failure messages for a CForm...

2004-09-03 Thread Derek Hohls
Two issues, which I think are related: 1. I have inserted a: fi:validation-errors headerpPlease correct errors! Look at fields marked with !!/p/header footerpSend your Form again./p/footer /fi:validation-errors at the start of the form; now when a field fails a validation (eg. required),

Re: Customized failure messages for a CForm...

2004-09-03 Thread Derek Hohls
like this: map:match pattern=*/htmlarea/** map:read src=gui/htmlarea/{2} / map:serialize / /map:match map:match pattern=*/mattkruse-lib/* map:read src=gui/mattkruse-lib/{2} / map:serialize / Check also the sitemap.xml in cocoon/samples/blocks/forms Wolfgang Derek Hohls wrote

Upgrading the Upload File sample to handle binary formats

2004-09-02 Thread Derek Hohls
I am sure this is an easy task for someone who knows what they are doing (i.e. not me) In the Upload File sample, only text is handled and the code looks like: function handleUpload(form) { var buf = new java.lang.StringBuffer(); var uploadWidget = form.lookupWidget(upload); if

Re: recursively generated menus with Cocoon

2004-09-02 Thread Derek Hohls
Matt I have already replied to this - please read previous message Thanks. [EMAIL PROTECTED] 2004/09/02 08:56:41 AM Hello ! I'm developing a database interrogation user interface in XML/XSL with Cocoon. The user having selected a request , the system generates a page on which he has

File access protocol with document() in Cocoon stylesheets

2004-09-02 Thread Derek Hohls
It appears that the XPath document function, under Cocoon, will only access files using OS-specific path reference: i.e. document('D:\tomcat41\webapps\cocoon\basic\docs\doc.xml') works, but document('http://localhost:8080/cocoon215/basic/docs/doc.xml') does not! I guess this is a Xalan

[SOLVED] Re: File access protocol with document() in Cocoon stylesheets

2004-09-02 Thread Derek Hohls
Mea culpa. A relatively simple mistake... This works: document('http://localhost:8080/cocoon215/basic/docs/doc.xml') So does this: document($file-to-get) But this does not!! document('$file-to-get') Nor, in fact, does this: document('D:\tomcat41\webapps\cocoon\basic\docs\doc.xml') Lesson

Resizing the HTMLarea in CForms

2004-09-02 Thread Derek Hohls
I know this is somewhat offtopic, but I thought someone here may be able to help before I take the plunge and register on the HTMLarea BB. Is there any way for the htmlarea NOT to be a fixed width; ie it sits inside a variable width div and needs to resize - TEXT AREA and BUTTONBAR (not just

Problems with schema-to-form example

2004-09-01 Thread Derek Hohls
I have been trying to get the schema-to-form example from the Cocoon wiki working [ http://wiki.apache.org/cocoon/Schema2CocoonForms ] The install guide says: The example expects a directory 'cforms', which includes directories 'resources' and 'messages'. Obviously I did not include them, as

Problems with Cocoon file upload example

2004-09-01 Thread Derek Hohls
I am trying to use the flow version of the Cocoon upload example from the Wiki site; http://wiki.apache.org/cocoon/FileUploadsWithFlow however when I drop the cocoon-upload.jar file into the WEB-INF/lib and try to restart Cocoon, the servlet will not load. A look at Tomcat's error log shows

Attachment info on the Wiki

2004-09-01 Thread Derek Hohls
I know we are still learning our way on the new Wiki, but is it possible to set an option somewhere such the file sizes of the attachments are automatically shown next to the name; that way we do a download we can at least check that the whole file came through Thanks Derek -- This message

Re: javascript collection for cocoon

2004-09-01 Thread Derek Hohls
Thanks Tibor I assume that in the second function, if the document is non-existent, that the return will be false [EMAIL PROTECTED] 2004/09/01 01:38:44 PM check out the org.w3c.dom Classes they are really usefull, as well as javascript inbeded DOM manipualtion Classes Maybe this can help

RE: Problems with schema-to-form example

2004-09-01 Thread Derek Hohls
, so why is Cocoon not finding it? Derek [EMAIL PROTECTED] 2004/09/01 02:22:53 PM From: Derek Hohls [mailto:[EMAIL PROTECTED] Posted At: Wednesday, September 01, 2004 10:53 AM Conversation: Problems with schema-to-form example I have been trying to get the schema-to-form example from

Re: Recursively generated menus in XSL and Cocoon

2004-09-01 Thread Derek Hohls
Matt You could do this using Cocoon forms; have a look at the example in: /samples/blocks/forms/carselector /samples/blocks/forms/countryselector If you search further in the mail archives, you will find other discussions about further options based on these examples. HTH Derek [EMAIL

Re: Using wildcards within map:select

2004-09-01 Thread Derek Hohls
David At a quick guess I think you need to go back up a level, using {../1} to retrieve the value. Derek [EMAIL PROTECTED] 2004/09/01 03:53:37 PM I've written an action to retrieve a value from a database and set it to a sitemap parameter, then I'm performing a select based on the value of

Re: flowscript + forms + dynamic selection list + passing information

2004-08-30 Thread Derek Hohls
Joose Why not use a JXTemplateGenerator to build the selection list; variables created in flow can certainly be accessed from such pages, using the ${variable_name} notation. I have used this to build selection lists from forms, whose members vary according to selections from previous forms. In

Re: flowscript + forms + dynamic selection list + passing information

2004-08-30 Thread Derek Hohls
Joose JXTemplates are pretty simple to use - maybe too simple for your app?? They can access variables from the request, the session and the context, eg. ${cocoon.request.contentType} or ${cocoon.session.myVariable} - so any variables placed into the session from flow can be accessed.

Re: xsp call url

2004-08-27 Thread Derek Hohls
Smith Flowscript is certainly an option... in fact, makes good sense here where, as you say, you effectively have different XSP as generators and hence efffectively different matches. You could have something like: function switch() { var userID = cocoon.request.get(userid); var passwd =

Re: CForms and HEAD tag

2004-08-27 Thread Derek Hohls
Well, I don't think is is such a good idea; I think stylesheets need to each concentrate on managing their subset (or type if you like) of XML - what I do is have a wrapper page which has equivalent pseudo HTML elements; transformation of these is done by my generic stylesheet, leaving the

Re: Best practices for building cocoon applications

2004-08-27 Thread Derek Hohls
;-) aah, the cocoon project at work [EMAIL PROTECTED] 2004/08/26 05:32:31 AM At 8/25/2004 12:18 PM, you wrote: This is sort of how I worked it before. In both cases you should use the XConfToolTask to patch cocoon.xconf and the main sitemap as necessary. I know, I know, I'm just

Developing and debugging CForms

2004-08-27 Thread Derek Hohls
Does anyone have a useful approach for developing and debugging CForms - the reason I ask is that I have just adapted a set of forms from my first CForms project (which *is* working) and now, to my surprise, the new forms display OK but do not pick up any data from the XML files to which they

Re: XSP problem with Sitemap

2004-08-27 Thread Derek Hohls
Pass it in as sitemap parameter... [EMAIL PROTECTED] 2004/08/27 10:55:44 AM Hi read this map:match pattern=repo/**/ map:generate src=./pages/getparam.xsp type=serverpages/ map:transform src={global:staging}styles/dir2html.xsl/ map:serialize type=html/

Re: CInclude question

2004-08-27 Thread Derek Hohls
Norman I am not sure that the first part of your message here relates to CInclude... it looks like you want to upload data to Cocoon or do encoding; neither of these really relates to CInclude so you may consider reposting this under a more informative title if no one seems to help... The second

Re: Forms/document-editing application

2004-08-25 Thread Derek Hohls
rw I would go with forms - I think there are some tricky issues as your forms get more complex (witness a lot of traffic in the last few months) but, in general, they should be able to handle all the use cases you describe here. Start with the samples in the Cocoon distro, including the

Using OS X Server 10.3.5 with Cocoon 2.1.5?

2004-08-25 Thread Derek Hohls
If anyone out there is is running this setup: OS X Server 10.3.5 using Cocoon 2.1.5 please drop me a line... we are trying to solve a particularly strange bug with it... Thanks Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be

Re: generate passwords in xsp

2004-08-25 Thread Derek Hohls
Robby It should be possible to use java.util.Random class to generate numbers and then use this to create a string of, say, 8 alpha-numeric characters, using a loop to pick each character from the base string. If your password is case sensitive, this gives you 62 characters in the base string

Re: xsp call url

2004-08-25 Thread Derek Hohls
smith why use key as a parameter... if you make it part of the uri, you can setup different matches for it, each of which could be calling the same generator map:match pattern=xx/mail/login map:generate src=read.xsp type=generator/ or map:match pattern=xx/mail/no-login map:generate

Re: Post automatically

2004-08-23 Thread Derek Hohls
Smith I have not worked with the mail action before; so I am not sure which method/s can work with it - possibly the info it accesses it is stored in the session (implied by the store-urlname? (tho' the syntax here seems to have too many in it to work). In which case a match such as:

Generating form models from XML Schemas

2004-08-23 Thread Derek Hohls
Has anyone made any attempt to do a mapping between an XML Schema, and a CForms model representation of the data... I assume it would need a stylesheet of some kind, or is there any other way? For example, the extract from this article ( http://www.xml.com/lpt/a/2000/11/29/schemas/part1.html )

RE: Global variables - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-08-23 Thread Derek Hohls
Yes, session variables could be accessed for example to pass them to a stylesheet: map:transform src=stylesheets/page2html.xsl map:parameter name=username value={session-attr:username}/ /map:transform [EMAIL PROTECTED] 2004/08/23 12:33:16 PM Is it possible to access session

Re: Samples Calendar Broken in Cocoon Dist?

2004-08-20 Thread Derek Hohls
Mine works (English locale on Windows XP) - I assume this Cocoon 2.1.5 [EMAIL PROTECTED] 2004/08/20 03:31:31 AM Checking the calendar in http://localhost:8080/cocoon/samples/cal Show a broken calendar, with JULY (instead of August) and the days all messed starting with july 31. Could it be

Re: xml frm XSP

2004-08-20 Thread Derek Hohls
Smith Unless you can make this question more specific, the general answer is the same way any other XML is generated or, to put in another way, the XML for a form can be generated from a pipeline which can be as flexible as you like. With XSP as the starting generator, you could have various

Re: Post automatically

2004-08-20 Thread Derek Hohls
This is a non-sequitur: In handle_page.xsp i will read the parameters and pass it to another url XSP is a generator at the start of a pipeline - it handles parameters coming in; it does not generate URIs. My example shows that, if you have a http://xxx?x=3y=4 call you can handle it in a

Re: dynamcically altering a global variable

2004-08-20 Thread Derek Hohls
Alternatively you could be using flow for this and reading the variable from an xml file - along with any other useful info such as user name etc - and also checking the time using javascript in flow and testing if the last login was before/after midnight and then resetting as needed. AFAIK

Re: Post automatically

2004-08-20 Thread Derek Hohls
Why not just modify the mail.xsp to handle the username and password parameters?... or build a master pipeline that aggregates info from two other pipelines; the original mail.xsp and a new handlelogin.xsp (its stilll not clear what you want to actually do with the login info so I am not sure what

Re: looking for dtd or xml schemas used in cocoon

2004-08-20 Thread Derek Hohls
Of course, there's nothing stopping any of us from stepping forward and volunterring to try and do this, even a preliminary version might help someone [EMAIL PROTECTED] 2004/08/20 03:06:18 PM OK, thank you very much, at least this answers my question ! Maybe it will be done when Cforms

Re: dynamcically altering a global variable

2004-08-20 Thread Derek Hohls
in the first place also :-) Regards, Bhaskar Paul Joseph wrote: Yes, these are much better approaches expecially (imo) the xml approach as it has fewer moving parts - no quartz and also, it doesn't have the overhead of talking to a db. thx Paul --- Derek Hohls [EMAIL PROTECTED] wrote

Re: looking for dtd or xml schemas used in cocoon

2004-08-20 Thread Derek Hohls
well, sometimes it requires some fresh insight or ideas to get things done effectively - this is an OS project so no one expects perfection from a single person... the community will take what is there, add to and polish it until one of the committers decides it *is* good enough. maybe just

RE: submit from xsp

2004-08-19 Thread Derek Hohls
No, you will need to post the values as usual from a normal HTML form; the transform should take care of this part. [EMAIL PROTECTED] 2004/08/19 06:21:48 AM Is it possible to submit using pseudo html?? i want to post the values and then do the transform as usual. Quoting [EMAIL PROTECTED]:

Re: Post automatically

2004-08-19 Thread Derek Hohls
Smith In Cocoon, its the role of the pipeline to handle requests... Assuming I type http://xxx?x=3y=4 into my browser, or that this URI results from another form somewhere in the system, why not just have a pipeline match for this: map:match pattern=xxx map:generate type=serverpages

RE: submit from xsp

2004-08-18 Thread Derek Hohls
Smith How are you presently processing the values posted by the first (form-based) method? [EMAIL PROTECTED] 2004/08/18 11:28:46 AM i have a form login.xml where user id and password are entered in input boxes. The code for login.xml is given below. Username input title=\User\

Re: Displaying third level menu items

2004-08-18 Thread Derek Hohls
This seems like an XSL-related question; why not post it to the XSL mailing list, along with relevant samples of your code and let the gurus there help you out! [EMAIL PROTECTED] 2004/08/18 02:38:53 PM I have till third level of nodes in my sitetree. I want the layout to be such that the menu

Re: Cocoon, Xsp and java

2004-08-17 Thread Derek Hohls
Why not use Cocoon forms and bind them to an XML file? Much simpler than having to write XSP (less supported nowdays) and Java... [EMAIL PROTECTED] 2004/08/16 10:41:38 PM Hello list, I'am developig an aplication using forms and xsp. The values are capture with xsp (request) and write to an

Namespace problem on form binding

2004-08-17 Thread Derek Hohls
I have a strange error that is only happening on *one* machine (the host site for the application). When I try to save to a new XML file after ediitng the orginal via a form, I get the error: An Error Occurred The prefix abcml for element abcml:root is not bound.

Re: hrefs doesnt work on Unix

2004-08-17 Thread Derek Hohls
Rao Please note your map:component-configurations global-variables path\weblogic\cocoon\cocoon-2.1.5.1-src\cocoon-2.1.5.1 \build\webapp\CAF\style\xsl\/path /global-variables /map:component-configurations must be _outside_ of your first pipeline. (Check my last

<    3   4   5   6   7   8   9   10   11   12   >