get parameters into Sitemap

2003-06-11 Thread Maxime.Gheysen
How is it possible to get parameters into the sitemap? 
I tried :
map:parameter name=abc value={request-param:links}/
but it doesn't work this way!

And the second thing is how to set parameters to a transformer?
I tried :
map:transform type=ldap
map:parameter name=ldap:password
value={request-param:passwd}/
/map:transform
but it doesn't work...

thanks for your help

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



Alias in database descriptor file

2003-06-11 Thread Amelie Cordier
Hello !

Is anybody knows where I can find documentation about alias that are
used in database descriptor files?

I'm looking for a solution to a simple problem : I want to describe a
table in two different way and call the first one in one table-set and the
other one in a second table-set...

Thanks in advance

Amélie



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



Re: Alias in database descriptor file

2003-06-11 Thread Antonio Gallardo
Amelie Cordier dijo:
 I want to describe a
 table in two different way and call the first one in one table-set and
 the other one in a second table-set...

Hi, check this:

http://wiki.cocoondev.org/Wiki.jsp?page=ModularDatabaseActions

Sorry, I can't explain in more detail this. I am too busy now. :(

Antonio Gallardo




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



problem with setting up cocoon in webLogic

2003-06-11 Thread Anne Kwong

Dear all,
I followed the instruction and is able to set up theCocoonServlet on weblogic. However, when I tried to bring up localhost:7001/cocoon/, I am getting the following error:


type fatal
message Cocoon was not initialized.
description Cocoon was not initialized. Cannot process request.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
Could someone please help me out? 
Thanks,
Anne

Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: problem with setting up cocoon in webLogic

2003-06-11 Thread David Kavanagh




Could you please post errors from the log files? They should be in your cocoon
web app directory under WEB-INF/logs. The error.log usually has something
useful, but I would look in core.log for this type of error.

David

Anne Kwong wrote:

   
  Dear all,
 
  I followed the instruction and is able to set up theCocoonServlet
on weblogic. However, when I tried to bring up localhost:7001/cocoon/, I
am getting the following error:
 
  
 
   
  type fatal
 
  message Cocoon was not initialized.
 
  description Cocoon was not initialized. Cannot process request.
 
  sender org.apache.cocoon.servlet.CocoonServlet
 
  source Cocoon servlet
 
  Could someone please help me out? 
 
  Thanks,
 
  Anne
 
  
  
  
   Do you Yahoo!?
 Free online
calendar with sync to Outlook(TM). 





XSP/Java - simple? problem

2003-06-11 Thread Derek Hohls
Hi

Can someone explain what is wrong with
the following code:

  labels show=true
 
  xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
  
  xsp:logic
  if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) { 
 
  /xsp:logic
xsp:attribute name=rotate14/xsp:attribute
  xsp:logic
  } else {
  /xsp:logic
xsp:attribute name=rotate1/xsp:attribute
  xsp:logic
  }
  /xsp:logic 

Gives an output of:

  labels show=true label=null rotate=14 rotate=1

ie. if the fGraphPtLabel is null, the rotate should be equal to 1
and not 14 as well?!

Thanks
Derek


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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



problem with setting up cocoon in webLogic

2003-06-11 Thread Anne Kwong
Dear all,
I followed the instruction and is able to set up theCocoonServlet on weblogic. However, when I tried to bring up localhost:7001/cocoon/, I am getting the following error:


type fatal
message Cocoon was not initialized.
description Cocoon was not initialized. Cannot process request.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
Could someone please help me out? 
Thanks,
Anne


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: problem with setting up cocoon in webLogic

2003-06-11 Thread Alexandre Victoor
What version of weblogic are you using? If I am not wrong, Cocoon2 works 
under weblogic 6.1 sp4 but not under weblogic 6.1 sp2...

Alex

Anne Kwong wrote:
Dear all,
I  followed the instruction and is able to set up the CocoonServlet on 
weblogic.  However, when I tried to bring up localhost:7001/cocoon/, I am 
getting the following error:

type fatal

message Cocoon was not initialized.

description Cocoon was not initialized. Cannot process request.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

Could someone please help me out?

Thanks,

Anne



Do you Yahoo!?
Free 
http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.comonline 
calendar with sync to Outlook(TM).


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


Re: XSP/Java - simple? problem

2003-06-11 Thread Andreas Hartmann
Hi Derek,

Derek Hohls wrote:

Hi

Can someone explain what is wrong with
the following code:
  labels show=true
 
  xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
  
  xsp:logic
  if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {  
  /xsp:logic
xsp:attribute name=rotate14/xsp:attribute
  xsp:logic
  } else {
  /xsp:logic
xsp:attribute name=rotate1/xsp:attribute
  xsp:logic
  }
  /xsp:logic 

Gives an output of:

  labels show=true label=null rotate=14 rotate=1

ie. if the fGraphPtLabel is null, the rotate should be equal to 1
and not 14 as well?!
it seems that your java code is not interpreted as such, and
the if condition is not added to the Java code ...
At a first glance it looks OK - did you take a look at the
generated Java source?
Andreas



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


Re: XSP/Java - simple? problem

2003-06-11 Thread Derek Hohls
Andreas

Yes, the Java code generated does not seem to reflect
my *intent* in the XSP (see below) ie. the attributes 
have  been moved outside of the if test for some reason
- any ideas how to create a more appropriate code set??

!-- generated code snippet --

xspAttr.addAttribute(
  ,
  label,
  label,
  CDATA,
  String.valueOf(fGraphPtLabel)
);
  
xspAttr.addAttribute(
  ,
  rotate,
  rotate,
  CDATA,
  14
);
  
xspAttr.addAttribute(
  ,
  rotate,
  rotate,
  CDATA,
  1
);
  
this.contentHandler.startElement(
  ,
  labels,
  labels,
  xspAttr
);
xspAttr.clear();
   
this.characters(\n \n  );
this.characters(\n  \n  );
  
  if ((fGraphPtLabel != null)  (fGraphPtLabel.equals(name))) { 
   
this.characters(\n);  
this.characters(\n  );  
  } else {  
this.characters(\n);
this.characters(\n  );  
  }

!-- generated code --

 [EMAIL PROTECTED] 11/06/2003 10:00:53 
Hi Derek,

Derek Hohls wrote:

 Hi
 
 Can someone explain what is wrong with
 the following code:
 
   labels show=true
  
   xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
   
   xsp:logic
   if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {   

   /xsp:logic
 xsp:attribute name=rotate14/xsp:attribute
   xsp:logic
   } else {
   /xsp:logic
 xsp:attribute name=rotate1/xsp:attribute
   xsp:logic
   }
   /xsp:logic 
 
 Gives an output of:
 
   labels show=true label=null rotate=14 rotate=1
 
 ie. if the fGraphPtLabel is null, the rotate should be equal to 1
 and not 14 as well?!

it seems that your java code is not interpreted as such, and
the if condition is not added to the Java code ...
At a first glance it looks OK - did you take a look at the
generated Java source?

Andreas



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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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



Re: XSP/Java - simple? problem

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote:
   labels show=true
   xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
   xsp:logic
   if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {   

 xsp:attribute name=rotate14/xsp:attribute
   } else {
 xsp:attribute name=rotate1/xsp:attribute
   }
   /xsp:logic 

Can't see a problem here but you might like to know that you could
save yourself some of the xsp:logic tags (see above)

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

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



Re: XSP/Java - simple? problem

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 10:27 AM, Christian Haul wrote:
 On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote:
labels show=true
xsp:attribute 
  name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
xsp:logic
if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) { 
   
  xsp:attribute name=rotate14/xsp:attribute
} else {
  xsp:attribute name=rotate1/xsp:attribute
}
/xsp:logic 

BTW (after looking at your followup including the generated code) you
could change the order to

labels show=true
   xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
   xsp:logic
   if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {
  
  rotate = 14;
   } else {
  rotate = 1;
   }
   /xsp:logic 
   xsp:attribute name=rotatexsp:exprrotate/xsp:expr/xsp:attribute

I'm afraid that putting the logic into the xsp:attribute tag is not
possible unless it is a java expression like

labels show=true
   xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
   xsp:attribute name=rotatexsp:expr(
  (fGraphPtLabel != null) amp;amp;
  (fGraphPtLabel.equals(name)) ? 14 : 1)
  /xsp:expr/xsp:attribute

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

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



RE: conditions in xsl

2003-06-11 Thread Maxime.Gheysen
Just a question about your code, I try to use parameter like you, but
from another page. What is wrong here???

Sitemap :
=
map:transform type=xslt src=test.xsl
map:parameter name=use-request-parameters value=true/
/map:transform

XSL :
=

xsl:variable name=passwordxsl:param
name=password//xsl:variable
...
user
namexsl:value-of select=cn//name
passwordnormalize-space(password)/password
/user


-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 4:08 AM
To: [EMAIL PROTECTED]
Subject: conditions in xsl


Is it possible to do if statements in an xsl page.  What I am trying to
do is set the first value I get back as selected then set the rest as
unselected.  Example since it is hard to explain.

I currently have this:

xsl:template match=report

xsl:variable name=report-namexsl:value-of
select=report-name//xsl:variable

div id=sw{normalize-space(report-name)} class=dlgSwitchSelected
img src=images\icons\occurrenceOverview.gif /xsl:value-of
select=normalize-space(report-name)//div

/xsl:template

 

this gives me back this:

 

div class=dlgSwitchSelected id=swOverdue Task Report

img src=images\icons\occurrenceOverview.gifOverdue Task Report/div

div class=dlgSwitchSelected id=swTask Status Report

img src=images\icons\occurrenceOverview.gifTask Status Report/div

div class=dlgSwitchSelected id=swUn-Assigned Task Report

img src=images\icons\occurrenceOverview.gifUn-Assigned Task
Report/div

 

 

What I want is to get this back:

div class=dlgSwitchSelected id=swOverdue Task Report

img src=images\icons\occurrenceOverview.gifOverdue Task Report/div

div class=dlgSwitch id=swTask Status Report

img src=images\icons\occurrenceOverview.gifTask Status Report/div

div class=dlgSwitch id=swUn-Assigned Task Report

img src=images\icons\occurrenceOverview.gifUn-Assigned Task
Report/div

 

where the only one that has the selected class is the first one.  Any
help would be great.  Thank you very much.

 

Tim Bachta

 

 


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


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



Re: Alias in database descriptor file

2003-06-11 Thread Amelie Cordier
Thanks...

I have already looked at it but with no success so I'm looking for an
example...

Anyway, thanks for the time you spend to answer my question :)

Amelie

 Amelie Cordier dijo:
 I want to describe a
 table in two different way and call the first one in one table-set and
 the other one in a second table-set...

 Hi, check this:

 http://wiki.cocoondev.org/Wiki.jsp?page=ModularDatabaseActions

 Sorry, I can't explain in more detail this. I am too busy now. :(

 Antonio Gallardo




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




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



Re: get parameters into Sitemap

2003-06-11 Thread Lionel Crine
1/ to send request parameter to a transformer :

for example :
map:transform type=xslt src=xsl/modify_status.xsl
map:parameter name=use-request-parameters value=true / -- This line 
is mandatory for the xslt transformer
map:parameter name=status value={request-param:status} /
/map:transform

And the second thing is how to set parameters to a transformer?
I tried :
map:transform type=ldap
map:parameter name=ldap:password
value={request-param:passwd}/
/map:transform
2/ ldap:password should be the name you called in the transformer.
like this (in the setup method):
try {
this.password = parameters.getParameter(ldap:password);
}
...
Lionel

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


Re: OOo

2003-06-11 Thread Upayavira
Georges,

Sounds great! Well done!

Now, would you be willing to write this up for the benefit of others on the Cocoon 
wiki?

If you go to:

http://wiki.cocoondev.org/Edit.jsp?page=OpenOfficeSerialization

You can create a page there.

That would be really helpful.

Regards, Upayavira

On 11 Jun 2003 at 2:23, Georges Roux wrote:

 It work perfectly now,
 but there is some error in the ZipArchive serializer documentation the
 end tag is wrong. /zip:archive:zip must be /zip:archive
 
 I am very happy cause now I can use this format to transform to OOo
 documents Thanks everybody
 
 Georges


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



Re: XSP/Java - simple? problem

2003-06-11 Thread Joerg Heinicke
This is due to a bug: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15841.

In the code 
(cocoon-2.1\src\java\org\apache\cocoon\components\language\markup\xsp\java\xsp.xsl):

xsl:template match=*[not(namespace-uri(.) = 'http://apache.org/xsp')]
  !-- matching on your label element --
xsl:apply-templates select=@*/

  !-- catching all xsp:attributes
   they are added to xspAttr --
xsl:apply-templates select=xsp:attribute | 
xsp:logic[xsp:attribute]/

  !-- create the element --
this.contentHandler.startElement(...);
xspAttr.clear();
  !-- catching the rest of the elements --
xsl:apply-templates select=node()[not(
(namespace-uri(.) = $xsp-uri and local-name(.) = 'attribute') or
(namespace-uri(.) = $xsp-uri and local-name(.) = 'logic' and 
./xsp:attribute)
  )]/

  !-- end element --
this.contentHandler.endElement(...);
/xsl:template

