Modular Database Actions - Multiple Inserts

2002-05-06 Thread Malte Vahlenkamp

Hello,

I have some problems with the modular database actions. I am trying to insert multiple 
rows from a form with several text boxes named ProjectParam1, ProjctParam2, ... The 
insert itself is runs, but all I get in this columns is a NULL value.  I already tried 
to solve this with a wildcard [*] but maybe I messed up something with the syntax. Any 
comments?

Thanks for your time

  Malte


Heres is the mapping I defined for the database action:

=== SNIP ==

table name=projectparams alias=projectparams
keys
key name=ProjectParamsId autoincrement=true type=int
mode name=auto type=autoincr/
/key  
/keys

values
value name=ProjectId  type=int set=master  
 
mode name=attribute 
parameter=org.apache.cocoon.components.modules.output.OutputModule:projects.projectid[0]
 type=attrib/   
/value

value name=ParamName  type=int   
 
mode name=request parameter=ParamName[*] type=all/ 
 
/value

value name=UnitName  type=int
 
mode name=request parameter=UnitName[*] type=all/  
 
/value
/values

/table

table-set name=userAndProjects
table name=projects/
table name=userprojects others-mode=attrib/
table name=projectparams others-mode=attrib/
/table-set

=== SNIP ==

And these are the request parameters

 SNIP =

