Cocoon + CMS Integration

2002-11-20 Thread Nicholas Hemley
Hello,

Is anybody aware of a content management system that incorporates Cocoon as part of a 
system that includes XML authoring, workflow and classification?

I am aware of Wyona (www.wyona.org) which uses the Xopus XML editor but are there any 
others?

Any info would be appreciated...

Cheers,
Nic Hemley

Lothian NHS Webmaster



**
The information contained in this message may be confidential or legally privileged 
and is intended for the addressee only,

If you have received this message in error or there are any problems please notify the 
originator immediately.

The unauthorised use, disclosure, copying or alteration of this message is strictly 
forbidden.
**


-
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]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: mod-db example not working.

2002-10-21 Thread Nicholas Hemley
Hi,

I also have null values being entered into my DB (MySQL) from a DatabaseAddAction. 
Here is the sitemap.log extract:

Current Sitemap Parameters:
LEVEL 4
PARAM: 'row-count' VALUE: '1'
PARAM: 'hint_type_request_link.hint_type_id[0]' VALUE: 'null'
PARAM: 'hint_type_request_link.request_id[0]' VALUE: 'null'
LEVEL 3
PARAM: '../request_id' VALUE: '914'
PARAM: '../hint_type_id' VALUE: '1'
LEVEL 2
PARAM: '../../context' VALUE: '/cocoon2.1dev1610'
PARAM: '../../requestURI' VALUE: '/cocoon2.1dev1610/hint/info_requests/update_request'
PARAM: '../../requestQuery' VALUE: ''
LEVEL 1
PARAM: '../../../0' VALUE: 'update_request'

Somehow I am loosing the values between level 3 and 4.

My descriptor is as follows:
?xml version=1.0?

root
  connectionmysql_pool/connection
  table name=hint_type_request_link alias=hint_type_request_link
keys
/keys
values
  value name=hint_type_id type=int 
mode name=request parameter=hint_type_request_link.hint_type_id 
type=request/
  /value
  value name=request_id type=int
mode name=request parameter=hint_type_request_link.request_id 
type=request/
  /value
/values
  /table

table-set name=hint_type_request_link
  table name=hint_type_request_link others-mode=request/
/table-set

/root

and the sitemap entry is:
!-- declare actions for database operations --
   map:action name=mod-db-add 
src=org.apache.cocoon.acting.modular.DatabaseAddAction
  descriptorxml/descriptor.xml/descriptor
  inputrequest-param/input
  outputrequest-attr/output
  throw-exceptionfalse/throw-exception
   /map:action

and

!-- insert hint_types into db --
  map:act type=req-params
map:parameter name=parameters value=hint_type_id request_id/
map:act type=mod-db-add
  map:parameter name=table-set value=hint_type_request_link/
/map:act
  /map:act

any ideas? I have no keys in the table since it is a link table. 

I am using a dev version of cocoon2.1 from 16/10/2002 with tomcat 4.1.12 and win2k.

Cheers,
Nic Hemley



**
The information contained in this message may be confidential or legally privileged 
and is intended for the addressee only,

If you have received this message in error or there are any problems please notify the 
originator immediately.

The unauthorised use, disclosure, copying or alteration of this message is strictly 
forbidden.
**


-
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]
For additional commands, e-mail:   [EMAIL PROTECTED]




DB Insert from Multiple Select box

2002-10-18 Thread Nicholas Hemley
Hi,

I can't find an example of inserting values into a db from a multiple select POST 
anywhere. Frustrating really 'cos I could have written this in 5 mins in PHP :) Could 
someone point me in the right direction? Do I have to use a DatabaseAddAction? Does 
anyone have an example they could send me please?

I've got as far as:
String[] hint_type_ids = request.getParameterValues(hint_type_id);
in my XSP...

Cheerio,
Nic Hemley





**
The information contained in this message may be confidential or legally privileged 
and is intended for the addressee only,

If you have received this message in error or there are any problems please notify the 
originator immediately.

The unauthorised use, disclosure, copying or alteration of this message is strictly 
forbidden.
**


-
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]
For additional commands, e-mail:   [EMAIL PROTECTED]




Cocoon Java Specification Request (JSR)

2002-10-17 Thread Nicholas Hemley

Hello,

I was wondering whether anyone has submitted/or is thinking of submitting a JSR for 
the MVC model that Cocoon uses since it seems to be ahead of the current JSP (model 1) 
based approach. This would also help to promote Cocoon as a reference implementation 
and raise the consciousness of the wider community. Just a thought.

For further information see:
http://www.jcp.org/jsr/overview/

Cheers,
Nic Hemley

Webmaster NHS Lothian



**
The information contained in this message may be confidential or legally privileged 
and is intended for the addressee only,

If you have received this message in error or there are any problems please notify the 
originator immediately.

The unauthorised use, disclosure, copying or alteration of this message is strictly 
forbidden.
**


-
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]
For additional commands, e-mail:   [EMAIL PROTECTED]




XInclude db queries

2002-10-14 Thread Nicholas Hemley

Hello,

I would like to use the XInclude transformer so that I can put my database queries 
into separate files (i.e. atomic queries that are reused elsewhere). Currently, the 
SQL Transformer does not transform the resulting XML [using Cocoon 2.0.3+Tomcat 4.1.12 
under win2k]. Does anyone have any ideas? 

My files are shown below.

XSP file:
?xml version=1.0 encoding=ISO-8859-1?
   
xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; 
xmlns:xsp=http://apache.org/xsp; xmlns:xi=http://www.w3.org/2001/XInclude;

   page

 xi:include href=atomic/select_all_requests.xml/ 
 xi:include href=atomic/select_all_status.xml/
 xi:include href=atomic/select_all_topics.xml/
 xi:include href=atomic/select_all_staff.xml/

   /page

/xsp:page

sitemap.xmap fragment:

!-- view all requests --
  map:match pattern=list_all2
map:generate src=xml/list_data.xsp type=serverpages/

map:transform type=xinclude/

map:transform type=sql
  map:parameter name=use-connection value=mysql_pool/
/map:transform

!-- map:transform type=xslt src=stylesheets/list_all.xsl/ -- 
map:serialize type=html/
  /map:match

Cheers,
Nic Hemley
P.S. - i have tried using the CInclude transformer as well, with the same result...



**
The information contained in this message may be confidential or legally privileged 
and is intended for the addressee only,

If you have received this message in error or there are any problems please notify the 
originator immediately.

The unauthorised use, disclosure, copying or alteration of this message is strictly 
forbidden.
**


-
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]
For additional commands, e-mail:   [EMAIL PROTECTED]




Multiple views with Cocoon sunRise?

2002-09-19 Thread Nicholas Hemley

Hello

I am investigating the possibility of offering multiple views to information for users 
of a portal. I had imagined that this would involve some kind of 'guest cookie' being 
set on the user's machine that holds the level at which the user would like to see the 
information (i.e. beginner, intermediate, expert). Then, the server side processing 
can choose the XML fragment and process with the XSL stylesheet, etc.

Can I do this with the user authentication framework in Cocoon (aka sunRise?) More 
specifically, am I able to redirect new users to a page so that they are able to 
choose the level at which they can view the site?

Many thanks for any pointers to this problem.

Regards,
Nic Hemley



**
The information contained in this message may be confidential or legally privileged 
and is intended for the addressee only,

If you have received this message in error or there are any problems please notify the 
originator immediately.

The unauthorised use, disclosure, copying or alteration of this message is strictly 
forbidden.
**


-
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]
For additional commands, e-mail:   [EMAIL PROTECTED]