So first templates are applied for all your xsp:attribute/s. And 
second the rest including xsp:logic/. This is of course completely 
buggy, but I don't know how to fix it without breaking existing stuff. 
The problem is, that you are creating the attributes in XSL and XSP 
*after* the element, in SAX you must already have collected them when 
the element is created.

Joerg

Christian Haul wrote:
On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote:

 labels show=true
 xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
 xsp:logic
 if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {  
   xsp:attribute name=rotate14/xsp:attribute
 } else {
   xsp:attribute name=rotate1/xsp:attribute
 }
 /xsp:logic 


Can't see a problem here but you might like to know that you could
save yourself some of the xsp:logic tags (see above)
	Chris.


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


RE: conditions in xsl

2003-06-11 Thread Upayavira
On 11 Jun 2003 at 10:41, [EMAIL PROTECTED] wrote:

 Just a question about your code, I try to use parameter like you, but
 from another page. What is wrong here???
 
 Sitemap :
 =
 map:transform type=xslt src=test.xsl
  map:parameter name=use-request-parameters value=true/
 /map:transform  
 
 XSL :
 =
 
 xsl:variable name=passwordxsl:param
 name=password//xsl:variable
 ...
  user
   namexsl:value-of select=cn//name
   passwordnormalize-space(password)/password
  /user

You should have 
xsl:stylesheet
  xsl:param name=password/

  xsl:template match=..
 ..
passwordxsl:value-of select=normalize-space($password)//password
...

But this is more of an XSLT question than a Cocoon one: perhaps you should be 
checking these things out on the Mulbery XSLT list.

Regards, Upayavira


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



FOP and greek fonts - is it possible?

2003-06-11 Thread Stavros Kounis
hi people

i try to generate pdf files with greek characters

first i have try to edit cocoon's hello world example and add some greek
characters ayter the word world ... the rerults in my browser is a pdf
with the content:

hello world ###


where ### must be my greeck characters


i have search in this list for similar problem but without to find
something that match in my case

the only thing i have understand is that i must to include a true type
font in pdf generation process
(if this is the solution, how can i do this ?)



thnx for your help

--stavros



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



Re: conditions in xsl

2003-06-11 Thread Joerg Heinicke
[EMAIL PROTECTED] wrote:
Just a question about your code, I try to use parameter like you, but
from another page. What is wrong here???
Sitemap :
=
map:transform type=xslt src=test.xsl
map:parameter name=use-request-parameters value=true/
/map:transform  
XSL :
=
xsl:variable name=passwordxsl:param
name=password//xsl:variable
This is completely wrong. You need a top-level xsl:param/:

!-- empty string as default value --
xsl:param name=password select=''/
...
user
namexsl:value-of select=cn//name
passwordnormalize-space(password)/password
Here you simply create text and not an expression. And you don't refer 
to the variable /password/, but to an element /password/. Change it to 
passwordxsl:value-of select=normalize-space($password)/password.

	/user
Joerg

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


[FIXED] Re: XSP/Java - simple? problem

2003-06-11 Thread Derek Hohls
Brilliant, thanks Chris.

To summarise, this:

   xsp:logic
   if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {
  
   /xsp:logic
 xsp:attribute name=rotate14/xsp:attribute
   xsp:logic
   } else {
   /xsp:logic
 xsp:attribute name=rotate1/xsp:attribute
   xsp:logic
   }
   /xsp:logic 

should be:

   xsp:attribute name=rotatexsp:expr
  ((fGraphPtLabel != null) amp;amp;
 (fGraphPtLabel.equals(name)) ? 14 : 1)
  /xsp:expr/xsp:attribute


 [EMAIL PROTECTED] 11/06/2003 10:34:55 
On 11.Jun.2003 -- 10:27 AM, Christian Haul wrote:
 On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote:
labels show=true
xsp:attribute 
  name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
xsp:logic
if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) { 
   
  xsp:attribute name=rotate14/xsp:attribute
} else {
  xsp:attribute name=rotate1/xsp:attribute
}
/xsp:logic 

BTW (after looking at your followup including the generated code) you
could change the order to

labels show=true
   xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
   xsp:logic
   if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {
  
  rotate = 14;
   } else {
  rotate = 1;
   }
   /xsp:logic 
   xsp:attribute name=rotatexsp:exprrotate/xsp:expr/xsp:attribute

I'm afraid that putting the logic into the xsp:attribute tag is not
possible unless it is a java expression like

labels show=true
   xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute
   xsp:attribute name=rotatexsp:expr(
  (fGraphPtLabel != null) amp;amp;
  (fGraphPtLabel.equals(name)) ? 14 : 1)
  /xsp:expr/xsp:attribute

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

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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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



Re: FOP and greek fonts - is it possible?

2003-06-11 Thread Joerg Heinicke
http://xml.apache.org/fop/fonts.html
http://cocoon.apache.org/2.1/userdocs/serializers/pdf-serializer.html
Joerg

Stavros Kounis wrote:
hi people

i try to generate pdf files with greek characters

first i have try to edit cocoon's hello world example and add some greek
characters ayter the word world ... the rerults in my browser is a pdf
with the content:
hello world ###

where ### must be my greeck characters

i have search in this list for similar problem but without to find
something that match in my case
the only thing i have understand is that i must to include a true type
font in pdf generation process
(if this is the solution, how can i do this ?)


thnx for your help

--stavros


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


Re: How can I send sitemap param from my wizard action?

2003-06-11 Thread Lionel Crine
I don't understand quite well your question.
 but if you want your sitemap parameter you should get them from the act 
method and then pass them to your perform method.

Lionel

At 10:36 10/06/2003 -0700, you wrote:
Hi all,

How I see AbstractXMLFormAction.page(..), objectMap is
creating new:
 protected Map page(String pageName) {
   Map objectModel = new HashMap();
   objectModel.put(OBJECT_MAP_NEXT_PAGE, pageName);
   return objectModel;
 }
What if I want send some sitemap param from my wizard
action ( from perform() )?
public Map perform () {
  ...
 if ( formView.equals ( VIEW_REGISTRATION ) ) {
if ( command.equals( CMD_NEXT ) ) {
-- here I want put my sitemap param
  return page(  VIEW_INTEREST );
}
  }
  ...
Thanks,
Hill
cocoon 2.1m3-dev, tomcat 4, java 1.4
__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Authentification with requests and ldap HELP!

2003-06-11 Thread Maxime.Gheysen
I have a portal, on my login page I have the field name and
password.
When I submit the form : (  form method=post target=_top
action=configDBWOCfree-auth?resource=configDBWOC-portal  ) I want to
execute the authentification pipeline. To authentificate I want to
execute an ldap query, but with ldap:rootdn (ldap user) and
ldap:password (ldap password) as my two text fields from my login page.
Then, if the query suceeds, get the user information from ldap and go to
the next page.

sitemap.xmap

map:pipeline internal-only=true
 map:match pattern=sunrise-*
  !-- authentication --
  map:match pattern=sunrise-authuser
  map:generate src=ldap.xml/
  map:transform type=ldap
map:parameter name=rootdn  value={request-param:name}/
map:parameter name=password  value={request-param:password}/ 
  /map:transform  
  map:transform type=xslt src=ldap.xsl
map:parameter name=use-request-parameters value=true/
  /map:transform

  map:transform src=styles/sunrise-user.xsl
map:parameter name=use-request-parameters value=true/
  /map:transform  
  map:serialize type=xml/   
/map:match

ldap.xml

...
!-- without ldap:rootdn and ldap:password because they are
parameters in the sitemap--
...

ldap.xsl

xsl:param name=password/
...
namexsl:value-of select=userName//name !-- userName is an ldap
attribute--
passwordxsl:value-of select=normalize-space($password)/password


sunrise-user.xsl

xsl:param name=password/
xsl:param name=name/
...
xsl:if test=normalize-space(name) = $name and
normalize-space(password) = $password
...

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



Re: Alias in database descriptor file

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 11:32 AM, Amelie Cordier wrote:
 Thanks...
 
 I have already looked at it but with no success so I'm looking for an
 example...
 
 Anyway, thanks for the time you spend to answer my question :)

In a table-set you need to refer to tables by @name. This @name is
used to create the SQL statements. However, you might need different
views to a table (different number of columns, different keys) or even
have injected a SQL expression into the @name like a join
expression. In these cases you may refer to the @alias instead of the
@name of a table. For the lookup, @name and @alias are
equivalent. Search starts at the top and uses the first matching
table.

  table name=foo
!-- = INSERT INTO foo(one,two) VALUES (?,?) --
!-- = DELETE FROM foo WHERE one = ? --
keys
  key name=one type=string/
/keys
values
  value name=two type=string/
/values
  /table

  table name=foo alias=foo2
!-- = INSERT INTO foo(one,two,three,four) VALUES (?,?,?,?) --
!-- = DELETE FROM foo WHERE one = ? --
keys
  key name=one type=string/
/keys
values
  value name=two type=string/
  value name=three type=string/
  value name=four type=string/
/values
  /table

  table name=foo alias=foo3
!-- = INSERT INTO foo(four,one,two,three) VALUES (?,?,?,?) --
!-- = DELETE FROM foo WHERE four = ? --
keys
  key name=four type=string/
/keys
values
  value name=one type=string/
  value name=two type=string/
  value name=three type=string/
/values
  /table

  table-set name=alpha
!-- uses the first table definition --
table name=foo/
  /table-set

  table-set name=beta
!-- uses the second table definition --
table name=foo2/
  /table-set

  table-set name=gamma
!-- uses the third table definition --
table name=foo3/
  /table-set

Could you have a look at the wiki page and modify it in a way you find
the description better / extent it? That would really by great!

Thanks.

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

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



Re: FOP and greek fonts - is it possible?

2003-06-11 Thread Stavros Kounis

thnx joerg
it work (now i have greek in my pdfs)

but is it legal to use windows true
type fonts to publish my work?

what other people here do when they need to ebbend fonts?


-- stavros
On Wed, 11 Jun 2003, Joerg Heinicke wrote:

 http://xml.apache.org/fop/fonts.html
 http://cocoon.apache.org/2.1/userdocs/serializers/pdf-serializer.html

 Joerg

 Stavros Kounis wrote:
  hi people
 
  i try to generate pdf files with greek characters
 
  first i have try to edit cocoon's hello world example and add some greek
  characters ayter the word world ... the rerults in my browser is a pdf
  with the content:
 
  hello world ###
 
 
  where ### must be my greeck characters
 
 
  i have search in this list for similar problem but without to find
  something that match in my case
 
  the only thing i have understand is that i must to include a true type
  font in pdf generation process
  (if this is the solution, how can i do this ?)
 
 
 
  thnx for your help
 
  --stavros


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



-- 
Stavros S. Kounis
Development  Research Department
Osmosis - networks  consulting services

web:http://www.osmosis.gr
email:  [EMAIL PROTECTED]


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



RE: Authentification with requests and ldap HELP!

2003-06-11 Thread Maxime.Gheysen
In an easier phrase all I still need to do is :

Set the ldap:rootdn and ldap:password values from the login form!

  map:transform type=ldap
map:parameter name=rootdn  value={request-param:name}/
map:parameter name=password  value={request-param:password}/ 
  /map:transform  

it's maybe cleaner this way?

Thanks




-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Wednesday, June 11, 2003 11:21 AM
To: [EMAIL PROTECTED]
Subject: Authentification with requests and ldap HELP!


I have a portal, on my login page I have the field name and
password.
When I submit the form : (  form method=post target=_top
action=configDBWOCfree-auth?resource=configDBWOC-portal  ) I want to
execute the authentification pipeline. To authentificate I want to
execute an ldap query, but with ldap:rootdn (ldap user) and
ldap:password (ldap password) as my two text fields from my login page.
Then, if the query suceeds, get the user information from ldap and go to
the next page.

sitemap.xmap

map:pipeline internal-only=true
 map:match pattern=sunrise-*
  !-- authentication --
  map:match pattern=sunrise-authuser
  map:generate src=ldap.xml/
  map:transform type=ldap
map:parameter name=rootdn  value={request-param:name}/
map:parameter name=password  value={request-param:password}/ 
  /map:transform  
  map:transform type=xslt src=ldap.xsl
map:parameter name=use-request-parameters value=true/
  /map:transform

  map:transform src=styles/sunrise-user.xsl
map:parameter name=use-request-parameters value=true/
  /map:transform  
  map:serialize type=xml/   
/map:match

ldap.xml

...
!-- without ldap:rootdn and ldap:password because they are
parameters in the sitemap--
...

ldap.xsl

xsl:param name=password/
...
namexsl:value-of select=userName//name !-- userName is an ldap
attribute--
passwordxsl:value-of select=normalize-space($password)/password


sunrise-user.xsl

xsl:param name=password/
xsl:param name=name/
...
xsl:if test=normalize-space(name) = $name and
normalize-space(password) = $password
...

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


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



Re: FOP and greek fonts - is it possible?

2003-06-11 Thread Emmanuil Batsis (Manos)
Geia sou Stavro,

You might want to check out

http://corefonts.sourceforge.net/

and the license that was used at the time (still in the distributable).

Cheers,

Manos



Stavros Kounis wrote:

thnx joerg
it work (now i have greek in my pdfs)
but is it legal to use windows true
type fonts to publish my work?
what other people here do when they need to ebbend fonts?