attributes
xsp-request:attribute-names
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:userprojects.UserId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projectparams.ProjectParamsId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projectparams.ProjectId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projects.projectid[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projects.userid[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projects.ProjectName[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:userprojects.ProjectId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.action.modular.DatabaseAction.outputModeName/xsp-request:name
/xsp-request:attribute-names

/attributes

parameters
xsp-request:parameter-names
xsp-request:nameProjectName/xsp-request:name
xsp-request:nameProjectParamsId1/xsp-request:name
xsp-request:nameProjectId/xsp-request:name
xsp-request:nameUserId/xsp-request:name
xsp-request:nameUnitName1/xsp-request:name
xsp-request:nameParamName1/xsp-request:name
/xsp-request:parameter-names

/parameters   

=== SNIP 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Modular Database Actions - Multiple Inserts

2002-05-06 Thread Sreenivasan N.

Hello Malte

How are you and things. I saw your posting in Cocoon-user group and got an 
impression that you are developing a Intranet on Projects. I am also into 
same development and struckup in the initial stage. Can you help me in this 
regards.

My requirement is
1. Converting Request from a form to xml
2. Merging the same with another xml which was generated taking data from 
database.

Thanks in advance

Regards

Sreenivasan.

At 08:44 AM 5/6/02 +0200, you wrote:
Hello,

I have some problems with the modular database actions. I am trying to 
insert multiple rows from a form with several text boxes named 
ProjectParam1, ProjctParam2, ... The insert itself is runs, but all I get 
in this columns is a NULL value.  I already tried to solve this with a 
wildcard [*] but maybe I messed up something with the syntax. Any comments?

Thanks for your time

   Malte


Heres is the mapping I defined for the database action:

=== SNIP ==

 table name=projectparams alias=projectparams
 keys
 key name=ProjectParamsId autoincrement=true 
 type=int
 mode name=auto type=autoincr/
 /key
 /keys

 values
 value name=ProjectId  type=int 
 set=master 

 mode name=attribute 
 
parameter=org.apache.cocoon.components.modules.output.OutputModule:projects.projectid[0]
 
 type=attrib/
 /value

 value 
 name=ParamName  type=int 
 
 mode name=request parameter=ParamName[*] 
 type=all/
 /value

 value 
 name=UnitName  type=int 
 
 mode name=request parameter=UnitName[*] 
 type=all/
 /value
 /values

 /table

 table-set name=userAndProjects
 table name=projects/
 table name=userprojects others-mode=attrib/
 table name=projectparams others-mode=attrib/
 /table-set

=== SNIP ==

And these are the request parameters

 SNIP =

attributes
xsp-request:attribute-names
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:userprojects.UserId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projectparams.ProjectParamsId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projectparams.ProjectId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projects.projectid[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projects.userid[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:projects.ProjectName[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.components.modules.output.OutputModule:userprojects.ProjectId[0]/xsp-request:name
xsp-request:nameorg.apache.cocoon.action.modular.DatabaseAction.outputModeName/xsp-request:name
/xsp-request:attribute-names

/attributes

parameters
xsp-request:parameter-names
xsp-request:nameProjectName/xsp-request:name
xsp-request:nameProjectParamsId1/xsp-request:name
xsp-request:nameProjectId/xsp-request:name
xsp-request:nameUserId/xsp-request:name
xsp-request:nameUnitName1/xsp-request:name
xsp-request:nameParamName1/xsp-request:name
/xsp-request:parameter-names

/parameters

=== SNIP 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








Attitudes are much more important than aptitudes.
Nothing is impossible for a willing heart

Sreenivasan N.
Sony SARD
Ext 232

Email. [EMAIL PROTECTED]
Per: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon Portal - Tabbed layout and Radio integration

2002-05-06 Thread Michael Homeijer

IMHO the problem with most portal layout's is that if you have multiple
portlets open and one is changed, the complete page has to be refreshed.
Depending on the functionality and the possibility of caching, this can be
very time consuming.

Gartner had a site that solved this by having portlets in a single layer
(I am not a HTML expert, but I think this is what it's called). It looked
great, all portlets could be dragged to the location at which you want to
have them and they really looked like child windows.

Did you ever look at a layout like this to use in Cocoon? (I am sorry I
cannot find a link with a sample, it was one of the customizable gartner
sites you have to login to. Maybe some one knows what I mean).

Michael.

 -Original Message-
 From: Matthew Langham [mailto:[EMAIL PROTECTED]]
 Sent: vrijdag 3 mei 2002 15:03
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Cocoon Portal - Tabbed layout and Radio integration
 
 
 Those of you interested in the portal components may like to 
 take a look
 here: http://needacake.blogspot.com. The screenshot shows a 
 preview of a
 tabbed portal layout that we will be presenting at Jax2002 in 
 Frankfurt in a
 couple of weeks. In addition we will be showing how to build 
 and integrate a
 new coplet for Radio Weblogs in RSS format.
 
 Unfortunately - Radio has been having some problems recently 
 so I could not
 post this (yet) to my Radio weblog. :-(. However we hope you 
 find the new
 layout an interesting idea (perhaps for your own portal).
 
 Matthew  Carsten
 
 --
 Open Source Group   sunShine - Lighting up e:Business
 =
 Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
Weblogging at: http://www.need-a-cake.com
  Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
 =
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon generated Java throwing SQLException

2002-05-06 Thread Graaf, Edgar de (fin)

Maybe you should ask the Cocoon developers mailing list.
([EMAIL PROTECTED])

Edgar

-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 3 mei 2002 19:24
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Cocoon generated Java throwing SQLException


Actually, your version seems syntactically correct, but mine works...go
figure.  

Well, apparently the problem is stemming from OSX being a UNIX
operating system, but using a non case-sensitive file system. I've
experienced weird anomalies like this before where I'd have to export
and recreate the table and it would work fine.  

-Zack

-Original Message-
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 03, 2002 2:23 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Cocoon generated Java throwing SQLException

Zack,

Isn't
xsp:logic
String userLogin = xsl:value-of select=login/;
String userPass = xsl:value-of select=password/;
/xsp:logic

xsp:logic
String userLogin = xsl:value-of select=login/;
String userPass = xsl:value-of select=password/;
/xsp:logic

Regards,

Edgar
-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 2 mei 2002 15:16
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Cocoon generated Java throwing SQLException


Hmm, well, I don't think there are problems with my XSP syntax because
the
Java seems to be generating correctly, but I guess you're right. It
could be
something obscure. So here it is:


?xml version=1.0?
xsl:stylesheet
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp=http://apache.org/xsp;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xsp-session=http://apache.org/session/2.0;
xmlns:malin-auth=http://nostromo.com/malin-auth;
version=1.0

xsl:template match=xsp:page
  xsl:copy
xsl:apply-templates select=@*/
xsl:apply-templates/
  /xsl:copy
/xsl:template

xsl:template match=malin-auth:authenticate
xsp:logic
String userLogin = xsl:value-of select=login/;
String userPass = xsl:value-of select=password/;
/xsp:logic
esql:connection
esql:poolmySql/esql:pool
esql:execute-query
esql:query
select ID,count(ID) as count from Users where
LoginUser='zack'
and Password='password' group by ID
/esql:query
esql:results
esql:row-results
xsp:logic
int rescount = esql:get-int
column=count/;
int userID = 0;
if (rescount  0)
{
userID = esql:get-int
column=ID/;
}
/xsp:logic
xsp-session:set-attribute
name=malin-uidxsp:expruserID/xsp:expr/xsp-session:set-attribute
/esql:row-results
  /esql:results
/esql:execute-query
  /esql:connection
/xsl:template
   
xsl:template match=malin-auth:get-userid
   xsp-session:get-attribute name=malin-uid/
/xsl:template
   
xsl:template match=@*|node() priority=-1
 xsl:copy
   xsl:apply-templates select=@*|node()/
 /xsl:copy
/xsl:template

/xsl:stylesheet  



On 5/2/02 2:12 AM, Graaf, Edgar de (fin) [EMAIL PROTECTED]
wrote:

 Zack,
 
 Please provide the whole XSP.
 
 Regards,
 
 Edgar
 
 -Oorspronkelijk bericht-
 Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
 Verzonden: donderdag 2 mei 2002 4:55
 Aan: [EMAIL PROTECTED]
 Onderwerp: Cocoon generated Java throwing SQLException
 
 
 Hey,
 
 I'm having some really peculiar behavior with the ESQL logicsheet. I
 have the following XSP (in my own logicsheet):
 
 esql:query select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID/esql:query
 
 The corresponding Java seems to be generating just fine:
 
 _esql_query = new EsqlQuery( _esql_connection, String.valueOf(select
 ID,count(ID) as count from Users where LoginUser='zack' and
 Password='password' group by ID) );
 
 But, upon execution, I get this exception:
 
 org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
 executing statement: select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID:
 java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
 'where clause'
 
 For some reason it's saying that one of the columns doesn't exist...I
 have no idea why. I've also copied and pasted the SQL query from the
 Java into the mysql client, and it works fine. Any ideas? This just
 seems really strange to me. Thanks in advance.
 
 -Zack Angelo
 Nostromo Corporation
 
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. 

How to put user data into SunspotDemoPortal-session at logon time

2002-05-06 Thread sheshadri



Hello,
I need to put some user information in the Sunspot 
demo portal 
extract the information from the 
session.
can any one please guide as to how do i go about at 
it .

Thanx,
Sheshadri


Re: A SOAP Transformer?

2002-05-06 Thread reinhard_poetz

Steve,

I would be very interested in a SOAP Transformer. 

I think it would be a very useful component - but at the moment I'm not sure
too if there are some hidden issues.

I think we should work together!

Reinhard

 Dear Cocoon Users:
   
   Does it make sense that a SOAP Transformer
   could be added to the Cocoon arsenal?
 
   An incoming XML doc would contain the URL of
   the web service to be accessed, perhaps
   also necessary authentication information,
   and the SOAP body.  The SOAP Transformer
   would simply send the message, and insert
   the response into the document stream.
 
   Does this make sense as a useful component?
   Or are there some hidden issues that would
   introduce complexity?
 
   Steve Punte
   [EMAIL PROTECTED] 
 
 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: A SOAP Transformer?

2002-05-06 Thread Andreas Kuehne


Dear Steven,

   Does it make sense that a SOAP Transformer
   could be added to the Cocoon arsenal?
 
   An incoming XML doc would contain the URL of
   the web service to be accessed, perhaps
   also necessary authentication information,
   and the SOAP body.  The SOAP Transformer
   would simply send the message, and insert
   the response into the document stream.
 
that's an absolutely necessary component ! I always think that Cocoon could be more 
than just a
stupid html-izer. With such components like a SOAP Transformer it could raise to an 
elegant / open
sourced integration platform !

BTW: Is anyone intersted in an EDIFACT Transformer ?

Greetings

andreas k.



__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Modular Database Actions - Multiple Inserts

2002-05-06 Thread Christian Haul

On 06.May.2002 -- 08:44 AM, Malte Vahlenkamp wrote:
 Hello,
 
 I have some problems with the modular database actions. I am trying
 to insert multiple rows from a form with several text boxes named
 ProjectParam1, ProjctParam2, ... The insert itself is runs, but all I
 get in this columns is a NULL value.  I already tried to solve this
 with a wildcard [*] but maybe I messed up something with the
 syntax. Any comments? 

The crucial part when working on more than one row is to define which
columns vary and which are constant. This is done through the set
attribute to a column or a mode. All columns in a set vary and all
others are fixed.

Sets have one column that is special, the master column. The master
column is used to determine a) the number of rows to work on and b)
an enumeration of objects that is used to find the corresponding value
for the other columns.

As a consequence, only columns in a set may have a wildcard. In
addition, the behaviour depends on the input module used.

Thus you are missing to things here: ParamName and UnitName must have
a set attribute and your master column needs to have a wildcard.

   table name=projectparams alias=projectparams
   keys
   key name=ProjectParamsId autoincrement=true type=int
   mode name=auto type=autoincr/
   /key  
   /keys
   
   values
   value name=ProjectId  type=int set=master  
 
mode name=attribute 
parameter=org.apache.cocoon.components.modules.output.OutputModule:projects.projectid[*]
 type=attrib/
   
  -^-
   /value
   
value name=ParamName  type=int set=slave   
 
   -^^^-
   mode name=request parameter=ParamName[*] type=all/ 
 
   /value
   
value name=UnitName  type=int set=slave
 
  -^^^-
   mode name=request parameter=UnitName[*] type=all/  
 
   /value
   /values
   
   /table
   
   table-set name=userAndProjects
   table name=projects/
   table name=userprojects others-mode=attrib/
   table name=projectparams others-mode=attrib/
   /table-set

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: dispatch to new window in web browser possible?

2002-05-06 Thread Bert Van Kets

There is NO WAY you can open a new window from the server side.
Client side JavaScript (or VBscript in IE for the picky ones) is the only 
way to do this.  There are different approaches to your problem, but they 
all involve some client side coding.

Bert

At 19:09 4/05/2002 +0200, you wrote:

Thanks for your reply. I considered form ... target=blank as well before
I posted this question. However you should know that currently my
architecture utilizes only one form trag to which various user inputs 
(e. g. buttons)
submit. On serverside I gather the information which action was intended.
The problem is that there is only one single button within my client view that
would require to open a new browser window. Any others should remain updating
the same browser window. Therefore I was asking if there is a possibility
that cocoon could create a new browser window.

As a workaround I'm doing it as follows however in a future release of my
application I'd like to avoid javascript at all:

form action=/xxx method=get
input name=process type=hidden
...
 input type=submit 
 onclick=document.forms[0].process.value='regular'
 value= A regular action that should update current view /
...
 input type=submit onclick=document.forms[0].process.value='new',
document.forms[0].target='_blank'
 value=open new browser window! /
...
/form

It seems that there is no way out to use my current design without
javascript.

Regards,

Harald

At 09:41 3/05/2002 +0200, you wrote:
 You can achieve this in HTML by setting the target of your form to
 _blank which will post the results to a newly openned window.
 The javascript solution is better if you want more control over how the
 newly openned window looks.
 
 Andrew
 
 On Fri, 2002-05-03 at 09:38, yuryx wrote:
   [EMAIL PROTECTED] wrote:
  
   Currently my application consists of cocoon-actions that invoke xsp/xsl
   files upon requests. As normal the new output always refreshes the
  client's
   browser view.
   Based on some calculations at the actions I'm required to delegate the
   response not to the current browser window but to a newly opened
  browser window.
   An examle would be a printable view of a web page. Is this possible
with
   cocoon2? How could I accomplish it?
   
   Thanks for your comments!
   
   Harald
   
   try use javascript for open new window, and submit form within it.
   Yury.
  

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon Portal - Tabbed layout and Radio integration

2002-05-06 Thread Carsten Ziegeler


 -Original Message-
 From: Michael Homeijer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 8:49 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Cocoon Portal - Tabbed layout and Radio integration


 IMHO the problem with most portal layout's is that if you have multiple
 portlets open and one is changed, the complete page has to be refreshed.
 Depending on the functionality and the possibility of caching, this can be
 very time consuming.

 Gartner had a site that solved this by having portlets in a single layer
 (I am not a HTML expert, but I think this is what it's called). It looked
 great, all portlets could be dragged to the location at which you want to
 have them and they really looked like child windows.

 Did you ever look at a layout like this to use in Cocoon? (I am sorry I
 cannot find a link with a sample, it was one of the customizable gartner
 sites you have to login to. Maybe some one knows what I mean).

I'm not that HTML, DHTML or javascript expert but the portal is transformed
by a stylesheet into HTML, so you can add there any HTML,javascript etc.
directives you want.
AFAIK it is possible to perform many operations on the client-site,
like minimizing or rearranging the pieces of information. But at some
time the server needs this information in order to update the profile
on the server and save it persistent.
The current portal demo was designed without the need of javascript (apart
from the logout) as many customers want plain HTML, so this is the way
it is now. But I should be no problem for an HTML expert to change
this.


Carsten

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
http://www.s-und-n.de   mailto: [EMAIL PROTECTED]

The Cocoon Book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
The new weblog homepage: http://ziegeler.bei.t-online.de



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: User authentication and roles

2002-05-06 Thread Carsten Ziegeler



 -Original Message-
 From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 03, 2002 10:39 PM
 To: [EMAIL PROTECTED]
 Subject: User authentication and roles


 I need to use teh roles in the user authentication and have been tying to
 get *something* going all day, with no succes.  I've read the
 docs at least
 ten times, but can't find the way to get it going.
 What I need:
 I have several types of users.
 - The simplest ones only can access the member section
 - The authors can only access the section they are responsible for.

 In a later phase I want to give or restrict access to specific pages, but
 that's not really necessary for the moment.

 How do I add/check user roles?  In the sitemap a coplet parameter is sent
 to the portal-auth action, but it's not documented.

Hi Bert,

the portal-auth action is document in the portal documentation of the
developer
section. It performs an extra protection of a pipeline, like the normal
auth-protect action:


In this example the coplet is protected by the use of the parameter
tag inside the portal-auth action. Only if the user is allowed to
view/configure the coplet with the ID licencing, he can invoke this
resource.
If this security command is left out, everyone is able to get the resource
by
simply invoking it directly from the browser. However, if the coplet is
protected it is not necessary that a user has choosen that coplet for his
current portal view to invoke the resource. In addition it is possible to
specify the parameter without a specific coplet name. This protects the
resource as a coplet: Only users which are logged in to the portal can view
the
resource.


So if you have the following:


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon and DocBook?

2002-05-06 Thread Erik Stunkat


Hi Michael

did you set the properties for the docbook catalog in
CatalogManager.properties ?

#catalogs=/path/to/local/catalog
catalogs=N:\Documentation\Internal\docs\tools\docbookx412\docbook.cat

It works for me with the 1-48 stylesheets.
What might be difficult to get more then one html page, eg to use the chunk
options from Norman Walsh

erik stunkat




   

  Michael Cortez   

  mcortez@fullcollTo:   
'[EMAIL PROTECTED]' [EMAIL PROTECTED] 
  .educc: 

   Subject:  Cocoon and DocBook?   

  05/03/2002 07:42 

  PM   

  Please respond to

  cocoon-users 

   

   





I've browsed a bit through the archives, but I haven't found much on this
--
so here goes.


I'm using Cocoon with DocBook, and Norman Walsh's DocBook 1.50 HTML style
sheets.

I've been able to successfully render trivial DocBook Articles, but can't
get cocoon to render and DocBook books.


Attached below are the relevant DocBook files, sitemap info and error
message.  Both DocBook XML files render fine outside of cocoon with my
normal DocBook tool chain, so I'm relatively sure the problem has something
to do with setting it up with cocoon.

Any Suggestions would be greatly appreciated.


=
My setup in sitemap.xmap:

...
map:match pattern=noagg.htm
map:generate src=ogc/test.xml/

map:transform src=ogc/docbook/html/docbook.xsl/
map:serialize type=html/
/map:match
...


=
When test.xml is this article, it renders correctly:
...
article
titleFlare Pebbles/title
para
A bag of twenty pebbles.  Each is enchanted
with a cantrip.  When thrown against a target,
the pebble flares to a bright light on impoact,
casuing the target to suffer a -1 penalty on
attack rolls for 1 minute.  (DC13 for Fortitude
saving throw to negate.)  They cause no damage,
but up to three pebbles can be thrown at once
at the same target.  Pebbles cannot be reused.
/para
/article
...


=
When test.xml is this book, it fails:
...
book
titleFlare Pebbles/title
para
A bag of twenty pebbles.  Each is enchanted
with a cantrip.  When thrown against a target,
the pebble flares to a bright light on impoact,
casuing the target to suffer a -1 penalty on
attack rolls for 1 minute.  (DC13 for Fortitude
saving throw to negate.)  They cause no damage,
but up to three pebbles can be thrown at once
at the same target.  Pebbles cannot be reused.
/para
/book
...


=
When it fails, it provides the following error:
...
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Failed to execute pipeline.

More precisely:

org.apache.cocoon.ProcessingException:
Failed to execute pipeline.:
java.lang.RuntimeException: 2 = 2



--
Michael Cortez
Development Services
Fullerton College
http://www.fullcoll.edu

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: 

RE: ESQL Update problem

2002-05-06 Thread Sharat Koya

Sorry but could you give me the full bit of code from
esql:execute-query, I can't get my head around it and I couldn't find
much documentation on how to use it.

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, 05 May 2002 17:01
To: [EMAIL PROTECTED]
Subject: Re: ESQL Update problem

[EMAIL PROTECTED] wrote:
 I have been developing an application for a few months now and up till
 now I haven't need to use the SQL UPDATE command, but when I added the
 code below to a logicsheet today...
 
 esql:execute-query
   esql:queryUPDATE item set number='xsp:exprbase.xsl:value-of
 select=@type//xsp:expr' where tech_id='xsp:exprtech/xsp:expr'
 and player_id='xsp:exprplayer/xsp:expr'/esql:query
   esql:results
esql:row-results
 updateupdate complete/update
/esql:row-results
   /esql:results
  /esql:execute-query
 
 Cocoon seems to ignore the code? I don't think it is a cacheing
problem
 as I emptied the work folder and re-tried it. It just appears to
ignore
 the code. Can anyone help?

Please see my reply to Thomas von Schwerdtner [esql] Nesting after 
INSERT...
Basically, you want to use esql:update-results/

HTH
Chris.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: User authentication and roles

2002-05-06 Thread Carsten Ziegeler

Hi Bert,

 -Original Message-
 From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 03, 2002 10:39 PM
 To: [EMAIL PROTECTED]
 Subject: User authentication and roles


 I need to use teh roles in the user authentication and have been tying to
 get *something* going all day, with no succes.  I've read the
 docs at least
 ten times, but can't find the way to get it going.
 What I need:
 I have several types of users.
 - The simplest ones only can access the member section
 - The authors can only access the section they are responsible for.

Is this inside the portal or outside? If inside you can edit the profiles
for the roles, so one role profile has access to a member coplet and
another not. In combination with the below mentioned portal-auth action
you can secure it this way.

If you are outside the portal, you can use the auth-protect action
to secure a pipeline. This action returns (if the user is authenticated)
a map containing several values, for example the role, so you can do
something like this:

map:match pattern=something
!-- protect the pipeline: --
map:act type=auth-protect
map:parameter name=handler value=myhandler/

map:select type=parameter
map:parameter name=parameter-selector-test value={role}/  !-- 
test
the role of the user --

map:when test=admin
  !-- this is an admin, so ... --
  !-- Insert pipeline commands here --
/map:when
map:otherwise
  !-- this is not an admin, so ... --
  !-- Insert pipeline commands here --
/map:otherwise
/map:select
/map:act
/map:match

 In a later phase I want to give or restrict access to specific pages, but
 that's not really necessary for the moment.

 How do I add/check user roles?  In the sitemap a coplet parameter is sent
 to the portal-auth action, but it's not documented.

The portal-auth action is document in the portal documentation of the
developer
section. It performs an extra protection of a pipeline, like the normal
auth-protect action:


In this example the coplet is protected by the use of the parameter
tag inside the portal-auth action. Only if the user is allowed to
view/configure the coplet with the ID licencing, he can invoke this
resource.
If this security command is left out, everyone is able to get the resource
by
simply invoking it directly from the browser. However, if the coplet is
protected it is not necessary that a user has choosen that coplet for his
current portal view to invoke the resource. In addition it is possible to
specify the parameter without a specific coplet name. This protects the
resource as a coplet: Only users which are logged in to the portal can view
the
resource.


So if you have the following in your pipeline:
  map:act type=portal-auth
   map:parameter name=coplet value=licencing/
  /map:act
only users who can add the licencing coplet to their profile can invoke
the corresponding pipeline by hand.

HTH

Carsten

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
http://www.s-und-n.de   mailto: [EMAIL PROTECTED]

The Cocoon Book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
The new weblog homepage: http://ziegeler.bei.t-online.de



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Cocoon sunSpot vs. Jetspeed / User Management and Authentication

2002-05-06 Thread Hochsteger Andreas /INFO-MA

Hi!

I just read parts of the sunSpot documentation and got a dejavu feeling,
while reading about sunlets and things like that. It seems that Jetspeed has
a similar functionality (as far as I understand it) but Jetspeed is never
mentioned in the docs.

Here are my questions:
* Is sunSpot something similar to Jetspeed? If so, why doesn't it use the
already existing Jetspeed?
* What's the difference / similarity between sunlets and portlets? Can
portlets be part of a sunlet?
* How stable/usable is sunRise and its components for production use? When
can we expect a first stable release (I don't need an exact date, just tell
me in some weeks or in some years ;-)?
* Are there any attempts to support User Management and Authentication
Standards like XACML (http://www.oasis-open.org/committees/xacml/), RBAC
(http://csrc.nist.gov/rbac/), SAML
(http://www.oasis-open.org/committees/security/), ...?

We are currently evaluating new technology for our web architecture and thus
evaluating User Management and Authentication solutions too which integrate
very well within Websites and Web-Applications and allow customization,
Single-sign-on and Profiling of User- and Application data, possible backed
by a LDAP authentication.
Is Cocoon sunRise the way to go or am I looking at the wrong place?

Thanks for your help,

Andreas Hochsteger
ÖAMTC Web-  Infomanagement
E-Mail:   mailto:[EMAIL PROTECTED]
Telefon:  ++43 1 711 99 - 1353 
Internet: http://www.oeamtc.at

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon Portal - Tabbed layout and Radio integration

2002-05-06 Thread Bert Van Kets

I've done some quit extensive programming using Layers with JavaScript.  It 
is perfectly possible to create this and the user would indeed perceive it 
as being faster.  The problem is that the server does not know what is 
going on (as Carsten already pointed out) and that using client side 
JavaScript does have some infringements on the JavaScript support of the 
browser.  Making your code work with ALL browsers is nearly 
impossible.  Many of my colleagues have migrated to using server side 
scripting as much as possible and only use client side when there is no 
other way.  This is a bit extreme to my opinion, since it creates a lot of 
overhead on bandwidth, but it surely is the safest way since most code runs 
in a well known and controlled environment.

Bert

At 10:28 6/05/2002 +0200, you wrote:

  -Original Message-
  From: Michael Homeijer [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 06, 2002 8:49 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: Cocoon Portal - Tabbed layout and Radio integration
 
 
  IMHO the problem with most portal layout's is that if you have multiple
  portlets open and one is changed, the complete page has to be refreshed.
  Depending on the functionality and the possibility of caching, this can be
  very time consuming.
 
  Gartner had a site that solved this by having portlets in a single layer
  (I am not a HTML expert, but I think this is what it's called). It looked
  great, all portlets could be dragged to the location at which you want to
  have them and they really looked like child windows.
 
  Did you ever look at a layout like this to use in Cocoon? (I am sorry I
  cannot find a link with a sample, it was one of the customizable gartner
  sites you have to login to. Maybe some one knows what I mean).
 
I'm not that HTML, DHTML or javascript expert but the portal is transformed
by a stylesheet into HTML, so you can add there any HTML,javascript etc.
directives you want.
AFAIK it is possible to perform many operations on the client-site,
like minimizing or rearranging the pieces of information. But at some
time the server needs this information in order to update the profile
on the server and save it persistent.
The current portal demo was designed without the need of javascript (apart
from the logout) as many customers want plain HTML, so this is the way
it is now. But I should be no problem for an HTML expert to change
this.


Carsten

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
http://www.s-und-n.de   mailto: [EMAIL PROTECTED]

The Cocoon Book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
The new weblog homepage: http://ziegeler.bei.t-online.de



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Internationalization without i18n

2002-05-06 Thread Cenk Uysal

Can you please explain this example much more detailed?

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon sunSpot vs. Jetspeed / User Management and Authentication

2002-05-06 Thread Carsten Ziegeler

 -Original Message-
 From: Hochsteger Andreas /INFO-MA [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 10:44 AM
 To: '[EMAIL PROTECTED]'
 Subject: Cocoon sunSpot vs. Jetspeed / User Management and
 Authentication


 Hi!

 I just read parts of the sunSpot documentation and got a dejavu feeling,
 while reading about sunlets and things like that. It seems that
 Jetspeed has
 a similar functionality (as far as I understand it) but Jetspeed is never
 mentioned in the docs.

Jetspeed and Cocoon are two different projects with the same aim: a portal.

 Here are my questions:
 * Is sunSpot something similar to Jetspeed? If so, why doesn't it use the
 already existing Jetspeed?
The main difference between Jetspeed and sunspot is that sunspot is build
on top of cocoon, that means you can use all features of cocoon like the
xml processing pipelines, stylesheets for layout etc to build your portal.
Jetspeed is a separate technology, so if you want to use cocoon *and* if
you want a portal, jetspeed is (afaik) not an alternative.

 * What's the difference / similarity between sunlets and portlets? Can
 portlets be part of a sunlet?
A sunlet is simply a URI which produces XML, this can either be a Cocoon
XML pipeline, or an http request or any other URI. I don't know the
jetspeed portlets, but if they are accessible via a URI, yes you can use
them as a sunlet.

 * How stable/usable is sunRise and its components for production use? When
 can we expect a first stable release (I don't need an exact date,
 just tell
 me in some weeks or in some years ;-)?
sunrise and sunspot are stable. Both are a donnation of our company
(SN AG, Germany) and are just for more than one year in various production
environments. An official cocoon release containing those two parts is
expected in summer this year.

 * Are there any attempts to support User Management and Authentication
 Standards like XACML (http://www.oasis-open.org/committees/xacml/), RBAC
 (http://csrc.nist.gov/rbac/), SAML
 (http://www.oasis-open.org/committees/security/), ...?

Sorry, I don't know those, but the sunrise authentication mechanism is
very flexible. sunrise itself is only a framework where you can plug-in
your authentication scheme, so I generally would say, if these standards
are usuable within a java servlet you can simply use it in sunrise
by writing a simple connector (and believe me this should be a really
simple connector and not a hugh project by itself).

 We are currently evaluating new technology for our web
 architecture and thus
 evaluating User Management and Authentication solutions too which
 integrate
 very well within Websites and Web-Applications and allow customization,
 Single-sign-on and Profiling of User- and Application data,
 possible backed
 by a LDAP authentication.
 Is Cocoon sunRise the way to go or am I looking at the wrong place?

This is not an easy question for *me*;)
In fact, the answer is simple: if you want
to use Cocoon for building your web application, sunRise is afaik the
only way to go - and it's a good choice, too :)
If you don't want to use Cocoon, well, you can use sunRise.

With sunRise you can do single-sign-on, Profiling of User- and
Application data, LDAP authentication and many more. We already have
done this in some projects...

Just let me know if I can provide you more information.


Carsten

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
http://www.s-und-n.de   mailto: [EMAIL PROTECTED]

The Cocoon Book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
The new weblog homepage: http://ziegeler.bei.t-online.de



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: ESQL Update problem

2002-05-06 Thread Christian Haul

On 06.May.2002 -- 09:35 AM, Sharat Koya wrote:
 Sorry but could you give me the full bit of code from
 esql:execute-query, I can't get my head around it and I couldn't find
 much documentation on how to use it.
 
 From: Christian Haul [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, 05 May 2002 17:01
 To: [EMAIL PROTECTED]
 Subject: Re: ESQL Update problem
 
 [EMAIL PROTECTED] wrote:
  I have been developing an application for a few months now and up till
  now I haven't need to use the SQL UPDATE command, but when I added the
  code below to a logicsheet today...
  
  esql:execute-query
esql:queryUPDATE item set number='xsp:exprbase.xsl:value-of
  select=@type//xsp:expr' where tech_id='xsp:exprtech/xsp:expr'
  and player_id='xsp:exprplayer/xsp:expr'/esql:query
esql:results
 esql:row-results
  updateupdate complete/update
 /esql:row-results
/esql:results
   /esql:execute-query
  
  Cocoon seems to ignore the code? I don't think it is a cacheing
 problem
  as I emptied the work folder and re-tried it. It just appears to
 ignore
  the code. Can anyone help?
 
 Please see my reply to Thomas von Schwerdtner [esql] Nesting after 
 INSERT...
 Basically, you want to use esql:update-results/

Just replace esql:results/ with esql:update-results/.

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: have serialized xml use doctype?

2002-05-06 Thread Matthieu Benéteau

This is a very good idea. I had the same need, and you have solved my
problem.
Thanks !!

Matthieu

PS : here is a Xalan/C2 bug which may be related to this problem :
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1121



 Thanks for the link.  Xalan/C2 doesn't seem to like xsl:output
 doctype-public=... too much. However, the page you posted let me to
 another solution that works as well:

 xsl:text disable-output-escaping=yes
 ![CDATA[
   !DOCTYPE ...
 ]]
 /xsl:text

 ...hope that helps anyone that might be having the same problem.

 -Zack


 -Original Message-
 From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, May 05, 2002 3:43 PM
 To: [EMAIL PROTECTED]
 Subject: Re: have serialized xml use doctype?

 Zack Angelo wrote:
  I'm generating XML that is to be fetched by an external browser. In
 the
  serialized XML file, I need it to specify a DTD to use.how do I do it?


 Check the xsl:output element
   http://www.w3.org/TR/xslt#output
 add doctype-system and doctype-public as needed.

 J.Pietschmann


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Session in XSP

2002-05-06 Thread yuryx

Hello all!

May be anyone to answer me for the next question:
Why org.apache.cocoon.environment.Session not available in XSP?
Why cocoon-dev shouldn't built-in it into XSP as 
org.apache.cocoon.environment.Request parameter (for example)?

Thanx.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Session in XSP

2002-05-06 Thread yuryx

yuryx wrote:

 Hello all!

 May be anyone to answer me for the next question:
 Why org.apache.cocoon.environment.Session not available in XSP?
 Why cocoon-dev shouldn't built-in it into XSP as 
 org.apache.cocoon.environment.Request parameter (for example)?

 Thanx.
 Yury.



 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

Sorry by the question.
In Cocoon2.0.2-2.1-dev object session is present in XSP.

Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




How to use an aggregator /looking for documentation

2002-05-06 Thread Hahn Kurt (CHA)

Could anyone point to the documentation about how to use aggregators?
Are there built-in examples in Cocoon?

Kurt

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Livesites

2002-05-06 Thread Rune Sandnes


Another live site you can add to the Cocoon 2 livesites list: 
TINE, the largest Norwegian dairy company is at http://www.tine.no/

The site is mostly in Norwegian, but has an international section. (TINE
is the company that makes Jarlsberg cheese)

It runs on Cocoon 2.0.2 under Websphere, and with Squid as accellerating
proxy to handle load. The reason we chose to use Squid was that
Websphere performed poorly compared to Tomcat when we stress tested with
Siege. (http://www.joedog.org/siege/) 

We discovered that the reason for Websphere's poorer performance was
logging, when we turned off our log routines performance was improved.
We kept Siege anyway as it does give a performance boost.

The site has a functions that are potential processor hogs, mostly in
the name of design. Politically incorrect, all titles are generated SVG
(serialized to PNG) to get the correct font. Pictures are scaled
server-side, and have rounded edges.

Processed pictures are stored in the database for caching purposes, and
the generated titles are cached by Cocoon, so the site would be
adequately fast without Squid, but it IS faster with Squid, and FEELS
faster for the user.

Thank you all for the invaluable support on this list!

Rune,
Klapp Media,
Trondheim,
Norway

PS! The previous site I tried to get listed at the livesites list is
still not there, please add www.corrocean.com as a Cocoon 2 site as
well. 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: How to use an aggregator /looking for documentation

2002-05-06 Thread Luca Morandini

Kurt,

look no further than the Cocoon sitemap itself.

Best regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 

 -Original Message-
 From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 11:50 AM
 To: '[EMAIL PROTECTED]'
 Subject: How to use an aggregator /looking for documentation
 
 
 Could anyone point to the documentation about how to use aggregators?
 Are there built-in examples in Cocoon?
 
 Kurt
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: xsp logicsheet

2002-05-06 Thread KOZLOV Roman

Hi,

Did you try to use apostrophs inside quotes? Something like this:
String temp = xsl:value-of select='name'/;

Best regards.
Roman

Bert Van Kets wrote:

 At 10:38 30/04/2002 -0300, you wrote:

 I guess it's
 
   String temp = xsl:value-of select=name/;
 
 or
 
   String temp = new String(xsl:value-of select=name/);
 
 Alejandro
 Tried it, doesn't work.  I guess it must be a bug.
 If I use
 String temp = xsl:value-of select=name/
 I get

 org.apache.cocoon.ProcessingException: Exception in creating Transform
 Handler: org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 listCreateQuery_xsp:
 Line 252, column 23: unclosed character literal
 Line 252, column 22: illegal start of expression
 Line 278, column 6: unclosed character literal
 Line 278, column 4: illegal start of expression
 Line 0, column 0:
 4 errors

 The code snipet it refers to is

  String temp = 
  xspAttr.addAttribute(
,
select,
select,
CDATA,
name
  );

  this.contentHandler.startElement(
http://www.w3.org/1999/XSL/Transform;,
value-of,
xsl:value-of,
xspAttr
  );
  xspAttr.clear();

  this.contentHandler.endElement(
http://www.w3.org/1999/XSL/Transform;,
value-of,
xsl:value-of
  );

  ;

 As you can see the string is closed three commands down.  There is no way
 this can work.
 Is there another way to store the content of a node in a string?

 Bert

 BTW I'm using todays CVS

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection PoolingDoesn't Work (for me) - any ideas

2002-05-06 Thread Christopher Watson

Dear Spinnerettes,

Every so often I get a reply to my (much earlier) list message about this
subject.

Later follows my reply to the latest one, which someone may want to correct
or complement ...
but it has prompted me to ask again ..

I want to get JDK1.4 and connection pooling working.

1)  Can I?

2)  What CVS (HEAD or 2.0.3) do I need?

3)  Is a 2.0.3 or other dist where this works forthcoming?

Sorry to be a nag.

For completeness, I think Cocoon is marvellous!


My reply .
==

I kind of gave up and went back to Cocoon 2.0.1 , Tomcat 4.0.1 and jdk 1.3,
since I've no pressing need to get to jdk1.4 !

There was a recent 'howto jdk1.4' in the users mailing list, in response to
which I asked if connection pooling worked with it but got no response.

Last I saw on the developers list was talk of a forthcoming 2.0.3 release.
There's a branch ready for this on the CVS, but it's not been put into the
dist

You MAY find that the latest (HEAD) CVS works, albeit with perhaps a bit of
judicious editing of EsqlConnection.java to get it co compile.
(I.E. Just take the /* */ to uncomment the JDBC3 specific stuff)

Also, in 2.0.2 there was a bug in AbstractValidatorAction.java (Thanks Vadim
for helping me with this bit! ) so get that from the CVS -

Frankly, I can't completely remember how my last try with jdk1.4 worked. I
think ESQL Connection Pooling was OK !
But going to whatever the CVS version I last tried had unconnected
side-effects for what I had done, which, although probably more correct,
would have meant me changing what I had done ...

(Aggregation on 2.0.1 with a missing map:part URI would just leave the
missing part out of the aggregate,
on whatever CVS it was I tried with jdk1.4, it did a 404 resource not found)

I'm going to forward this to the user and dev lists since there's been
nothing about progress on this for a while.

I'll change your name in case you don't want it

Sorry I can't be of more immediate help

Christopher


Original Message read :

 I recently downloaded the cocoon 2.0.2 from the apache web site. I have
the same problem of all the people trying to build Cocoon on the Java 1.4.
The only diference: I am using Tomcat 4.0.3

 I saw also some comments about remove the Esql files. But I will need SQL
connection to Firebird or PostgreSQL.

 I review also all the mailing list and it appears nobody had resolved this
problem.

 Please tell me if we can do something to get working Cocoon2.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




keep url

2002-05-06 Thread Hiloliddin Karimov

Hi all,

I have Login page and action pages ( for example add-action, update-action,
delete-action, ... ).
And all action pages need authorization.
So, I want that when not authorized client go to the action page (
add-action.html ), to keep the url ( add-action.html ) and redirect to the
Login page, after successfully authorization redirect again to the kept url
( add-action.html ).
Can I keep url to session in the sitemap? how?
or how can I do it?
here what I have in the sitemap:

  map:match pattern=*-action.html
map:act type=session-validator
  map:parameter name=descriptor
value=context://myapp4/descriptors/params.xml/
  map:parameter name=validate value=username/

  map:match pattern=*-action.html
map:act set=process
  map:parameter name=descriptor
value=context://myapp4/templates/user_form.xml/
  map:generate type=serverpages
src=templates/confirm_action.xsp/
  map:transform src=stylesheets/myapp.xsl/
  map:serialize/
/map:act

map:generate type=serverpages src=templates/{1}_action.xsp/
map:transform src=stylesheets/myapp.xsl/
map:serialize/
  /map:match

/map:act
!-- here I must keep url {1}_action.xsp --
map:redirect-to uri=login.html/
  /map:match


  map:match pattern=login.html
map:act type=form-validator
  map:parameter name=descriptor
value=context://myapp4/descriptors/params.xml/
  map:parameter name=validate value=username,password/
  map:act type=db-authenticator
map:parameter name=descriptor
value=context://myapp4/descriptors/auth.xml/
!-- here redirect to kept url --
map:redirect-to uri=kept-action.html/
  /map:act
/map:act
map:generate type=serverpages src=templates/login.xsp/
map:transform src=stylesheets/myapp.xsl/
map:serialize/
  /map:match

Thanks lot,
~Hill

Cocoon 2.0; Tomcat 4.0; JDK SDK 1.3.1; OS WinNT 4.0;

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




How do I use tag libraries in XSP pages?

2002-05-06 Thread Chris . Clark

Hi

I have a JSP page from an old prototype application which used struts on
Weblogic 5.1

Is it possible to use an XSP page instead, and include the tag libraries
inside the XSP page?

How do you use external tag libraries in XSP pages?

TIA,
Chris.

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon 2, Batik, URL encoding, bug? (long-ish, sorry)

2002-05-06 Thread Vadim Gritsenko

 From: Daniel Vogelheim [mailto:[EMAIL PROTECTED]]
 
 Hello,
 
 I have a problem with non-English letters in URLs. I suspect it's a
 bug, but I'm not sure where exactly the problem is. So I think it's
 best to give a description of what I'm doing:
 
 I want to automatically create text buttons with Batik: First, I
 create the graphics in StarOffice and save it as .svg file. The Cocoon
 pipeline then reads this, a simple XSLT script exchanges the  text in
 the .svg file with part of the URL, and then Batik renders it as JPEG.
 
 The corresponding pipeline definition looks like this:
  map:pipeline
   map:match pattern=xxx/auto-img/*/*.jpg
map:generate src=xxx/auto-img/{1}.svg/
map:transform src=xxx/auto-img/auto-img.xsl type=xslt
 map:parameter name=text value={2}/
/map:transform
map:serialize type=svg2jpeg/
   /map:match
 
 The auto-img.xsl is a dead simple script consisting of the well-known
 XSLT copy rule, and one other rules which exchanges the text REPLACE
 with {$text}.
 
 Result: The url xxx/auto-img/button/Hello%20World.jpg delivers a fancy
 graphical button based on button.svg, saying Hello World.
 
 I use this from another style sheet which reads elements
   menu href=target.htmldescription/menu
 and translates them into:
   a href=target.html
img src=xxx/auto-img/button/description.jpg/
   /a
 
 Result: Nice looking graphical menus with very little effort.
 
 All of this actually works, and took me only 1.5 hours. :-)))
 
 But the problem is... it doesn't work with non-ASCII letters. E.g. if
 my text contains German Umlauts (vowels a,o,u with two dots on them),
 the resulting button displays two arbitrary characters.
 
 I suspect what goes bad is the URL encoding (i.e. encoding 'special'
 characters as %xx escape sequences). I think at some point the string
 gets converted into URLs using UTF-8, but elsewhere gets decoded in
 some 8-bit character set. Thus, I get two garbage characters where I
 expected my Umlaut.
 
 My questions are:
 
 - How does Cocoon encode URLs? As UTF-8, with %xx escapes?

In what place? In HTML you wrote above:

img src=xxx/auto-img/button/description.jpg/

? Cocoon encodes here all the text to the encoding you specify for
serialzer. Then this is read and interpreted by browser, which in turn
encodes this into something when sending HTTP request to get a picture.
This request then is processed and decoded by servlet engine.


 - I would think this to be a common problem. Are there
 URL-encoding/decoding methods available in XSLT that I could use to
 manually solve the problem?

I would suggest create URLs without national characters as this (AFAIU)
will require testing on all browsers under different OS and region
settings to just make sure that browser/os/region combo behaves as
expected.

One way is to issue URLs like xxx/auto-img/button/number, and have
number-to-text mapping somewhere (say, session - like fragment
extractor does).

See also: http://www.w3.org/Addressing/rfc1738.txt, 2.2. URL Character
Encoding Issues. They talk only about US-ASCII character set.


 (I checked the XSLT standard, and it doesn't have this. I also checked
 the library of extension functions on the Xalan page.)
 
 - How can I find out where the encoding (or decoding) actually goes
 wrong? So far, I can only see the outcome, but I don't know how to do
 debugging on this.

You can use Catalina's Valve
className=org.apache.catalina.valves.RequestDumperValve/ to see
what's going on (see tomcat/config/server.xml).

Vadim
 
 Thanks for all answers...
 
 Sincerely,
 Daniel
 
 
 P.S.: I noticed that in my setup Batik has terrible kerning problems:
 All characters are of equals width! 'i' and 'l' leave huge gaps, and
 'm' overlaps with following letters. Is this a known problem of Batik,
 or is maybe something wrong with my environment? (e.g. fonts?)


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Can't connect to MySQL with Cocoon 2

2002-05-06 Thread Vadim Gritsenko

 From: Daniel Vogelheim [mailto:[EMAIL PROTECTED]]
 
 Hello,
 
 You can install *headless X* (Xvfb) which is BTW faster than X.
 
 Yes, I had already discovered this in the FAQ, but had hoped to get
 away without. I'll first try the configuration that Conrad F. D'Cruz
 sent (btw, thanks Conrad!), to make sure I can't fix it in my
 configuration. If that doesn't work, I will install Xvfb. Either way,
 I think that problem is solved.
 
 Or you
 can just *not* install Batik (delete the batik jar and compile
cocoon).
 The samples may have to be tweaked not to use Batik, but it will
work.
 
 ... but I _want_ to use Batik. And MySQL. But not X!  ;-)

RTFM http://xml.apache.org/cocoon/installing/index.html: Headless UNIX
and PJA

Vadim

 
 Thanks.
 
 Sincerely,
 Daniel
 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko

 From: Michael Cortez [mailto:[EMAIL PROTECTED]]
 
 Now that I've solved my DocBook rendering problem, I'm getting a new
 problem.
 
 Approximately every other request fails with a null pointer exception.
 Attached below is the full stack trace.
 
 I noticed, combing through it that it was either trying to setup or
use
 caching, but my setup is using the Xindice access (which from the
 documentation, I believed could not be cached.)  So is it possible
that
 cocoon is trying to cache or use a cache, but can't?

Don't think so. You have document() function somewhere, and for some
reason, Cocoon failed to resolve the document:

 at

org.apache.cocoon.components.xslt.XSLTProcessorImpl.resolve(XSLTProcesso
rImp
 l.java:428)

What cocoon version do you have? Or, what is the version of the
XSLTProcessorImpl class? You can browse cvs.apache.org to see the source
of this class if you don't have src distro.

Vadim


 Is there a way to force caching off (so that I can test my
hypothesis?)
 
 
 
 Thanks,
 --
 Mike
 
 
 
 The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:
 
 Exception during processing of cocoon://ogc-gen/Item13
 
 More precisely:
 
 org.apache.cocoon.ProcessingException: Exception during processing of
 cocoon://ogc-gen/Item13: java.lang.NullPointerException
 
 
 
 Full stack trace:
 
 Original exception : java.lang.NullPointerException
 at

org.apache.cocoon.components.xslt.XSLTProcessorImpl.resolve(XSLTProcesso
rImp
 l.java:428)
...
 at

org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:9
1)
 at

org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.j
ava:
 157)
...


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: dispatch to new window in web browser possible?

2002-05-06 Thread Vadim Gritsenko

 From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
 
 There is NO WAY you can open a new window from the server side.

Thanks GOD it is so!!! Otherwise web would be nightmare...


 Client side JavaScript (or VBscript in IE for the picky ones) is the
only
 way to do this.  There are different approaches to your problem, but
they
 all involve some client side coding.

From the start of this thread, nobody sent to RTFM yet, so here it is:
http://www.w3.org/TR/html4/
http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm

Vadim

 
 Bert
 
 At 19:09 4/05/2002 +0200, you wrote:
 
 Thanks for your reply. I considered form ... target=blank as well
before
 I posted this question. However you should know that currently my
 architecture utilizes only one form trag to which various user
inputs
 (e. g. buttons)
 submit. On serverside I gather the information which action was
intended.
 The problem is that there is only one single button within my client
view
 that
 would require to open a new browser window. Any others should remain
updating
 the same browser window. Therefore I was asking if there is a
possibility
 that cocoon could create a new browser window.
 
 As a workaround I'm doing it as follows however in a future release
of my
 application I'd like to avoid javascript at all:
 
 form action=/xxx method=get
 input name=process type=hidden
 ...
  input type=submit
  onclick=document.forms[0].process.value='regular'
  value= A regular action that should update current
view /
 ...
  input type=submit
onclick=document.forms[0].process.value='new',
 document.forms[0].target='_blank'
  value=open new browser window! /
 ...
 /form
 
 It seems that there is no way out to use my current design without
 javascript.
 
 Regards,
 
 Harald
 
 At 09:41 3/05/2002 +0200, you wrote:
  You can achieve this in HTML by setting the target of your form to
  _blank which will post the results to a newly openned window.
  The javascript solution is better if you want more control over how
the
  newly openned window looks.
  
  Andrew
  
  On Fri, 2002-05-03 at 09:38, yuryx wrote:
[EMAIL PROTECTED] wrote:
   
Currently my application consists of cocoon-actions that invoke
xsp/xsl
files upon requests. As normal the new output always refreshes
the
client's
browser view.
Based on some calculations at the actions I'm required to
delegate the
response not to the current browser window but to a newly
opened
browser window.
An examle would be a printable view of a web page. Is this
possible
with
cocoon2? How could I accomplish it?

Thanks for your comments!

Harald

try use javascript for open new window, and submit form within
it.
Yury.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: JSP Generator

2002-05-06 Thread Chris Foo

Hi,

Has anyone had difficulties with the JSP Generator and applications (i.e
sub-sitemap) _not_ being located in the directory
$TOMCAT_HOME%webapps\cocoon\? I receive the error message, The root
element is required in a well-formed document. In the main sitemap, I have
mounted a sub-sitemap:

map:match pattern=myapp/**
map:mount uri-prefix=admin src=file:///d:/myapp/ 
check-reload=yes/
/map:match

and in the sub-sitemap:

map:match pattern=*
map:generate type=jsp src={1}.jsp/
map:serialize type=html/
/map:match

  There is a bug error that is listed on the page
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2631, however, I am
unsure whether it is the same problem. Any suggestions would be much
appreciated..

Chris


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: How to put user data into SunspotDemoPortal-session at logon time

2002-05-06 Thread Carsten Ziegeler

The authentication framework uses a so called authentication resource
to authenticate the user. If this authentication is successful, the
authentication resources delivers some XML for the user.
This XML can contain any information about this user in XML you
want. For the demo portal, the file sunrise-user.xml contains
all users and their information, you can simply add your data
there.

This information can be retrieved inside the portal using
the session transformer. By a session:getxml context=authentication
path=// you get the XML, the authentication resource delivered
for the current user. By specifying the path attribute you
can selectivly grep some data out of the session context.

HTH

Carsten 

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
http://www.s-und-n.de   mailto: [EMAIL PROTECTED]

The Cocoon Book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
The new weblog homepage: http://ziegeler.bei.t-online.de



-Original Message-
From: sheshadri [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 9:16 AM
To: [EMAIL PROTECTED]
Subject: How to put user data into SunspotDemoPortal-session at logon time


Hello,
I need to put some user information in the Sunspot demo portal 
extract the information from the session.
can any one please guide as to how do i go about at it .

Thanx,
Sheshadri

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




AW: Cocoon sunSpot vs. Jetspeed / User Management and Authentication

2002-05-06 Thread Hochsteger Andreas /INFO-MA

Hi!

Thank you for your fast response!
Nice to hear, that sunRaise is already mature enough to be used in
production environments.

My question regarding portlets wasn't only related to jetspeed.
There exists Java JSR 168 Portlet Specification
(http://jcp.org/jsr/detail/168.jsp) which deals with that.
The aim is to provide a way to exchange portlets (parts of a portal) between
different portals.
AFAIK jetspeed supports this standard as well as many new CMS do.
IBM and Sun are promoting this as the building blocks for Portals and that's
why I'm so interested in it.

You suggested to use connectors for new authentication mechanisms.
Is something similar possible for portlets too?
I mean, can I develop normal portlets as the standard suggests it (with the
Portlet API) and use them from within a sunlet?
Or should it be the other way round?

Bye,

Andreas Hochsteger
ÖAMTC Web-  Infomanagement
E-Mail:   mailto:[EMAIL PROTECTED]
Telefon:  ++43 1 711 99 - 1353 
Internet: http://www.oeamtc.at


 -Ursprüngliche Nachricht-
 Von: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 06. Mai 2002 11:02
 An: [EMAIL PROTECTED]
 Betreff: RE: Cocoon sunSpot vs. Jetspeed / User Management and
 Authentication
 
 
  -Original Message-
  From: Hochsteger Andreas /INFO-MA 
 [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 06, 2002 10:44 AM
  To: '[EMAIL PROTECTED]'
  Subject: Cocoon sunSpot vs. Jetspeed / User Management and
  Authentication
 
 
  Hi!
 
  I just read parts of the sunSpot documentation and got a 
 dejavu feeling,
  while reading about sunlets and things like that. It seems that
  Jetspeed has
  a similar functionality (as far as I understand it) but 
 Jetspeed is never
  mentioned in the docs.
 
 Jetspeed and Cocoon are two different projects with the same 
 aim: a portal.
 
  Here are my questions:
  * Is sunSpot something similar to Jetspeed? If so, why 
 doesn't it use the
  already existing Jetspeed?
 The main difference between Jetspeed and sunspot is that 
 sunspot is build
 on top of cocoon, that means you can use all features of 
 cocoon like the
 xml processing pipelines, stylesheets for layout etc to build 
 your portal.
 Jetspeed is a separate technology, so if you want to use 
 cocoon *and* if
 you want a portal, jetspeed is (afaik) not an alternative.
 
  * What's the difference / similarity between sunlets and 
 portlets? Can
  portlets be part of a sunlet?
 A sunlet is simply a URI which produces XML, this can either 
 be a Cocoon
 XML pipeline, or an http request or any other URI. I don't know the
 jetspeed portlets, but if they are accessible via a URI, yes 
 you can use
 them as a sunlet.
 
  * How stable/usable is sunRise and its components for 
 production use? When
  can we expect a first stable release (I don't need an exact date,
  just tell
  me in some weeks or in some years ;-)?
 sunrise and sunspot are stable. Both are a donnation of our company
 (SN AG, Germany) and are just for more than one year in 
 various production
 environments. An official cocoon release containing those two parts is
 expected in summer this year.
 
  * Are there any attempts to support User Management and 
 Authentication
  Standards like XACML 
 (http://www.oasis-open.org/committees/xacml/), RBAC
  (http://csrc.nist.gov/rbac/), SAML
  (http://www.oasis-open.org/committees/security/), ...?
 
 Sorry, I don't know those, but the sunrise authentication mechanism is
 very flexible. sunrise itself is only a framework where you 
 can plug-in
 your authentication scheme, so I generally would say, if 
 these standards
 are usuable within a java servlet you can simply use it in sunrise
 by writing a simple connector (and believe me this should be a really
 simple connector and not a hugh project by itself).
 
  We are currently evaluating new technology for our web
  architecture and thus
  evaluating User Management and Authentication solutions too which
  integrate
  very well within Websites and Web-Applications and allow 
 customization,
  Single-sign-on and Profiling of User- and Application data,
  possible backed
  by a LDAP authentication.
  Is Cocoon sunRise the way to go or am I looking at the wrong place?
 
 This is not an easy question for *me*;)
 In fact, the answer is simple: if you want
 to use Cocoon for building your web application, sunRise is afaik the
 only way to go - and it's a good choice, too :)
 If you don't want to use Cocoon, well, you can use sunRise.
 
 With sunRise you can do single-sign-on, Profiling of User- and
 Application data, LDAP authentication and many more. We already have
 done this in some projects...
 
 Just let me know if I can provide you more information.
 
 
 Carsten
 
 Open Source GroupsunShine - b:Integrated
 
 Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 http://www.s-und-n.de   mailto: [EMAIL PROTECTED]
 

RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Lai, Harry

Hi Chris,

Instead of just using xsp:expr, you need to also use the util logicsheet
(comes with Cocoon 2).  If you have that logicsheet declared in the util
namespace, for example, you can do the following in your XSP:

...
xsp:logic
MyXmlSource xmlSource = new MyXmlSource();

... init xmlSource and do whatever you need to prepare content ...

String xmlContent = xmlSource.getContent();


util:include-exprutil:exprxsp:exprxmlContent/xsp:expr/util:expr/u
til:include-expr
/xsp:logic
...

If you do this, the xml generated by your source will be included as xml
elements, not just as a string.  Hope that helps!

Harry

-Original Message-
From: Chris Wolf [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 2:04 PM
To: [EMAIL PROTECTED]
Subject: XSP + Dynamic XML generator ??



I am working on a project where we have a datasource
which produces XML based on certain parameters.  I would
like to use this as input to an XSP page which defines
overall content structure (semantics) then, finally, 
apply a stylsheet appropriate for the invoking client.


Problem:  It seems that a pipeline must start
with one, and only one Generator.  The problem is 
that if I create an implementation of Generator
which produces the XML, then I cannot use XSP
(since the XSP code handler is itself a Generator).

I then tried to implement the XML generator from an
XSP page by invoking a method using xsp:expr, but then
the whole document is treated as a single string.

What I would like to do is some thig like:

Ideas anyone?

+---+
| XML Generator |
+--++
   |
   v
+---+
| XSP structure |
+--++
   |
+--v---+
| XSL presentation |
+--+---+
   |
+--v+
| Serializer|
+---+

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon sunSpot vs. Jetspeed / User Management and Authentication

2002-05-06 Thread Carsten Ziegeler

 -Original Message-
 From: Hochsteger Andreas /INFO-MA [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 4:43 PM
 To: '[EMAIL PROTECTED]'
 Subject: AW: Cocoon sunSpot vs. Jetspeed / User Management and
 Authentication


 Hi!

 Thank you for your fast response!
 Nice to hear, that sunRaise is already mature enough to be used in
 production environments.

 My question regarding portlets wasn't only related to jetspeed.
 There exists Java JSR 168 Portlet Specification
 (http://jcp.org/jsr/detail/168.jsp) which deals with that.
 The aim is to provide a way to exchange portlets (parts of a
 portal) between
 different portals.
Yes, the aim of the cocoon portal framework is to support this JSR
somehow (see below)

 AFAIK jetspeed supports this standard as well as many new CMS do.

AFAIK this is not true, IBM originally started the jsr 162 which
is based on jetspeed, then Sun initialized the jsr 167 as a counterpart
to the IBM initiative.
Fortunately, these two approaches are now combining forces in
the JSR 168.

 IBM and Sun are promoting this as the building blocks for Portals
 and that's
 why I'm so interested in it.

Yes, blocks and pluggable deployment are the key words. Cocoon itselt
will become pluggable with its own block concept and either this
or the portlet api or both will also be used someday for building
portlets.

 You suggested to use connectors for new authentication mechanisms.
 Is something similar possible for portlets too?
Currently a sunlet is a URI, so you can call anything you want for
a sunlet, like for example another servlet, JSP, a distant server
an internal Cocoon pipeline which calls in turn another servlet
etc. So, the answer is: yes, you can write connectors here, too.

 I mean, can I develop normal portlets as the standard suggests it
 (with the
 Portlet API) and use them from within a sunlet?
 Or should it be the other way round?

The standard is not yet available and the final draft is expected
in October this year, so until then we can't make any definite answer.
It seems that the JSR is based on the servlet api, so as Cocoon is
(can be used as) a servlet, this should be no problem.
The always working way should be to write a sunlet which calls
a portlet - that should be easy and straightforward.

But perhaps the cocoon portal will directly support the portlet
api - I personally don't like the connection to the servlet api
and I fear that porlets will deal will io streams instead of
sax streams - but we will see. Hopefully I'm wrong :)

Carsten

Carsten Ziegeler   http://ziegeler.bei.t-online.de
==
 Apache Cocoon - Consulting, Training, Projects
Open Source Group   -   SN AG Germany   -   http://www.s-und-n.de
--
The Cocoon Book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
==


 Bye,

 Andreas Hochsteger
 ÖAMTC Web-  Infomanagement
 E-Mail:   mailto:[EMAIL PROTECTED]
 Telefon:  ++43 1 711 99 - 1353
 Internet: http://www.oeamtc.at


  -Ursprüngliche Nachricht-
  Von: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 06. Mai 2002 11:02
  An: [EMAIL PROTECTED]
  Betreff: RE: Cocoon sunSpot vs. Jetspeed / User Management and
  Authentication
 
 
   -Original Message-
   From: Hochsteger Andreas /INFO-MA
  [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 06, 2002 10:44 AM
   To: '[EMAIL PROTECTED]'
   Subject: Cocoon sunSpot vs. Jetspeed / User Management and
   Authentication
  
  
   Hi!
  
   I just read parts of the sunSpot documentation and got a
  dejavu feeling,
   while reading about sunlets and things like that. It seems that
   Jetspeed has
   a similar functionality (as far as I understand it) but
  Jetspeed is never
   mentioned in the docs.
 
  Jetspeed and Cocoon are two different projects with the same
  aim: a portal.
  
   Here are my questions:
   * Is sunSpot something similar to Jetspeed? If so, why
  doesn't it use the
   already existing Jetspeed?
  The main difference between Jetspeed and sunspot is that
  sunspot is build
  on top of cocoon, that means you can use all features of
  cocoon like the
  xml processing pipelines, stylesheets for layout etc to build
  your portal.
  Jetspeed is a separate technology, so if you want to use
  cocoon *and* if
  you want a portal, jetspeed is (afaik) not an alternative.
 
   * What's the difference / similarity between sunlets and
  portlets? Can
   portlets be part of a sunlet?
  A sunlet is simply a URI which produces XML, this can either
  be a Cocoon
  XML pipeline, or an http request or any other URI. I don't know the
  jetspeed portlets, but if they are accessible via a URI, yes
  you can use
  them as a sunlet.
 
   * How stable/usable is sunRise and its components for
  production use? When
   can we expect a first stable release (I 

CocoBlog 0.0.1 Released!

2002-05-06 Thread Ugo Cei

Announcing the first public release of CocoBlog.


CocoBlog is the code on which my blog (http://www.beblogging.com/blog/) 
runs and is based on Apache Cocoon and Apache Xindice.

If you have some knowledge of XML and Java and are brave enough, you can 
grab the source distribution at 
http://www.beblogging.com/dist/cocoblog-latest.zip .

The only docs available at the moment are some very concise installation 
instructions available at http://www.beblogging.com/blog/install .

Play with it, if you like, and remember, this is Open Source software, 
so if you have some itches to scratch, your contributions are welcome!

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: How do I use tag libraries in XSP pages?

2002-05-06 Thread Vadim Gritsenko

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 
 Hi
 
 I have a JSP page from an old prototype application which used struts
on
 Weblogic 5.1
 
 Is it possible to use an XSP page instead, and include the tag
libraries
 inside the XSP page?

What tag libraries? XSP tag libraries? Or JSP tag libraries?

JSP tag libraries can be used in JSP pages only.

Vadim


 How do you use external tag libraries in XSP pages?
 
 TIA,
 Chris.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CocoBlog 0.0.1 Released!

2002-05-06 Thread Eduardo Godoy

Sorry, but what is cocoblog for ?

Eduardo.
- Original Message - 
From: Ugo Cei [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, May 06, 2002 11:04 AM
Subject: CocoBlog 0.0.1 Released!


 Announcing the first public release of CocoBlog.
 
 
 CocoBlog is the code on which my blog (http://www.beblogging.com/blog/) 
 runs and is based on Apache Cocoon and Apache Xindice.
 
 If you have some knowledge of XML and Java and are brave enough, you can 
 grab the source distribution at 
 http://www.beblogging.com/dist/cocoblog-latest.zip .
 
 The only docs available at the moment are some very concise installation 
 instructions available at http://www.beblogging.com/blog/install .
 
 Play with it, if you like, and remember, this is Open Source software, 
 so if you have some itches to scratch, your contributions are welcome!
 
 Ugo
 
 -- 
 Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez

 Don't think so. You have document() function somewhere, 
 and for some reason, Cocoon failed to resolve the document:

What I can't figure out is why the page renders at all!  When I start up
Cocoon, my first request to the page works.

Then the next 1-3 requests return the null pointer exception, followed by 1
good request, then nulls again, then 1 good request, etc, etc, etc.

I'm requesting the exact same URL, which maps to the exact same matchers in
the sitemap, and iterates over exactly the same data each time 8-(  Hence
why I thought it may have something to do with caching.


 What cocoon version do you have? 

Latest Binary Distribution.

 Or, what is the version of the XSLTProcessorImpl class? 

Uh...  I didn't chance any source or configuration, other then switching
over to Saxon.  To switch over I replaced the Xalan jars with Saxon 6.5.1
jars.

=-=-=-

After more extensive debugging, I'm seeing an error in the Cocoon error log
pointing at one of my XSL sheets -- but I'm not understanding the error.
I've included the error message, stack trace, and XSL sheet below.

Essentially what the style sheet does, is strip off the xsp:page node that
gets stuck into a page generated from an XSP page.  Perhaps someone has a
better idea of how this can be done.

Thanks,
Mike

==
XSL sheet (strip_xsp.xsl)

-
?xml version=1.0?

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp=http://apache.org/xsp;


xsl:template match=xsp:page
xsl:apply-templates select=./*/
/xsl:template

xsl:template match=@*|node()
priority=-2xsl:copyxsl:apply-templates
select=@*|node()//xsl:copy/xsl:template
xsl:template match=text() priority=-1xsl:value-of
select=.//xsl:template

/xsl:stylesheet
-



==
Error message (placed in log even on successful rendering)
-

ERROR   (2002-05-06) 08:18.29:817   [core.xslt-processor]
(/cocoon/ogc/Item13.htm) HttpProcessor[8080][4]/TraxErrorHandler: Error in
TraxTransformer: file:/C:/tomcat4/webapps/cocoon/ogc/strip_xsp.xsl; Line 6;
Column -1; 
; SystemID: file:/C:/tomcat4/webapps/cocoon/ogc/strip_xsp.xsl; Line#: 6;
Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is
not allowed on this element
at
com.icl.saxon.style.StyleElement.compileError(StyleElement.java:849)
at
com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208
)
at
com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287)
at
com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:50
1)
at
com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351)
at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.ja
va:176)
at
com.icl.saxon.TemplatesHandlerImpl.getTemplates(TemplatesHandlerImpl.java:70
)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:238)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:204)
at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
295)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:279)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:142)
at
org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java
:283)
at
org.apache.cocoon.components.source.SitemapSource.init(SitemapSource.java:
197)
at
org.apache.cocoon.components.source.CocoonSourceFactory.getSource(CocoonSour
ceFactory.java:96)
at
org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandle
rImpl.java:176)
at
org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnvironmen
t.java:346)
at
org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:103)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:202)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:279)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:142)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:320)
at
org.apache.cocoon.www.sitemap_xmap.matchd0e1599(C:\tomcat4\work\localhost\co
coon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:12344)
at
org.apache.cocoon.www.sitemap_xmap.process(C:\tomcat4\work\localhost\cocoon\
cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3919)
at

Re: CocoBlog 0.0.1 Released!

2002-05-06 Thread Ugo Cei

Eduardo Godoy wrote:
 Sorry, but what is cocoblog for ?

Coco[on-based ]Blog of course ;).

Ok, ok, it's not the best name on earth, but I couldn't find a better 
one. DO you have any suggestions?

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




AW: Cocoon sunSpot vs. Jetspeed / User Management and Authentication

2002-05-06 Thread Hochsteger Andreas /INFO-MA

Thanks!
You do a really good job in supporting this list and your information was
very helpful for me.

 -Ursprüngliche Nachricht-
 Von: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 06. Mai 2002 17:13
 An: [EMAIL PROTECTED]
 Betreff: RE: Cocoon sunSpot vs. Jetspeed / User Management and
 Authentication
 
 
  -Original Message-
  From: Hochsteger Andreas /INFO-MA 
 [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 06, 2002 4:43 PM
  To: '[EMAIL PROTECTED]'
  Subject: AW: Cocoon sunSpot vs. Jetspeed / User Management and
  Authentication
 
 
  Hi!
 
  Thank you for your fast response!
  Nice to hear, that sunRaise is already mature enough to be used in
  production environments.
 
  My question regarding portlets wasn't only related to jetspeed.
  There exists Java JSR 168 Portlet Specification
  (http://jcp.org/jsr/detail/168.jsp) which deals with that.
  The aim is to provide a way to exchange portlets (parts of a
  portal) between
  different portals.
 Yes, the aim of the cocoon portal framework is to support this JSR
 somehow (see below)
 
  AFAIK jetspeed supports this standard as well as many new CMS do.
 
 AFAIK this is not true, IBM originally started the jsr 162 which
 is based on jetspeed, then Sun initialized the jsr 167 as a 
 counterpart
 to the IBM initiative.
 Fortunately, these two approaches are now combining forces in
 the JSR 168.
 
  IBM and Sun are promoting this as the building blocks for Portals
  and that's
  why I'm so interested in it.
 
 Yes, blocks and pluggable deployment are the key words. 
 Cocoon itselt
 will become pluggable with its own block concept and either this
 or the portlet api or both will also be used someday for building
 portlets.
 
  You suggested to use connectors for new authentication mechanisms.
  Is something similar possible for portlets too?
 Currently a sunlet is a URI, so you can call anything you want for
 a sunlet, like for example another servlet, JSP, a distant server
 an internal Cocoon pipeline which calls in turn another servlet
 etc. So, the answer is: yes, you can write connectors here, too.
 
  I mean, can I develop normal portlets as the standard suggests it
  (with the
  Portlet API) and use them from within a sunlet?
  Or should it be the other way round?
 
 The standard is not yet available and the final draft is expected
 in October this year, so until then we can't make any definite answer.
 It seems that the JSR is based on the servlet api, so as Cocoon is
 (can be used as) a servlet, this should be no problem.
 The always working way should be to write a sunlet which calls
 a portlet - that should be easy and straightforward.
 
 But perhaps the cocoon portal will directly support the portlet
 api - I personally don't like the connection to the servlet api
 and I fear that porlets will deal will io streams instead of
 sax streams - but we will see. Hopefully I'm wrong :)
 
 Carsten
 
 Carsten Ziegeler   http://ziegeler.bei.t-online.de
 ==
  Apache Cocoon - Consulting, Training, Projects
 Open Source Group   -   SN AG Germany   -   http://www.s-und-n.de
 --
 The Cocoon Book:
 http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
 ==
 
 
  Bye,
 
  Andreas Hochsteger
  ÖAMTC Web-  Infomanagement
  E-Mail:   mailto:[EMAIL PROTECTED]
  Telefon:  ++43 1 711 99 - 1353
  Internet: http://www.oeamtc.at
 
 
   -Ursprüngliche Nachricht-
   Von: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
   Gesendet: Montag, 06. Mai 2002 11:02
   An: [EMAIL PROTECTED]
   Betreff: RE: Cocoon sunSpot vs. Jetspeed / User Management and
   Authentication
  
  
-Original Message-
From: Hochsteger Andreas /INFO-MA
   [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:44 AM
To: '[EMAIL PROTECTED]'
Subject: Cocoon sunSpot vs. Jetspeed / User Management and
Authentication
   
   
Hi!
   
I just read parts of the sunSpot documentation and got a
   dejavu feeling,
while reading about sunlets and things like that. It seems that
Jetspeed has
a similar functionality (as far as I understand it) but
   Jetspeed is never
mentioned in the docs.
  
   Jetspeed and Cocoon are two different projects with the same
   aim: a portal.
   
Here are my questions:
* Is sunSpot something similar to Jetspeed? If so, why
   doesn't it use the
already existing Jetspeed?
   The main difference between Jetspeed and sunspot is that
   sunspot is build
   on top of cocoon, that means you can use all features of
   cocoon like the
   xml processing pipelines, stylesheets for layout etc to build
   your portal.
   Jetspeed is a separate technology, so if you want to use
   cocoon *and* if
   you want a portal, jetspeed is (afaik) not an alternative.
  
* 

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko

 From: Michael Cortez [mailto:[EMAIL PROTECTED]]
 
  Don't think so. You have document() function somewhere,
  and for some reason, Cocoon failed to resolve the document:
 
 What I can't figure out is why the page renders at all!  When I start
up
 Cocoon, my first request to the page works.
 
 Then the next 1-3 requests return the null pointer exception, followed
by 1
 good request, then nulls again, then 1 good request, etc, etc, etc.
 
 I'm requesting the exact same URL, which maps to the exact same
matchers in
 the sitemap, and iterates over exactly the same data each time 8-(
Hence
 why I thought it may have something to do with caching.
 
 
  What cocoon version do you have?
 
 Latest Binary Distribution.
 
  Or, what is the version of the XSLTProcessorImpl class?
 
 Uh...  I didn't chance any source or configuration, other then
switching
 over to Saxon.  To switch over I replaced the Xalan jars with Saxon
6.5.1
 jars.
 
 =-=-=-
 
 After more extensive debugging, I'm seeing an error in the Cocoon
error log
 pointing at one of my XSL sheets -- but I'm not understanding the
error.
 I've included the error message, stack trace, and XSL sheet below.
 
 Essentially what the style sheet does, is strip off the xsp:page
node that
 gets stuck into a page generated from an XSP page.

What do you mean - xsp:page stuck? It should never ever happen after XSP
is correctly processed by the serverpages generator. May be you have
problem with the XSP?

Vadim


 Perhaps someone has a
 better idea of how this can be done.
 
 Thanks,
 Mike
 
 ==
 XSL sheet (strip_xsp.xsl)
 
 -
 ?xml version=1.0?
 
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:xsp=http://apache.org/xsp;
 
 
 xsl:template match=xsp:page
 xsl:apply-templates select=./*/
 /xsl:template
 
 xsl:template match=@*|node()
 priority=-2xsl:copyxsl:apply-templates
 select=@*|node()//xsl:copy/xsl:template
 xsl:template match=text() priority=-1xsl:value-of
 select=.//xsl:template
 
 /xsl:stylesheet
 -
 
 
 
 ==
 Error message (placed in log even on successful rendering)
 -
 
 ERROR   (2002-05-06) 08:18.29:817   [core.xslt-processor]
 (/cocoon/ogc/Item13.htm) HttpProcessor[8080][4]/TraxErrorHandler:
Error in
 TraxTransformer: file:/C:/tomcat4/webapps/cocoon/ogc/strip_xsp.xsl;
Line 6;
 Column -1;
 ; SystemID: file:/C:/tomcat4/webapps/cocoon/ogc/strip_xsp.xsl; Line#:
6;
 Column#: -1
 javax.xml.transform.TransformerConfigurationException: Attribute
xmlns: is
 not allowed on this element
   at
 com.icl.saxon.style.StyleElement.compileError(StyleElement.java:849)
   at

com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java
:208
 )
...
   at

org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandle
r(XS
 LTProcessorImpl.java:238)
...


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Form Data to XML Document

2002-05-06 Thread Arda Balci

What is the best way to get the user data from a form,
and to create a new xml document with that form data,
or update an existing xml document ?

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CocoBlog 0.0.1 Released!

2002-05-06 Thread bob phillips

Congratulations!!!

the war installs using 2.1-dev, tomcat 4.0b2, jdk-1.4

this is running on a win2k system behind my firewall.

the built with apache icon, the index.rss icon, the xmlcoffeemug icon, and 
the index92 icon
did not make it with the war... I go looking for them

the xindice Icon is a very colorful hash of pixel blocks

I'll play around on linux, next.



At 05:04 PM 5/6/2002 +0200, you wrote:
Announcing the first public release of CocoBlog.


CocoBlog is the code on which my blog (http://www.beblogging.com/blog/) 
runs and is based on Apache Cocoon and Apache Xindice.

If you have some knowledge of XML and Java and are brave enough, you can 
grab the source distribution at 
http://www.beblogging.com/dist/cocoblog-latest.zip .

The only docs available at the moment are some very concise installation 
instructions available at http://www.beblogging.com/blog/install .

Play with it, if you like, and remember, this is Open Source software, so 
if you have some itches to scratch, your contributions are welcome!

 Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez

 What do you mean - xsp:page stuck? It should never 
 ever happen after XSP is correctly processed by the 
 serverpages generator. May be you have problem with 
 the XSP?

Perhaps it's the way I'm using it...  

In my system, I'm building up a number of DocBook pages from XML fragments
pulled out from Xindice and generated via XSP.

These fragments are built up via a number of small maps in the sitemap.xmap
file, and then aggregated up together to produce a final document.

When I pull from Xindice, for example:
map:aggregate
other-stuff
map:part src=xmldb:xindice://localhost:4080/db/TAP/{1}/#/article/
/map:aggregate

Generates the following result:
==
collection:results xmlns:collection=http://apache.org/cocoon/xmldb/1.0;
query=/article resources=2

collection:result docid=FlarePebbles

article xmlns:src=http://xml.apache.org/xindice/Query;
xmlns:src=http://xml.apache.org/xindice/Query; src:col=/db/TAP/Item13
src:key=FlarePebbles
titleFlare Pebbles/title
paraA bag of twenty pebbles./para
/article

/result

collection:result docid=SleepArrow

article xmlns:src=http://xml.apache.org/xindice/Query;
xmlns:src=http://xml.apache.org/xindice/Query; src:col=/db/TAP/Item13
src:key=SleepArrow
titleSleep Arrow/title
paraOne enchanted arrow./para
/article

/result

/collection:results
==

In this case, I'm only interested in the article elements (and there
children returned) not the collection:results or collection:result
elements, nor am I interested in all the extra namespace, and src junk added
to the article tag.  I'm just interested in the fragments from Xindice.

For my XSPs, which right now are trivial (until I get this thing working) --
I have a similiar situation:

=
xsp:page xmlns:xsp=http://apache.org/xsp;
paraOPEN GAME LICENSE Version 1.0a/para
paraThe following text is the property of.../para
/xsp:page
=

Here I'm not interested in the xsp:page elements, only the fragments
contained within -- but I must have the enclosing xsp:page to create a
root tag, and for the XSP engine to work (or so I think).  In future
versions of this file, there will actually be dynamic content being
generated in there -- right now it's simplified until I get the whole chain
working.


Both of the above XML sources are then aggregated together, with a number of
other sources to build up my file -- but the Xindice example chunk contains
extra elements that I don't want, and the XSP page returns WITH the
xsp:page element still in it, which I don't want.

So I was building up a style sheet that would remove those elements, and
promote their children in the resulting document.


Hence was born, this style sheet to remove the xsp:page element from the
results:

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp=http://apache.org/xsp;


xsl:template match=xsp:page
xsl:apply-templates select=./*/
/xsl:template

xsl:template match=@*|node()
priority=-2xsl:copyxsl:apply-templates
select=@*|node()//xsl:copy/xsl:template
xsl:template match=text() priority=-1xsl:value-of
select=.//xsl:template

/xsl:stylesheet



Any suggestions?

Thanks,
Mike

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CocoBlog 0.0.1 Released!

2002-05-06 Thread Ugo Cei

bob phillips wrote:

 Congratulations!!!

Thank you.

 the built with apache icon, the index.rss icon, the xmlcoffeemug icon, 
 and the index92 icon
 did not make it with the war... I go looking for them
 
 the xindice Icon is a very colorful hash of pixel blocks

This is strange. I run ant war and then:

$ jar tvf build/blog.war | grep images
  0 Mon May 06 19:08:10 CEST 2002 resources/images/
430 Mon May 06 19:08:10 CEST 2002 resources/images/xml.gif
   1694 Mon May 06 19:08:10 CEST 2002 resources/images/xmlCoffeeCup.gif
422 Mon May 06 19:08:10 CEST 2002 resources/images/rss10.gif
   3846 Mon May 06 19:08:10 CEST 2002 resources/images/googleLogo.gif
  13583 Mon May 06 19:08:10 CEST 2002 resources/images/adams_in_memoriam.jpg
   3711 Mon May 06 19:08:10 CEST 2002 resources/images/xindice119x37.jpg
   2558 Mon May 06 19:08:10 CEST 2002 resources/images/cocoon2.gif
   2472 Mon May 06 19:08:10 CEST 2002 resources/images/poweredbycocoon.png
   1667 Mon May 06 19:08:10 CEST 2002 resources/images/apacheCoffeeCup.gif

They seem to be there.

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon and DocBook?

2002-05-06 Thread Omar Alos

 I am using Norman Walsh's DocBook too:
rdf + (xsp + taglib + doocbook)-- xsl-fo -- *
amd I have the same problems: it only works with
simple article but no for complex docbook documents
How do you change Xalan to Saxon?
I try to delete xalan-2.3.1.jar and put saxon jars in
WEB-INF\lib but it doesn't work

Saxon 7.1
Cocoon 2.02
Norman Walsh's DocBook 1.50.1-EXP
Tomcat 3.3a

my pipeline:
  map:match pattern=imprime
map:act type=dame-listado
map:generate src={plantilla}.xsp
type=serverpages/ 
map:generate src=ContratoFacultativo.xsp
type=serverpages/
map:transform src=docbookxsl/fo/miDocbook.xsl/
map:select type=parameter
map:parameter name=parameter-selector-test
value={salida}/
map:when test=pdf
map:serialize type=fo2pdf/
/map:when
map:otherwise
map:serialize type=xml/
/map:otherwise
/map:select
/map:act
   /map:match


my error:

stack-trace

; SystemID:
jar:file:C:/Omar/jakarta-tomcat-3.3a/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line#: 49; Column#: -1
javax.xml.transform.TransformerException: No
implementation of function saxon:system-id is
available
at
net.sf.saxon.style.StyleElement.styleError(StyleElement.java:828)
at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:664)
at
net.sf.saxon.style.XSLWhen.process(XSLWhen.java:72)
at
net.sf.saxon.style.XSLChoose.process(XSLChoose.java:100)
at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
at
net.sf.saxon.style.XSLCallTemplate.process(XSLCallTemplate.java:187)
at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
at
net.sf.saxon.style.XSLForEach.process(XSLForEach.java:107)
at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
at
net.sf.saxon.style.XSLCallTemplate.process(XSLCallTemplate.java:187)
at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
at
net.sf.saxon.style.XSLTemplate.start(XSLTemplate.java:200)
at
net.sf.saxon.Controller.applyTemplates(Controller.java:287)
at
net.sf.saxon.style.XSLApplyTemplates.process(XSLApplyTemplates.java:135)
at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
at
net.sf.saxon.style.LiteralResultElement.process(LiteralResultElement.java:296)
at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
at
net.sf.saxon.style.XSLTemplate.start(XSLTemplate.java:200)
at
net.sf.saxon.Controller.applyTemplates(Controller.java:287)
at net.sf.saxon.Controller.run(Controller.java:197)
at
net.sf.saxon.Controller.transformDocument(Controller.java:1238)
at
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:101)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(Unknown
Source)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(Unknown
Source)
at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
at
org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder.java:704)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.java:997)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:437)
at
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1150)
at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3195)
at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEntityManager.java:2852)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:987)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)
at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at