-- stavros
On Wed, 11 Jun 2003, Joerg Heinicke wrote:

http://xml.apache.org/fop/fonts.html
http://cocoon.apache.org/2.1/userdocs/serializers/pdf-serializer.html
Joerg

Stavros Kounis wrote:

hi people

i try to generate pdf files with greek characters

first i have try to edit cocoon's hello world example and add some greek
characters ayter the word world ... the rerults in my browser is a pdf
with the content:
hello world ###

where ### must be my greeck characters

i have search in this list for similar problem but without to find
something that match in my case
the only thing i have understand is that i must to include a true type
font in pdf generation process
(if this is the solution, how can i do this ?)


thnx for your help

--stavros


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





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


Re: New Sites

2003-06-11 Thread Kevin McDermott
Title: Re: New Sites







Steve Brackenbury [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...

 At 11:34 AM 6/10/2003 +0100, Kevin McDermott wrote:
 
 Steve Brackenbury [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]...
 
snip
 I'm a Cocoon neophyte, so please set me straight if I'm wrong, but from 
 what I've read about Cocoon's caching mechanism, I'd consider the above 
 content as fairly static.


Yeah...I suppose, the inbuilt file-time caching does help a _lot_.


 The degree to which it would be considered static by Cocoon would depend on 
 how you've configured caching, the size of the component pool and the 
 number of documents you serve up on the site. Cocoon would process a 
 pipeline once and for subsequent requests it would attempt to return the 
 requested document from the cache if available.


Yup


snip servlet description

 Again, depending on the component pool and whether caching is configured - 
 I would think LastModified would help performance if the Servlet has also 
 been configured to cache results.


I'm not sure of the effect that this is having, originally it didn't implement lastModified(), and performance was poor, and when lastModified() was implemented performance went up, but, unfortunately, other factors changed too, so I'm not sure about the exact gain.

 We have purchased caching hardware and plan use it to move static content 
 (images and fragments) out to the edge of our network to relieve our web 
 servers of this responsibility.


ESI goes further than that, in defining templates for the edge servers to request content into, the Edge Servers actually serve the pages, and are responsible for page composition, I always use Amazon when explaining ESI, as if they don't use it (I dunno if they do), the page layout really lends itself to ESI :)

 I guess I'm still looking for a comfort and confidence level that Cocoon is 
 going to be able to scale if used as the presentation tier for a large J2EE 
 application. I'm not sure yet, but I'm thinking that if there were a way 
 to achieve the equivalent of a LastModified in the content I serve up 
 from my J2EE business tier, perhaps I can take advantage of Cocoon caching 
 to a degree for things like user page refreshes etc... This should be 
 possible right? Any caveats or potential issues that would prevent me from 
 doing this?


the lastModified() method actually pulls it's value from the logic tier in this case, for the purposes of the very aggressive go-live date, the logic tier is actually part of the Servlet, but, it's within scope for phase 2 (as apps are migrated) for this to drop one level to the App server.

Caching business logic is obviously difficult, for our purposes, the feeds data is updated every 15 minutes during the day, and that's a simple decision, other data is considerably more difficult.

I can recommend http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index1.html as an interesting series on improving Servlets, but, if you're going to be using something like EJB (as we might, for the personalisation that's to follow for Phase 2), then there are a variety of techniques worth exploring (in addition to my Teamsite certification, I'm also a Java Enterprise Architect :)

 Thanks for sharing your experience Kevin. It's been very useful. BTW - 
 what release of Cocoon are you using for SLI?
 


We're using 2.0.4 with some customisations (outlined before)


Kevin


__ 
This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer.




Re: Alias in database descriptor file

2003-06-11 Thread Amelie Cordier
Thanks for your explantion... this is what I understood by reading the
wiki page... but the matter is it still doesn't work... I wonder if there
is an option to check in order to enable aliases or something like that...

And,by the way, I do want to modifiy the wiki page but I need to make it
work first... :)

Here is what I've done so far :

-- database.xml --


table name=inscrit
  keys
 key name=id_1 type=int
mode name=request-param type=all/
 /key
 key name=id_2 type=int
mode name=request-param type=all/
 /key
 key name=id_3 type=int
mode name=request-param type=all/
 /key
 key name=id_4 type=int set=master
mode name=request-param type=all/
 /key
  /keys
  values
 value name=val1 type=int
mode name=request-param type=all/
 /value
 value name=val2 type=string
mode name=request-param type=all/
 /value
 value name=val3 type=float
mode name=request-param type=all/
 /value
  /values
   /table


   table name=inscrit alias=inscrit2
  keys
 key name=id_1 type=int
mode name=request-param type=all/
 /key
 key name=id_2 type=int
mode name=request-param type=all/
 /key
 key name=id_3 type=int
mode name=request-param type=all/
 /key
 key name=id_4 type=int set=master
mode name=request-param type=all/
/key
  /keys
  values
 value name=val1 type=int set=slave
mode name=request-param type=all/
 /value
 value name=val2 type=string set=slave
mode name=request-param type=all/
 /value
 value name=val3 type=float set=slave
mode name=request-param type=all/
 /value
  /values
   /table


!-- ... --

   table-set name=saisie
  table name=inscrit2/
   /table-set

   table-set name=inscrit
  table name=inscrit/
   /table-set

-- END database.xml --

The two descriptions work independently, I've check them both...but when 
they are together in the file, only the first one works (inscrit).

Furthermore, there is something strange in the sitemap.log... I don't know
if it is really correct...

-- sitemap.log --
...
DEBUG   (2003-06-11) 12:57.12:274   [sitemap] (/cocoon/myappli/toto)
Thread-12/DatabaseAction: query: UPDATE inscrit SET val1= ?, val2= ?,
val3= ? WHERE id_1= ? AND id_2= ? AND id_3= ? AND id_4= ?
DEBUG   (2003-06-11) 12:57.12:275   [sitemap] (/cocoon/myappli/toto)
Thread-12/DatabaseAction: Trying to set column inscrit2.id_1 from
request-param using getAttribute method
...
-- END sitemap.log --

WHY inscrit2 ???

Any ideas?

Thanks...
Amélie

 In a table-set you need to refer to tables by @name. This @name is used
 to create the SQL statements. However, you might need different views to
 a table (different number of columns, different keys) or even have
 injected a SQL expression into the @name like a join
 expression. In these cases you may refer to the @alias instead of the
 @name of a table. For the lookup, @name and @alias are
 equivalent. Search starts at the top and uses the first matching
 table.



 Could you have a look at the wiki page and modify it in a way you find
 the description better / extent it? That would really by great!




 Thanks.

   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

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




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



Re: Alias in database descriptor file

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 01:23 PM, Amelie Cordier wrote:
 Thanks for your explantion... this is what I understood by reading the
 wiki page... but the matter is it still doesn't work... I wonder if there
 is an option to check in order to enable aliases or something like that...
 
 And,by the way, I do want to modifiy the wiki page but I need to make it
 work first... :)

:-)

 Here is what I've done so far :

snip what=correct code/

 The two descriptions work independently, I've check them both...but when 
 they are together in the file, only the first one works (inscrit).

How do you know it doesn't work?

 Furthermore, there is something strange in the sitemap.log... I don't know
 if it is really correct...
 
 ...
 DEBUG   (2003-06-11) 12:57.12:274   [sitemap] (/cocoon/myappli/toto)
 Thread-12/DatabaseAction: query: UPDATE inscrit SET val1= ?, val2= ?,
 val3= ? WHERE id_1= ? AND id_2= ? AND id_3= ? AND id_4= ?
 DEBUG   (2003-06-11) 12:57.12:275   [sitemap] (/cocoon/myappli/toto)
 Thread-12/DatabaseAction: Trying to set column inscrit2.id_1 from
 request-param using getAttribute method
 ...
 
 WHY inscrit2 ???

Because you are using the incrit2 alias. Maybe this isn't very smart
and the action should use the @name at all times Anyway, you might
want to explicitly refer to a request parameter or disable inclusion
of the table name for the automatic parameter name guessing.

If the two definitions were different, you would be able to see
different SQL statements.

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

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



Customize XMLForm validation

2003-06-11 Thread Mirek Rewak
Hi,
How can I customize and enhance validation of XMLForm? It's ok for me to 
validate simple restrictions with builtin schematron but sometimes (maybe 
for all forms) I'd like to add my validation routine(s) e.g. query the db, 
see if values from two fields are equal, etc. Docs mention that I could 
write my own Validator but I don't want to write validators from stratch 
for all my forms (I still want to use Schematron validator). The docs also 
say that I can filterRequestParamater to omit it in validation and then 
perform my own checking (separate action?) but I don't think it's good 
solution.

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


RE: TeX to PDF serializator

2003-06-11 Thread Jestel, Roger B. (LNG-ALB)
Peter,

I don't know anything about Tex/Latex, but I had a similar question
generating infobases( a proprietary binary format) out of xml.  This
requires a command line tool to do the conversion from a text format (fff)
to a binary file.  This was just a development tool, didn't go to
production, but  the coding required was minimal. 
I used  xslt to generate the text format from the source xml (tex in your
case), then used the source writing transformer (actually a simplified
version of it that is sax based and only writes entire files), to write the
text file out to the filesystem (The command line tool requires a file to
operate on).  My serializer then blocked the output of the source writing
transformer and read it to get the name of the file , and did a
Runtime.getRuntime().exec(cmd) out to dos to run the converter, and then
sent the content generated from the dos command back to the user via the
serializers output stream.  If Latex has an api that could accept/return a
stream from your serializer, that would save writing anything to the
filesystem.  

Something similar to this could work for Latex, not sure how the performance
would be, but the coding is easy.  

Roger

-Original Message-
From: Peter Flynn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2003 7:52 PM
To: [EMAIL PROTECTED]
Subject: Re: TeX to PDF serializator


On Tue, 2003-06-10 at 23:57, Andre Thenot wrote:
 On Tuesday, June 10, 2003, at 06:37 PM, Peter Flynn wrote:
 
  In any case, it shouldn't be specific to LaTeX. All we need is an 
  ability of Cocoon to spawn an external process and serve the result 
  back to the user with a defined media type.
 
 There's a _big_ problem with this: how do I apply a transformer
 on an external process? I cant!

You don't, and you don't need to. All you need to do is transform the XML
using an XSLT text-mode stylesheet and feed the *output* to LaTeX, then pass
the resulting PDF back to the user.

This is the same concept as transforming XML to FO and
passing the result through a FO processor and passing the resulting PDF back
to the user.

 For your use (reading and serving), you could write a servlet
 (or even use a plain web server, for that matter).

I'd rather use Cocoon to manage the process.

 Cocoon is an *XML* publishing framework. Except for the initial
 input and final output, everything MUST be XML.

I think this is more of a religious argument than a practical one.

The problem is that the typographic quality of FO processors is extremely
poor compared with LaTeX, and there seems little point in constantly
reinventing the wheel by writing vastly complex XSL 
to output PDF when the job can be done more simply and accurately and
efficiently by outputting LaTeX from XSLT.

I'm astonished that the authors of FO processors have not learned from 25
years of automated typesetting using LaTeX. 

 I remember reading about TeXML a little while ago; I don't know
 how broad it is or even if it's still alive.

When it's better developed that would answer the case, as it would accept
XML as input and emit PDF as output, same as FOP.

///Peter



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

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



How to set up cocoon log file?

2003-06-11 Thread Anne Kwong
Hi 
I can't find the log file in webLogic directory. Does anyone know how to get the log file to analyze the cocoon problem that I have?

Thanks,
AnneDavid Kavanagh [EMAIL PROTECTED] wrote:
Could you please post errors from the log files? They should be in your cocoon web app directory under WEB-INF/logs. The error.log usually has something useful, but I would look in core.log for this type of error.DavidAnne Kwong wrote:


Dear all,
I followed the instruction and is able to set up theCocoonServlet on weblogic. However, when I tried to bring up localhost:7001/cocoon/, I am getting the following error:


type fatal
message Cocoon was not initialized.
description Cocoon was not initialized. Cannot process request.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
Could someone please help me out? 
Thanks,
Anne


Do you Yahoo!?Free online calendar with sync to Outlook(TM). 
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: problem with setting up cocoon in webLogic

2003-06-11 Thread Anne Kwong
Hi
I am using webLogic 7. Does anyone know how to get cocoon to work under weblogic 7? Any help or hint will be greatly appreciated.

Thanks,
Anne

Alexandre Victoor [EMAIL PROTECTED] wrote:
What version of weblogic are you using? If I am not wrong, Cocoon2 works under weblogic 6.1 sp4 but not under weblogic 6.1 sp2...AlexAnne Kwong wrote:Dear all,I followed the instruction and is able to set up the CocoonServlet on weblogic. However, when I tried to bring up localhost:7001/cocoon/, I am getting the following error:type fatalmessage Cocoon was not initialized.description Cocoon was not initialized. Cannot process request.sender org.apache.cocoon.servlet.CocoonServletsource Cocoon servletCould someone please help me out?Thanks,AnneDo you Yahoo!?Free
 online calendar with sync to Outlook(TM).-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

RE: Authentification with requests and ldap HELP!

2003-06-11 Thread Lionel Crine
And it's not working the way you wrote it ?