RE: Cocoon and DocBook?

2002-05-06 Thread Omar Alos

 sorry, I write a bad pipeline. The correct is:

  map:match pattern=imprime
map:act type=dame-listado
map:generate src={plantilla}.xsp
type=serverpages/ 
map:transform src=docbookxsl/fo/miDocbook.xsl/
map:select type=parameter
map:parameter name=parameter-selector-test
value={salida}/
map:when test=pdf
map:serialize type=fo2pdf/
/map:when
map:otherwise
map:serialize type=xml/
/map:otherwise
/map:select
/map:act
   /map:match

Omar


___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Need to replace xalan

2002-05-06 Thread Artur Bialecki


Ok, xalan 2.3.1 and xalan head is horribly broken and from
the number of bugs I doubt will see a working vision this year.

What other XSLT processor can I use that's JAXP compliant, has
node-set extensions and is easily integrated with Cocoon2.

Thanks,

Artur...

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

What I wanted to do
is use Java to perform what would otherwise have to be 
done in XSLT.  I did some performance tests which indicate 
that for certain operations, such as changing the overall
structure of an XML document, using XSLT exhibits
a quadratic rise in time for increasing number of input
elements. Using Java to restructure the document,
it's more linear.  I wanted to use XSLT just for the 
final application of presentation style.

Zack Angelo wrote:
 
 Chris,
 
 Generally speaking, you don't use XSP to transform XML that has already been
 generated, you use it generate XML in the first place.  So it seems that
 you'd want to follow the typical pipeline layout, generate your XML with XSP
 based on parameters gathered from your datasource (perhaps via esql or some
 embedded java code).  Then apply a stylesheet to that and serialize it. So,
 XSP-XSLT-Serialize.
 
 I'm sorry if I'm completely off, I don't quite get what you're trying to do.
 
 -Zack
 
 On 5/3/02 2:03 PM, Chris Wolf [EMAIL PROTECTED] wrote:
 
 
  I am working on a project where we have a datasource
  which produces XML based on certain parameters.  I would
  like to use this as input to an XSP page which defines
  overall content structure (semantics) then, finally,
  apply a stylsheet appropriate for the invoking client.
 
 
  Problem:  It seems that a pipeline must start
  with one, and only one Generator.  The problem is
  that if I create an implementation of Generator
  which produces the XML, then I cannot use XSP
  (since the XSP code handler is itself a Generator).
 
  I then tried to implement the XML generator from an
  XSP page by invoking a method using xsp:expr, but then
  the whole document is treated as a single string.
 
  What I would like to do is some thig like:
 
  Ideas anyone?
 
  +---+
  | XML Generator |
  +--++
   |
   v
  +---+
  | XSP structure |
  +--++
   |
  +--v---+
  | XSL presentation |
  +--+---+
   |
  +--v+
  | Serializer|
  +---+
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

Yes but I really wanted:
 genXML -- Java (via XSP) -- XSLT -- Serialize


I'm thinking from a background in JSP where logic 
can be written in Java either directly or via custom tags.

I'm starting to think the only choice in the C2 framework
is just XSLT.