You have an error ? variable ar empty ?
Did you look at the core.log or the localhost_log file ?
Maybe you're losing the variable from one pipeline to another.

lionel

At 11:33 11/06/2003 +0200, you wrote:
In an easier phrase all I still need to do is :

Set the ldap:rootdn and ldap:password values from the login form!

  map:transform type=ldap
map:parameter name=rootdn  value={request-param:name}/
map:parameter name=password  value={request-param:password}/
  /map:transform
it's maybe cleaner this way?

Thanks



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org]
Sent: Wednesday, June 11, 2003 11:21 AM
To: [EMAIL PROTECTED]
Subject: Authentification with requests and ldap HELP!
I have a portal, on my login page I have the field name and
password.
When I submit the form : (  form method=post target=_top
action=configDBWOCfree-auth?resource=configDBWOC-portal  ) I want to
execute the authentification pipeline. To authentificate I want to
execute an ldap query, but with ldap:rootdn (ldap user) and
ldap:password (ldap password) as my two text fields from my login page.
Then, if the query suceeds, get the user information from ldap and go to
the next page.
sitemap.xmap

map:pipeline internal-only=true
 map:match pattern=sunrise-*
  !-- authentication --
  map:match pattern=sunrise-authuser
  map:generate src=ldap.xml/
  map:transform type=ldap
map:parameter name=rootdn  value={request-param:name}/
map:parameter name=password  value={request-param:password}/
  /map:transform
  map:transform type=xslt src=ldap.xsl
map:parameter name=use-request-parameters value=true/
  /map:transform
  map:transform src=styles/sunrise-user.xsl
map:parameter name=use-request-parameters value=true/
  /map:transform
  map:serialize type=xml/
/map:match
ldap.xml

...
!-- without ldap:rootdn and ldap:password because they are
parameters in the sitemap--
...
ldap.xsl

xsl:param name=password/
...
namexsl:value-of select=userName//name !-- userName is an ldap
attribute--
passwordxsl:value-of select=normalize-space($password)/password
sunrise-user.xsl

xsl:param name=password/
xsl:param name=name/
...
xsl:if test=normalize-space(name) = $name and
normalize-space(password) = $password
...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


combine values and variables for parameters in the sitemap

2003-06-11 Thread Maxime.Gheysen
is it possible to combine values and variables for parameters in the
sitemap like :

map:parameter name=UserName  value=corproot\{request-param:name}/

for eg - output : corproot\maxime

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



[SUMMARY] : Authentification with requests and ldap HELP!

2003-06-11 Thread Maxime.Gheysen
no, in fact now it works, but the problem is that for ldap I need the
user name with the domain who is corproot. that means the rootdn
must be like corproot\user1 and the username is only user1. That
refers to my other question combine values and variables for parameters
in the sitemap
By the way, if anyone needs to adapt his portal from XML-file
authentification to LDAP I can help him...

thanks anyway

-Original Message-
From: Lionel Crine [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Authentification with requests and ldap HELP!


And it's not working the way you wrote it ?

You have an error ? variable ar empty ?
Did you look at the core.log or the localhost_log file ?

Maybe you're losing the variable from one pipeline to another.

lionel

At 11:33 11/06/2003 +0200, you wrote:
In an easier phrase all I still need to do is :

Set the ldap:rootdn and ldap:password values from the login form!

   map:transform type=ldap
 map:parameter name=rootdn  value={request-param:name}/
 map:parameter name=password  value={request-param:password}/
   /map:transform

it's maybe cleaner this way?

Thanks




-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
e
.org]
Sent: Wednesday, June 11, 2003 11:21 AM
To: [EMAIL PROTECTED]
Subject: Authentification with requests and ldap HELP!


I have a portal, on my login page I have the field name and
password.
When I submit the form : (  form method=post target=_top
action=configDBWOCfree-auth?resource=configDBWOC-portal  ) I want to
execute the authentification pipeline. To authentificate I want to
execute an ldap query, but with ldap:rootdn (ldap user) and
ldap:password (ldap password) as my two text fields from my login page.
Then, if the query suceeds, get the user information from ldap and go
to
the next page.

sitemap.xmap

map:pipeline internal-only=true
  map:match pattern=sunrise-*
   !-- authentication --
   map:match pattern=sunrise-authuser
   map:generate src=ldap.xml/
   map:transform type=ldap
 map:parameter name=rootdn  value={request-param:name}/
 map:parameter name=password  value={request-param:password}/
   /map:transform
   map:transform type=xslt src=ldap.xsl
 map:parameter name=use-request-parameters value=true/
   /map:transform

   map:transform src=styles/sunrise-user.xsl
 map:parameter name=use-request-parameters value=true/
   /map:transform
   map:serialize type=xml/
/map:match

ldap.xml

...
!-- without ldap:rootdn and ldap:password because they are
parameters in the sitemap--
...

ldap.xsl

xsl:param name=password/
...
namexsl:value-of select=userName//name !-- userName is an ldap
attribute--
passwordxsl:value-of select=normalize-space($password)/password


sunrise-user.xsl

xsl:param name=password/
xsl:param name=name/
...
xsl:if test=normalize-space(name) = $name and
normalize-space(password) = $password
...

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


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


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


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



Re: combine values and variables for parameters in the sitemap

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote:
 is it possible to combine values and variables for parameters in the
 sitemap like :
 
 map:parameter name=UserName  value=corproot\{request-param:name}/
 
 for eg - output : corproot\maxime

Yes.

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

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



Pipeline with action breaks ?