Dean McGowan wrote:
 
 Can you use 2 transforms instead ie: genXML -- XSLT -- XSLT --
 Serialize ? or does the XSP draw from another data - source .. just kind
 of soundslike you want to re arrange your data then transform ?? could
 be wrong too :)
 
 -Original Message-
 From: Zack Angelo [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 5 May 2002 8:45 AM
 To: [EMAIL PROTECTED]
 Subject: Re: XSP + Dynamic XML generator ??
 
 Chris,
 
 Generally speaking, you don't use XSP to transform XML that has already
 been
 generated, you use it generate XML in the first place.  So it seems that
 you'd want to follow the typical pipeline layout, generate your XML with
 XSP
 based on parameters gathered from your datasource (perhaps via esql or
 some
 embedded java code).  Then apply a stylesheet to that and serialize it.
 So,
 XSP-XSLT-Serialize.
 
 I'm sorry if I'm completely off, I don't quite get what you're trying to
 do.
 
 -Zack
 
 On 5/3/02 2:03 PM, Chris Wolf [EMAIL PROTECTED] wrote:
 
 
  I am working on a project where we have a datasource
  which produces XML based on certain parameters.  I would
  like to use this as input to an XSP page which defines
  overall content structure (semantics) then, finally,
  apply a stylsheet appropriate for the invoking client.
 
 
  Problem:  It seems that a pipeline must start
  with one, and only one Generator.  The problem is
  that if I create an implementation of Generator
  which produces the XML, then I cannot use XSP
  (since the XSP code handler is itself a Generator).
 
  I then tried to implement the XML generator from an
  XSP page by invoking a method using xsp:expr, but then
  the whole document is treated as a single string.
 
  What I would like to do is some thig like:
 
  Ideas anyone?
 
  +---+
  | XML Generator |
  +--++
   |
   v
  +---+
  | XSP structure |
  +--++
   |
  +--v---+
  | XSL presentation |
  +--+---+
   |
  +--v+
  | Serializer|
  +---+
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Stored Procedures in Descriptors?

2002-05-06 Thread Jacob Arnold

I've been adapting the protected login example from the Cocoon docs for my
own Web application, but my company encrypts users' passwords in its Oracle
database. Is it possible to call a stored procedure (to check the password)
from a descriptor? I haven't been able to figure out the syntax for doing
so, if it's possible. I'd like to use a descriptor so I can describe the
process for validating users on protected pages in the pipeline.

Thanks,
Jacob

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




xinclude

2002-05-06 Thread Margrit John

Hi!
I have the two xml files below. In the sitemap I want to generate the xml out 
of these two files. My output (default.xml) is the following:

?xml version=1.0 encoding=UTF-8?
Page xmlns:xi=http://www.w3.org/2001/XInclude;
Content
MainColumn
articles
xi:include href=index.xml/
/articles
/MainColumn
/Content
/Page

Why doesn't it resolve the include?

page.xml:
?xml version=1.0?
Page xmlns:xi=http://www.w3.org/2001/XInclude;
  Content
MainColumn
 articles
   xi:include href=index.xml/
 /articles
/MainColumn
  /Content
/Page

index.xml
?xml version=1.0?
frontpage
articles
  article href=magazin/gesundheit/2002/0508/
  article href=magazin/gesundheit/2002/0465/
  article href=magazin/geist/2002/0470/
/articles
/frontpage

sitemap
  map:match pattern=default.xml
map:generate src=page.xml/
map:serialize type=xml/
  /map:match

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

I looked over most of the examples, including this one,
before posting.  It's not really what I want to do,  that
just seems to be using another pipline as an imput source,
effectively establishing alias URI's.

I was hoping to use embedded java to perform what would
otherwise be done with XSLT.

I will look into xinclude it it will work for
a dynamic datasource.

Thanks,

-Chris


Vadim Gritsenko wrote:
 
 One line for you:
 
 http://localhost:8080/cocoon/sub/xsp-cocoon
 
 Other samples might be useful too.
 
 PS Why not use xsp, then xinclude your xml and xslt as necessary?
 
 Vadim
 
 --
 Resistance is futile.
 
  From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
 
  I am working on a project where we have a datasource
  which produces XML based on certain parameters.  I would
  like to use this as input to an XSP page which defines
  overall content structure (semantics) then, finally,
  apply a stylsheet appropriate for the invoking client.
 
 
  Problem:  It seems that a pipeline must start
  with one, and only one Generator.  The problem is
  that if I create an implementation of Generator
  which produces the XML, then I cannot use XSP
  (since the XSP code handler is itself a Generator).
 
  I then tried to implement the XML generator from an
  XSP page by invoking a method using xsp:expr, but then
  the whole document is treated as a single string.
 
  What I would like to do is some thig like:
 
  Ideas anyone?
 
  +---+
  | XML Generator |
  +--++
 |
 v
  +---+
  | XSP structure |
  +--++
 |
  +--v---+
  | XSL presentation |
  +--+---+
 |
  +--v+
  | Serializer|
  +---+
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

This is certainly one solution that might work for me,
I'll give it a try.  Is the util logicsheet documented
anywhere? 


Thanks,

-Chris

Lai, Harry wrote:
 
 Hi Chris,
 
 Instead of just using xsp:expr, you need to also use the util logicsheet
 (comes with Cocoon 2).  If you have that logicsheet declared in the util
 namespace, for example, you can do the following in your XSP:
 
 ...
 xsp:logic
 MyXmlSource xmlSource = new MyXmlSource();
 
 ... init xmlSource and do whatever you need to prepare content ...
 
 String xmlContent = xmlSource.getContent();
 
 
 util:include-exprutil:exprxsp:exprxmlContent/xsp:expr/util:expr/u
 til:include-expr
 /xsp:logic
 ...
 
 If you do this, the xml generated by your source will be included as xml
 elements, not just as a string.  Hope that helps!
 
 Harry
 
 -Original Message-
 From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 03, 2002 2:04 PM
 To: [EMAIL PROTECTED]
 Subject: XSP + Dynamic XML generator ??
 
 I am working on a project where we have a datasource
 which produces XML based on certain parameters.  I would
 like to use this as input to an XSP page which defines
 overall content structure (semantics) then, finally,
 apply a stylsheet appropriate for the invoking client.
 
 Problem:  It seems that a pipeline must start
 with one, and only one Generator.  The problem is
 that if I create an implementation of Generator
 which produces the XML, then I cannot use XSP
 (since the XSP code handler is itself a Generator).
 
 I then tried to implement the XML generator from an
 XSP page by invoking a method using xsp:expr, but then
 the whole document is treated as a single string.
 
 What I would like to do is some thig like:
 
 Ideas anyone?
 
 +---+
 | XML Generator |
 +--++
|
v
 +---+
 | XSP structure |
 +--++
|
 +--v---+
 | XSL presentation |
 +--+---+
|
 +--v+
 | Serializer|
 +---+
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon and DocBook?

2002-05-06 Thread Michael Cortez

  I am using Norman Walsh's DocBook too:
 rdf + (xsp + taglib + doocbook)-- xsl-fo -- *
 amd I have the same problems: it only works with
 simple article but no for complex docbook documents
 How do you change Xalan to Saxon?
 I try to delete xalan-2.3.1.jar and put saxon jars in
 WEB-INF\lib but it doesn't work
 
 Saxon 7.1
 Cocoon 2.02
 Norman Walsh's DocBook 1.50.1-EXP
 Tomcat 3.3a
 

I was unable to get Saxon 7.0 or 7.1 to work correctly.  For some reason the
SystemID() function is not working correctly in those versions.

What I've got that IS working is to use Saxon 6.5.1

Remove the Xalan Jars, place all three Saxon jars from a 6.5.1 binary
distribution into the webapps\coocon\web-int\lib\ directory.

Then I started getting Internationalization errors.  A number of solutions
were suggested, the one I got to work was to go into your docbook\common
directory, and edit the l10n.xml file.

I then hard coded the path to all the internationalization files, for
example:

!ENTITY af SYSTEM
file:/C:/tomcat4/webapps/cocoon/ogc/docbook/common/af.xml
!ENTITY ca SYSTEM
file:/C:/tomcat4/webapps/cocoon/ogc/docbook/common/ca.xml
!ENTITY cs SYSTEM
file:/C:/tomcat4/webapps/cocoon/ogc/docbook/common/cs.xml

This got me up and running.

--
Mike

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CocoBlog 0.0.1 Released!

2002-05-06 Thread bob phillips

I get the same jar listing from the blog.war

I also see the address:   mailto:@mail.username@@easystreet.com   on the 
mail me link
when I click on it, mozilla 9.9+  brings up 
\\@mail.username@@easystreet.com  in the mail form

At 07:10 PM 5/6/2002 +0200, you wrote:
bob phillips wrote:

Congratulations!!!

Thank you.

the built with apache icon, the index.rss icon, the xmlcoffeemug icon, 
and the index92 icon
did not make it with the war... I go looking for them
the xindice Icon is a very colorful hash of pixel blocks

This is strange. I run ant war and then:

$ jar tvf build/blog.war | grep images
  0 Mon May 06 19:08:10 CEST 2002 resources/images/
430 Mon May 06 19:08:10 CEST 2002 resources/images/xml.gif
   1694 Mon May 06 19:08:10 CEST 2002 resources/images/xmlCoffeeCup.gif
422 Mon May 06 19:08:10 CEST 2002 resources/images/rss10.gif
   3846 Mon May 06 19:08:10 CEST 2002 resources/images/googleLogo.gif
  13583 Mon May 06 19:08:10 CEST 2002 resources/images/adams_in_memoriam.jpg
   3711 Mon May 06 19:08:10 CEST 2002 resources/images/xindice119x37.jpg
   2558 Mon May 06 19:08:10 CEST 2002 resources/images/cocoon2.gif
   2472 Mon May 06 19:08:10 CEST 2002 resources/images/poweredbycocoon.png
   1667 Mon May 06 19:08:10 CEST 2002 resources/images/apacheCoffeeCup.gif

They seem to be there.

 Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: have serialized xml use doctype?

2002-05-06 Thread J.Pietschmann

Zack Angelo wrote:
 Thanks for the link.  Xalan/C2 doesn't seem to like xsl:output
 doctype-public=... too much. However, the page you posted let me to
 another solution that works as well:
 
 xsl:text disable-output-escaping=yes
 ![CDATA[

You should *not* do this, and please refrain from calling
it a solution. Do *not* use disable-output-escaping
unless you have a deep knowledge of the XML standard family
and you *really* know what you are doing.

I had no trouble using doctype-public with various versions
of Xalan. You know that you have to specify doctype-system
too if you are using doctype-public, otherwise you would
be generating invalid XML.

J.Pietschmann


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Vadim Gritsenko

 From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
 I looked over most of the examples, including this one,
 before posting.  It's not really what I want to do,  that
 just seems to be using another pipline as an imput source,

But it sounds like what you need: Generate XML - Use it as XSP source
- XSL - Serialize.


 effectively establishing alias URI's.

Alias??? Alias should result in same result, but this produces *very*
different result. Please compare:

http://localhost:8080/cocoon/sub/xsp-cocoon
http://localhost:8080/cocoon/sub/xsp-source


 I was hoping to use embedded java to perform what would
 otherwise be done with XSLT.

It's called Transformer then.
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
/transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
arkup

Implement, declare in the sitemap, use.


 I will look into xinclude it it will work for
 a dynamic datasource.

It does work.

Vadim


 Thanks,
 
   -Chris
 
 
 Vadim Gritsenko wrote:
 
  One line for you:
 
  http://localhost:8080/cocoon/sub/xsp-cocoon
 
  Other samples might be useful too.
 
  PS Why not use xsp, then xinclude your xml and xslt as necessary?
 
  Vadim
 
  --
  Resistance is futile.
 
   From: Chris Wolf [mailto:[EMAIL PROTECTED]]
  
  
   I am working on a project where we have a datasource
   which produces XML based on certain parameters.  I would
   like to use this as input to an XSP page which defines
   overall content structure (semantics) then, finally,
   apply a stylsheet appropriate for the invoking client.
  
  
   Problem:  It seems that a pipeline must start
   with one, and only one Generator.  The problem is
   that if I create an implementation of Generator
   which produces the XML, then I cannot use XSP
   (since the XSP code handler is itself a Generator).
  
   I then tried to implement the XML generator from an
   XSP page by invoking a method using xsp:expr, but then
   the whole document is treated as a single string.
  
   What I would like to do is some thig like:
  
   Ideas anyone?
  
   +---+
   | XML Generator |
   +--++
  |
  v
   +---+
   | XSP structure |
   +--++
  |
   +--v---+
   | XSL presentation |
   +--+---+
  |
   +--v+
   | Serializer|
   +---+


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: have serialized xml use doctype?

2002-05-06 Thread Zack Angelo

This is the doctype that I'm trying to reproduce in my serialized
content. I've tried different combinations of system and public doctypes
in the xsl:output tag and I can't seem to figure it out. Perhaps you can
suggest the correct syntax? 

!DOCTYPE vxml PUBLIC '-//Nuance/DTD VoiceXML 1.0//EN'
'http://voicexml.nuance.com/dtd/nuancevoicexml-1-2.dtd'

-Zack

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 06, 2002 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: have serialized xml use doctype?

Zack Angelo wrote:
 Thanks for the link.  Xalan/C2 doesn't seem to like xsl:output
 doctype-public=... too much. However, the page you posted let me to
 another solution that works as well:
 
 xsl:text disable-output-escaping=yes
 ![CDATA[

You should *not* do this, and please refrain from calling
it a solution. Do *not* use disable-output-escaping
unless you have a deep knowledge of the XML standard family
and you *really* know what you are doing.

I had no trouble using doctype-public with various versions
of Xalan. You know that you have to specify doctype-system
too if you are using doctype-public, otherwise you would
be generating invalid XML.

J.Pietschmann


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko

 From: Michael Cortez [mailto:[EMAIL PROTECTED]]
 
  What do you mean - xsp:page stuck? It should never
  ever happen after XSP is correctly processed by the
  serverpages generator. May be you have problem with
  the XSP?
 
 Perhaps it's the way I'm using it...
 
 In my system, I'm building up a number of DocBook pages from XML
fragments
 pulled out from Xindice and generated via XSP.
 
 These fragments are built up via a number of small maps in the
sitemap.xmap
 file, and then aggregated up together to produce a final document.
 
 When I pull from Xindice, for example:
 map:aggregate
 other-stuff
 map:part src=xmldb:xindice://localhost:4080/db/TAP/{1}/#/article/

Do you know about strip-root attribute?


 /map:aggregate
 
 Generates the following result:
 ==
 collection:results
xmlns:collection=http://apache.org/cocoon/xmldb/1.0;
 query=/article resources=2
 
 collection:result docid=FlarePebbles
 
 article xmlns:src=http://xml.apache.org/xindice/Query;
 xmlns:src=http://xml.apache.org/xindice/Query;
src:col=/db/TAP/Item13
 src:key=FlarePebbles
   titleFlare Pebbles/title
   paraA bag of twenty pebbles./para
 /article
 
 /result
 
 collection:result docid=SleepArrow
 
 article xmlns:src=http://xml.apache.org/xindice/Query;
 xmlns:src=http://xml.apache.org/xindice/Query;
src:col=/db/TAP/Item13
 src:key=SleepArrow
   titleSleep Arrow/title
   paraOne enchanted arrow./para
 /article
 
 /result
 
 /collection:results
 ==
 
 In this case, I'm only interested in the article elements (and there
 children returned) not the collection:results or collection:result
 elements, nor am I interested in all the extra namespace, and src junk
added
 to the article tag.  I'm just interested in the fragments from
Xindice.
 
 For my XSPs, which right now are trivial (until I get this thing
working) --
 I have a similiar situation:
 
 =
 xsp:page xmlns:xsp=http://apache.org/xsp;
 paraOPEN GAME LICENSE Version 1.0a/para
 paraThe following text is the property of.../para
 /xsp:page
 =

This is not valid XSP page. It must have one and only one element inside
xsp:page element.


 
 Here I'm not interested in the xsp:page elements, only the fragments
 contained within -- but I must have the enclosing xsp:page to create
a
 root tag, and for the XSP engine to work (or so I think). 

Have you ever executed this page? Do you have sitemap entry for it?


 In future
 versions of this file, there will actually be dynamic content being
 generated in there -- right now it's simplified until I get the whole
chain
 working.
 
 
 Both of the above XML sources are then aggregated together, with a
number of
 other sources to build up my file -- but the Xindice example chunk
contains
 extra elements that I don't want, and the XSP page returns WITH the
 xsp:page element still in it, which I don't want.
 
 So I was building up a style sheet that would remove those elements,
and
 promote their children in the resulting document.
 
 
 Hence was born, this style sheet to remove the xsp:page element from
the
 results:
 
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:xsp=http://apache.org/xsp;
 
 
 xsl:template match=xsp:page
 xsl:apply-templates select=./*/
 /xsl:template
 
 xsl:template match=@*|node()
 priority=-2xsl:copyxsl:apply-templates
 select=@*|node()//xsl:copy/xsl:template
 xsl:template match=text() priority=-1xsl:value-of
 select=.//xsl:template
 
 /xsl:stylesheet
 
 
 
 Any suggestions?

First, make XSP work. AFAIU, you never tried it. Also try strip-root
attribute for map:part element.

Vadim

 
 Thanks,
 Mike
 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: have serialized xml use doctype?

2002-05-06 Thread J.Pietschmann

Zack Angelo wrote:
 This is the doctype that I'm trying to reproduce in my serialized
 content. I've tried different combinations of system and public doctypes
 in the xsl:output tag and I can't seem to figure it out. Perhaps you can
 suggest the correct syntax? 
 
 !DOCTYPE vxml PUBLIC '-//Nuance/DTD VoiceXML 1.0//EN'
 'http://voicexml.nuance.com/dtd/nuancevoicexml-1-2.dtd'

This works for me (Xalan 2.0.0, 2.2D-something and 2.3D-odd)

   xsl:output doctype-public=-//Nuance/DTD VoiceXML 1.0//EN
doctype-system=http://voicexml.nuance.com/dtd/nuancevoicexml-1-2.dtd/

Ensure your generated document element is vxml, the processor
adds this automatically.

Further advice on XSLT specialities is available
on the XSLT list.

J.Pietschmann



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon and DocBook?

2002-05-06 Thread Omar Alos

 --- Michael Cortez [EMAIL PROTECTED] escribió: 
 
 What I've got that IS working is to use Saxon
 6.5.1
 

Thank you Michael, it works now.
I'll  look to your Internationalization problems
tomorrow. I have to internationalize too. 

Omar

  

___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Need to replace xalan

2002-05-06 Thread Vadim Gritsenko

Try saxon-6.5.2.jar. Works for me.

Vadim

--
Resistance is futile. 

 From: Artur Bialecki [mailto:[EMAIL PROTECTED]]
 
 
 Ok, xalan 2.3.1 and xalan head is horribly broken and from
 the number of bugs I doubt will see a working vision this year.
 
 What other XSLT processor can I use that's JAXP compliant, has
 node-set extensions and is easily integrated with Cocoon2.
 
 Thanks,
 
 Artur...
 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

Ok, after reading this, and your previous response, I 
can now articulate my problem better. 

It seems the XSP allows you to create reusable sections
of code (logicsheets) and to embed Java, the result
is auto-generated code which is an instance of Generator.

I was hoping that XSP could also be used to define a code-generated
instance of Transformer.  The way things are now, it seems that
only Generators can be coded up using XSP -- not Transformers.
In other words, I must write my Transformer entirely in Java.

Thanks for your help,

-Chris

Vadim Gritsenko wrote:
 
  From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
  I looked over most of the examples, including this one,
  before posting.  It's not really what I want to do,  that
  just seems to be using another pipline as an imput source,
 
 But it sounds like what you need: Generate XML - Use it as XSP source
 - XSL - Serialize.
 
  effectively establishing alias URI's.
 
 Alias??? Alias should result in same result, but this produces *very*
 different result. Please compare:
 
 http://localhost:8080/cocoon/sub/xsp-cocoon
 http://localhost:8080/cocoon/sub/xsp-source
 
  I was hoping to use embedded java to perform what would
  otherwise be done with XSLT.
 
 It's called Transformer then.
 http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
 /transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
 arkup
 
 Implement, declare in the sitemap, use.
 
  I will look into xinclude it it will work for
  a dynamic datasource.
 
 It does work.
 
 Vadim
 
  Thanks,
 
-Chris
 
 
  Vadim Gritsenko wrote:
  
   One line for you:
  
   http://localhost:8080/cocoon/sub/xsp-cocoon
  
   Other samples might be useful too.
  
   PS Why not use xsp, then xinclude your xml and xslt as necessary?
  
   Vadim
  
   --
   Resistance is futile.
  
From: Chris Wolf [mailto:[EMAIL PROTECTED]]
   
   
I am working on a project where we have a datasource
which produces XML based on certain parameters.  I would
like to use this as input to an XSP page which defines
overall content structure (semantics) then, finally,
apply a stylsheet appropriate for the invoking client.
   
   
Problem:  It seems that a pipeline must start
with one, and only one Generator.  The problem is
that if I create an implementation of Generator
which produces the XML, then I cannot use XSP
(since the XSP code handler is itself a Generator).
   
I then tried to implement the XML generator from an
XSP page by invoking a method using xsp:expr, but then
the whole document is treated as a single string.
   
What I would like to do is some thig like:
   
Ideas anyone?
   
+---+
| XML Generator |
+--++
   |
   v
+---+
| XSP structure |
+--++
   |
+--v---+
| XSL presentation |
+--+---+
   |
+--v+
| Serializer|
+---+
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

Harry, 

This worked out pretty well for me, thanks!

(I was hoping to also perform the work of a Transformer
in the same XSP, but this is good enough for now...)

Thanks for the tip...

-Chris

Lai, Harry wrote:
 
 Hi Chris,
 
 Instead of just using xsp:expr, you need to also use the util logicsheet
 (comes with Cocoon 2).  If you have that logicsheet declared in the util
 namespace, for example, you can do the following in your XSP:
 
 ...
 xsp:logic
 MyXmlSource xmlSource = new MyXmlSource();
 
 ... init xmlSource and do whatever you need to prepare content ...
 
 String xmlContent = xmlSource.getContent();
 
 
 util:include-exprutil:exprxsp:exprxmlContent/xsp:expr/util:expr/u
 til:include-expr
 /xsp:logic
 ...
 
 If you do this, the xml generated by your source will be included as xml
 elements, not just as a string.  Hope that helps!
 
 Harry
 
 -Original Message-
 From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 03, 2002 2:04 PM
 To: [EMAIL PROTECTED]
 Subject: XSP + Dynamic XML generator ??
 
 I am working on a project where we have a datasource
 which produces XML based on certain parameters.  I would
 like to use this as input to an XSP page which defines
 overall content structure (semantics) then, finally,
 apply a stylsheet appropriate for the invoking client.
 
 Problem:  It seems that a pipeline must start
 with one, and only one Generator.  The problem is
 that if I create an implementation of Generator
 which produces the XML, then I cannot use XSP
 (since the XSP code handler is itself a Generator).
 
 I then tried to implement the XML generator from an
 XSP page by invoking a method using xsp:expr, but then
 the whole document is treated as a single string.
 
 What I would like to do is some thig like:
 
 Ideas anyone?
 
 +---+
 | XML Generator |
 +--++
|
v
 +---+
 | XSP structure |
 +--++
|
 +--v---+
 | XSL presentation |
 +--+---+
|
 +--v+
 | Serializer|
 +---+
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Paul Pattison

What do you mean by 'Transformer'?  Do you mean that you want to dynamically
create the XSLT page?  If so, check out:

http://localhost:8080/cocoon/sub/all-dynamic

Paul



-Original Message-
From: Chris Wolf [mailto:[EMAIL PROTECTED]]
Sent: 06 May 2002 16:32
To: [EMAIL PROTECTED]
Subject: Re: XSP + Dynamic XML generator ??


Ok, after reading this, and your previous response, I
can now articulate my problem better.

It seems the XSP allows you to create reusable sections
of code (logicsheets) and to embed Java, the result
is auto-generated code which is an instance of Generator.

I was hoping that XSP could also be used to define a code-generated
instance of Transformer.  The way things are now, it seems that
only Generators can be coded up using XSP -- not Transformers.
In other words, I must write my Transformer entirely in Java.

Thanks for your help,

-Chris

Vadim Gritsenko wrote:

  From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
  I looked over most of the examples, including this one,
  before posting.  It's not really what I want to do,  that
  just seems to be using another pipline as an imput source,

 But it sounds like what you need: Generate XML - Use it as XSP source
 - XSL - Serialize.

  effectively establishing alias URI's.

 Alias??? Alias should result in same result, but this produces *very*
 different result. Please compare:

 http://localhost:8080/cocoon/sub/xsp-cocoon
 http://localhost:8080/cocoon/sub/xsp-source

  I was hoping to use embedded java to perform what would
  otherwise be done with XSLT.

 It's called Transformer then.
 http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
 /transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
 arkup

 Implement, declare in the sitemap, use.

  I will look into xinclude it it will work for
  a dynamic datasource.

 It does work.

 Vadim

  Thanks,
 
-Chris
 
 
  Vadim Gritsenko wrote:
  
   One line for you:
  
   http://localhost:8080/cocoon/sub/xsp-cocoon
  
   Other samples might be useful too.
  
   PS Why not use xsp, then xinclude your xml and xslt as necessary?
  
   Vadim
  
   --
   Resistance is futile.
  
From: Chris Wolf [mailto:[EMAIL PROTECTED]]
   
   
I am working on a project where we have a datasource
which produces XML based on certain parameters.  I would
like to use this as input to an XSP page which defines
overall content structure (semantics) then, finally,
apply a stylsheet appropriate for the invoking client.
   
   
Problem:  It seems that a pipeline must start
with one, and only one Generator.  The problem is
that if I create an implementation of Generator
which produces the XML, then I cannot use XSP
(since the XSP code handler is itself a Generator).
   
I then tried to implement the XML generator from an
XSP page by invoking a method using xsp:expr, but then
the whole document is treated as a single string.
   
What I would like to do is some thig like:
   
Ideas anyone?
   
+---+
| XML Generator |
+--++
   |
   v
+---+
| XSP structure |
+--++
   |
+--v---+
| XSL presentation |
+--+---+
   |
+--v+
| Serializer|
+---+

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko

 From: Michael Cortez [mailto:[EMAIL PROTECTED]]
 
  What do you mean - xsp:page stuck? It should never
  ever happen after XSP is correctly processed by the
  serverpages generator. May be you have problem with
  the XSP?
 
 Perhaps it's the way I'm using it...
 
 In my system, I'm building up a number of DocBook pages from XML
fragments
 pulled out from Xindice and generated via XSP.
 
 These fragments are built up via a number of small maps in the
sitemap.xmap
 file, and then aggregated up together to produce a final document.
 
 When I pull from Xindice, for example:
 map:aggregate
 other-stuff
 map:part src=xmldb:xindice://localhost:4080/db/TAP/{1}/#/article/

Do you know about strip-root attribute?


 /map:aggregate
 
 Generates the following result:
 ==
 collection:results
xmlns:collection=http://apache.org/cocoon/xmldb/1.0;
 query=/article resources=2
 
 collection:result docid=FlarePebbles
 
 article xmlns:src=http://xml.apache.org/xindice/Query;
 xmlns:src=http://xml.apache.org/xindice/Query;
src:col=/db/TAP/Item13
 src:key=FlarePebbles
   titleFlare Pebbles/title
   paraA bag of twenty pebbles./para
 /article
 
 /result
 
 collection:result docid=SleepArrow
 
 article xmlns:src=http://xml.apache.org/xindice/Query;
 xmlns:src=http://xml.apache.org/xindice/Query;
src:col=/db/TAP/Item13
 src:key=SleepArrow
   titleSleep Arrow/title
   paraOne enchanted arrow./para
 /article
 
 /result
 
 /collection:results
 ==
 
 In this case, I'm only interested in the article elements (and there
 children returned) not the collection:results or collection:result
 elements, nor am I interested in all the extra namespace, and src junk
added
 to the article tag.  I'm just interested in the fragments from
Xindice.
 
 For my XSPs, which right now are trivial (until I get this thing
working) --
 I have a similiar situation:
 
 =
 xsp:page xmlns:xsp=http://apache.org/xsp;
 paraOPEN GAME LICENSE Version 1.0a/para
 paraThe following text is the property of.../para
 /xsp:page
 =

This is not valid XSP page. It must have one and only one element inside
xsp:page element.


 
 Here I'm not interested in the xsp:page elements, only the fragments
 contained within -- but I must have the enclosing xsp:page to create
a
 root tag, and for the XSP engine to work (or so I think). 

Have you ever executed this page? Do you have sitemap entry for it?


 In future
 versions of this file, there will actually be dynamic content being
 generated in there -- right now it's simplified until I get the whole
chain
 working.
 
 
 Both of the above XML sources are then aggregated together, with a
number of
 other sources to build up my file -- but the Xindice example chunk
contains
 extra elements that I don't want, and the XSP page returns WITH the
 xsp:page element still in it, which I don't want.
 
 So I was building up a style sheet that would remove those elements,
and
 promote their children in the resulting document.
 
 
 Hence was born, this style sheet to remove the xsp:page element from
the
 results:
 
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:xsp=http://apache.org/xsp;
 
 
 xsl:template match=xsp:page
 xsl:apply-templates select=./*/
 /xsl:template
 
 xsl:template match=@*|node()
 priority=-2xsl:copyxsl:apply-templates
 select=@*|node()//xsl:copy/xsl:template
 xsl:template match=text() priority=-1xsl:value-of
 select=.//xsl:template
 
 /xsl:stylesheet
 
 
 
 Any suggestions?

First, make XSP work. AFAIU, you never tried it. Also try strip-root
attribute for map:part element.

Vadim

 
 Thanks,
 Mike
 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

I meant to able to use embedded java to create
an instance of:
org.apache.cocoon.transformation.Transformer

Analogous to the way XSP currently works by 
creating an instance of:

 org.apache.cocoon.generation.Generator

(called XSPGenerator)

Now I see this is not supported, but what you have 
suggested may help, thanks,

-Chris


Paul Pattison wrote:
 
 What do you mean by 'Transformer'?  Do you mean that you want to dynamically
 create the XSLT page?  If so, check out:
 
 http://localhost:8080/cocoon/sub/all-dynamic
 
 Paul
 
 -Original Message-
 From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 Sent: 06 May 2002 16:32
 To: [EMAIL PROTECTED]
 Subject: Re: XSP + Dynamic XML generator ??
 
 Ok, after reading this, and your previous response, I
 can now articulate my problem better.
 
 It seems the XSP allows you to create reusable sections
 of code (logicsheets) and to embed Java, the result
 is auto-generated code which is an instance of Generator.
 
 I was hoping that XSP could also be used to define a code-generated
 instance of Transformer.  The way things are now, it seems that
 only Generators can be coded up using XSP -- not Transformers.
 In other words, I must write my Transformer entirely in Java.
 
 Thanks for your help,
 
 -Chris
 
 Vadim Gritsenko wrote:
 
   From: Chris Wolf [mailto:[EMAIL PROTECTED]]
  
   I looked over most of the examples, including this one,
   before posting.  It's not really what I want to do,  that
   just seems to be using another pipline as an imput source,
 
  But it sounds like what you need: Generate XML - Use it as XSP source
  - XSL - Serialize.
 
   effectively establishing alias URI's.
 
  Alias??? Alias should result in same result, but this produces *very*
  different result. Please compare:
 
  http://localhost:8080/cocoon/sub/xsp-cocoon
  http://localhost:8080/cocoon/sub/xsp-source
 
   I was hoping to use embedded java to perform what would
   otherwise be done with XSLT.
 
  It's called Transformer then.
  http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
  /transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
  arkup
 
  Implement, declare in the sitemap, use.
 
   I will look into xinclude it it will work for
   a dynamic datasource.
 
  It does work.
 
  Vadim
 
   Thanks,
  
 -Chris
  
  
   Vadim Gritsenko wrote:
   
One line for you:
   
http://localhost:8080/cocoon/sub/xsp-cocoon
   
Other samples might be useful too.
   
PS Why not use xsp, then xinclude your xml and xslt as necessary?
   
Vadim
   
--
Resistance is futile.
   
 From: Chris Wolf [mailto:[EMAIL PROTECTED]]


 I am working on a project where we have a datasource
 which produces XML based on certain parameters.  I would
 like to use this as input to an XSP page which defines
 overall content structure (semantics) then, finally,
 apply a stylsheet appropriate for the invoking client.


 Problem:  It seems that a pipeline must start
 with one, and only one Generator.  The problem is
 that if I create an implementation of Generator
 which produces the XML, then I cannot use XSP
 (since the XSP code handler is itself a Generator).

 I then tried to implement the XML generator from an
 XSP page by invoking a method using xsp:expr, but then
 the whole document is treated as a single string.

 What I would like to do is some thig like:

 Ideas anyone?

 +---+
 | XML Generator |
 +--++
|
v
 +---+
 | XSP structure |
 +--++
|
 +--v---+
 | XSL presentation |
 +--+---+
|
 +--v+
 | Serializer|
 +---+
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Need to replace xalan

2002-05-06 Thread Torsten Curdt

On Monday 06 May 2002 20:11, Vadim Gritsenko wrote:
 Try saxon-6.5.2.jar. Works for me.

 Vadim

Just wondering... how is the speed compared to Xalan?
--
Torsten

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Need to replace xalan

2002-05-06 Thread Lai, Harry

Hi Torsten,

This wasn't using Cocoon, but one of my co-workers did a performance
comparison among Xalan2, Saxon (6.5, I believe), and JD (pre-1.2.5, but
don't remember the specific version).  If I remember right, Saxon was 2-3
times as fast as Xalan2, and JD was 2-3 times as fast as Saxon.  Sorry I
don't remember the details, though.

Harry

PS  Just FYI, we've been using Saxon 6.5 with Cocoon 2.0.2, and it's been
fine except for a minor bug in the sitemap.xsl that Xalan is more forgiving
of (though everything was good once we fixed the sitemap.xsl bug).


-Original Message-
From: Torsten Curdt [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 4:13 PM
To: [EMAIL PROTECTED]; Vadim Gritsenko
Subject: Re: Need to replace xalan


On Monday 06 May 2002 20:11, Vadim Gritsenko wrote:
 Try saxon-6.5.2.jar. Works for me.

 Vadim

Just wondering... how is the speed compared to Xalan?
--
Torsten

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Need to replace xalan

2002-05-06 Thread Artur Bialecki

Are there any configuraion changes I need to make to
use Saxon or do I just thow saxon jar in my CP.

Thanks,

Artur...

 -Original Message-
 From: Lai, Harry [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 5:19 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Need to replace xalan
 
 
 Hi Torsten,
 
 This wasn't using Cocoon, but one of my co-workers did a performance
 comparison among Xalan2, Saxon (6.5, I believe), and JD (pre-1.2.5, but
 don't remember the specific version).  If I remember right, Saxon was 2-3
 times as fast as Xalan2, and JD was 2-3 times as fast as Saxon.  Sorry I
 don't remember the details, though.
 
 Harry
 
 PS  Just FYI, we've been using Saxon 6.5 with Cocoon 2.0.2, and it's been
 fine except for a minor bug in the sitemap.xsl that Xalan is more forgiving
 of (though everything was good once we fixed the sitemap.xsl bug).
 
 
 -Original Message-
 From: Torsten Curdt [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 4:13 PM
 To: [EMAIL PROTECTED]; Vadim Gritsenko
 Subject: Re: Need to replace xalan
 
 
 On Monday 06 May 2002 20:11, Vadim Gritsenko wrote:
  Try saxon-6.5.2.jar. Works for me.
 
  Vadim
 
 Just wondering... how is the speed compared to Xalan?
 --
 Torsten
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Need to replace xalan

2002-05-06 Thread Lai, Harry

Hi Carlos,

Just a quick clarification - the bug was in xsp.xsl not sitemap.xsl (sorry
for the previous inaccuracy).  Anyway, here's a link to a thread about this
(follow-ups linked at bottom of the message).  Also, just FYI, Vadim checked
in a fix for this to CVS on March 31st.

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg10163.html

Harry


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 4:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Need to replace xalan


Harry:

Can you post the bug and solution?

Carlos

On 05/06/02 14:19, Lai, Harry [EMAIL PROTECTED] wrote:

 Hi Torsten,
 
 This wasn't using Cocoon, but one of my co-workers did a performance
 comparison among Xalan2, Saxon (6.5, I believe), and JD (pre-1.2.5, but
 don't remember the specific version).  If I remember right, Saxon was 2-3
 times as fast as Xalan2, and JD was 2-3 times as fast as Saxon.  Sorry I
 don't remember the details, though.
 
 Harry
 
 PS  Just FYI, we've been using Saxon 6.5 with Cocoon 2.0.2, and it's been
 fine except for a minor bug in the sitemap.xsl that Xalan is more
forgiving
 of (though everything was good once we fixed the sitemap.xsl bug).
 
 
 -Original Message-
 From: Torsten Curdt [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 4:13 PM
 To: [EMAIL PROTECTED]; Vadim Gritsenko
 Subject: Re: Need to replace xalan
 
 
 On Monday 06 May 2002 20:11, Vadim Gritsenko wrote:
 Try saxon-6.5.2.jar. Works for me.
 
 Vadim
 
 Just wondering... how is the speed compared to Xalan?
 --
 Torsten
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email   [EMAIL PROTECTED]
web http://www.cvc1.org/ (work)
http://www.silverwolf-net.net (personal)
phone   408 257 0420 (work)
PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

If there is artificial intelligence, doesn't that imply there is also
artificial stupidity!


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: xinclude

2002-05-06 Thread Vadim Gritsenko

 From: Margrit John [mailto:[EMAIL PROTECTED]]
 
 Hi!
 I have the two xml files below. In the sitemap I want to generate the
xml out
 of these two files. My output (default.xml) is the following:
 
 ?xml version=1.0 encoding=UTF-8?
 Page xmlns:xi=http://www.w3.org/2001/XInclude;
 Content
 MainColumn
 articles
 xi:include href=index.xml/
 /articles
 /MainColumn
 /Content
 /Page
 
 Why doesn't it resolve the include?

Because you don't have XInclude transformer in the pipeline. See
samples.

Vadim


 page.xml:
 ?xml version=1.0?
 Page xmlns:xi=http://www.w3.org/2001/XInclude;
   Content
 MainColumn
  articles
xi:include href=index.xml/
  /articles
 /MainColumn
   /Content
 /Page
 
 index.xml
 ?xml version=1.0?
 frontpage
 articles
   article href=magazin/gesundheit/2002/0508/
   article href=magazin/gesundheit/2002/0465/
   article href=magazin/geist/2002/0470/
 /articles
 /frontpage
 
 sitemap
   map:match pattern=default.xml
 map:generate src=page.xml/
 map:serialize type=xml/
   /map:match
 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon and cokies

2002-05-06 Thread Ruth, Thomas {PDBI~Basel}

Thanks Vadim
yes you are right. It this cookie handling of Cocoon I don't know what to do. 
Any additional tips?
Thanks
Thomas


 
 From: Luca Morandini [mailto:[EMAIL PROTECTED]]
 
 Thomas,
 
 I know this will sound rather naive but... did you look into the
cookie
 logicsheet ?

Unfortunately, this won't help him. He wants to act Cocoon as a client
to Livelink and manage cookies sent by Livelink on Cocoon side (like
usual browser does).

I would say that this requires patching of URLSource which is
responsible for handling external HTTP sources, and adding cookie
management capabilities to in.


Vadim

--
Resistance is futile.

 
 Best regards,
 
 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 
-Original Message-
From: Ruth, Thomas {PDBI~Basel} 
Sent: Saturday, May 04, 2002 6:10 PM
To: '[EMAIL PROTECTED]'
Subject: Cocoon and cokies


Hi all
we have introduced a new Intranet portal framework in our organization (very 
successful for around 3000+ users). This portal framework is based on two components. 
Cocoon2 and Livelink (a CMS from Opentext). We use Livelink as the data entry tool for 
users. Livelink is already well known in the organization so we reuse this tool. As 
Livelink offers a function to export metadata to XML we use this and publish the 
relevant data to the Cocoon2 environment. This is a real publishing process, content 
managers maintain data and at one point in time they publish. So we publish the data 
on demand and present on the portal whatever we do with the data using XSLT (and other 
features from Cocoon).
The export of the data can be triggered by using http request from any browser. 
Something like: http://livelink/id=12345objaction=xmlexportscope=subattributeinfo. 
This generates a XML file (if already logged in). If I am not logged into Livelink, I 
get a prompt and can provide my username/password. Livelink uses cockie to handle the 
session and priviliges.
I can also provide username/password in the URI 
http://livelink/func=ll.loginusername=XXXpassword=YYY. This works from a browser. 
Livelink is recognizing the request does a login, sets the cockie at the client 
browser by sending a page using the meta tag redirect. 
As we have such a great success in using this framework (Thanks to all of you who have 
participated in building Cocoon2!!!) we now want to go a step further and generate the 
XML file on request by the portal user.
So the sitemap shall have an entry like
map:aggregate element=live
map:part 
src=http://livelink/livelink.exe?func=ll.loginamp;username=xxxamp;password=yyy/
map:part 
src=http://livelink/livelink.exe?func=llamp;objAction=XMLExportamp;objId=6152797amp;attributeinfoamp;scope=one/

/map:aggregate

This is working when sending these two http requests from an browser, with the first 
request setting the cookie, so the second request gets 'through'. 

I have no idea on how we would do this in using Cocoon2. Any idea? How can Cocoon 
handle cookies? Does anyone know?

Thanks for any help
Thomas Ruth
[EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Question about WildcardURIMatcher

2002-05-06 Thread Alejandro Raiczyk
Title: Question about WildcardURIMatcher





Hi people, I've got this situation:


When I make a request, for example, of a gif like y/z.gif (where y=y1/y2/../yn, n=0) from a page p in x/ ({document_root}/x/p.xml, where x=x1/x2/../xn, x=0) the URI passed to the matcher is x/y/z.gif.

The only part I care from this URI is y/z, I mean, I don't care where the page that is making the request is, because I want z.gif to be taken from {document_root}/img/y/z.gif.

I tried diferent pattern matchings, and couldn't find one that works. The problem is to identify where x ends (or where y begins), so I tried to use a explicit delimiter in the URIs like

 img src="#y/z.gif/


and then match this with:


 map:match pattern=**#**.gif
  map:read mime-type=image/gif src="img/{2}.gif/
 /map:match


but it didn't work also.


Can someone help me with this ?


Thanks in advance.


Alejandro D. Raiczyk
Desarrollo de Proyectos
Technisys Informática S.R.L.
Tel./Fax: +54(11)4322-7100 int 133
[EMAIL PROTECTED]







RE: Portal request

2002-05-06 Thread Lewis, Andrew J

WE don't have any decent screen shots ytet - we are still in formal
design...but I'll get back to you when we do...

 --
 From: Matthew Langham[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Thursday, April 25, 2002 4:07 AM
 To:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject:  Portal request
 
 Hi,
 
 Carsten and I will be speaking/presenting on the additional portal and
 authentication components in Cocoon at a couple of conferences in the
 upcoming months. If you are using the (used to be called) sunRise and
 sunSpot components to build a portal then I would love to obtain some
 additional screen-shots we can use in the presentation.
 
 Please send me them to me directly ([EMAIL PROTECTED]).
 
 Thanks!
 
 Matthew Langham
 --
 Open Source Group   sunShine - Lighting up e:Business
 =
 Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
Weblogging at: http://www.need-a-cake.com
  Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
 =
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




dynamically generated cinclude-tag not processed

2002-05-06 Thread Dirk Reiss

Hello,

we try to generate a cinclude:include - tag dynamically using the following 
code:

xsp:element
  xsp:param name=namexsp:exprelementName/xsp:expr/xsp:param
  xsp:attribute name=src
xsp:expruri/xsp:expr
  /xsp:attribute
 /xsp:element

where the variables used are initialized in the xsp:logic part after calling 
an java-function

the generated output in the webbrowser is

cinclude:include 
src=cocoon:/processed/lomobjects/lu/vorms/tp3/simulation/lektion1.xsp/cinclude:include

if we code this 'statically' in our logicsheet it works fine, the 
cinclude-instruction is processed correctly and the needed xml-file is 
included.

what could be wrong?

xsp should be executed and AFTER that the cinclude-transformer should do the 
rest... but it seems it doesnt...

can anybody help??

many thanks in advance
dirk

-- 
!--
   Dirk Reiss
   Helmstedter Str. 134
   38102 Braunschweig
   ++49 (0) 531 7996276
   E-Mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez

 Well... uh, it runs ==
 http://fclistserver.fullcoll.edu:8080/cocoon/ogl/Item78
 

And here is the one that fails 3-4 out of five times -- but works sometimes
-- just keep refreshing...  I don't get it...

http://fclistserver.fullcoll.edu:8080/cocoon/ogc/Item78.htm


For the above page, I've removed my two stripping transformations, and
used the scrip-root attribute where I could.


Now the error has moved to sitemap.xsl:

==
ERROR   (2002-05-06) 15:42.01:754   [core.xslt-processor] (/cocoon/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column
-1; 
; SystemID:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17;
Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is
not allowed on this element
==

I've attached the full exception traces from the error log, from a single
request of my page.

Looking at the issue Harry posted, this doesn't seem to be the same
problem... 

so Any other suggestions?  I'm willing to post, share the rest of the
sitemap and such if someone wants to try to replicate it...

--
Mike



==
ERROR   (2002-05-06) 15:42.01:754   [core.xslt-processor] (/cocoon/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column
-1; 
; SystemID:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17;
Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is
not allowed on this element
at
com.icl.saxon.style.StyleElement.compileError(StyleElement.java:849)
at
com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208
)
at
com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287)
at
com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:50
1)
at
com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351)
at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.ja
va:176)
at
com.icl.saxon.TemplatesHandlerImpl.getTemplates(TemplatesHandlerImpl.java:70
)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:238)
at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandle
r(Logicsheet.java:160)
at
org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs(Log
icsheet.java:142)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogic
sheetToList(AbstractMarkupLanguage.java:466)
at
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLogicsh
eetToList(CocoonMarkupLanguage.java:164)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$Transfor
merChainBuilderFilter.startElement(AbstractMarkupLanguage.java:628)
at
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$CocoonTran
sformerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:437)
at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575)
at
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PreProcess
Filter.startElement(CocoonMarkupLanguage.java:286)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:445)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBin
der.java:832)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja
va:568)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java
:808)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:752)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:525)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:115
7)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)

NPE using Saxon

2002-05-06 Thread Carlos

I'm getting the following error when trying to access HTML files:

stack-trace extract

java.lang.NullPointerException
at 
org.apache.cocoon.www.file_.usr.local.tomcat.webapps.cocoon.writing.sitemap_
xmap.process(/usr/local/tomcat/work/localhost/cocoon/cocoon-files/org/apache
/cocoon/www/file_/usr/local/tomcat/webapps/cocoon/writing/sitemap_xmap.java:
327)

When I try to generate PDF it works but the titles are munged

Carlos


The relevant portion of the sitemap is listed below.

   !-- All Static. --
   map:match pattern=*.pdf
map:generate src=docs/{1}.xml/
map:transform src=stylesheets/xsl/fo/docbook.xsl/
map:serialize type=fo2pdf/
   /map:match

   map:match pattern=*.html
map:generate src=docs/{1}.xml/
map:transform src=stylesheets/xsl/html/cal.xsl/
map:serialize type=html/
   /map:match

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email   [EMAIL PROTECTED]
web http://www.cvc1.org/ (work)
http://www.silverwolf-net.net (personal)
phone   408 257 0420 (work)
PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756


Three things are certain:
Death, taxes, and lost data.
Guess which has occurred.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Parse Information from PDF files

2002-05-06 Thread Chitharanjan Das

Hello All,
Is there any technology(open src or free), that would help me
parse a PDF file  and extract information ...
I have a requirement to do PDF - XML conversion depending upon some
rules...

Thanks in advance,
Chiths



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Using the IBM Compiler

2002-05-06 Thread Emre Tezel

Hi Cocoon users,

I am trying to setup cocoon on Red Hat 7.2 and Tomcat 3.3.1. Apache and 
Tomcat are installed and run file but whenever I try to go to the cocoon 
page I get the atteched error. I am trying to use the IBM JDK 1.3.1. I 
think the error is related to not finding the right compiler. I read the 
cocoon web site about the installation. It says to put the compiler 
javac.jar to WEB-INF/lib. But there is no javac.jar file in IBM's JDK 
but only javac. Any ideas?

Thanks
Emre

http://hori.salem.com:8180/cocoon/


Title: Internal server error
Cocoon 2 - Internal server errortype fatalmessage Error in sitemap configuration : org.apache.cocoon.sunshine.sunspot.generation.PortalGeneratordescription org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : org.apache.cocoon.sunshine.sunspot.generation.PortalGeneratorsender org.apache.cocoon.servlet.CocoonServletsource Cocoon servletstack-traceorg.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : org.apache.cocoon.sunshine.sunspot.generation.PortalGenerator
	at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:489)
	at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
	at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
	at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:332)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
	at java.lang.Thread.run(Thread.java:512)
request-uri/cocoon/path-info

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko

 From: Michael Cortez [mailto:[EMAIL PROTECTED]]
 
  Do you know about strip-root attribute?
 
 
 Uh, no -- So I can just do
 
 map:part src=xxx strip-root=true 
 
 That would be so much better for me.