2003-06-11 Thread morten svanæs
Hi,
I'm having difficulties with useing a action inside a match.
When I use a action like this:

 map:match pattern=useradmin/*.xml
  map:act type=xmldb-login
 map:generate src=useradmin/{1}.xml/
map:transform type=xmlform label=xml/
map:transform src=useradmin/stylesheets/wizard2page.xslt type=xalan
/
map:transform src=useradmin/stylesheets/complex-page2html.xslt
label=pre/
map:transform type=cinclude/
map:transform src=useradmin/stylesheets/xmlform2html.xslt/
map:serialize encoding=UTF-8 type=html label=html/
   /map:act
  map:call resource=loginResource/
 /map:match

The {1} inside the map:act is removed.
But if I place a new match inside the map:act like:

map:match pattern=useradmin/*.xml
  map:act type=xmldb-login
map:match pattern=useradmin/*.xml

it works fine. What's wrong ?
I'm running cocoon2.1-m2

Morten Svanaes



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



Re: [SUMMARY] : Authentification with requests and ldap HELP!

2003-06-11 Thread Emmanuil Batsis (Manos)


[EMAIL PROTECTED] wrote:

By the way, if anyone needs to adapt his portal from XML-file
authentification to LDAP I can help him...
Sounds ideal for the cocoon wiki if something similar is not already 
available.

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


Re: Pipeline with action breaks ?

2003-06-11 Thread Lionel Crine
Did you try ?

map:generate src=useradmin/{../1}.xml/

At 13:49 11/06/2003 -0700, you wrote:
Hi,
I'm having difficulties with useing a action inside a match.
When I use a action like this:
 map:match pattern=useradmin/*.xml
  map:act type=xmldb-login
 map:generate src=useradmin/{1}.xml/
map:transform type=xmlform label=xml/
map:transform src=useradmin/stylesheets/wizard2page.xslt type=xalan
/
map:transform src=useradmin/stylesheets/complex-page2html.xslt
label=pre/
map:transform type=cinclude/
map:transform src=useradmin/stylesheets/xmlform2html.xslt/
map:serialize encoding=UTF-8 type=html label=html/
   /map:act
  map:call resource=loginResource/
 /map:match
The {1} inside the map:act is removed.
But if I place a new match inside the map:act like:
map:match pattern=useradmin/*.xml
  map:act type=xmldb-login
map:match pattern=useradmin/*.xml
it works fine. What's wrong ?
I'm running cocoon2.1-m2
Morten Svanaes



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


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


Re: problem with setting up cocoon in webLogic

2003-06-11 Thread Geoff Howard
Actually, in this case the errors are probably in WebLogic's logs, not in 
WEB-INF/logs.  Did you build from source? Which version of Cocoon?

Geoff

At 02:41 AM 6/11/2003, you wrote:
Could you please post errors from the log files? They should be in your 
cocoon web app directory under WEB-INF/logs. The error.log usually has 
something useful, but I would look in core.log for this type of error.

David

Anne Kwong wrote:
Dear all,
I  followed the instruction and is able to set up the CocoonServlet on 
weblogic.  However, when I tried to bring up localhost:7001/cocoon/, I am 
getting the following error:

type fatal

message Cocoon was not initialized.


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


RE: combine values and variables for parameters in the sitemap

2003-06-11 Thread Maxime.Gheysen
I don't know why, but it doesn't work with all tags, I have these three
parameters: 

map:parameter name=rootdn  value=corproot\{request-param:name}/
map:parameter name=password  value={request-param:password}/ 
map:parameter name=filter
value=(amp;(objectclass=User)(cn={request-param:name}))/

But only the password works, rootdn and filter doesn't work...  I
checked the form, and the parameter use to be the same!:

tr
 tdUser:/td
 tdinput name=name type=text size=15/td
/tr
tr
 tdPassword:/td
 tdinput name=password type=password size=15/td
/tr

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: combine values and variables for parameters in the sitemap


On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote:
 is it possible to combine values and variables for parameters in the
 sitemap like :
 
 map:parameter name=UserName
value=corproot\{request-param:name}/
 
 for eg - output : corproot\maxime

Yes.

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

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


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



Re: combine values and variables for parameters in the sitemap

2003-06-11 Thread Joerg Heinicke
Doy ou have declared 3 top level xsl:param in your stylesheet?

xsl:param name=rootdn select=''/
xsl:param name=password select=''/
xsl:param name=filter select=''/
Joerg

[EMAIL PROTECTED] wrote:
I don't know why, but it doesn't work with all tags, I have these three
parameters: 

map:parameter name=rootdn  value=corproot\{request-param:name}/
map:parameter name=password  value={request-param:password}/ 
map:parameter name=filter
value=(amp;(objectclass=User)(cn={request-param:name}))/

But only the password works, rootdn and filter doesn't work...  I
checked the form, and the parameter use to be the same!:
tr
 tdUser:/td
 tdinput name=name type=text size=15/td
/tr
tr
 tdPassword:/td
 tdinput name=password type=password size=15/td
/tr
-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: combine values and variables for parameters in the sitemap

On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote:

is it possible to combine values and variables for parameters in the
sitemap like :
map:parameter name=UserName
value=corproot\{request-param:name}/

for eg - output : corproot\maxime


Yes.

	Chris.
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: combine values and variables for parameters in the sitemap

2003-06-11 Thread Maxime.Gheysen
but they are not xsl parameter, sorry if I wasn't precise enough :

map:transform type=ldap 
 map:parameter name=rootdn  value=corproot\{request-param:name}/
 map:parameter name=password  value={request-param:password}/ 
 map:parameter name=filter
/map:transform 

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 2:52 PM
To: [EMAIL PROTECTED]
Subject: Re: combine values and variables for parameters in the sitemap


Doy ou have declared 3 top level xsl:param in your stylesheet?

xsl:param name=rootdn select=''/
xsl:param name=password select=''/
xsl:param name=filter select=''/

Joerg


[EMAIL PROTECTED] wrote:
 I don't know why, but it doesn't work with all tags, I have these
three
 parameters: 
 
 map:parameter name=rootdn  value=corproot\{request-param:name}/
 map:parameter name=password  value={request-param:password}/ 
 map:parameter name=filter
 value=(amp;(objectclass=User)(cn={request-param:name}))/
 
 But only the password works, rootdn and filter doesn't work...  I
 checked the form, and the parameter use to be the same!:
 
 tr
  tdUser:/td
  tdinput name=name type=text size=15/td
 /tr
 tr
  tdPassword:/td
  tdinput name=password type=password size=15/td
 /tr
 
 -Original Message-
 From: Christian Haul [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 11, 2003 1:57 PM
 To: [EMAIL PROTECTED]
 Subject: Re: combine values and variables for parameters in the
sitemap
 
 
 On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote:
 
is it possible to combine values and variables for parameters in the
sitemap like :

map:parameter name=UserName
 
 value=corproot\{request-param:name}/
 
for eg - output : corproot\maxime
 
 
 Yes.
 
   Chris.

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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


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



Re: Alias in database descriptor file

2003-06-11 Thread Amelie Cordier
 And,by the way, I do want to modifiy the wiki page but I need to make
 it work first... :)

 :-)

 Here is what I've done so far :

 snip what=correct code/

 The two descriptions work independently, I've check them both...but
 when  they are together in the file, only the first one works
 (inscrit).

 How do you know it doesn't work?

I've two forms : one to fill the DB according to the first description and
the other to fill it according to the second one... when I use the 2
separately it works...

I made an ultimate test :

table name=incrit
!-- ... --
/table

table-set name=inscrit
   table name=inscrit/
/table-set

= OK

table name=incrit alias=inscrit2
!-- ... --
/table

table-set name=inscrit
   table name=inscrit2/
/table-set

= KO... :( :(

 Anyway, you might want
 to explicitly refer to a request parameter or disable inclusion of the
 table name for the automatic parameter name guessing.

I'm sorry but I don't understand what you want me to do here... Is there a
way to change the behaviour of alias ?

Anyway, thanks again for all thoses tips...

Amélie


 If the two definitions were different, you would be able to see
 different SQL statements.

   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

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




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



Exception JSPReader.generate()

2003-06-11 Thread Ali Mesbah
Hi all,
I get the following error when I try to run the JSP samples. I have Cocoon 2.1
and I run it as a servlet (which uses Jetty):

org.apache.cocoon.ProcessingException: Exception JSPReader.generate():
java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet

The jsp-engine is defined as follows in the cocoon.xconf: 

jsp-engine logger=core.jsp-engine
  parameter name=servlet-class
value=org.apache.jasper.servlet.JspServlet/
  parameter name=servlet-name value=*.jsp/
 /jsp-engine

This is for when you run Cocoon as a webapp under Tomcat I assume. But what
should it be when Cocoon runs as a standalone servlet (./cocoon servlet)?

Thanks,
-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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



Re: combine values and variables for parameters in the sitemap

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 02:40 PM, [EMAIL PROTECTED] wrote:
 I don't know why, but it doesn't work with all tags, I have these three
 parameters: 
 
 map:parameter name=rootdn  value=corproot\{request-param:name}/
 map:parameter name=password  value={request-param:password}/ 
 map:parameter name=filter
 value=(amp;(objectclass=User)(cn={request-param:name}))/
 
 But only the password works, rootdn and filter doesn't work...  I
 checked the form, and the parameter use to be the same!:

Could you check with something else than the ldap transformer? E.g. a
XSP or XSLT transform?

This is with version 2.0.4?

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

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



Re: Pipeline with action breaks ?

2003-06-11 Thread morten svanæs
Hi,
no, but I have now.
Thanks! Works fine now.

Morten Svanaes

- Original Message -
From: Lionel Crine [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 5:04 AM
Subject: Re: Pipeline with action breaks ?


 Did you try ?

  map:generate src=useradmin/{../1}.xml/


 At 13:49 11/06/2003 -0700, you wrote:
 Hi,
 I'm having difficulties with useing a action inside a match.
 When I use a action like this:
 
   map:match pattern=useradmin/*.xml
map:act type=xmldb-login
   map:generate src=useradmin/{1}.xml/
  map:transform type=xmlform label=xml/
  map:transform src=useradmin/stylesheets/wizard2page.xslt
type=xalan
 /
  map:transform src=useradmin/stylesheets/complex-page2html.xslt
 label=pre/
  map:transform type=cinclude/
  map:transform src=useradmin/stylesheets/xmlform2html.xslt/
  map:serialize encoding=UTF-8 type=html label=html/
 /map:act
map:call resource=loginResource/
   /map:match
 
 The {1} inside the map:act is removed.
 But if I place a new match inside the map:act like:
 
 map:match pattern=useradmin/*.xml
map:act type=xmldb-login
  map:match pattern=useradmin/*.xml
 
 it works fine. What's wrong ?
 I'm running cocoon2.1-m2
 
 Morten Svanaes
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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


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



RE: combine values and variables for parameters in the sitemap

2003-06-11 Thread Maxime.Gheysen
No, I'm still with version 2.0
With the xsl transformer I can get parameter name  password.

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: combine values and variables for parameters in the sitemap


On 11.Jun.2003 -- 02:40 PM, [EMAIL PROTECTED] wrote:
 I don't know why, but it doesn't work with all tags, I have these
three
 parameters: 
 
 map:parameter name=rootdn  value=corproot\{request-param:name}/
 map:parameter name=password  value={request-param:password}/ 
 map:parameter name=filter
 value=(amp;(objectclass=User)(cn={request-param:name}))/
 
 But only the password works, rootdn and filter doesn't work...  I
 checked the form, and the parameter use to be the same!:

Could you check with something else than the ldap transformer? E.g. a
XSP or XSLT transform?

This is with version 2.0.4?

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

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


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



RE: combine values and variables for parameters in the sitemap

2003-06-11 Thread Maxime.Gheysen
I made a mistake, now I'm working with  cocoon-2.1-dev 06.05.2003


-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Wednesday, June 11, 2003 3:35 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: combine values and variables for parameters in the sitemap


No, I'm still with version 2.0
With the xsl transformer I can get parameter name  password.

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: combine values and variables for parameters in the sitemap


On 11.Jun.2003 -- 02:40 PM, [EMAIL PROTECTED] wrote:
 I don't know why, but it doesn't work with all tags, I have these
three
 parameters: 
 
 map:parameter name=rootdn  value=corproot\{request-param:name}/
 map:parameter name=password  value={request-param:password}/ 
 map:parameter name=filter
 value=(amp;(objectclass=User)(cn={request-param:name}))/
 
 But only the password works, rootdn and filter doesn't work...  I
 checked the form, and the parameter use to be the same!:

Could you check with something else than the ldap transformer? E.g. a
XSP or XSLT transform?

This is with version 2.0.4?

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

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


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


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



Re: Alias in database descriptor file

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 03:42 PM, Amelie Cordier wrote:
  How do you know it doesn't work?
 
 I've two forms : one to fill the DB according to the first description and
 the other to fill it according to the second one... when I use the 2
 separately it works...

If you use the default parameter names, change the input fields to
@name=incrit2.foo instead of @name=incrit.foo. I reckon it will
work then.

  Anyway, you might want
  to explicitly refer to a request parameter or disable inclusion of the
  table name for the automatic parameter name guessing.
 
 I'm sorry but I don't understand what you want me to do here... Is there a
 way to change the behaviour of alias ?

You could add append-table-namefalse/append-table-name to the
configuration of the actions and they will use foo instead of
incrit.foo or incrit2.foo thus you don't have to worry about
this. Or you could do

  table name=incrit alias=incrit2
   .
   value name=foo type=string
 mode type=all name=request-param
   parameterfoo/parameter
 /mode
   value/
   .
  /table

IOW set the name explicitly. We could consider changing the way the
default name is constructed or make it configurable at least.
IMHO dropping the table name from the parameter name would be the best
option. 

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

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



Re: problem with setting up cocoon in webLogic

2003-06-11 Thread Anne Kwong
I am using Cocoon 2.0.4. From the webLogic log, there is no error message.. 

AnneGeoff Howard [EMAIL PROTECTED] wrote:
Actually, in this case the errors are probably in WebLogic's logs, not in WEB-INF/logs. Did you build from source? Which version of Cocoon?GeoffAt 02:41 AM 6/11/2003, you wrote:Could you please post errors from the log files? They should be in your cocoon web app directory under WEB-INF/logs. The error.log usually has something useful, but I would look in core.log for this type of error.DavidAnne Kwong wrote:Dear all,I followed the instruction and is able to set up the CocoonServlet on weblogic. However, when I tried to bring up localhost:7001/cocoon/, I am getting the following error:type fatalmessage Cocoon was not initialized.-To
 unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: problem with setting up cocoon in webLogic

2003-06-11 Thread Jay W Kim

you probably need to add some jars in your classpath:

put the xerces  in your startWeblogic.cmd

set CLASSPATH=%CLASSPATH%;C:\Log4J\log4j-1.2.8.jar
set CLASSPATH=%CLASSPATH%;C:\Xerces\xerces_1_4_4.jar
set CLASSPATH=%CLASSPATH%;C:\libraries\webAF\webAF.jar;




This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.






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



Query within a query

2003-06-11 Thread Tim Bachta
I am trying to do a query nested within another query and am getting
errors, is it possible to do this and if so what am I doing wrong.  My
code is below:

   esql:queryexecute getReportsByRole
xsp:exprlogin/xsp:expr/esql:query

   esql:results

 reports

   esql:row-results

 report

   report-name

 esql:get-string column=Name/

   /report-name

 /report

 esql:execute-query

   esql:queryexecute getAttributesForReport esql:get-int
column=1//esql:query

   esql:results

 parameters

   esql:row-results

 parameter

   parameter-name

 esql:get-string column=2/

   /parameter-name

 /parameter

   /esql:row-results

 /parameters

   /esql:results

 /esql:execute-query

   /esql:row-results

   /reports

   /esql:results

   /esql:execute-query

 

Thanks for the help

 

Tim Bachta

 

 


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



Re: problem with setting up cocoon in webLogic

2003-06-11 Thread Geoff Howard
And did you build from source?  What instructions did you follow to
set up the cocoon servlet?
Geoff

At 09:55 AM 6/11/2003, you wrote:
I am using Cocoon 2.0.4.  From the webLogic log, there is no error message..

Anne

Geoff Howard [EMAIL PROTECTED] wrote:
Actually, in this case the errors are probably in WebLogic's logs, not in
WEB-INF/logs. Did you build from source? Which version of Cocoon?
Geoff

At 02:41 AM 6/11/2003, you wrote:
Could you please post errors from the log files? They should be in your
cocoon web app directory under WEB-INF/logs. The error.log usually has
something useful, but I would look in core.log for this type of error.



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


Re: Query within a query

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 09:21 AM, Tim Bachta wrote:
 I am trying to do a query nested within another query and am getting
 errors, is it possible to do this and if so what am I doing wrong.  My
 code is below:
 
esql:queryexecute getReportsByRole
 xsp:exprlogin/xsp:expr/esql:query

  esql:execute-query
 
esql:queryexecute getAttributesForReport esql:get-int column=1 
ancestor=1//esql:query

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

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



Re: combine values and variables for parameters in the sitemap

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 03:36 PM, [EMAIL PROTECTED] wrote:
 I made a mistake, now I'm working with  cocoon-2.1-dev 06.05.2003

If you build from sources, then start cocoon in jetty by running the
command cocoon servlet and point your browser to
http://localhost:/samples/xsp/java/simple for example, you see
that 
 map:parameter name=file value=xsp/{1}.xsp/

works (generates the link for Source at top right), Change it
in build/webapp/samples/xsp/sitemap.xmap e.g. to the following:

 map:parameter name=file value=xsp/{request:scheme}.xsp/

and notice that the filename turns into http.xsp. So, your problem
lies somewhere else like wrong parameter names.

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

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



Running a query in xsl page

2003-06-11 Thread Tim Bachta
Is it possible to run an query in my xsl style sheet based on the input
I get from an xsp page using the connection pool from cocoon?

 

Tim Bachta

 


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



Re: Running a query in xsl page

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 10:28 AM, Tim Bachta wrote:
 Is it possible to run an query in my xsl style sheet based on the input
 I get from an xsp page using the connection pool from cocoon?

Perhaps you should look into the SQLTransformer. Using the connection
pool from e.g. Xalan SQL extensions is AFAIK not possible. Another
Avalon component would have access to it, though.

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

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



making an esql value an element in the xsp

2003-06-11 Thread Tim Bachta
How do I make an esql value an element.  

 

I have :

 

parameter-name

esql:get-string column=3/

/parameter-name

 

which results in 

parameter-namebob/parameter-name

 

I want the result to be 

parameter-name

bob/bob

/parameter-name

 

Thanks for the help

 

Tim 

 

 


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



Re: making an esql value an element in the xsp

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 10:47 AM, Tim Bachta wrote:
 How do I make an esql value an element.  

 parameter-name
 
 esql:get-string column=3/
 
 /parameter-name

xsp:elementxsp:param name=nameesql:get-string 
column=3//xsp:param/xsp:element

Sorry, no shortcut available.

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

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



I want to delete a node in XML file.

2003-06-11 Thread bosspring 2
Hi all !!!

I´m trying to delete a simple node in a XML file, but... how???

Perhaps, I cant to use Source Writing Transformer and replace the node by 
nothing, but

usuario login=bosspring password=6p0JBa2a
 nombreMiguel Ángel/nombre
 mail[EMAIL PROTECTED]/mail
 webmaster
web xmlns:xlink=http://www.w3.org/1999/xlink; 
xlink:href=XML/interpretes.xml#xpointer(//[EMAIL PROTECTED]'http://usuarios.lycos.es/bosspring']) 
/
 /webmaster
/usuario

I want to delete web because the webmaster modifies the content of his 
web, but I don't know.

Thank you.

_
Charla con tus amigos en línea mediante MSN Messenger:  
http://messenger.microsoft.com/es

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


RE: making an esql value an element in the xsp

2003-06-11 Thread Tim Bachta
Works for me

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: making an esql value an element in the xsp

On 11.Jun.2003 -- 10:47 AM, Tim Bachta wrote:
 How do I make an esql value an element.  

 parameter-name
 
 esql:get-string column=3/
 
 /parameter-name

xsp:elementxsp:param name=nameesql:get-string
column=3//xsp:param/xsp:element

Sorry, no shortcut available.

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

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


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



cocoon-2.0.4-vm14 + jboss-4.0.0DR1 + tomcat-4.1.24 + j2sdk-1_4_1_02 + WinXP

2003-06-11 Thread divial divial
Hello,

My configuration :
PC P4/1Go/40Go
WinXP
j2sdk-1_4_1_02
jboss-4.0.0DR1
tomcat-4.1.24
cocoon-2.0.4-vm14

I have created a JAVA_HOME\jre\lib\endorsed directory
I have copied xalan-2.3.1.jar, xercesImpl-2.0.0.jar
and xml-apis.jar in that directory.

In the JBOSS_HOME\lib, I have deleted xercesImpl.jar
and xml-apis.jar

In the JBOSS_HOME\server\default\deploy, I have
dropped my cocoon.war, for JBoss to unjar it. After
thar, I have deleted the cocoon war and renamed the
remaining deployed directory in a cocoon.war
directory. 

In the
JBOSS_HOME\server\default\deploy\cocoon.war\WEB-INF\lib,
I have deleted xalan-2.3.1.jar, xercesImpl-2.0.0.jar
and xml-apis.jar

Finally, after lauching JBoss, and trying
http://localhost:8080/cocoon/, I got a Cocoon 2 -
Internal server error

The message appears in the navigator as an HTML
message correctly formatted. The Description field
contains the following :
org.apache.cocoon.ProcessingException: Language
Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 7461, column 12:
not a statement Line 7461, column 18: ';' expected
Line 3168, column 25: method
error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.Exception, boolean) not found
in class org.apache.cocoon.www.sitemap_xmap Line 3851,
column 25: method
error_process_7_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.Exception, boolean) not found
in class org.apache.cocoon.www.sitemap_xmap Line 3477,
column 8: method
matchN1065C(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline,
boolean, java.util.List) not found in class
org.apache.cocoon.www.sitemap_xmap Line 3483, column
8: method
matchN10669(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline,
boolean, java.util.List) not found in class
org.apache.cocoon.www.sitemap_xmap Line 3489, column
8: method matchN10676

...

The stack-trace field contains the following :
org.apache.cocoon.ProcessingException: Language
Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 7461, column 12:  not a statement
Line 7461, column 18:  ';' expected
Line 3168, column 25:  method
error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.Exception, boolean) not found
in class org.apache.cocoon.www.sitemap_xmap
Line 3851, column 25:  method
error_process_7_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.Exception, boolean) not found
in class org.apache.cocoon.www.sitemap_xmap
Line 3477, column 8:  method
matchN1065C(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline,
boolean, java.util.List) not found in class
org.apache.cocoon.www.sitemap_xmap
Line 3483, column 8:  method
matchN10669(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline,
boolean, java.util.List) not found in class
org.apache.cocoon.www.sitemap_xmap
...

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:417)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at
org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)

Bad news for me ...
Any idea ?
There is also a problem of java.lang.OutOfMemory.
Amazing with a 1G memory size. 


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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



Re: TeX to PDF serializator

2003-06-11 Thread Alexander Schatten
Peter Flynn wrote:

This has come up several times before. I agree completely: many people
want to use LaTeX to create PDF because it does a vastly
better job than any of the FOP systems.
 

nevertheless it is imho the completly wrong attempt. because FOP is not 
ready for primetime, you suggest to put energy to integrate a legacy 
system, that does not fit into the XML publishing process?? this sounds 
weird to me. far better would be the idea to invest more energy in 
enhancing FOP.

This is really a bad idea, I'm afraid, and the very last thing we 
actually want or need.
 

It is always great to be informed by others what *I* need.

thank you!

;-)

TeX systems are for formatting: you use them to typeset something
which was created/edited/stored/manipulated in (for example) XML.
Because of the way history happened, TeX preceded XML, so we have
a lot of legacy TeX. Sure it would be nice to have a tex2xml which
would do the job (actually there are a few attempts) but if you stop
for a moment to think of the ghastly mess which most authors make
of TeX, you'll realise why there is no such animal right now. Yes,
you could write a conversion from well-formed LaTeX to XML (I actually
did one a long time ago, for SGML) but the instant an author starts
to write her own macros or mess manually with the formatting, the model
breaks and translation becomes virtually impossible. To effect it fully
you'd need to rewrite TeX the program to output XML instead of DVI or
PDF, and you'd *still* be in trouble because most of what TeX formats
carries nothing with it which can be used to indicate markup, unless
you want to go back to the days of b, i, and u.
 

I really cannot see the point. the only thing I would need is a 
generator that 1:1 tries to move LaTeX into XML, if this is a user 
written command or not.

\begin{Citation}{1234}{456}
blabla
\end{Citation}
should become to something like

comm arg1=Citation arg2=1234 arg3=456
blabla
/comm
and \index{Test} to indexTest/index

you can then write your own stylesheets to process this to whatever 
needed. So really no need to rewrite the tex program. far away from this!

and such a generator would be fully sufficient to process available tex 
documents for some reasons.

 

The next one will ask, why Cocoon cannot create WML from powerpoint or 
SVG from Postscript.
   

Because PowerPoint is not (yet) an XML format, nor is PostScript.
What we need to to be able to go from XML to PDF via LaTeX.
 

the same as LaTeX is no XML format? you seem to mix up a few things here.

Alex

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


invoke cocoon from another bean/create rpt on filesystem

2003-06-11 Thread Paul Tomsic
I'm wondering if it's possible to invoke cocoon from a
bean that I've created for the purposes of having a
report created in batch mode and stored on the
file-system for retrieval at another time?

For instance, we access our reports by simply pointing
a browser to:
http://whatever/reports/myReport.pdf?id=5

and this would take the browser to the pdf report for
orderId=5

What if, I needed that report on the filesystem for
access at another time, i.e., not created when a user
requests it via HTTP.  Is this possible?

Is there a demo or something that I can look at, or
even a code-snippet that someone might share?
Thanks in advance...

Paul


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: TeX to PDF serializator

2003-06-11 Thread Andreas Kuckartz
 nevertheless it is imho the completly wrong attempt. because FOP is not
 ready for primetime, you suggest to put energy to integrate a legacy
 system, that does not fit into the XML publishing process?? this sounds
 weird to me. far better would be the idea to invest more energy in
 enhancing FOP.

[...]

 I really cannot see the point. the only thing I would need is a
 generator that 1:1 tries to move LaTeX into XML, if this is a user
 written command or not.

I do not intend to be rude - but it might make sense if you learn a bit more
about what TeX is doing before you make such judgements.

Anyway you are free to try to enhance FO so that it can replace TeX.

Andreas


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



Re: TeX to PDF serializator

2003-06-11 Thread Alexander Schatten
Andreas Kuckartz wrote:

I do not intend to be rude - but it might make sense if you learn a bit more
about what TeX is doing before you make such judgements.
 

thank you. I am working with LaTeX for nearly 10 years, so I know a 
*little* bit about it. In fact, you may believe me, that *I* know what 
*I* want, though some here seem to try to convince me that I do not know 
what I want...

however, there might be no others with the same desires, that is off 
course possible.

Anyway you are free to try to enhance FO so that it can replace TeX.
 

you seem to address the wrong one: I did not criticize in the beginning: 
I was just mentioning, that *if* someone has energy to do something, I 
would assume to be invested better in FOP then in XML/LaTex.

that is --- again --- my opinion.

alex

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


Re: TeX to PDF serializator

2003-06-11 Thread Joerg Heinicke
To make it short:

A TeXSerializer with a transformer delivering TeX text is not possible.

You must have SAX events in a pipe, not text. So the only option is a 
TeXSerializer understanding XSL FO or a XML representation of TeX. But 
this would already be very near to FOP.
Of course you can encapsulate the XSL FO to TeX transformation in the 
serializer and feed the result directly into a TeXProcessor, but I don't 
know whether this is a good approach. But it really doesn't seem to make 
sense, adding a further transformation step for using legacy processor 
as far you have to code the further transformation step. IMO it's better 
to support developers of XSL FO processors like FOP.

Joerg

Alexander Schatten wrote:
Andreas Kuckartz wrote:

I do not intend to be rude - but it might make sense if you learn a 
bit more
about what TeX is doing before you make such judgements.
 

thank you. I am working with LaTeX for nearly 10 years, so I know a 
*little* bit about it. In fact, you may believe me, that *I* know what 
*I* want, though some here seem to try to convince me that I do not know 
what I want...

however, there might be no others with the same desires, that is off 
course possible.

Anyway you are free to try to enhance FO so that it can replace TeX.
 

you seem to address the wrong one: I did not criticize in the beginning: 
I was just mentioning, that *if* someone has energy to do something, I 
would assume to be invested better in FOP then in XML/LaTex.

that is --- again --- my opinion.

alex


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


Re: I want to delete a node in XML file.

2003-06-11 Thread Joerg Heinicke
You can use XSLT and a identity transformation 
http://www.w3.org/TR/xslt#copying adding a special template handling web/:

xsl:template match=web/

Joerg

bosspring 2 wrote:
Hi all !!!

I´m trying to delete a simple node in a XML file, but... how???

Perhaps, I cant to use Source Writing Transformer and replace the node 
by nothing, but

usuario login=bosspring password=6p0JBa2a
 nombreMiguel Ángel/nombre
 mail[EMAIL PROTECTED]/mail
 webmaster
web xmlns:xlink=http://www.w3.org/1999/xlink; 
xlink:href=XML/interpretes.xml#xpointer(//[EMAIL PROTECTED]'http://usuarios.lycos.es/bosspring']) 
/
 /webmaster
/usuario

I want to delete web because the webmaster modifies the content of his 
web, but I don't know.

Thank you.


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


RE: TeX to PDF serializator

2003-06-11 Thread Jestel, Roger B. (LNG-ALB)

A TeXSerializer with a transformer delivering TeX text is not possible.

You must have SAX events in a pipe, not text. So the only option is a 
TeXSerializer understanding XSL FO or a XML representation of TeX. But 
this would already be very near to FOP.
Of course you can encapsulate the XSL FO to TeX transformation in the 
serializer and feed the result directly into a TeXProcessor, but I don't 
know whether this is a good approach. But it really doesn't seem to make 
sense, adding a further transformation step for using legacy processor 
as far you have to code the further transformation step. IMO it's better 
to support developers of XSL FO processors like FOP.

Sometimes you can't avoid using legacy systems, and sometimes they are
even good, but that is unrelated to the question of how a third party
processor can be intregrated in a serializer.  

If your original file is XML and you have an xslt that converts it into TEX
text, the output from the xslt is passed as a series of character sax
events, so even though it is technically xml/sax events, since there are no
elements or attributes, you can easily treat it as a text stream which can
be fed by a serializer to an external processor if desired.  
If your original file is text, you should be able to use a textgenerator to
wrap a text element around the entire file, so that the entire file is
read as a series of character events, although its obviously useless as
actual xml content at that point. 




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



Re: I want to delete a node in XML file.

2003-06-11 Thread bosspring 2
Hi Joerg, thank you for your idea!!

If I do this sollution, after my XML file will have multiple tags empty 
web/,no??

But, I must have the transformer Write Source for this application,no??

I'm sorry, my English... :(

_
Dale rienda suelta a tu tiempo libre. Encuentra mil ideas para exprimir tu 
ocio con MSN Entretenimiento. http://entretenimiento.msn.es/

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


Re: TeX to PDF serializator

2003-06-11 Thread Bruno Dumon
On Wed, 2003-06-11 at 20:27, Alexander Schatten wrote:
 Peter Flynn wrote:
 
 This has come up several times before. I agree completely: many people
 want to use LaTeX to create PDF because it does a vastly
 better job than any of the FOP systems.
   
 
 nevertheless it is imho the completly wrong attempt. because FOP is not 
 ready for primetime, you suggest to put energy to integrate a legacy 
 system, that does not fit into the XML publishing process??

What's the difference between letting fop rendering a pdf or tex
rendering a pdf? And why would it not fit within an xml publishing
process? The only thing you'd need to do is define an xml syntax for
tex, there used to be a project an ibm's alphaworks that did just that.
The serializer can then transparently transform that xml syntax to
native tex syntax, and run tex on it.

Alternatively, if I remember well, context (a tex macro package)
supports xml directly as input format.

The enegery required to do all this is a lot less (and of a different
kind) than that required to enhance fop.

[...]
 
 I really cannot see the point. the only thing I would need is a 
 generator that 1:1 tries to move LaTeX into XML,

that's what *you* would need, not what the guy asked for. He wanted to
do the inverse.

[...]

   
 
 The next one will ask, why Cocoon cannot create WML from powerpoint or 
 SVG from Postscript.

And here you are again comparing with the inverse process: it would make
sense to convert svg to postscript.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



PassiveTeX (Re: TeX to PDF serializator)

2003-06-11 Thread Andreas Kuckartz
A (hopefully) constructive suggestion.

There exist programs which implement XSL FO - PDF transformations using
TeX.

PassiveTeX is Open Source, the Unicorn software is not. If someone tries to
use them with Cocoon please let me know.

Cheers,
Andreas

---

PassiveTeX

- PassiveTeX is a library of TeX macros which can be used to process an XML
document which results from an XSL transformation to formatting objects.
- PassiveTeX provides a rapid development environment for experimenting with
XSL FO, using a reliable pre-existing formatter
- Running PassiveTeX with the pdfTeX variant of TeX generates high-quality
PDF files in a single operation.
- PassiveTeX shows how TeX can remain the formatter of choice for XML, while
hiding the details of its operation from the user.

http://www.tei-c.org.uk/Software/passivetex/
---

Unicorn Formatting Objects

The product design was inspired by work of Sebastian Rahtz (JadeTeX,
PassiveTeX) and James Clark (Jade).

http://www.unicorn-enterprises.com/products_ufo.html


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



RE: POI --Setting logger Level

2003-06-11 Thread Mehra, Vishal
Any pointer Guys...

-Original Message-
From: Mehra, Vishal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:25 PM
To: '[EMAIL PROTECTED]'
Subject: RE: POI --Setting logger Level


Joerg,

Thanks for the pointer.

As I am running a standalone java application, there is no Web/Application server 
available to set the configuration. 

Basically my java code looks like
wb = new HSSFWorkbook();
sheet = wb.createSheet(fileName);
HSSFRow row = sheet.createRow( (short) 0);

Is there a relative directory structure from the classes directory where I set the 
property for logkit.conf or any other way to tell the POI classes to use FATAL log 
level.

Thanks,

Vishal


-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: Re: POI --Setting logger Level


Hello Vishal,

the HSSFSerializer has a logger in its configuration in the sitemap (at 
least you can set one). The log level can then be configured in the 
logkit.xconf.

http://wiki.cocoondev.org/Wiki.jsp?page=ExploringTheLogs

Joerg

Mehra, Vishal wrote:
 I have a  java application which executes dynamic SQL and based on the result set 
 generates appropriate .XLS file. This java application internally uses cocoon and 
 poi libraries to generate the Excel file. 
 
 By default, for each cell generation approximately 10 lines are getting printed on 
 the console. As, I have a large Excel file, generation of this file is taking a very 
 long time. It appears the debug level is set to DEBUG (if not specified)
 
 Is there a POI api to set the log level to FATAL which will reduce the number of log 
 message displayed. 
 Otherwise is there a way to dump the output to a file, instead of the console.
  
 Thanks,
  
 Vishal


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

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

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



RE: POI --Setting logger Level

2003-06-11 Thread Geoff Howard
This appears to be a POI question with no relation to Cocoon whatsoever - 
that's probably why you've not gotten a response.

Geoff

At 04:56 PM 6/11/2003, you wrote:
Any pointer Guys...

-Original Message-
From: Mehra, Vishal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:25 PM
To: '[EMAIL PROTECTED]'
Subject: RE: POI --Setting logger Level
Joerg,

Thanks for the pointer.

As I am running a standalone java application, there is no Web/Application 
server available to set the configuration.

Basically my java code looks like
wb = new HSSFWorkbook();
sheet = wb.createSheet(fileName);
HSSFRow row = sheet.createRow( (short) 0);
Is there a relative directory structure from the classes directory where I 
set the property for logkit.conf or any other way to tell the POI classes 
to use FATAL log level.

Thanks,

Vishal

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: Re: POI --Setting logger Level
Hello Vishal,

the HSSFSerializer has a logger in its configuration in the sitemap (at
least you can set one). The log level can then be configured in the
logkit.xconf.
http://wiki.cocoondev.org/Wiki.jsp?page=ExploringTheLogs

Joerg

Mehra, Vishal wrote:
 I have a  java application which executes dynamic SQL and based on the 
result set generates appropriate .XLS file. This java application 
internally uses cocoon and poi libraries to generate the Excel file.

 By default, for each cell generation approximately 10 lines are getting 
printed on the console. As, I have a large Excel file, generation of this 
file is taking a very long time. It appears the debug level is set to 
DEBUG (if not specified)

 Is there a POI api to set the log level to FATAL which will reduce the 
number of log message displayed.
 Otherwise is there a way to dump the output to a file, instead of the 
console.

 Thanks,

 Vishal

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


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


RE: POI --Setting logger Level

2003-06-11 Thread Mehra, Vishal
Is there a separate mailing list for POI issues?

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 2:03 PM
To: [EMAIL PROTECTED]
Subject: RE: POI --Setting logger Level


This appears to be a POI question with no relation to Cocoon whatsoever - 
that's probably why you've not gotten a response.

Geoff

At 04:56 PM 6/11/2003, you wrote:
Any pointer Guys...

-Original Message-
From: Mehra, Vishal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:25 PM
To: '[EMAIL PROTECTED]'
Subject: RE: POI --Setting logger Level


Joerg,

Thanks for the pointer.

As I am running a standalone java application, there is no Web/Application 
server available to set the configuration.

Basically my java code looks like
wb = new HSSFWorkbook();
sheet = wb.createSheet(fileName);
HSSFRow row = sheet.createRow( (short) 0);

Is there a relative directory structure from the classes directory where I 
set the property for logkit.conf or any other way to tell the POI classes 
to use FATAL log level.

Thanks,

Vishal


-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: Re: POI --Setting logger Level


Hello Vishal,

the HSSFSerializer has a logger in its configuration in the sitemap (at
least you can set one). The log level can then be configured in the
logkit.xconf.

http://wiki.cocoondev.org/Wiki.jsp?page=ExploringTheLogs

Joerg

Mehra, Vishal wrote:
  I have a  java application which executes dynamic SQL and based on the 
 result set generates appropriate .XLS file. This java application 
 internally uses cocoon and poi libraries to generate the Excel file.
 
  By default, for each cell generation approximately 10 lines are getting 
 printed on the console. As, I have a large Excel file, generation of this 
 file is taking a very long time. It appears the debug level is set to 
 DEBUG (if not specified)
 
  Is there a POI api to set the log level to FATAL which will reduce the 
 number of log message displayed.
  Otherwise is there a way to dump the output to a file, instead of the 
 console.
 
  Thanks,
 
  Vishal


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

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

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


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

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



RE: Autoshape -- Rectangle (xsl:number processing error))

2003-06-11 Thread Yan, Charlene
All,

I'm using xsl:number in the following.  Every time after I add from=27 in the tag, 
it will give me the error below.  Is it caused by changing Transform type xslt to 
xalan in the sitemap?  from is an optional attribute for xsl:number though.  Any ideas?

gmr:Cell Col=1  Row=27 ValueType=60
  xsl:variable name=rownumberxsl:number level=any count=buProdId 
from=27//xsl:variable
  xsl:attribute name=Row
 xsl:value-of select=$rownumber/
  /xsl:attribute
   gmr:Content
xsl:apply-templates/ 
   /gmr:Content
 /gmr:Cell

An Error Occurred
A node test that matches either NCName:* or QName was expected.

org.apache.cocoon.ProcessingException: Unable to get transformer handler for 
context://samples/hello-world/style/xsl/orderFormxls.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform 
Handler

line: 1901

location: null

full exception chain stacktrace[hide] 

Original Exception: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler
at 
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:375)
at 
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:302)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:391)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:671)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:505)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:467)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:150)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at org.apache.cocoon.Cocoon.process(Cocoon.java:628)

Invalid Continuation ID

2003-06-11 Thread JD Daniels
RE: Calling Actions from the Flow with JavascriptThis is driving me nutz. I
Get invalid continuation ID when I submit the form.
ie,
org.apache.cocoon.components.flow.InvalidContinuationException: The
continuation ID 49461467281b3b7b74454065470a817873745d26 is invalid.

This is my first stab at flow, and so far I am running three days :(
Using cocoon2.1M3-dev cvs from June 11 9:00 am
Tomcat 1.1.24lejdk14
Java Sun SDK 1.4.0_2

I have Searched the mail archives, and found two discussions, but not any
answers.

JS:
cocoon.load(resource://org/apache/cocoon/components/jxforms/flow/jxForm.js
);

function loginForm(form)
{
 var user = ;
 var pass = ;
 var model = {
  username: ,
  password: 
 };
 form.setModel(model);
 form.sendView(jxforms/Login.xml,
  function(form) {
if (empty(model.username)) {
form.addViolation(/username, Please Enter Your Username.);
}
if (empty(model.password)) {
form.addViolation(/password, Please Enter Your Password.);
}
});
form.finish(do-login.xml, {username:user, password:pass});
}

SiteMap:

   map:match pattern=manager
map:call function=jxForm/
   /map:match

   map:match pattern=Login.form
map:call function=jxForm
 map:parameter name=function value=loginForm/
 map:parameter name=id value=manager-login/
 map:parameter name=validator-schema-ns/
 map:parameter name=validator-schema/
 map:parameter name=scope value=request/
/map:call
   /map:match

   map:match pattern=do-login.xml
map:act type=auth-login
 map:parameter name=handler value=userhandler/
 map:parameter name=username value={request:username}/
 map:parameter name=password value={request:password}/
 map:redirect-to uri=index.xml/
/map:act
map:generate src=resources/views/auth/LoginFailed.xml/
map:transform src=resources/styles/document2html.xsl/
map:serialize/
   /map:match

   map:match pattern=jxforms/*.xml
map:generate  type=jxforms src=resources/views/jxforms/{1}.xml/
map:transform type=jx/
map:transform type=xalan src=resources/styles/form2html.xsl
label=debug1/
map:transform type=xalan src=resources/styles/jxforms2html.xsl /
map:transform type=xalan src=resources/styles/document2html.xsl
label=debug1/
map:serialize type=html /
   /map:match

Arg.


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



Re: Alias in database descriptor file

2003-06-11 Thread Amelie Cordier
 On 11.Jun.2003 -- 03:42 PM, Amelie Cordier wrote:
  How do you know it doesn't work?

 I've two forms : one to fill the DB according to the first description
 and the other to fill it according to the second one... when I use the
 2 separately it works...
 If you use the default parameter names, change the input fields to
 @name=incrit2.foo instead of @name=incrit.foo. I reckon it will work
 then.

Yes it works ! I should have thought about it earlier :(

I've tried the other solutions... none were successfull for the moment...
I'll have a closer look on this during the week and then, I will try to do
something on wiki...

Thanks again for the time you spent on this problem... that's nice...

Amelie



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



xml/xsl transform working, but fails thru cocoon?

2003-06-11 Thread Paul Tomsic
Hi, we can't seem to make a transformation work when
retrieving the data from a SQL source.
We do get the XML back correctly, but when it's
displayed as PDF, everything is blank.
Perhaps there's something that we're missing w/r/t the
way the namespaces are followed inside cocoon, but
below is our sitemap.xmap, the xml before the
transform and the XSL.
Any help would be greatly appreciated.
Thanks.

we've got the following URL from our site:

http://whatever/reports/exhibitReport.pdf?id=45

in our sitemap.xmap file:

map:match pattern=exhibitReport/*.pdf
map:generate type=request/
map:transform type=xslt src=render-logic.xsl

map:parameter name=label value={1}/
/map:transform
map:transform type=xinclude/
map:transform type=xslt src=render-logic.xsl/

map:transform type=sql
map:parameter name=dburl
value=jdbc:mysql://localhost/agilis?user=oneamp;password=123abc
/
/map:transform
map:transform src=exhibitSp.xsl/
map:serialize type=fo2pdf/
/map:match
--

and in the exhibitSp.xsl
(it's been trimmed down to only include relevant
stuff)
--
?xml version=1.0  encoding=iso-8859-1?
xsl:stylesheet 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:mops=http://mops.cappsdigital.com/Report;
xmlns:sql=http://apache.org/cocoon/SQL/2.0;

!-- generate PDF page structure --

xsl:template match=/
fo:root
xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:page-sequence master-reference=all
fo:flow flow-name=xsl-region-body
fo:table width=9in padding=5pt
table-layout=fixed
fo:table-row
fo:table-cell 
padding-before=4pt
padding-after=3pt padding-right=5pt

fo:block font-family=Helvetica,Arial
font-size=8pt text-align=left
   
 RSID

/fo:block

/fo:table-cell
fo:table-cell 
padding-before=4pt
padding-after=3pt padding-right=5pt

fo:block border-style=solid
border-width=1pt
   
 xsl:value-of
select=/mops:report-sql/mops:data-blocks/mops:data-block/rowset/row/rsid/

/fo:block

/fo:table-cell



thanks again
Paul


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Need Tips -- Getting Started with 2.1

2003-06-11 Thread Keith Goettert

I am basically new to Cocoon.  I am very impressed with what the project has
done.  In fact, about 2 years ago I was trying to develop a similar framework
myself!  I obviously didn't get far, but I am glad the rest of you did.  To
date (all over the past 3 days since deciding to use the product) I have
download 2.0 and played with the samples.  Bought and Read Cocoon Developer's
Handbook.  Called Lajos Moczar (the author) and did a reality check that the
project would work well with cocoon.

I am building a portal site that will have a database centric application at
its core and a lot of articles and archived pdf.  I decided to go with 2.1
because I really want to work within XMLForms or the newer forms framework
(whos name slips my mind).  Also I will be using Sunshine (aka sessions) as the
portal and hope at some point to add in the CMS capabilities.

I would like some opinions on the current state of the 2.1 project.  I have
been all over the wiki and can't seem to get a good feel for what is near
completion and what is pre-alpha.  I just don't know enough about the internals
yet to make sense of the developers boards.

Specifically -- 

Is Sunshine fairly stable, would you code to it if you knew that in 6 months it
would be supporting a 20,000 user community?  [ 5% of the users will spend 90%
of the time here.  The rest will transisient spending a several minutes a day
here ]

What about XMLForms?  I noticed that it was left out of the almost stable list
on the 2.1 website

I have complex authentication needs.  Lots of different Groups and Roles.  What
is the status of the Authentication Framework?

The new form tool - Any comments?  I am on a real fast track project. I need to
avoid modules that are too young, but I am more than willing to work with
anything that will be close to release within the year end and I am impressed
with DEU simplicity of it (being a DEU myself).

2.1 -- Guesstimate on the GA date (Inquiring minds want to know)

And of course any big gottchas in the 2.1m2 build that I am working with.



__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

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



XML file

2003-06-11 Thread Tim Bachta
Is there a way/place to view the xml file that is created from my xsp.  

Thank you

Tim Bachta
 



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



RE: XML file

2003-06-11 Thread Conal Tuohy
http://wiki.cocoondev.org/Wiki.jsp?page=DebuggingWithViews

 -Original Message-
 From: Tim Bachta [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 12 June 2003 10:10 a.m.
 To: [EMAIL PROTECTED]
 Subject: XML file
 
 
 Is there a way/place to view the xml file that is created 
 from my xsp.  
 
 Thank you
 
 Tim Bachta

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



can't resolve session in xsp

2003-06-11 Thread morten svanæs
Hi,
I'm getting a error mesage when I'm trying to access the session in
a xsp script and I don't understand why.
It happens when I'm trying to assign a session variable with
session.getAttribute to a another variable, but when I write
xsp-session:get-attribute name=user/ outside the xsp:logic
it works.
Here is the error message:

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
meny_xsp:
ERROR 1 (org\apache\cocoon\www\xmldbform\useradmin\meny_xsp.java):
...

String myvar =

(

// start error (lines 81-81) session cannot be resolved
XSPSessionHelper.getSessionAttribute(session,

// end error
String.valueOf(user),
null)
)
;

...
Line 81, column 0: session cannot be resolved

Here is a code snippet from my xsp file:
 xsp:logic
  String myvar = xsp-session:get-attribute name=user/;
 /xsp:logic

I'm running cocoon-2.1m2
Any help or suggestions would be greatly appreciated.

Regards
Morten Svanaes



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



warpConnection crash tomcat

2003-06-11 Thread Stavros Kounis
hi all


i think that something strange is happend

i have some web sites with a sub sitemap for each one

i have update some of my sub-sitemaps and now i'm facing a strange (maybe)
situation:

i start tomcat

i test all my sites (configured through sub-sitemaps) and everything are
OK

then i start my apache
there is a warp connection /xml/ is connected to :8080/cocoon/

after cocoon/ is each site

using tomcat i have to ask:

:8080/cocoon/site1
:8080/cocoon/site2
etc..etc

using apache i have to ask:
../xml/site1
../xml/site2
etc..etc.


the problem is that when i start apache i get high load in my box and
either crash tomcat so war connection faild, or i get blank pages
some time i get cocoon's out of memory error


when i get an error asking something from warpConnection then i can not
get result from tomcat too.

but if i leave my box untouched and ask all this site through 8080
(tomcat) then i dont have any problem

any idea, comment, sugestion will be welcome

thxn

--stavros



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



Re: warpConnection crash tomcat

2003-06-11 Thread Stavros Kounis
my box:

Server Version: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12
OpenSSL/0.9.6 mod_webapp/1.2.0-dev PHP/4.1.2 mod_perl/1.24

j2sdk1.4.1
jakarta-tomcat-4.1.18/
cocoon 2.0.4


On Thu, 12 Jun 2003, Stavros Kounis wrote:

 hi all


 i think that something strange is happend

 i have some web sites with a sub sitemap for each one

 i have update some of my sub-sitemaps and now i'm facing a strange (maybe)
 situation:

 i start tomcat

 i test all my sites (configured through sub-sitemaps) and everything are
 OK

 then i start my apache
 there is a warp connection /xml/ is connected to :8080/cocoon/

 after cocoon/ is each site

 using tomcat i have to ask:

 :8080/cocoon/site1
 :8080/cocoon/site2
 etc..etc

 using apache i have to ask:
 ../xml/site1
 ../xml/site2
 etc..etc.


 the problem is that when i start apache i get high load in my box and
 either crash tomcat so war connection faild, or i get blank pages
 some time i get cocoon's out of memory error


 when i get an error asking something from warpConnection then i can not
 get result from tomcat too.

 but if i leave my box untouched and ask all this site through 8080
 (tomcat) then i dont have any problem

 any idea, comment, sugestion will be welcome

 thxn

 --stavros



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



-- 
Stavros S. Kounis
Development  Research Department
Osmosis - networks  consulting services

web:http://www.osmosis.gr
email:  [EMAIL PROTECTED]


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



Re: TeX to PDF serializator

2003-06-11 Thread Joerg Heinicke
Jestel, Roger B. (LNG-ALB) wrote:
Sometimes you can't avoid using legacy systems, and sometimes they are
even good, but that is unrelated to the question of how a third party
processor can be intregrated in a serializer.
Of course. And PDFs generated with TeX seem to provide much more quality 
than XSL FO processors at the moment, so it *is* an option to have a 
TeXSerializer.

If your original file is XML and you have an xslt that converts it into TEX
text, the output from the xslt is passed as a series of character sax
events, so even though it is technically xml/sax events, since there are no
elements or attributes, you can easily treat it as a text stream which can
be fed by a serializer to an external processor if desired.
NO! Exactly this is not an option. We won't break the sitemap contract 
for having a specialized serializer. After every step in the sitemap it 
must be possible to get well-formed XML - and that's not possible if you 
have text as output of a transformer and as input for a serializer.

As Bruno and me pointed out the TeXSerializer must be able to read an 
XML representation of TeX. Only in the prefered solution he has another 
opinion than me.

Joerg

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


Re: problem with setting up cocoon in webLogic

2003-06-11 Thread Anne Kwong
Hi Geoff,
I downloaded the binary version and follow the instruction that they have on the website for weblogic 6.0. 

Should I build from source from your opinion?

Thanks,
AnneGeoff Howard [EMAIL PROTECTED] wrote:
And did you build from source? What instructions did you follow toset up the cocoon servlet?GeoffAt 09:55 AM 6/11/2003, you wrote:I am using Cocoon 2.0.4. From the webLogic log, there is no error message..AnneGeoff Howard <[EMAIL PROTECTED]>wrote:Actually, in this case the errors are probably in WebLogic's logs, not inWEB-INF/logs. Did you build from source? Which version of Cocoon?GeoffAt 02:41 AM 6/11/2003, you wrote: Could you please post errors from the log files? They should be in your cocoon web app directory under WEB-INF/logs. The error.log usually has something useful, but I would look in core.log for this type of error.
 -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

RE: TeX to PDF serializator

2003-06-11 Thread Conal Tuohy
Roger wrote:

  If your original file is XML and you have an xslt that 
 converts it into TEX
  text, the output from the xslt is passed as a series of 
 character sax
  events, so even though it is technically xml/sax events, 
 since there are no
  elements or attributes, you can easily treat it as a text 
 stream which can
  be fed by a serializer to an external processor if desired.

Joerg Heinicke wrote:

 NO! Exactly this is not an option. We won't break the sitemap 
 contract 
 for having a specialized serializer. After every step in the 
 sitemap it 
 must be possible to get well-formed XML - and that's not 
 possible if you 
 have text as output of a transformer and as input for a serializer.
 
 As Bruno and me pointed out the TeXSerializer must be able to read an 
 XML representation of TeX. Only in the prefered solution he 
 has another 
 opinion than me.

AFAIU the contract between pipeline components is that just SAX. These SAX events may 
represent a fragment of a document, with multiple root elements, or whatever. The 
pipeline processor certainly doesn't check that the SAX streams constitute well-formed 
XML documents. 

In any case - isn't TeX a text format? If so then a well-formed XML document like 
TeXblah blah blah ... /TeX could be serialised to TeX by the TextSerializer, 
couldn't it?

Con

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



RE: XML file

2003-06-11 Thread Tim Bachta
I tried this and it does not work for me.  It shows me the xml but it
does not run the query correctly so I am not getting the same info that
I am getting on a regular view.  Is there another way?

Tim Bachta
 
(913)693-0538 Office
(913)486-5213 Mobile
 

-Original Message-
From: Conal Tuohy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 5:10 PM
To: [EMAIL PROTECTED]
Subject: RE: XML file

http://wiki.cocoondev.org/Wiki.jsp?page=DebuggingWithViews

 -Original Message-
 From: Tim Bachta [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 12 June 2003 10:10 a.m.
 To: [EMAIL PROTECTED]
 Subject: XML file
 
 
 Is there a way/place to view the xml file that is created 
 from my xsp.  
 
 Thank you
 
 Tim Bachta

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


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



RE: XML file

2003-06-11 Thread Conal Tuohy
Try posting the pipeline from your sitemap, so we can see what you have done, and get 
an idea of what is going wrong. Otherwise we are just guessing.

Cheers!

Con

 -Original Message-
 From: Tim Bachta [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 12 June 2003 2:44 p.m.
 To: [EMAIL PROTECTED]
 Subject: RE: XML file
 
 
 I tried this and it does not work for me.  It shows me the xml but it
 does not run the query correctly so I am not getting the same 
 info that
 I am getting on a regular view.  Is there another way?


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



RE: XML file

2003-06-11 Thread Tim Bachta
map:match pattern=login
  map:generate type=serverpages src=xsp/login.xsp label=debug1/
  map:transform type=xslt src=style/dialog.xsl label=debug2
map:parameter name=css-stylesheet value=global.css/
  /map:transform
  map:serialize type=html/
/map:match

the view element looks just like the site.  I am getting an xml page
back but it is not the same as what I would see.  What is happening is
that I have a login form that submits to this page.  In this page I run
a query to validate login.  In the xml that I get back I am seeing
invalid login but in the actual html that is produced the login is
validated.  That is why I am saying the xml does not match up.

Tim Bachta
 
(913)693-0538 Office
(913)486-5213 Mobile
 

-Original Message-
From: Conal Tuohy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 9:49 PM
To: [EMAIL PROTECTED]
Subject: RE: XML file

Try posting the pipeline from your sitemap, so we can see what you have
done, and get an idea of what is going wrong. Otherwise we are just
guessing.

Cheers!

Con

 -Original Message-
 From: Tim Bachta [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 12 June 2003 2:44 p.m.
 To: [EMAIL PROTECTED]
 Subject: RE: XML file
 
 
 I tried this and it does not work for me.  It shows me the xml but it
 does not run the query correctly so I am not getting the same 
 info that
 I am getting on a regular view.  Is there another way?


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


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



Desperately need help with installing Cocoon on webLogic 7

2003-06-11 Thread Anne Kwong
Dear all,

I am really really stuck with trying to get Cocoon 2.0.4 to work on webLogic 7. Does anyone has a step-by-step guide that can help me? I followed the instruction on the installation page, but I am keep getting the following error:


type fatal
message Cocoon was not initialized.
description Cocoon was not initialized. Cannot process request.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri


Any help will be greatly appreciated.

Thanks alot in advance for your help.

Thanks,
Anne
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Flowscript - getting started

2003-06-11 Thread Tony Edwards



Hello 
cocooners,
9 
years of Visual Basic development have left my brain somewhat mushy and less 
able to pick up on new concepts.
I am 
having a fundamental issue with undertanding flowscript and how to apply 
it.
Is 
there a definitive resource I could get hold ofthat would point me in the 
right direction?

thanks,

Tony


- 

This email is from Civica Pty Limited and it, together with any attachments, is confidential to the intended recipient(s) and the contents may be legally privileged or contain proprietary and private information. It is intended solely for the person to whom it is addressed. If you are not an intended recipient, you may not review, copy or distribute this email. If received in error, please notify the sender and delete the message from your system immediately.Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Civica and do not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Civica by email. Please note that neither Civica nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Civica may be monitored to protect the business interests of Civica. 

- 



Re: Flowscript - getting started

2003-06-11 Thread Bertrand Delacretaz
Le Jeudi, 12 juin 2003, à 07:18 Europe/Zurich, Tony Edwards a écrit :
...
Is there a definitive resource I could get hold of that would point me 
in the right direction?
http://wiki.cocoondev.org/Wiki.jsp?page=GettingStartedWithFlow
is a good starting point.
-Bertrand

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


Re: TeX to PDF serializator (ExternalProcessSerializer?)

2003-06-11 Thread Bertrand Delacretaz
Le Jeudi, 12 juin 2003, à 03:49 Europe/Zurich, Conal Tuohy a écrit :

...In any case - isn't TeX a text format? If so then a well-formed XML 
document like TeXblah blah blah ... /TeX could be serialised to 
TeX by the TextSerializer, couldn't it?...
Or better, just write a serializer that is a wrapper around the TeX 
processor, strips out the Tex elements and sends the plain TeX to 
the processor. This sounds fairly easy to implement, and it would allow 
the high output quality of TeX to be made available in Cocoon.

This mechanism could be generalized by a serializer that can call any 
external process, pass to it a possibly filtered version of the 
serializer's input, and send the output of the process to the Cocoon 
client with a configurable mime-type, allowing Cocoon to cache this 
output on the way to the client.

An ExternalProcessSerializer? Paves the way for all kinds of hacks ;-)

OTOH, the idea of a serializer taking an XMLized version of TeX as 
input would be a much stronger integration of TeX in Cocoon, but 
apparently such a format has to be invented, and converted back to TeX 
by the serializer.

If anyone is ready to vote with their code I'd be happy to test the 
results of either option ;-)

-Bertrand

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