Yes.

  This is not valid XSP page. It must have one and only one
  element inside
  xsp:page element.
 
 
 Well... uh, it runs ==
 http://fclistserver.fullcoll.edu:8080/cocoon/ogl/Item78
 
 This is generated from:
 ===
 map:match pattern=ogl/*
 map:aggregate element=legalnotice
 map:part src=ogc/ogl-preamble.xsp/
 map:part src=cocoon:/ogl-terms/{1}/
 /map:aggregate
 map:transform src=ogc/strip_stripme.xsl/
 map:serialize type=xml/
 /map:match
 ===
 
 As you can see, it calls in ogc/ogl-preamble.xsp

It does not *execute* XSP page neither *calls* XSP page. It merely
*reads* XSP page, that's it. You have to use serverpages generator which
is the only component capable of executing XSP pages:

map:generate typeserverpages src=ogc/ogl-preamble.xsp/



 Which is:
 ===
 xsp:page xmlns:xsp=http://apache.org/xsp;
 paraOPEN GAME LICENSE Version 1.0a/para
 paraThe following text is the property.../para
 /xsp:page
 ===

It is still invalid.

 
  Have you ever executed this page? Do you have sitemap entry for it?
 
 
 
 YES.  See above.

The correct answer is No, see above.

 
  First, make XSP work. AFAIU, you never tried it.
 
 It works -- or it doesn't give any errors.  Here is a more direct
sitemap
 entry I made, just to show that it is working  ==
 http://fclistserver.fullcoll.edu:8080/cocoon/test_xsp
 
 
 map:match pattern=test_xsp
 map:generate src=ogc/ogl-preamble.xsp/

Fix it by specifying correct generator type:

map:generate type=serverpages src=ogc/ogl-preamble.xsp/

Vadim

 map:serialize type=html/
 /map:match
 
 
  Also try strip-root attribute for map:part element.
 
 
 OK, will do.  Doesn't solve my problem with stripping off the Results
and
 Result elements of the Xindice XML though...  8-(
 
 
 --
 Mike


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Vadim Gritsenko

 From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
 Ok, after reading this, and your previous response, I
 can now articulate my problem better.
 
 It seems the XSP allows you to create reusable sections
 of code (logicsheets) and to embed Java, the result
 is auto-generated code which is an instance of Generator.

You have got it right.

 
 I was hoping that XSP could also be used to define a code-generated
 instance of Transformer. 

Cocoon markup-to-programming-language machinery can do that. But it
will not be XSP, but other language on its own (I think XSPT: XSP for
transformations ;)


 The way things are now, it seems that
 only Generators can be coded up using XSP -- not Transformers.

Right now - yes.


 In other words, I must write my Transformer entirely in Java.

Or implement XSPT. I think it will be simplier for you to code
Transformer in Java at this stage. ;)


 Thanks for your help,

Welcome.

Vadim

 
   -Chris
 
 Vadim Gritsenko wrote:
 
   From: Chris Wolf [mailto:[EMAIL PROTECTED]]
  
   I looked over most of the examples, including this one,
   before posting.  It's not really what I want to do,  that
   just seems to be using another pipline as an imput source,
 
  But it sounds like what you need: Generate XML - Use it as XSP
source
  - XSL - Serialize.
 
   effectively establishing alias URI's.
 
  Alias??? Alias should result in same result, but this produces
*very*
  different result. Please compare:
 
  http://localhost:8080/cocoon/sub/xsp-cocoon
  http://localhost:8080/cocoon/sub/xsp-source
 
   I was hoping to use embedded java to perform what would
   otherwise be done with XSLT.
 
  It's called Transformer then.
 
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
 
/transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
  arkup
 
  Implement, declare in the sitemap, use.
 
   I will look into xinclude it it will work for
   a dynamic datasource.
 
  It does work.
 
  Vadim
...


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Need to replace xalan

2002-05-06 Thread Vadim Gritsenko

 From: Lai, Harry [mailto:[EMAIL PROTECTED]]
 
 Hi Torsten,
 
 This wasn't using Cocoon, but one of my co-workers did a performance
 comparison among Xalan2, Saxon (6.5, I believe), and JD (pre-1.2.5,
but
 don't remember the specific version).  If I remember right, Saxon was
2-3
 times as fast as Xalan2, and JD was 2-3 times as fast as Saxon.  Sorry
I
 don't remember the details, though.

I also can confirm this. My app is now working notable faster, from 3-4
sec per request it went down to 0.5-1.5 sec (Pentium 166MMX :)

Vadim

 
 Harry
 
 PS  Just FYI, we've been using Saxon 6.5 with Cocoon 2.0.2, and it's
been
 fine except for a minor bug in the sitemap.xsl that Xalan is more
forgiving
 of (though everything was good once we fixed the sitemap.xsl bug).
 
 
 -Original Message-
 From: Torsten Curdt [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 4:13 PM
 To: [EMAIL PROTECTED]; Vadim Gritsenko
 Subject: Re: Need to replace xalan
 
 
 On Monday 06 May 2002 20:11, Vadim Gritsenko wrote:
  Try saxon-6.5.2.jar. Works for me.
 
  Vadim
 
 Just wondering... how is the speed compared to Xalan?
 --
 Torsten


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Cocoon and cokies

2002-05-06 Thread Vadim Gritsenko

 From: Ruth, Thomas {PDBI~Basel} [mailto:[EMAIL PROTECTED]]
 
 Thanks Vadim
 yes you are right. It this cookie handling of Cocoon I don't know what
to do.
 Any additional tips?

Nothing to add - you have to extend URLSource implementation. It does
not have cookie management functionality like browsers have.

If you don't want to implement this by yourself, take a look at
different HTTP client libraries out there. May be (just guessing)
commons-httpclient library will help. Right now URLSource is implemented
on top of java.net.URL.

Vadim

 Thanks
 Thomas
 
 
 
  From: Luca Morandini [mailto:[EMAIL PROTECTED]]
 
  Thomas,
 
  I know this will sound rather naive but... did you look into the
 cookie
  logicsheet ?
 
 Unfortunately, this won't help him. He wants to act Cocoon as a client
 to Livelink and manage cookies sent by Livelink on Cocoon side (like
 usual browser does).
 
 I would say that this requires patching of URLSource which is
 responsible for handling external HTTP sources, and adding cookie
 management capabilities to in.
 
 
 Vadim
 
 --
 Resistance is futile.
 
 
  Best regards,
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 
 
 -Original Message-
 From: Ruth, Thomas {PDBI~Basel}
 Sent: Saturday, May 04, 2002 6:10 PM
 To: '[EMAIL PROTECTED]'
 Subject: Cocoon and cokies
 
 
 Hi all
 we have introduced a new Intranet portal framework in our organization
(very
 successful for around 3000+ users). This portal framework is based on
two
 components. Cocoon2 and Livelink (a CMS from Opentext). We use
Livelink as the
 data entry tool for users. Livelink is already well known in the
organization
 so we reuse this tool. As Livelink offers a function to export
metadata to XML
 we use this and publish the relevant data to the Cocoon2 environment.
This is
 a real publishing process, content managers maintain data and at one
point in
 time they publish. So we publish the data on demand and present on the
portal
 whatever we do with the data using XSLT (and other features from
Cocoon).
 The export of the data can be triggered by using http request from any
 browser. Something like:
 http://livelink/id=12345objaction=xmlexportscope=subattributeinfo.
This
 generates a XML file (if already logged in). If I am not logged into
Livelink,
 I get a prompt and can provide my username/password. Livelink uses
cockie to
 handle the session and priviliges.
 I can also provide username/password in the URI
 http://livelink/func=ll.loginusername=XXXpassword=YYY. This works
from a
 browser. Livelink is recognizing the request does a login, sets the
cockie at
 the client browser by sending a page using the meta tag redirect.
 As we have such a great success in using this framework (Thanks to all
of you
 who have participated in building Cocoon2!!!) we now want to go a step
further
 and generate the XML file on request by the portal user.
 So the sitemap shall have an entry like
 map:aggregate element=live
   map:part

src=http://livelink/livelink.exe?func=ll.loginamp;username=xxxamp;pas
sword=
 yyy/
   map:part

src=http://livelink/livelink.exe?func=llamp;objAction=XMLExportamp;ob
jId=61
 52797amp;attributeinfoamp;scope=one/
 /map:aggregate
 
 This is working when sending these two http requests from an browser,
with the
 first request setting the cookie, so the second request gets
'through'.
 
 I have no idea on how we would do this in using Cocoon2. Any idea? How
can
 Cocoon handle cookies? Does anyone know?
 
 Thanks for any help
 Thomas Ruth
 [EMAIL PROTECTED]
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf

Thanks, I'll wait for this XSPT to be better documented,
until then, I'll just write a java-based Transformer...

-Chris

Vadim Gritsenko wrote:
 
  From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
  Ok, after reading this, and your previous response, I
  can now articulate my problem better.
 
  It seems the XSP allows you to create reusable sections
  of code (logicsheets) and to embed Java, the result
  is auto-generated code which is an instance of Generator.
 
 You have got it right.
 
 
  I was hoping that XSP could also be used to define a code-generated
  instance of Transformer.
 
 Cocoon markup-to-programming-language machinery can do that. But it
 will not be XSP, but other language on its own (I think XSPT: XSP for
 transformations ;)
 
  The way things are now, it seems that
  only Generators can be coded up using XSP -- not Transformers.
 
 Right now - yes.
 
  In other words, I must write my Transformer entirely in Java.
 
 Or implement XSPT. I think it will be simplier for you to code
 Transformer in Java at this stage. ;)
 
  Thanks for your help,
 
 Welcome.
 
 Vadim
 
 
-Chris
 
  Vadim Gritsenko wrote:
  
From: Chris Wolf [mailto:[EMAIL PROTECTED]]
   
I looked over most of the examples, including this one,
before posting.  It's not really what I want to do,  that
just seems to be using another pipline as an imput source,
  
   But it sounds like what you need: Generate XML - Use it as XSP
 source
   - XSL - Serialize.
  
effectively establishing alias URI's.
  
   Alias??? Alias should result in same result, but this produces
 *very*
   different result. Please compare:
  
   http://localhost:8080/cocoon/sub/xsp-cocoon
   http://localhost:8080/cocoon/sub/xsp-source
  
I was hoping to use embedded java to perform what would
otherwise be done with XSLT.
  
   It's called Transformer then.
  
 http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
  
 /transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
   arkup
  
   Implement, declare in the sitemap, use.
  
I will look into xinclude it it will work for
a dynamic datasource.
  
   It does work.
  
   Vadim
 ...
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Question about WildcardURIMatcher

2002-05-06 Thread Vadim Gritsenko

Alejandro,

What's wrong with:

map:match pattern=x*/y*/z*.gif 
  map:read mime-type=image/gif src=img/y{2}/z{3}.gif/


PS Plain text mail is better.

Vadim

--
Resistance is futile. 

-Original Message-
From: Alejandro Raiczyk [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 06, 2002 10:18 AM
To: '[EMAIL PROTECTED]'
Subject: Question about WildcardURIMatcher

Hi people, I've got this situation: 
When I make a request, for example, of a gif like y/z.gif (where
y=y1/y2/../yn, n=0) from a page p in x/ ({document_root}/x/p.xml, where
x=x1/x2/../xn, x=0) the URI passed to the matcher is x/y/z.gif.
The only part I care from this URI is y/z, I mean, I don't care where
the page that is making the request is, because I want z.gif to be taken
from {document_root}/img/y/z.gif.
I tried diferent pattern matchings, and couldn't find one that works.
The problem is to identify where x ends (or where y begins), so I tried
to use a explicit delimiter in the URIs like
    img src=#y/z.gif/ 
and then match this with: 
    map:match pattern=**#**.gif 
        map:read mime-type=image/gif src=img/{2}.gif/ 
    /map:match 
but it didn't work also. 
Can someone help me with this ? 
Thanks in advance. 
Alejandro D. Raiczyk 
Desarrollo de Proyectos 
Technisys Informática S.R.L. 
Tel./Fax: +54(11)4322-7100 int 133 
[EMAIL PROTECTED] 



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Form Data to XML Document

2002-05-06 Thread Ivelin Ivanov

Arda,

You may want to look at XMLForm in Cocoon2 ScratchPad :
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/webapp/mount/xm
lform/

See the README.txt file first.


What is the best way to get the user data from a form,
and to create a new xml document with that form data,
or update an existing xml document ?




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: dynamically generated cinclude-tag not processed

2002-05-06 Thread Vadim Gritsenko

 From: Dirk Reiss [mailto:[EMAIL PROTECTED]]
 
 Hello,
 
 we try to generate a cinclude:include - tag dynamically using the
following
 code:
 
 xsp:element

It has three parameters: uri (optional), prefix (optional), name.


   xsp:param name=namexsp:exprelementName/xsp:expr/xsp:param

You specified only one parameter - name. You have got element in the
default namespace, not in the CInclude namespace.


   xsp:attribute name=src
 xsp:expruri/xsp:expr
   /xsp:attribute
  /xsp:element
 
 where the variables used are initialized in the xsp:logic part after
calling
 an java-function
 
 the generated output in the webbrowser is
 
 cinclude:include

src=cocoon:/processed/lomobjects/lu/vorms/tp3/simulation/lektion1.xsp
/cinc
 lude:include
 
 if we code this 'statically' in our logicsheet it works fine, the
 cinclude-instruction is processed correctly and the needed xml-file is
 included.
 
 what could be wrong?
 
 xsp should be executed and AFTER that the cinclude-transformer should
do the
 rest... but it seems it doesnt...

It does, but it works only on elements in its namespace.

Vadim

 
 can anybody help??
 
 many thanks in advance
 dirk
 
 --

!--
--
 --
Dirk Reiss
Helmstedter Str. 134
38102 Braunschweig
++49 (0) 531 7996276
E-Mail: [EMAIL PROTECTED]


--
 --


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Vadim Gritsenko

 From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
 Thanks, I'll wait for this XSPT to be better documented,

It does not exist. But it is possible.

Vadim

 until then, I'll just write a java-based Transformer...
 
   -Chris
 
 Vadim Gritsenko wrote:
 
   From: Chris Wolf [mailto:[EMAIL PROTECTED]]
  
   Ok, after reading this, and your previous response, I
   can now articulate my problem better.
  
   It seems the XSP allows you to create reusable sections
   of code (logicsheets) and to embed Java, the result
   is auto-generated code which is an instance of Generator.
 
  You have got it right.
 
 
   I was hoping that XSP could also be used to define a
code-generated
   instance of Transformer.
 
  Cocoon markup-to-programming-language machinery can do that. But
it
  will not be XSP, but other language on its own (I think XSPT: XSP
for
  transformations ;)
 
   The way things are now, it seems that
   only Generators can be coded up using XSP -- not Transformers.
 
  Right now - yes.
 
   In other words, I must write my Transformer entirely in Java.
 
  Or implement XSPT. I think it will be simplier for you to code
  Transformer in Java at this stage. ;)
 
   Thanks for your help,
 
  Welcome.
 
  Vadim
 
 
 -Chris
  
   Vadim Gritsenko wrote:
   
 From: Chris Wolf [mailto:[EMAIL PROTECTED]]

 I looked over most of the examples, including this one,
 before posting.  It's not really what I want to do,  that
 just seems to be using another pipline as an imput source,
   
But it sounds like what you need: Generate XML - Use it as XSP
  source
- XSL - Serialize.
   
 effectively establishing alias URI's.
   
Alias??? Alias should result in same result, but this produces
  *very*
different result. Please compare:
   
http://localhost:8080/cocoon/sub/xsp-cocoon
http://localhost:8080/cocoon/sub/xsp-source
   
 I was hoping to use embedded java to perform what would
 otherwise be done with XSLT.
   
It's called Transformer then.
   
 
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
   
 
/transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
arkup
   
Implement, declare in the sitemap, use.
   
 I will look into xinclude it it will work for
 a dynamic datasource.
   
It does work.
   
Vadim
  ...


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez

 It does not *execute* XSP page neither *calls* XSP page. 
 It merely *reads* XSP page, that's it. 

Ah, my mistake then, sorry.  The interesting thing to note, is that it did
not give any errors calling it the way I did -- and when I remove the
xsp:page/xsp:page elements from the file and read it the way I did, it
gave me an erros in dynamic-page2html.xsl and in simple-page2html.xsl


 Fix it by specifying correct generator type:
 
 map:generate type=serverpages src=ogc/ogl-preamble.xsp/

I'll attempt this right away, but I still have a questions though:

Can I place a map:generate inside an aggregate?  I thought the only valid
child element was map:part.  Or do I accomplish it with a 

map:part type=serverpages src=ogc/ogl-preamble.xsp/ strip-root=true
/


---
OK, I've tried what you've suggested...  I'm using the map:generate tag,
with type equaling serverpages.  I've placed my own root tag inside the XSP
page, 


sitemap.xmap
=
map:match pattern=test_xsp
map:generate type=serverpages src=ogc/ogl-preamble.xsp/
map:serialize type=html/
/map:match
=

ogc/ogl-preamble.xsp
=
xsp:page xmlns:xsp=http://apache.org/xsp;
testtestmeHello World/testme/test
/xsp:page
=


Now when I browse to the appriopiate address I get back an emtpy html page:

=
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=windows-1252/HEAD
BODY/BODY/HTML
=

No error messages reported in the browser, no error messages in the error
log.  So, as a sanity check I brought up the cocoon status page, and low and
behold I'm getting the same error messages.  OK, now I don't think this
problem has anything to do with my particular application, but with my
replacing Xalan with Saxon...  So I'm going to pull the whole lot out,
reinstall, and try putting Saxon in again and see if I can find out where
exactly I start gettting the error messages.

For the record, here are the heads of the error messages that I get by
starting up Coocon, and browsing to the status page at
http://fclistserver.fullcoll.edu:8080/cocoon/status

There are all of the variety: 
Attribute xmlns: is not allowed on this element


=
ERROR   (2002-05-06) 20:59.26:769   [core.xslt-processor] (/cocoon/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column
-1; 
; SystemID:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17;
Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is
not allowed on this element


=
ERROR   (2002-05-06) 20:59.26:779   [core.xslt-processor] (/cocoon/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column
-1; 
; SystemID:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17;
Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is
not allowed on this element

=
ERROR   (2002-05-06) 20:59.26:809   [core.xslt-processor] (/cocoon/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column
-1; 
; SystemID:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17;
Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is
not allowed on this element

=
ERROR   (2002-05-06) 20:59.26:879   [core.xslt-processor] (/cocoon/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 33; Column
-1; 
; SystemID:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 33;
Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is
not allowed on this element

=
ERROR   (2002-05-06) 20:59.27:320   [core.xslt-processor] (/cocoon/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache
/cocoon/components/language/markup/sitemap/java/sitemap.xsl; 

Re: [FEEDBACK NEEDED] Cocoon build-installation wishlist

2002-05-06 Thread thacct

On Monday 29 April 2002 05:26, you wrote:
 We are in the process of touching the build system to make it easier for
 users to build and deploy Cocoon.

Great!

 What do you think of them, and what would you like to see in the Cocoon
 build-installation?

 [X] creation of minimal Cocoon WAR

I feel Peter's pain. I too have so far stayed away from updating from 
Cocoon1. All I want to do is render existing (static) XML files with existing 
(static) XSL(T) stylesheets. 

I can even live with associating stylesheets based on URI's, but the default 
build of Cocoon2 comes with so much stuff (which is certainly useful in other 
contexts) that it is a real pain to set up a minimalist environment for 
simple XSLT. There shouldn't be any need for outside projects such as Chello.

Oh and BTW, throwing RTFS's (Read the fucking sitemap) at people does not 
IMHO facilitate the proliferation of a technology with a substantial learning 
curve.

Thanks for all the constructive advise,
Thorsten

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]