Re: AxKit auf Apache2

2005-04-29 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Matt,
Replying to you and also to the public on axkit-dev. I've discussed the
contribution of the stuff I have written and published on the user list
~ in my company.
My company has decided that it would contribute the code I developed
until now and will develop in future to the AxKit-Project. This has the
advantage that I get payed for my work on AxKit2 (done in my free-time).
On the other hand they want to get some promotion from AxKit. Things
that have been discussed are that:
* e.g. logo on the AxKit-Page = Link axkit2-dev-page
* axkit2-dev-page hosted by the company and reachable as
~  axkit2.bestsolution.at until a release is made.
Another thing I want to be certain is that the stuff I contribute is
really desired by all developers because what is here until now is the
right way to go. If most of them say I don't like the actual design and
we want to make things in completely another way I don't have any
problem to accept this.
But what I don't want is to contribute the code I have written and
afterwards everybody says that's a deadend street and no code gets
released. I my opinion this is the right way to go but because none of
the dev people (beside you) responded to me.
I know that none of us can say that what I've written until now will get
released but what I want is that people took a look at my code and say
it makes sense what I'm doing.
A last thing is would I become a commit rights into the source tree for
my AxKit2-port or would I only contribute code a others apply it to the
repository?
I hope many of you respond to this mail. The latest source is attached
to this mail. It should run on apache2-prefork/mp2-rc5.
Just for information:
- -
The benchmarks are from a AMD Mobile Athlon 3000+ (=800MHZ) and 512 MB
RAM perl compiled with thread support running Mandrake 10.1 and
kernel-2.6.10.
Tom
Matt Sergeant schrieb:
| First fax in the CLA. Then let me know you've done it. Then we can get
| an account setup. Then we can get a new repository setup.
|
| On 26 Apr 2005, at 12:08, Tom Schindl wrote:
|
| Hi Matt,
|
| didn't you received my mail I sent you yesterday or didn't you have time
| to start the process of including me into the AxKit-Dev-Team? At least
| as I read the FAQ on apache.org I must get an invocation from the
| AxKit-PMC to kick off the process.
|
| Tom
|
| Matt Sergeant schrieb:
| | I'd be happy to get a CVS (or maybe even SVN) repository setup for you
| | on apache infrastructure. You'll have to sign a Contributor License
| | Agreement which you can print off on the Apache web site and fax into
| | the ASF secretary.
| |
| | Email me privately to get this organised.
| |
| |
| | -
| | To unsubscribe, e-mail: [EMAIL PROTECTED]
| | For additional commands, e-mail: [EMAIL PROTECTED]
| |
| |
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCck2qkVPeOFLgZFIRAqQ5AJ9LrU7JgRw4YFCpPzN1YPoJzrq33QCggnKl
xdz4VCR/x8RuObF5uW33/bM=
=UP9v
-END PGP SIGNATURE-


TomKit.tar.bz2
Description: application/bzip


ANNOUNCE: AxKit-XSP-BasicSession-0.23_2 [security]

2005-04-28 Thread Kjetil Kjernsmo
Dear all,

I have just uploaded a new developer release of BasicSession to CPAN. A 
review performed by the original author Mike Nachbaur and myself, 
prompted by the problems Tom Kirkpatrick has reported with the module 
revealed that BasicSession was in fact not invalidating sessions 
properly. 

This may have security implications as information may be carried over, 
including authentication tokens, to a session even though the user 
believed that the previous session was exited. 

We believe that we have fixed this particular problem, as well as a 
number of smaller problems with this release. Given that there are 
security implications, I felt that it was appropriate to release this 
now, as well as this short advisory.

Note, however, that we have not tested this extensively, and while it 
seems to be OK with the File and DB_File backend, and usually OK with 
the PostgreSQL backend, we have noted problems with the latter, it has 
been seen to sit there and spin indefinitely. So, until more testing 
has been performed, one has the choice between a module that has 
security implications, and one that has seen little testing and has 
known issues. So, that's why this has been uploaded as a developer 
release and not an ordinary release. Caveat programmor. Your call. No 
warranties. Et cetera.

It appears to clear out some quite confusing issues that has been 
present in earlier releases, allthough we're not sure it corrects all 
known problems. Success or failure reports are welcome.

So to the formalities: I report that the uploaded file

AxKit-XSP-BasicSession-0.23_2.tar.gz

has entered CPAN as

  file:
 $CPAN/authors/id/K/KJ/KJETILK/AxKit-XSP-BasicSession-0.23_2.tar.gz
 size: 14668 bytes
   md5: 4e6cc5f2ab406e198bf0ddc3e33b8688

From the changelog:
0.23_2   2005-04-28 02:45
- Invalidation of session didn't work properly, which has
  obvious SECURITY issues. We found this has a result of a
  review sparked by inquires by Tom Kirkpatrick.
- Tom Kirkpatrick pointed out that get-last-accessed-time
  returned a meaningless time. Mike Nachbaur provided a patch
  for that.
- When using a Pg based backend, different defaults should
  used. 
- Actually implement the comment in enumerate.
- Some documentation cleanups.
- Added quite a lot of debugging statements. 

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/OpenPGP KeyID: 6A6A0BBC


pgpou3pnJ599g.pgp
Description: PGP signature


Re: Migrating to SVN

2005-04-28 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
well I'm using Trac in at the moment at its really nice but it has in my
idea one really big disadvantage which is its privileges system. What do
I mean? You cannot give users the e.g. anonymous ones the possibility to
report and edit a bug/feature request, but avoid anonymous in the same
time to change the status of a bug. Misuse like we have seen on the wiki
~ will follow. Besides this issue I like trac. JIRA has one more
advantage as I can see from now in the idea that it links cvs/subversion
commit to a issue, trac does it the other way round.
One more disadvantage of trac is that if you have multiple different
projects in one svn-repository you cannot configure trac only to show
project1 or project2.
I like trac and before using any other bugtracking I'd go with it but
one day I'll write my own ;-)
Tom
Matt Sergeant schrieb:
| On 27 Apr 2005, at 10:30, Tom Schindl wrote:
|
| Now there would be a perfect point to move AxKit into such a Bug/Feature
| tracking system. Bugs could be scheduled, ... .
|
|
| I've talked to Dirk about the possibility of us using Trac, which seems
| to integrate lots of project management features very nicely. We'd
| probably have to get that setup ourselves, but it looks pretty easy to do.
|
| Matt.
|
|
| __
| This email has been scanned by the MessageLabs Email Security System.
| For more information please visit http://www.messagelabs.com/email
| __
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCcH9IkVPeOFLgZFIRApQ2AJ9R53AXy3miclKxouOYzcVo9A4UmgCeI1cQ
37OEInuZvoZ9khdujC/OR9g=
=i3VF
-END PGP SIGNATURE-


Re: New axkit?

2005-04-27 Thread Michael Nachbaur
On Apr 26, 2005, at 11:57 AM, Matt Sergeant wrote:
OK guys, I think we should put out a new axkit release. There are lots 
of reports that CVS is stable, and even if there are things we should 
fix we can do them in 1.6.4 (or whatever the next number we choose is) 
afterwards.

Any objections or comments? I'll wait until the weekend for votes.
+1
I was hoping to get the XML catalog patch working (or at least verify 
whether it works already) prior to the next AxKit release, but I 
certainly don't want this to hold up a release, especially since I 
don't foresee having any time before the weekend is over to work on it.

--
Michael Nachbaur [EMAIL PROTECTED]
http://nachbaur.com/pgpkey.asc


Re: Migrating to SVN

2005-04-27 Thread Robin Berjon
Matt Sergeant wrote:
Proposal: After we release 1.6.3, we migrate to subversion.
Apparently it's a very simple process, and I've used svn on a couple of 
projects now and I'm happy with its stability and performance.

Votes please!
+1
/me also needs to recall how to ssh there.
--
Robin Berjon
  Research Scientist
  Expway, http://expway.com/



Re: New axkit?

2005-04-27 Thread Alberto Reggiori
On Apr 26, 2005, at 8:57 PM, Matt Sergeant wrote:
OK guys, I think we should put out a new axkit release. There are lots 
of reports that CVS is stable, and even if there are things we should 
fix we can do them in 1.6.4 (or whatever the next number we choose is) 
afterwards.

Any objections or comments? I'll wait until the weekend for votes.
+1 to new release
there are a few very useful bug fixes in current CVS version - a new 
1.6.4 it would be more than welcome

Yours
Alberto
-
Alberto Reggiori, @Semantics S.R.L.
www.asemantics.com


Re: Migrating to SVN

2005-04-27 Thread Matt Sergeant
On 27 Apr 2005, at 02:06, Tom Schindl wrote:
Although I can not vote I would second this. I would also suggest to
register for the issue/bug tracking one of the apache possibilities 
JIRA
looks really cool although written in java. I haven't looked at scarab
until now but could take a look. Bugzilla would be the least one. I
think at the moment bugs are tracked rt.cpan.org.
Yes, the ASF has asked us to make this move at some point also.


Re: New axkit?

2005-04-27 Thread Matt Sergeant
On 26 Apr 2005, at 21:33, Michael Nachbaur wrote:
On Apr 26, 2005, at 11:57 AM, Matt Sergeant wrote:
OK guys, I think we should put out a new axkit release. There are 
lots of reports that CVS is stable, and even if there are things we 
should fix we can do them in 1.6.4 (or whatever the next number we 
choose is) afterwards.

Any objections or comments? I'll wait until the weekend for votes.
+1
Also note we need to apply the new Apache 2.x license to everything 
before release.

I was hoping to get the XML catalog patch working (or at least verify 
whether it works already) prior to the next AxKit release, but I 
certainly don't want this to hold up a release, especially since I 
don't foresee having any time before the weekend is over to work on 
it.
There are always going to be things we hope to get into the release 
when someone says lets release!. My suggestion is don't sweat it. 
There will always be another release.

Matt.


Re: Migrating to SVN

2005-04-27 Thread Dirk-Willem van Gulik


On Wed, 27 Apr 2005, Matt Sergeant wrote:

 Yes, the ASF has asked us to make this move at some point also.

For the record - note that we -asked-; nothing more; nothing less. If this
community feels it is more productive on CVS that is fine too.

However we ultimately will more and more tie in SVN with things like
Certificates, CLA's, release tracking and other automated papertrail
elements. Which allows us, as the foundation, to better protect the IP and
iwth that the Community in this increasingly 'lega triggerhappyl' world.
And ultimately every exception becomes a liability in that prcedural
view.

However this is a proces of years - and at this point there is no great
urgency. Esp. as there are enough voluteers within the CVS using pmc's to
keep it alive.

Dw.


Re: New axkit?

2005-04-27 Thread Dirk-Willem van Gulik


On Wed, 27 Apr 2005, Matt Sergeant wrote:

 Also note we need to apply the new Apache 2.x license to everything
 before release.

As this is your first 2.x release - feel free to ping me if oyu need help,
explanations or other assistance.

http://www.apache.org/dev/apply-license.html
Dw


Re: Migrating to SVN

2005-04-27 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matt Sergeant schrieb:
| On 27 Apr 2005, at 02:06, Tom Schindl wrote:
|
| Although I can not vote I would second this. I would also suggest to
| register for the issue/bug tracking one of the apache possibilities JIRA
| looks really cool although written in java. I haven't looked at scarab
| until now but could take a look. Bugzilla would be the least one. I
| think at the moment bugs are tracked rt.cpan.org.
|
|
| Yes, the ASF has asked us to make this move at some point also.
|
|
Now there would be a perfect point to move AxKit into such a Bug/Feature
tracking system. Bugs could be scheduled, ... .
Tom
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCb6HskVPeOFLgZFIRArB6AKCcZ9ZoL5QuoMdiEKNKEQuDJqopBACbBcW+
y0/2FUoYKyT5XUOQ5Njnupw=
=lx5n
-END PGP SIGNATURE-


Re: Migrating to SVN

2005-04-27 Thread Matt Sergeant
On 27 Apr 2005, at 10:30, Tom Schindl wrote:
Now there would be a perfect point to move AxKit into such a 
Bug/Feature
tracking system. Bugs could be scheduled, ... .
I've talked to Dirk about the possibility of us using Trac, which seems 
to integrate lots of project management features very nicely. We'd 
probably have to get that setup ourselves, but it looks pretty easy to 
do.

Matt.
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


New axkit?

2005-04-26 Thread Matt Sergeant
OK guys, I think we should put out a new axkit release. There are lots 
of reports that CVS is stable, and even if there are things we should 
fix we can do them in 1.6.4 (or whatever the next number we choose is) 
afterwards.

Any objections or comments? I'll wait until the weekend for votes.


Migrating to SVN

2005-04-26 Thread Matt Sergeant
Proposal: After we release 1.6.3, we migrate to subversion.
Apparently it's a very simple process, and I've used svn on a couple of 
projects now and I'm happy with its stability and performance.

Votes please!
+1


Its your last chance!

2005-04-22 Thread humfrey fansher
Dear Homeowner,

You have been pre-approved for a $300,000 loan at a low fixed rate.
This offer is being extended to you unconditionally and your credit is in no way a factor.

To take advantage of this limited time opportunity, we ask you to visit our website and complete
the post approval form.

Approval Form

humfrey fansher
Chase Financial Group

annuli bangia cormorant calkins azure

cvs commit: xml-axkit/lib/Apache/AxKit/Language XSP.pm

2005-04-20 Thread matts
matts   2005/04/20 13:02:14

  Modified:lib/Apache/AxKit/Language XSP.pm
  Log:
  Support namespace prefixed attributes
  
  Revision  ChangesPath
  1.53  +17 -1 xml-axkit/lib/Apache/AxKit/Language/XSP.pm
  
  Index: XSP.pm
  ===
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language/XSP.pm,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- XSP.pm31 Oct 2003 17:04:46 -  1.52
  +++ XSP.pm20 Apr 2005 20:02:14 -  1.53
  @@ -743,8 +743,24 @@
   }
   }
   elsif ($tag eq 'attribute') {
  +if (my $uri = $attribs{uri}) {
  +# handle NS attributes
  +my $prefix = $attribs{prefix} || die No prefix given;
  +my $name = $attribs{name} || die No name given;
  +$e-{attrib_seen_name} = 1;
  +return '$parent-setNamespace('.makeSingleQuoted($uri).', '.
  +makeSingleQuoted($prefix).', 
0);'.
  +   '$parent-setAttribute('.makeSingleQuoted($name).', ';
  +}
   if (my $name = $attribs{name}) {
   $e-{attrib_seen_name} = 1;
  +# handle prefixed names
  +if ($name =~ s/^(.*?)://) {
  +my $prefix = $1;
  +return 'my $nsuri = $parent-lookupNamespaceURI(' . 
makeSingleQuoted($prefix) . ')'.
  +' || die No namespace found with given 
prefix;'.\n.
  +
'$parent-setAttributeNS($nsuri,'.makeSingleQuoted($name).', ';
  +}
   return '$parent-setAttribute('.makeSingleQuoted($name).', ';
   }
   $e-{attrib_seen_name} = 0;
  
  
  


cvs commit: xml-axkit/lib/Apache/AxKit/Language XSP.pm

2005-04-20 Thread matts
matts   2005/04/20 13:06:54

  Modified:lib/Apache/AxKit/Language XSP.pm
  Log:
  Support namespace prefixes for ordinary elements.
  
  Revision  ChangesPath
  1.54  +7 -1  xml-axkit/lib/Apache/AxKit/Language/XSP.pm
  
  Index: XSP.pm
  ===
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language/XSP.pm,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- XSP.pm20 Apr 2005 20:02:14 -  1.53
  +++ XSP.pm20 Apr 2005 20:06:54 -  1.54
  @@ -1228,6 +1228,12 @@
   
   sub __mk_element_node {
   my ($document, $parent, $name) = @_;
  +if ($name =~ s/^(.*?)://) {
  +my $prefix = $1;
  +my $uri = $parent-lookupNamespaceURI($prefix)
  +|| die No namespace URI for prefix '$prefix';
  +return __mk_ns_element_node($document, $parent, $uri, $name);
  +}
   my $elem = $document-createElement($name);
   if ($parent) {
   $parent-appendChild($elem);
  
  
  


cvs commit: xml-axkit/lib/Apache/AxKit/Language XSP.pm

2005-04-20 Thread matts
matts   2005/04/20 14:18:21

  Modified:lib/Apache/AxKit/Language XSP.pm
  Log:
  Bug fix for attribute ns names
  
  Revision  ChangesPath
  1.55  +3 -2  xml-axkit/lib/Apache/AxKit/Language/XSP.pm
  
  Index: XSP.pm
  ===
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language/XSP.pm,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- XSP.pm20 Apr 2005 20:06:54 -  1.54
  +++ XSP.pm20 Apr 2005 21:18:20 -  1.55
  @@ -750,7 +750,8 @@
   $e-{attrib_seen_name} = 1;
   return '$parent-setNamespace('.makeSingleQuoted($uri).', '.
   makeSingleQuoted($prefix).', 
0);'.
  -   '$parent-setAttribute('.makeSingleQuoted($name).', ';
  +   '$parent-setAttributeNS('.makeSingleqQuoted($uri).', '.
  +  makeSingleQuoted($name).', ';
   }
   if (my $name = $attribs{name}) {
   $e-{attrib_seen_name} = 1;
  
  
  


Re: Updating Now

2005-04-07 Thread gurnam bridie
Dear Homeowner,

You have been pre-approved for $400,000 with a low fixed rate.

This offer is being extended to you unconditionally and your credit is in no way a factor.

To take Advantage of this Limited Time opportunity all
we ask is that you visit our Website and complete
the 1 minute post Approval Form.

http://www.quotelab.com/?partid=aaks9

Sincerely,

Case 1 Associates


r-m-v http://www.quotelab.com/byebye.php


RE: SourceResolver in Selector?

2003-07-02 Thread GUILLAUME Gabriel FTRD/DIH/HDM REN

Hi,
I have developped a matcher that use a SourceResolver as follows 
1) My class implements the import org.apache.avalon.framework.component.Composable 
interface
2) I get the ComponentManager as follows
/** The component manager instance */
protected org.apache.avalon.framework.component.ComponentManager manager_;

/**
 * Set the current codeComponentManager/code instance used by this
 * codeComposable/code.
 */
public void compose(org.apache.avalon.framework.component.ComponentManager 
aManager) throws ComponentException 
{
manager_=aManager;
}
3) Then in the configure method (from the Configurable interface), I access to the 
(URLFactory)SourceResolver via the component manager as follows

String config_url=foo.xml;
URLFactory url_factory = null;
Source config_source = null;
try 
{
url_factory = (URLFactory)this.manager_.lookup(URLFactory.ROLE);
URLFactorySourceResolver urlResolver = new 
URLFactorySourceResolver(url_factory, this.manager_);
config_source = urlResolver.resolve(config_url);
...
} 
catch (Exception e) 
{
throw new ConfigurationException(Cannot load configuration from  + 
config_url, e);
} 
finally 
{
this.manager_.release(url_factory);
if (config_source != null) {
config_source.recycle();
}


Does it address your problem ?
Gabriel


-Message d'origine-
De : Paul Bowler [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juillet 2003 16:25
À : [EMAIL PROTECTED]
Objet : SourceResolver in Selector?


Anyone know how to resolve a URI within a selector?

No SourceResolver is passed to it, unlike a Transformer, and I'm trying to gain access 
to a local XML file with no 
luck.

Thanks,

Paul.

-
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 WebServiceProxyGenerator

2003-07-02 Thread Tony Collen (UMN IMAP)
Tony Collen wrote:

snip;

Does anybody know if commons-httpclient has changed recently?
It looks like a bit of stuff that the WSPG uses is currently marked as 
deprecated in commons-httpclient, which could be the cause of our 
problems here. I'll put working on this on my plate ASAP.

Tony

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


[VIRUS] Virus Alert

2003-07-02 Thread Tony Collen
Hi list-

I just got an email apparently from [EMAIL PROTECTED] with the subject 
Re: Application which had a .zip file attached.  The .zip file had 
some sort of .pif file inside, which I assume is a virus.

Received: from CD101234501-2 (host-182-198-220-24.midco.net 
[24.220.198.182])

Please take caution if you get a strange message like this... I was only 
saved because I run pine on the address that this was sent to.

Tony

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


Testing the new mailinglists

2003-07-02 Thread Carsten Ziegeler
Test of the new mailinglists.

Carsten


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



[IMPORTANT] Mailinglist has change

2003-07-02 Thread Carsten Ziegeler
As Cocoon has become the status of a top level project, the
mailing lists have been renamed in order to reflect this:

[EMAIL PROTECTED] - [EMAIL PROTECTED]
[EMAIL PROTECTED] - [EMAIL PROTECTED]
[EMAIL PROTECTED] - [EMAIL PROTECTED]

All subscribers of the old mailing lists have been subscribed
to the new one, so receiving mails should work without any
problems. However, if you want to send a message to the
list, please consider the new names.

If you experience any problems, please let us now.

Carsten 

Carsten Ziegeler 
Open Source Group, SN AG
http://radio.weblogs.com/0107211/

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



FW: LDAP Transformer with XSP page?

2003-07-02 Thread Maxime.Gheysen
The only thing that doesn't work are the xsp:expr

If I replace a value with a variable like :
...
xsp:logic
 String MyTest = (cn=tfrgh*);
/xsp:logic
...
ldap:filterxsp:exprMyTest/xsp:expr/ldap:filter  
...

I get a java.lang.NullPointerException error :

java.lang.NullPointerException
at
org.apache.cocoon.webapps.authentication.components.Authenticator.authen
ticate(Authenticator.java:288)
at
org.apache.cocoon.webapps.authentication.components.DefaultAuthenticatio
nManager.login(DefaultAuthenticationManager.java:218)
at
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct
ion.java:118)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
tTypeNode.java:133)

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer with XSP page?


On Tue, 1 Jul 2003 16:20:59 +0200
[EMAIL PROTECTED] wrote:

 Is it possible to create the ldap.xml, with the ldap queries in a xsp
 page?
 
Yes, for example:

xsp:page
language=java
xmlns:xsp=http://apache.org/xsp; 
xmlns:ldap=http://apache.org/cocoon/LDAP/1.0;

  page
  xsp:logic
  String cn = request.getParameter(cn);
  if(cn == null) cn = *;
 /xsp:logic
  ldap:execute-query
 
ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer
  ldap:serverurlldap://ldaphost/ldap:serverurl
  ldap:port389/ldap:port
  ldap:scopeOBJECTS_SCOPE/ldap:scope
  ldap:rootdncn=Directory Manager/ldap:rootdn
  ldap:passwordpassword/ldap:password
  ldap:searchbaseou=people,o=company/ldap:searchbase
  ldap:attributecn/ldap:attribute
  ldap:attributesn/ldap:attribute
  ldap:attributegivenName/ldap:attribute
  ldap:attributeinitials/ldap:attribute
  ldap:attributemobile/ldap:attribute
  ldap:attributemail/ldap:attribute
  ldap:attributeou/ldap:attribute
  ldap:attributeuid/ldap:attribute
  ldap:attributetitle/ldap:attribute
  ldap:show-attributetrue/ldap:show-attribute
 
ldap:filter(amp;(uid=xsp:exprcn/xsp:expr)(mobile=*))/ldap:filter

 /ldap:execute-query
  /page
/xsp:page



-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

-
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: Link Livesites: http://www.ctg.albany.edu

2003-07-01 Thread Derek Hohls
Joerg

I was browsing the white paper referred to; in
http://www.ctg.albany.edu/publications/reports/xml?chapter=9
it mentions that XML files are connected to XSL files
by placing links to the stylesheets at the top of the XML
files.  It then goes on to say:

This significantly simplifies content management because it 
enables you to make changes to only one content file and 
make no changes to the stylesheets because the content 
is totally separated from the presentation. 

Figure 8 illustrates how these XML/XSL transformations occur 
within the Cocoon publishing framework.  

This is a little misleading and underplays the true value
added by Cocoon in completely separating content from
presentation - the connections happen in the sitemap;
there is no need to specify  stylesheets in your XML files;
as soon as you do this you are implicitly mixing content
and presentation.

If you are able, I think some changes would help
clarify the situation.

Regards
Derek


 [EMAIL PROTECTED] 30/06/2003 10:03:04 
We had it already on the list last week, here is the official 
announcement. I have added the link in the CVS.

Joerg

 Original Message 
Subject: RE: Contact  Us Form
Date: Mon, 30 Jun 2003 09:41:18 -0400
From: Jim Costello [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]

Yes,
We would be glad to be listed on your powered by Cocoon page. Our base 
url is http://www.ctg.albany.edu. The entire site is done in Cocoon 2, 
using standard XML/XSL with a docbook schema for our XML documents. The 
site currently has close to 4000 pages produced by approximately 300 
xml/xsl files. We expect to be producing about 10,000 pages by the end 
of the year with no increase in the number of xml/xsl files. The main 
content of our site are the reports, guides and studies that our Center 
produces. We needed a sensible way to manage these documents, control 
the source file and produce a variety of formats HTML, PDFs, multiple 
locations on the site. XML and Cocoon has been the answer. The site has 
only been live for about 1 month, but we've already seen a doubling of 
our traffic and it's much easier to maintain and find our information on 
the site now. It's all Cocoon and XML/XSL; no database involvement.

We also have a white paper on the site at 
http://www.ctg.albany.edu/publications/reports/xml that explains our
rationale and approach to using xml and cocoon.

One other component of the site at 
http://www2.ctg.albany.edu/egovfirststop/ uses Cocoon 1 and mySQL 
database to power an information repository application. We will be 
upgrading this application to Cocoon 2.

Jim Costello
Web Application Developer
Center for Technology in Govenment
www.ctg.albany.edu 
[EMAIL PROTECTED] 
(518) 442-3812


-
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: Woody textareas?

2003-07-01 Thread Marc Portier


Nathaniel Alfred wrote:
-Original Message-
From: Simon Price [mailto:[EMAIL PROTECTED]
Sent: Montag, 30. Juni 2003 20:04
...

Cocoon's form handling is (imho) it's weakest area at present 
although 
it is rapidly improving with the interplay between flow and xmlform.
...

Simon

Luke Penca wrote:

Are textareas implemented in Woody yet?  I cannot find 
anything in the (oh so sparse) documentation.

Furthermore, has anyone used Woody extensively yet?  (I 
know, I know, it's alpha at this point but I need some 
serious forms handling.)  Should I be considering Xforms 
instead?  Who got some experience getting their hands 
bloodied with forms in Cocoon?  I'm ever anxious to find out.
...

Luke.


I've just started prototyping with Woody and I think it is a
diamond in the raw.  Finally a form handling package that does
not require you to write a bean class or Cocoon action for
every little form!
I think it can even get better: just made a posting on cocoon-dev 
on how we could have it working for binding to a bean class as 
well :-)

Coming to the original question:  There is no special textarea widget
but you can emulate it easily by a field widget with styling:
wt:widget id=question
  xhtml:textarea rows=5 cols=30
wrap=physical/
/wt:widget
yep.

which is then transformed into HTML as:

xsl:template match=wi:field[wi:styling/xhtml:textarea]
  xhtml:textarea name=[EMAIL PROTECTED]
xsl:apply-templates select=wi:styling/xhtml:textarea/@*/
xsl:choose
  xsl:when test=wi:value != ''
xsl:value-of select=wi:value/
  /xsl:when
  xsl:otherwise
xsl:value-of select='#160;'/
  /xsl:otherwise
/xsl:choose
  /xhtml:textarea
/xsl:template
HTH, ALfred.
nice angle of attack,
(you might want to add a call-template to add the 'wi:validation' 
section to the show)

care to share this as a patch?
(it's the surest way to start cutting the diamond out of the raw 
stone :-))

regards,
-marc=
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0116284/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Link Livesites: http://www.ctg.albany.edu

2003-07-01 Thread Joerg Heinicke
Hello Derek,

yes, that's obviously misleading. But I'm not related to this page. 
After the mention on this list last week I only asked them to be listed 
on Cocoon's Livesites page and Jim Costello sent me this mail below. I 
added the link in the CVS and forwarded this mail, especially because of 
the impressive figures.
Now the report: It's the typical Cocoon 1.x handling using processing 
instructions. But I don't know if they wrote their own component 
handling processing instructions or if the report is outdated or simlpy 
wrong. The X-Cocoon header clearly states that they use Cocoon 2.0.4, 
but he also wrote (in the mail below) that they still have Cocoon 1.x in 
use for a part of their homepage.
I'm cc-ing Jim Costello, so he can read and clarify your objections.

Regards,

Joerg

Derek Hohls wrote:
Joerg

I was browsing the white paper referred to; in
http://www.ctg.albany.edu/publications/reports/xml?chapter=9
it mentions that XML files are connected to XSL files
by placing links to the stylesheets at the top of the XML
files.  It then goes on to say:
This significantly simplifies content management because it 
enables you to make changes to only one content file and 
make no changes to the stylesheets because the content 
is totally separated from the presentation. 

Figure 8 illustrates how these XML/XSL transformations occur 
within the Cocoon publishing framework.  

This is a little misleading and underplays the true value
added by Cocoon in completely separating content from
presentation - the connections happen in the sitemap;
there is no need to specify  stylesheets in your XML files;
as soon as you do this you are implicitly mixing content
and presentation.
If you are able, I think some changes would help
clarify the situation.
Regards
Derek


[EMAIL PROTECTED] 30/06/2003 10:03:04 
We had it already on the list last week, here is the official 
announcement. I have added the link in the CVS.

Joerg

 Original Message 
Subject: RE: Contact  Us Form
Date: Mon, 30 Jun 2003 09:41:18 -0400
From: Jim Costello [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Yes,
We would be glad to be listed on your powered by Cocoon page. Our base 
url is http://www.ctg.albany.edu. The entire site is done in Cocoon 2, 
using standard XML/XSL with a docbook schema for our XML documents. The 
site currently has close to 4000 pages produced by approximately 300 
xml/xsl files. We expect to be producing about 10,000 pages by the end 
of the year with no increase in the number of xml/xsl files. The main 
content of our site are the reports, guides and studies that our Center 
produces. We needed a sensible way to manage these documents, control 
the source file and produce a variety of formats HTML, PDFs, multiple 
locations on the site. XML and Cocoon has been the answer. The site has 
only been live for about 1 month, but we've already seen a doubling of 
our traffic and it's much easier to maintain and find our information on 
the site now. It's all Cocoon and XML/XSL; no database involvement.

We also have a white paper on the site at 
http://www.ctg.albany.edu/publications/reports/xml that explains our
rationale and approach to using xml and cocoon.

One other component of the site at 
http://www2.ctg.albany.edu/egovfirststop/ uses Cocoon 1 and mySQL 
database to power an information repository application. We will be 
upgrading this application to Cocoon 2.

Jim Costello
Web Application Developer
Center for Technology in Govenment
www.ctg.albany.edu 
[EMAIL PROTECTED] 
(518) 442-3812


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


Cocoon 2.1 CVS and Java 1.4.2

2003-07-01 Thread Antonio Gallardo
Hi:

Just reporting that Cocoon 2.1 CVS run using Sun Java 1.4.2. My config:

Red Hat Linux 9
Java 1.4.2
Tomcat 4.1.24
Cocoon 2.1 CVS

Best Regards,

Antonio Gallardo



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



RuntimeException : The sitemap is null

2003-07-01 Thread GUILLAUME Gabriel FTRD/DIH/HDM REN
Hi folks,

I'm currently performing some load tests on the following configuration
:
cocoon 2.0.4
resin 2.1.9
SUN JDK 1.4.003
Linux (RH 9)

After 5-10 minutes, I got the following  well known RuntimeException :
The sitemap is null.
I've seen on the cocoon-dev archive that a bug report has been recently
posted about this, but I just would like to know :
- if this bug is planned to be fixed in the 2.0.4 or in the 2.1 ?
- if there are some workaround to avoid this problem ? Any hint (change
JVM, system, servlet engine) ?

Many thanks for your help
Gabriel

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



Mount vs File for logicsheets inside cocoon.xconf

2003-07-01 Thread Derek Hohls
I'd appreciate a brief explanation (or pointer
to such) as to why:

parameter name=href value=file:///my-path-to-cocoon/logic/my-taglib.xsl/

works (placed inside the builtin-logicsheet section of 
cocoon.xconf)

and why:

parameter name=href value=resource://logic/my-taglib.xsl/

gives an error (the file could not be located).  I have seen both
forms of referencing used in examples, but cannot get the latter
to work...  can someone suggest why??



Related follow on:

IF I can get the resource:// to work, then it seems there are 
other issues,  Vadim writes:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102374809216737w=2

Ok, after looking into sources, I can say that if logicsheet is built-in
or not is not important. It is important how it is referenced from the
XSP or cocoon.xconf.

If it is referenced as a file then it is checked for modification using
File java API. If not (like resource://) - then it is not checked.


So - using  resource:// is better from a development/maintenance
point (I dont have to check the xconf file for changes if we move to
a new machine, or from production to public system, for example)
but if it requires restarting the servlet container, then this is NOT
good from a perspective of uptime and admin...

Comments/suggestions for this welcome

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]



esql:getXXX - wrong diagnostics?

2003-07-01 Thread Dmitry Diskin
Hello

I have been struggling with the following problem for a while: if I 
specify non-existing column name in esql:get-int column=wrong_column 
//xsp:attribute tag, I get the following error message:

org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
executing statement: select something from somewhere : 
java.sql.SQLException: Invalid column name

I think that is misleading, since the error is not in SQL, but in my XSp 
text. It was very hard to find it out.

Regards,
Dmitry.


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


newbie question with wildcard in sitemap

2003-07-01 Thread Sliman Bouchareb
hi cocooners,

i have the following directory structrue:

cocoon:|
 |protected-
|-docs -
  |-home
  |-fr
  |.
|-stylsheets
|-descriptors
|-css

and the followinf sitemap:

map:match pattern=do-login
!-- first validate whether submitted values are ok --
map:act type=form-validator
  map:parameter name=descriptor
value=context://protected/descriptors/params.xml/
  map:parameter name=validate value=username/
  !-- now try to log in --
  map:act type=db-authenticator
map:parameter name=descriptor
value=context://protected/descriptors/auth.xml/
!-- now go to protected area --
map:redirect-to uri=home/home.section/
  /map:act
/map:act
!-- something was wrong, try it again --
map:redirect-to uri=error/
  /map:match


* after a successfull login i call the uri  home/home.section

and then i have the following match:


map:match pattern=*/*.*
!-- first validate whether user has logged in --
map:act type=session-validator
  map:parameter name=descriptor
value=context://protected//descriptors/params.xml/
  map:parameter name=validate
value=username,department_id,theme/
  !-- generate protected content --
  !-- map:generate type=serverpages
src=docs/protected.xsp/ --
  !-- map:transform src=stylesheets/{theme}-page2html.xsl/ --


map:generate src=docs/home/home.xml/
map:transform src=stylesheets/page.xsl
  map:parameter name=section value=home/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform

map:transform src=stylesheets/menupage.xsl
  map:parameter name=section value=home/
  map:parameter name=request-url value=home.section/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=css-stylesheet value=default.css/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform
map:serialize/
/map:act
!-- something was wrong, redirect to login page --
map:redirect-to uri=login/
  /map:match

* well this works fine, nut i want to substitute map:generate
src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml /
because i have many ressources, but this dont work :-(, why that ?


thanx



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



Re: newbie question with wildcard in sitemap

2003-07-01 Thread Joerg Heinicke
You have a map:act/ surrounding not only this map:generate/. This 
map:act/ makes it necessary to use {../1}:

map:generate src=docs/{../1}/home.xml /

Regards,

Joerg

Sliman Bouchareb wrote:
hi cocooners,

i have the following directory structrue:

cocoon:|
 |protected-
|-docs -
  |-home
  |-fr
  |.
|-stylsheets
|-descriptors
|-css
and the followinf sitemap:

map:match pattern=do-login
!-- first validate whether submitted values are ok --
map:act type=form-validator
  map:parameter name=descriptor
value=context://protected/descriptors/params.xml/
  map:parameter name=validate value=username/
  !-- now try to log in --
  map:act type=db-authenticator
map:parameter name=descriptor
value=context://protected/descriptors/auth.xml/
!-- now go to protected area --
map:redirect-to uri=home/home.section/
  /map:act
/map:act
!-- something was wrong, try it again --
map:redirect-to uri=error/
  /map:match
* after a successfull login i call the uri 	home/home.section

and then i have the following match:

map:match pattern=*/*.*
!-- first validate whether user has logged in --
map:act type=session-validator
  map:parameter name=descriptor
value=context://protected//descriptors/params.xml/
  map:parameter name=validate
value=username,department_id,theme/
  !-- generate protected content --
  !-- map:generate type=serverpages
src=docs/protected.xsp/ --
  !-- map:transform src=stylesheets/{theme}-page2html.xsl/ --
map:generate src=docs/home/home.xml/
map:transform src=stylesheets/page.xsl
  map:parameter name=section value=home/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform
map:transform src=stylesheets/menupage.xsl
  map:parameter name=section value=home/
  map:parameter name=request-url value=home.section/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=css-stylesheet value=default.css/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform
map:serialize/
/map:act
!-- something was wrong, redirect to login page --
map:redirect-to uri=login/
  /map:match
* well this works fine, nut i want to substitute map:generate
src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml /
because i have many ressources, but this dont work :-(, why that ?
thanx
--

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]


how long still a session valid ?

2003-07-01 Thread Sliman Bouchareb
hi,
im using :

map:action name=session-validator
 src=org.apache.cocoon.acting.SessionValidatorAction/
map:action name=session-invalidator
 src=org.apache.cocoon.acting.SessionInvalidatorAction/
map:action name=form-validator
 src=org.apache.cocoon.acting.FormValidatorAction/


is there a time out or something like that in the session-validator ?

many thanx

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



Cache Key

2003-07-01 Thread David LAGARDERE
Hello.

I'm doing an extensive use of cache and I'd like
to be sure that every key is unique. Can the Hash
algorithm provided with Cocoon (buzhash) generate two
identical keys ? If so, what will happen ?

Thanks in advance

David LAGARDERE

___
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: Mount vs File for logicsheets inside cocoon.xconf

2003-07-01 Thread Vadim Gritsenko
Derek Hohls wrote:

I'd appreciate a brief explanation (or pointer
to such) as to why:
parameter name=href value=file:///my-path-to-cocoon/logic/my-taglib.xsl/

works (placed inside the builtin-logicsheet section of 
cocoon.xconf)

and why:

parameter name=href value=resource://logic/my-taglib.xsl/

gives an error (the file could not be located).  I have seen both
forms of referencing used in examples, but cannot get the latter
to work...  can someone suggest why??
 

You know that resources are loaded by class loader, right? Which means that

 parameter name=href value=resource://logic/my-taglib.xsl/

translates to

 parameter name=href 
value=file:///my-path-to-cocoon/WEB-INF/classes/logic/my-taglib.xsl/

I guess that was the missing piece.

PS Due to the above (class loader) resources can be reloaded only 
together with all the classes. Redeploy of the whole webapp will pick up 
changes in the logicsheet but then you will have to manually delete all 
compiled XSPs because Cocoon will not know that it was changed.

Vadim



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


background task management

2003-07-01 Thread David Kavanagh




For those who were interested in something to manage background tasks in
cocoon, have a look at bug 20271 in the bugzilla
database. Please vote for it so it gets some attention.

Thanks,
David




sendMail using Logicsheet

2003-07-01 Thread Yan, Charlene



All,

It may 
be a silly question. I'm using Cocoon2.1M2's sendMail example. http://localhost:8080/cocoon/samples/mail/sendmail/new.html. 
When I tried to use sendMail by logicsheet, after the email is sent, there is 
"setup done" message on the next page. I cannot find out where the message 
is defined and how I can get rid of it. I have checked simplepage2html.xsl 
and sendmail_xsp.xml and still cannot find it. Anybody can help me out 
here?

Thanks!

Charlene


LDAP Transformer

2003-07-01 Thread Maxime.Gheysen
hello,
I have integrated ldap into my portal as identhification system.
My problem is that I have to put a filter to search all users from these
seven groups :
DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
I have to ways, the first would be to set into my filter a parameter in
the sitemap, like 
map:parameter name=filter value=(cn={request-param:name})/ 
But it seems that the ldap transformer has a lot of bugs. The parameter
rootdn works, password works, but both filter and serverurl doesn't
work!!!

So the only way to filter it is to search by the attribute memberOf in
every user data. But this attribute is a DN (means not substring or
wildcards search). With a shareware I've found (LDAP Browser) I can
search all these data, but with the ldap transformer I get the error :
[LDAPTransformer] Error in LDAP-Query:
javax.naming.TimeLimitExceededException: [LDAP: error code 3 - Timelimit
Exceeded]; remaining name 'DC=corproot,DC=net'
Is it a bug of the ldap transformer? Is the filter to long/complex?

Here is the filter (ldap:filter)

(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,
OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,O
U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-D
AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(
memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=
IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=I
T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_
A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))

Thanks

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



Accessing file in selector

2003-07-01 Thread Paul Bowler
I'm creating a new selector that takes in an xml configuration file as a parameter 
from the sitemap.

The selector, unlike other components such as Transformers, does not have access to a 
SourceResolver object so my 
component cannot find the xml file passed to it.

How can I access the Source object in my selector to get the full path of the xml file?

Thanks,

Paul.

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



Re: LDAP Transformer

2003-07-01 Thread Yury Mikhienko
On Tue, 1 Jul 2003 14:55:52 +0200
[EMAIL PROTECTED] wrote:

 hello,
 I have integrated ldap into my portal as identhification system.
 My problem is that I have to put a filter to search all users from these
 seven groups :
 DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
 I have to ways, the first would be to set into my filter a parameter in
 the sitemap, like 
 map:parameter name=filter value=(cn={request-param:name})/ 
 But it seems that the ldap transformer has a lot of bugs. The parameter
 rootdn works, password works, but both filter and serverurl doesn't
 work!!!
 
try the following filter syntax: (amp;(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

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



RE: LDAP Transformer

2003-07-01 Thread Maxime.Gheysen
it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?


hello,
I have integrated ldap into my portal as identhification system.
My problem is that I have to put a filter to search all users from
these
seven groups :
DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
I have to ways, the first would be to set into my filter a parameter in
the sitemap, like 
map:parameter name=filter value=(cn={request-param:name})/ 
But it seems that the ldap transformer has a lot of bugs. The parameter
rootdn works, password works, but both filter and serverurl doesn't
work!!!

So the only way to filter it is to search by the attribute memberOf
in
every user data. But this attribute is a DN (means not substring or
wildcards search). With a shareware I've found (LDAP Browser) I can
search all these data, but with the ldap transformer I get the error :
[LDAPTransformer] Error in LDAP-Query:
javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
Exceeded]; remaining name 'DC=corproot,DC=net'
Is it a bug of the ldap transformer? Is the filter to long/complex?

Here is the filter (ldap:filter)

(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))

Thanks


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
[EMAIL PROTECTED] wrote:

 hello,
 I have integrated ldap into my portal as identhification system.
 My problem is that I have to put a filter to search all users from
these
 seven groups :
 DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
 I have to ways, the first would be to set into my filter a parameter
in
 the sitemap, like 
 map:parameter name=filter value=(cn={request-param:name})/ 
 But it seems that the ldap transformer has a lot of bugs. The
parameter
 rootdn works, password works, but both filter and serverurl doesn't
 work!!!
 
try the following filter syntax: (amp;(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

-
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]



Howto use a generated stylesheet

2003-07-01 Thread Olivier Billard
Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and I get this error :

org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler

Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
map:generate src=context://WEB-INF/workflow.xconf/
map:transform src=stylesheets/picto-filter-generator.xsl/
map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
...
map:transform src=cocoon:/picto-filter.xsl/
map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!
--
Olivier BILLARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Howto use a generated stylesheet

2003-07-01 Thread Olivier GUCKERT


Olivier Billard a écrit :
 
 Hi all !
 
 I'm trying to use a generated stylesheet for an xsl transformer and I get this error 
 :
 
 org.apache.cocoon.ProcessingException: Unable to get transformer handler for 
 cocoon:/picto-filter.xsl:
 org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating 
 Transform Handler
 
 Here is a snippet of my sitemap :
 
 map:match pattern=picto-filter.xsl
 map:generate src=context://WEB-INF/workflow.xconf/
 map:transform src=stylesheets/picto-filter-generator.xsl/
 map:serialize type=xml/
 /map:match
 
 ...
 
 map:match pattern=requestlist-part
 ...
 map:transform src=cocoon:/picto-filter.xsl/
 map:serialize type=xml/
 /map:match
 
 Isn't the cocoon protocol used in transformers ??
 Am I misunderstanding some things ?
 Thanks in advance !!

Did youb try  : 
map:transform src=cocoon:picto-filter.xsl/

(without the / before picto) ?

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



RE: LDAP Transformer

2003-07-01 Thread Maxime.Gheysen
I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
ldap:filter(amp;(cn=request:get-query-string/))/ldap:filter

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?


hello,
I have integrated ldap into my portal as identhification system.
My problem is that I have to put a filter to search all users from
these
seven groups :
DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
I have to ways, the first would be to set into my filter a parameter in
the sitemap, like 
map:parameter name=filter value=(cn={request-param:name})/ 
But it seems that the ldap transformer has a lot of bugs. The parameter
rootdn works, password works, but both filter and serverurl doesn't
work!!!

So the only way to filter it is to search by the attribute memberOf
in
every user data. But this attribute is a DN (means not substring or
wildcards search). With a shareware I've found (LDAP Browser) I can
search all these data, but with the ldap transformer I get the error :
[LDAPTransformer] Error in LDAP-Query:
javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
Exceeded]; remaining name 'DC=corproot,DC=net'
Is it a bug of the ldap transformer? Is the filter to long/complex?

Here is the filter (ldap:filter)

(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))

Thanks


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
[EMAIL PROTECTED] wrote:

 hello,
 I have integrated ldap into my portal as identhification system.
 My problem is that I have to put a filter to search all users from
these
 seven groups :
 DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
 I have to ways, the first would be to set into my filter a parameter
in
 the sitemap, like 
 map:parameter name=filter value=(cn={request-param:name})/ 
 But it seems that the ldap transformer has a lot of bugs. The
parameter
 rootdn works, password works, but both filter and serverurl doesn't
 work!!!
 
try the following filter syntax: (amp;(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

-
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: Howto use a generated stylesheet

2003-07-01 Thread Olivier Billard
Thanks Olivier but this syntax is not correct.

You must put a / to refer to the current sitemap, and // to refer to the root sitemap (or maybe the inverse).

--

Olivier BILLARD



Olivier GUCKERT wrote:

Olivier Billard a écrit :

Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and I get this error :

org.apache.cocoon.ProcessingException: Unable to get transformer handler for 
cocoon:/picto-filter.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform 
Handler
Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
   map:generate src=context://WEB-INF/workflow.xconf/
   map:transform src=stylesheets/picto-filter-generator.xsl/
   map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
   ...
   map:transform src=cocoon:/picto-filter.xsl/
   map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!


Did youb try  : 
map:transform src=cocoon:picto-filter.xsl/

(without the / before picto) ?

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


--
Olivier BILLARD
Service Propriété Industrielle
__
JOUVE
12, rue des Landelles
Immeuble Hercules II
35510 CESSON-SEVIGNE
FRANCE
__
Phone  : 33 2 99 86 93 55
Fax: 33 2 99 86 98 01
E-Mail : [EMAIL PROTECTED]
__
Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas être considérés comme un engagement juridique de quelque 
nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé par un représentant légal de JOUVE. Par ailleurs, si vous 
recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint.

The present email and all information included therein do not constitute a legal agreement accorded by Jouve. All legal agreements must be formulated 
in writing on paper by a legal representative of JOUVE. If you have received this email by mistake, please inform us of that fact and destroy the 
email and any documents it might contain. Thank you for your cooperation.

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


Re: Howto use a generated stylesheet

2003-07-01 Thread Upayavira
Check out:

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

Regards, Upayavira


On 1 Jul 2003 at 16:06, Olivier GUCKERT wrote:



 Olivier Billard a écrit :
 
  Hi all !
 
  I'm trying to use a generated stylesheet for an xsl transformer and
  I get this error :
 
  org.apache.cocoon.ProcessingException: Unable to get transformer
  handler for cocoon:/picto-filter.xsl:
  org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
  creating Transform Handler
 
  Here is a snippet of my sitemap :
 
  map:match pattern=picto-filter.xsl
  map:generate src=context://WEB-INF/workflow.xconf/
  map:transform
  src=stylesheets/picto-filter-generator.xsl/
  map:serialize type=xml/
  /map:match
 
  ...
 
  map:match pattern=requestlist-part
  ...
  map:transform src=cocoon:/picto-filter.xsl/
  map:serialize type=xml/
  /map:match
 
  Isn't the cocoon protocol used in transformers ??
  Am I misunderstanding some things ?
  Thanks in advance !!

 Did youb try  :
 map:transform src=cocoon:picto-filter.xsl/

 (without the / before picto) ?

 -
 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: Howto use a generated stylesheet

2003-07-01 Thread Orson Davis
The stylesheet must be available before the pipeline is setup.  The setup,
configure and compose methods for each component in a pipeline is called
before the startdocument method is called.  In the case of the
org.apache.cocoon.transformation.TraxTransformer the call to the stylesheet
is made in before any XML gets generated from the generate portion of the
pipeline.  

The only way I can think to work around this is to write your own version of
the org.apache.cocoon.transformation.TraxTransformer such that the
getTransformerHandler(inputSource) is called from the startDocument.  I
modified the TraxTransformer in such a way for my application.  It could
probably be easily modified to meet your needs.

If anyone knows a more graceful way to do this, please let me know.

-Original Message-
From: Olivier GUCKERT [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 9:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Howto use a generated stylesheet




Olivier Billard a écrit :
 
 Hi all !
 
 I'm trying to use a generated stylesheet for an xsl transformer and I get
this error :
 
 org.apache.cocoon.ProcessingException: Unable to get transformer handler
for cocoon:/picto-filter.xsl:
 org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler
 
 Here is a snippet of my sitemap :
 
 map:match pattern=picto-filter.xsl
 map:generate src=context://WEB-INF/workflow.xconf/
 map:transform src=stylesheets/picto-filter-generator.xsl/
 map:serialize type=xml/
 /map:match
 
 ...
 
 map:match pattern=requestlist-part
 ...
 map:transform src=cocoon:/picto-filter.xsl/
 map:serialize type=xml/
 /map:match
 
 Isn't the cocoon protocol used in transformers ??
 Am I misunderstanding some things ?
 Thanks in advance !!

Did youb try  : 
map:transform src=cocoon:picto-filter.xsl/

(without the / before picto) ?

-
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: LDAP Transformer with XSP page?

2003-07-01 Thread Maxime.Gheysen
Is it possible to create the ldap.xml, with the ldap queries in a xsp
page?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
ldap:filter(amp;(cn=request:get-query-string/))/ldap:filter

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?


hello,
I have integrated ldap into my portal as identhification system.
My problem is that I have to put a filter to search all users from
these
seven groups :
DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
I have to ways, the first would be to set into my filter a parameter in
the sitemap, like 
map:parameter name=filter value=(cn={request-param:name})/ 
But it seems that the ldap transformer has a lot of bugs. The parameter
rootdn works, password works, but both filter and serverurl doesn't
work!!!

So the only way to filter it is to search by the attribute memberOf
in
every user data. But this attribute is a DN (means not substring or
wildcards search). With a shareware I've found (LDAP Browser) I can
search all these data, but with the ldap transformer I get the error :
[LDAPTransformer] Error in LDAP-Query:
javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
Exceeded]; remaining name 'DC=corproot,DC=net'
Is it a bug of the ldap transformer? Is the filter to long/complex?

Here is the filter (ldap:filter)

(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))

Thanks


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
[EMAIL PROTECTED] wrote:

 hello,
 I have integrated ldap into my portal as identhification system.
 My problem is that I have to put a filter to search all users from
these
 seven groups :
 DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
 I have to ways, the first would be to set into my filter a parameter
in
 the sitemap, like 
 map:parameter name=filter value=(cn={request-param:name})/ 
 But it seems that the ldap transformer has a lot of bugs. The
parameter
 rootdn works, password works, but both filter and serverurl doesn't
 work!!!
 
try the following filter syntax: (amp;(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

-
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: Howto use a generated stylesheet

2003-07-01 Thread Upayavira
On 1 Jul 2003 at 9:19, Orson Davis wrote:

 The stylesheet must be available before the pipeline is setup.  The
 setup, configure and compose methods for each component in a pipeline
 is called before the startdocument method is called.  In the case of
 the org.apache.cocoon.transformation.TraxTransformer the call to the
 stylesheet is made in before any XML gets generated from the generate
 portion of the pipeline.  
 
 The only way I can think to work around this is to write your own
 version of the org.apache.cocoon.transformation.TraxTransformer such
 that the getTransformerHandler(inputSource) is called from the
 startDocument.  I modified the TraxTransformer in such a way for my
 application.  It could probably be easily modified to meet your needs.
 
 If anyone knows a more graceful way to do this, please let me know.

Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you:



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



RE: Howto use a generated stylesheet

2003-07-01 Thread Orson Davis
Sadly, for my application no.  I am breaking all the rules and having the
xml determine which stylesheet I want to use. :-(  It is a legacy app and
that was the easiest way to update it from cocoon 1.8.1 to cocoon 2.0.4

-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Howto use a generated stylesheet


On 1 Jul 2003 at 9:19, Orson Davis wrote:

 The stylesheet must be available before the pipeline is setup.  The
 setup, configure and compose methods for each component in a pipeline
 is called before the startdocument method is called.  In the case of
 the org.apache.cocoon.transformation.TraxTransformer the call to the
 stylesheet is made in before any XML gets generated from the generate
 portion of the pipeline.  
 
 The only way I can think to work around this is to write your own
 version of the org.apache.cocoon.transformation.TraxTransformer such
 that the getTransformerHandler(inputSource) is called from the
 startDocument.  I modified the TraxTransformer in such a way for my
 application.  It could probably be easily modified to meet your needs.
 
 If anyone knows a more graceful way to do this, please let me know.

Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for
you:



-
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]



SourceResolver in Selector?

2003-07-01 Thread Paul Bowler
Anyone know how to resolve a URI within a selector?

No SourceResolver is passed to it, unlike a Transformer, and I'm trying to gain access 
to a local XML file with no 
luck.

Thanks,

Paul.

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



RE: Howto use a generated stylesheet

2003-07-01 Thread Upayavira
On 1 Jul 2003 at 9:19, Orson Davis wrote:

 The stylesheet must be available before the pipeline is setup.  The
 setup, configure and compose methods for each component in a pipeline
 is called before the startdocument method is called.  In the case of
 the org.apache.cocoon.transformation.TraxTransformer the call to the
 stylesheet is made in before any XML gets generated from the generate
 portion of the pipeline.  
 
 The only way I can think to work around this is to write your own
 version of the org.apache.cocoon.transformation.TraxTransformer such
 that the getTransformerHandler(inputSource) is called from the
 startDocument.  I modified the TraxTransformer in such a way for my
 application.  It could probably be easily modified to meet your needs.
 
 If anyone knows a more graceful way to do this, please let me know.

Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you:

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

What you say may be correct, but the xsl for the TraxTransformer can be 
initialized from another pipeline before the main pipeline is fully set up. Surely?

(Sorry about last message - accidentally sent message before I'd finished writing 
it!)

Regards, Upayavira


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



Re: Howto use a generated stylesheet

2003-07-01 Thread Olivier Billard
Thanks Upayavira !

Unfortunately, using the http:// protocol isn't very portable...
Con and StephenNg were able to use the cocoon protocol... I'll ask them.
I'm using the CVS version of cocoon.

Thanks again...

--

Olivier

Upayavira wrote:

Check out:

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

Regards, Upayavira

On 1 Jul 2003 at 16:06, Olivier GUCKERT wrote:


Olivier Billard a écrit :

Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and
I get this error :
org.apache.cocoon.ProcessingException: Unable to get transformer
handler for cocoon:/picto-filter.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler
Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
   map:generate src=context://WEB-INF/workflow.xconf/
   map:transform
   src=stylesheets/picto-filter-generator.xsl/
   map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
   ...
   map:transform src=cocoon:/picto-filter.xsl/
   map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!
Did youb try  : 
map:transform src=cocoon:picto-filter.xsl/

(without the / before picto) ?

-
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]


--
Olivier BILLARD
Service Propriété Industrielle
__
JOUVE
12, rue des Landelles
Immeuble Hercules II
35510 CESSON-SEVIGNE
FRANCE
__
Phone  : 33 2 99 86 93 55
Fax: 33 2 99 86 98 01
E-Mail : [EMAIL PROTECTED]
__
Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas être considérés comme un engagement juridique de quelque 
nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé par un représentant légal de JOUVE. Par ailleurs, si vous 
recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint.

The present email and all information included therein do not constitute a legal agreement accorded by Jouve. All legal agreements must be formulated 
in writing on paper by a legal representative of JOUVE. If you have received this email by mistake, please inform us of that fact and destroy the 
email and any documents it might contain. Thank you for your cooperation.

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


XUpdate questions

2003-07-01 Thread jm
hi all,

i have one complex xml-document which i want 
to edit via my webbrowser with some kinds of forms so i don't really need 
a heavy CMS.

i read about xmlforms, xforms and then i came across XUpdate which 
sounds like that i'm looking for. (but i would be glad about any system 
which is easy to use instead of XUpdate either)

so the first problem is, that i don't realy know how to install and use the XUpdate 
functionality into my cocoon 2.0.4.

i would be glad if anybody could help me or give me a hint where 
to find further information.

regards,
jm

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



RE: XUpdate questions

2003-07-01 Thread Jonathan Spaeth
Title: RE: XUpdate questions





The Xupdate functionality comes with the xindice database. (See the wiki for more information on how to integrate xindice).

Jon


-Original Message-
From: jm [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 01, 2003 9:43 AM
To: [EMAIL PROTECTED]
Subject: XUpdate questions



hi all,


i have one complex xml-document which i want 
to edit via my webbrowser with some kinds of forms so i don't really need 
a heavy CMS.


i read about xmlforms, xforms and then i came across XUpdate which 
sounds like that i'm looking for. (but i would be glad about any system 
which is easy to use instead of XUpdate either)


so the first problem is, that i don't realy know how to install and use the XUpdate 
functionality into my cocoon 2.0.4.


i would be glad if anybody could help me or give me a hint where 
to find further information.


regards,
jm


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





Re: Howto use a generated stylesheet

2003-07-01 Thread Joerg Heinicke
Hello Olivier,

your sitemap looks absolutely ok and I can't spot any error. We did such 
things too and everything works without any problems. No http:// needed, 
nothing with wrong order of initialization of components.

Olivier Billard wrote:
Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and I 
get this error :

org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for cocoon:/picto-filter.xsl:
This error message lets me guess you are using XSLTC - there is no tool 
reporting errors better than this one ;-) Try to use Xalan in the pipeline 
that uses the generated XSLT. Or try to request picto-filter.xsl directly in 
the browser and have a look on it, maybe there is an error in it. You can 
also save this generated XSLT to disk and try the transformation statically.

org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
map:generate src=context://WEB-INF/workflow.xconf/
map:transform src=stylesheets/picto-filter-generator.xsl/
map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
...
map:transform src=cocoon:/picto-filter.xsl/
here: map:transform type=xalan src=cocoon:/picto-filter.xsl/

map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!
Regards,

Joerg

--

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]


problem with WebServiceProxyGenerator

2003-07-01 Thread Hübner, Stefan
Title: problem with WebServiceProxyGenerator






Hello out there,


I'm developing a webapp with cocoon-2.1m2 and want to use the wsproxy. but wsproxy doesn't work, instead it throws an IllegalArgumentException host parameter is null. the configuration is quite simple and should be correct - as far as the documentation is up to date.

map:generator name=wsproxy logger=webapp.wsproxy pool-grow=2 pool-max=16 pool-min=2 src="">




map:generate type=wsproxy src="" href="http://localhost:8080/comnetSkat/login.skat">http://localhost:8080/comnetSkat/login.skat

 map:parameter name=wsproxy-method value=POST/

/map:generate



here's a snippet of the stack trace

ERROR (2003-07-01) 17:12.05:452 [access] (/comnetCocoon/login.skat) Thread-10/CocoonServlet: Internal Cocoon Problem

org.apache.cocoon.ProcessingException: Error invoking remote service: java.lang.IllegalArgumentException: host parameter is null: java.lang.IllegalArgumentException: host parameter is null

 at org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(WebServiceProxyGenerator.java:278)

 at org.apache.cocoon.generation.WebServiceProxyGenerator.generate(WebServiceProxyGenerator.java:158)

 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:545)

 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:489)

...

Caused by: java.lang.IllegalArgumentException: host parameter is null

 at org.apache.commons.httpclient.HttpConnection.init(HttpConnection.java:227)

 at org.apache.commons.httpclient.HttpConnection.init(HttpConnection.java:148)

 at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(SimpleHttpConnectionManager.java:123)

 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:548)

 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:476)

 at org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(WebServiceProxyGenerator.java:251)



so, what's going wrong here? i would be glad, if anybody could give an answer.



thanks you very much in advance.



stefan hübner



ps: I tried the HttpProxyGenerator, but this one doesn't fit my needs, because it passes only those parameters to the remote service which I configure in the sitemap - am I wrong?




Re: background task management

2003-07-01 Thread Peter Nuetzel . inglobo
Hi David,

I am interested in your background task manager.

I downloaded your document and your code from Bugzilla and found that several
source files are missing.
e.g. the Actions described in the document and
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the
FileUploadTask.

I'm specially interested in calling a cocoon pipeline from a background thread.
Am I right that the BackgroundThreadEnvironment is responsible for that?

Maybe you can upload the missing source files to bugzilla.

Regards, Peter

BTW: I would not recommend to use Microsoft Word files for documentation in an
open source project. Especially if it's not bound to the Microsoft Windows
platform. Better you use plain text, html or xml for contributing
documentation.


David Kavanagh [EMAIL PROTECTED] wrote:
For those who were interested in something to manage background tasks in
cocoon, have a look at bug 20271 in the bugzilla database. Please vote
for it so it gets some attention.

Thanks,
David




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



Unable to get transformer handler...

2003-07-01 Thread James Cummings

Hiya,

I'm really new to cocoon so am probably doing something completely
wrong.  But using cocoon 2.1m3-dev, I want to grab a particular
elment by id() from an xml file in the first step of a pipeline,
and convert the result to html in the second step. In each
instance I want the parameters in the URI available to the xslt.

The transformation works perfectly fine on the command line
(with saxon), but I keep getting Unable to get transformer handler
for style/xsl/repos2rdg.xsl as an error (with Eception in creating Tranform
Handler).

Looking through possible bugs, I should say that the xsl is fairly straight
forward and does not use xsl:applyimports or xsl:include or anything
referencing another document except the xml file's dtd (which provides
necessary entities and such). I've tried specifying type=xslt in the
map:transform since (I believe?) this makes it use Xalan?  But to no
avail.

My sitemap.xmap in the context contains:

map:match pattern=antiphons.xml
   map:generate src=content/repository.xml/
   map:transform type=xslt src=style/xsl/repos2rdg.xsl
   map:parameter name=use-request-parameters value=true/
   /map:transform
   map:transform type=xslt src=style/xsl/rdg2html.xsl
   map:parameter name=use-request-parameters value=true/
   /map:transform
   map:serialize type=html/
/map:match

I'm sure I'm probably going about it completely wrong or something,
but this is basically the first time I'm trying to get cocoon to do
something in two steps instead of one. ;-)  It is probably something
really simple.

Any suggestions (on and/or off-list -- I get it via digest)?

-James
-- 
Dr James Cummings, [EMAIL PROTECTED], http://www.uea.ac.uk/~q503
Cursus Project, School of Music, University of East Anglia,
Norwich, Norfolk, NR4 7TJ, UK  Tel:(01603)593-595




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



Pipelines and error handling

2003-07-01 Thread Eddy Fras
Hi,

I have a problem with Cocoon 2.0.4 and error handling in a homemade
Transformer.
I declared an error-handler in my sitemap and when a SAX exception is thrown
in the transformer, the handler applies a specific XSL stylesheet on the
generated error code.
The problem is that when the error occurs, the transformer may have begun to
send SAX events into the pipeline to the next component.
If this is not the case, everything is fine.
If this is the case, the error message is displayed but the browser does not
close the connection and is still waiting for something.

Do I have to explicitely stop the current pipeline before starting the error
pipeline ?

Thanks for your help,

Eddy


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



Re: Howto use a generated stylesheet

2003-07-01 Thread Olivier Billard
Thanks Joerg for your answer,

It is in fact an error in my xsl, as I wrote on Cocoon-dev...
I'm very happy to see that the cocoon protocol works fine with transformers...
I'm now looking for the solution of the next problem (there is always a next problem... ;))

Thanks again !!

--
Olivier
Joerg Heinicke wrote:

Hello Olivier,

your sitemap looks absolutely ok and I can't spot any error. We did such 
things too and everything works without any problems. No http:// needed, 
nothing with wrong order of initialization of components.

Olivier Billard wrote:

Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and I 
get this error :

org.apache.cocoon.ProcessingException: Unable to get transformer 
handler for cocoon:/picto-filter.xsl:


This error message lets me guess you are using XSLTC - there is no tool 
reporting errors better than this one ;-) Try to use Xalan in the 
pipeline that uses the generated XSLT. Or try to request 
picto-filter.xsl directly in the browser and have a look on it, maybe 
there is an error in it. You can also save this generated XSLT to disk 
and try the transformation statically.

org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
map:generate src=context://WEB-INF/workflow.xconf/
map:transform src=stylesheets/picto-filter-generator.xsl/
map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
...
map:transform src=cocoon:/picto-filter.xsl/


here: map:transform type=xalan src=cocoon:/picto-filter.xsl/

map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!


Regards,

Joerg



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


[Fwd: RE: Link Livesites: http://www.ctg.albany.edu]

2003-07-01 Thread Joerg Heinicke
FYI

Joerg

 Original Message 
Subject: RE: Link Livesites: http://www.ctg.albany.edu
Date: Tue, 1 Jul 2003 09:03:26 -0400
From: Jim Costello [EMAIL PROTECTED]
To: 'Joerg Heinicke' [EMAIL PROTECTED]
Joerg and Derek,
  The white paper (which is nearly a year old) on our Web site does refer to
XML applications we had developed using Cocoon 1, so that's why there is no
mention of the sitemap of Cocoon2. In fact, that paper is directed to a
general web site audience who may be wondering about the
advantages/drawbacks of moving from an HTML-based website to an XML-based
website. So while we do mention Cocoon since we use it, we primarily focused
on general use of XML/XSL.
  The Web site itself uses Cocoon 2 - with the sitemap performing the
functions as noted below of associating stylesheets with XML files - but we
didn't start using Cocoon 2 until after we had written the paper. However,
in Cocoon 1 the separation of content/style/logic was still achieved when
properly implemented within the Cocoon 1 framework. So I don't think the
point is incorrect, although I see where it may be a bit misleading or
confusing to someone who is familiar with Cocoon. We can look to clarify
this in the paper by stating that our references are to Cocoon 1 and that
Cocoon 2 handles these things differently and more effectively through its
use of the sitemap. But again, the paper is primarily directed to a general
audience (not Cocoon specific) and not surprisingly, one of the main
questions we'd hear when developing the paper was from Web developers who
were familiar with HTML and JavaScript etc., but not too familiar with XML,
and asked how you connected your XML files with your XSL stylesheets. That
basic separation of content from style is still a big mystery to many HTML
users. So that's why we explicitly mention the connection using processing
instructions in the paper.
  Thanks for the comments. We'll try to clear up some of its misleading
elements.
Jim Costello
Web Application Developer
Center for Technology in Govenment
www.ctg.albany.edu
[EMAIL PROTECTED]
(518) 442-3812


-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 2:37 AM
To: [EMAIL PROTECTED]
Cc: Jim Costello
Subject: Re: Link Livesites: http://www.ctg.albany.edu
Hello Derek,

yes, that's obviously misleading. But I'm not related to this page.
After the mention on this list last week I only asked them to be listed
on Cocoon's Livesites page and Jim Costello sent me this mail below. I
added the link in the CVS and forwarded this mail, especially because of
the impressive figures.
Now the report: It's the typical Cocoon 1.x handling using processing
instructions. But I don't know if they wrote their own component
handling processing instructions or if the report is outdated or simlpy
wrong. The X-Cocoon header clearly states that they use Cocoon 2.0.4,
but he also wrote (in the mail below) that they still have Cocoon 1.x in
use for a part of their homepage.
I'm cc-ing Jim Costello, so he can read and clarify your objections.
Regards,

Joerg

Derek Hohls wrote:
Joerg

I was browsing the white paper referred to; in
http://www.ctg.albany.edu/publications/reports/xml?chapter=9
it mentions that XML files are connected to XSL files
by placing links to the stylesheets at the top of the XML
files.  It then goes on to say:
This significantly simplifies content management because it 
enables you to make changes to only one content file and 
make no changes to the stylesheets because the content 
is totally separated from the presentation. 

Figure 8 illustrates how these XML/XSL transformations occur 
within the Cocoon publishing framework.  

This is a little misleading and underplays the true value
added by Cocoon in completely separating content from
presentation - the connections happen in the sitemap;
there is no need to specify  stylesheets in your XML files;
as soon as you do this you are implicitly mixing content
and presentation.
If you are able, I think some changes would help
clarify the situation.
Regards
Derek
--

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]


question: adapting matchers to environment

2003-07-01 Thread FREDERICK E WAYNE
hullo all,

we're running a cocoon site in multiple places. each of the developers has their own 
local tomcat/cocoon install, plus we have the production server.

trouble is, the production server has a slightly different environment. URIs have to 
be a little different:

development: http://localhost:8080/ems/emslinks/foo
production: http://server/cocoon/ems/emslinks/foo

the sitemap has to reflect this, so:

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

production:
map:match pattern=ems/emslinks/*
 map:generate type=html src=emslinks/{1}.html/
 map:serialize/
/map:match
   
so i have to maintain two sitemap files, which is incredibly error-prone. my question 
is this: is there some way i can parameterize the matching from, say, an environment 
variable? say:
map:match pattern={$fnord}/emslinks/*

or am i completely barking up the wrong tree, and should apply my efforts to making 
the URIs the same for the development machines?

thanks for the help,

rw


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



[ANNOUNCE] Cocoon Training Classes in July, August

2003-07-01 Thread Lajos
Hi all -

Just a reminder that I will be giving my Building Cocoon Applications 
class July 14-17 in Colorado Springs, CO, USA. This is a four-day crash 
course in everything you need to know to build Cocoon-based 
applications. We cover sitemap logs, XSPs, logicsheets, actions, 
portals, authentication mechanisms, performance, administration, 
development  deployment techniques, custom components, Lucene and many 
other topics.

I also have a class Cocoon 2.1 Intensive, August 4-6. From the course 
description: This course is designed first to give participants with 
previous Cocoon experience an overview of the new concepts and features 
of Cocoon 2.1, but then, more importantly, to provide then with 
practical and concrete principles for using this new functionality in 
building web applications. In particular, we will cover the 2.1 portal 
framework, authentication framework, flow control, modular actions, form 
handling, web syndication and SOAP services. The emphasis of this course 
is less on using all the features, and more on making effective and 
intelligent use of certain features in creating robust applications. 
Since this is an intensive course, lab time will dominate the sessions, 
as we take a hands-on approach to learning Cocoon 2.1.

More information on these and other courses can be found at the Galatea 
IS Inc. training page, http://www.galatea.com/training.

For those of you who don't know, I am one of the authors of the Cocoon 
Developer's Handbook, published by SAMS last December.

Regards,

Lajos
800.711.4901
galatea.com
--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


Re: Cocoon 2.1 CVS and Java 1.4.2

2003-07-01 Thread Andreas Hochsteger
The same over here.

My config:
* SuSE Linux 8.2
* Sun J2SDK 1.4.2
* Tomcat 4.1.24
* Cocoon CVS from yesterday
Antonio Gallardo wrote:
Hi:

Just reporting that Cocoon 2.1 CVS run using Sun Java 1.4.2. My config:

Red Hat Linux 9
Java 1.4.2
Tomcat 4.1.24
Cocoon 2.1 CVS
Best Regards,

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]


Trouble with if

2003-07-01 Thread Tim Bachta
I am having trouble with an xsl:if condition.  I am testing to see if
the date value is the same as the previous date value. If it is I want
to skip over the code otherwise I want it to execute the code, simple,
here is my code: (the xsl:variable is declared under the stylesheet
element as xsl:variable name=oldGroup/

 

Xml coming in is -

 

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-lines

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  namePest Strip Change - KRL Facility/name 

  duration60.0/duration 

  time-to-comp60.0/time-to-comp 

  percentage100.0/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  nameSafety Checks - LC LSB Facility/name 

  duration120.0/duration 

  time-to-comp0.0/time-to-comp 

  percentage0.0/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  nameSoap Conc. Checks - LC LSB Facility/name 

  duration15.0/duration 

  time-to-comp0.0/time-to-comp 

  percentage0.0/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  nameWater Quality - LC LSB Facility/name 

  duration120.0/duration 

  time-to-comp33.0/time-to-comp 

  percentage27.5/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date06/02/2003/date 

  nameclean office - 085 Grosvenor - Carpenter,Scott/name 

  duration60.0/duration 

  time-to-comp22.0/time-to-comp 

  percentage36.7/percentage 

  /productivity-line

...

 

Xsl is -- 

 

 xsl:if test=date != $oldGroup

xsl:variable name=oldGroupxsl:value-of
select=date//xsl:variable

fo:table-row empty-cells=show

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

/fo:table-row

fo:table-row

   fo:table-cell

 fo:block font-weight=boldxsl:if
test=(date != '12/31/3000')Date - xsl:value-of
select=date//xsl:if/fo:block

   /fo:table-cell

   fo:table-cell

 fo:block/fo:block

   /fo:table-cell

   fo:table-cell

 fo:block/fo:block

   /fo:table-cell

   fo:table-cell

 fo:block/fo:block

   /fo:table-cell

/fo:table-row

fo:table-row empty-cells=show

   fo:table-cell empty-cells=show

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

/fo:table-row

xsl:if test=(date != '12/31/3000')

   fo:table-row

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldTask Name/fo:block

 /fo:table-cell

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldDuration/fo:block

 /fo:table-cell

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldActual Time Taken/fo:block

 /fo:table-cell

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldPercentage/fo:block

 /fo:table-cell


Re: problem with WebServiceProxyGenerator

2003-07-01 Thread Joerg Heinicke
There seems to be a real problem with WebServiceProxyGenerator:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg27925.html

Joerg

Tony Collen wrote:
Hübner, Stefan wrote:

Hello out there,

I'm developing a webapp with cocoon-2.1m2 and want to use the wsproxy. 
but wsproxy doesn't work, instead it throws an 
IllegalArgumentException host parameter is null. the configuration 
is quite simple and should be correct - as far as the documentation is 
up to date.

map:generator name=wsproxy logger=webapp.wsproxy pool-grow=2 
pool-max=16 pool-min=2 
src=org.apache.cocoon.generation.WebServiceProxyGenerator/


[snip/]

so, what's going wrong here? i would be glad, if anybody could give an 
answer.


Well, Looking at the source to commons-httpclient at 
http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HttpConnection.html, 
it looks like the 'host' which is being passed to the constructor is 
null.  Obviously, it's very strange this is happening.  I'll try to dig 
into the WSPG code today and see if I find anything...

Does anybody know if commons-httpclient has changed recently?

Tony


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


Re: problem with WebServiceProxyGenerator

2003-07-01 Thread Tony Collen
Joerg Heinicke wrote:
There seems to be a real problem with WebServiceProxyGenerator:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg27925.html
Yeah, It's looking that way :(

I've noticed posts from other people asking about this, too -- no replies.

I'm a little short on time this afternoon, I'll try to dig into it tonight after class...

Tony

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


Re: Trouble with if

2003-07-01 Thread Joerg Heinicke
Group your data by date/, anything else won't work.

http://www.jenitennison.com/xslt/grouping/muenchian.xml
http://www.dpawson.co.uk/xsl/sect2/N4486.html
Joerg

Tim Bachta wrote:
I am having trouble with an xsl:if condition.  I am testing to see if
the date value is the same as the previous date value. If it is I want
to skip over the code otherwise I want it to execute the code, simple,
here is my code: (the xsl:variable is declared under the stylesheet
element as xsl:variable name=oldGroup/
Xml coming in is -
XML and XSLT stripped ...

and my output is showing up with each productivity-line showing.  Thanks
for the help
Tim Bachta


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


Re: Unable to get transformer handler...

2003-07-01 Thread Joerg Heinicke
Hello James,

James Cummings wrote:
Hiya,

I'm really new to cocoon so am probably doing something completely
wrong.  But using cocoon 2.1m3-dev, I want to grab a particular
elment by id() from an xml file in the first step of a pipeline,
and convert the result to html in the second step. In each
instance I want the parameters in the URI available to the xslt.
The transformation works perfectly fine on the command line
(with saxon), but I keep getting Unable to get transformer handler
for style/xsl/repos2rdg.xsl as an error (with Eception in creating Tranform
Handler).
it's the XSLTC error message.

Looking through possible bugs, I should say that the xsl is fairly straight
forward and does not use xsl:applyimports or xsl:include or anything
referencing another document except the xml file's dtd (which provides
necessary entities and such). I've tried specifying type=xslt in the
map:transform since (I believe?) this makes it use Xalan?  But to no
avail.
type=xslt is the default, so XSLTC. Try type=xalan.

(xslt = xalan, xsltc = xsltc is true for Cocon 2.0.x)

Joerg

My sitemap.xmap in the context contains:

map:match pattern=antiphons.xml
   map:generate src=content/repository.xml/
   map:transform type=xslt src=style/xsl/repos2rdg.xsl
   map:parameter name=use-request-parameters value=true/
   /map:transform
   map:transform type=xslt src=style/xsl/rdg2html.xsl
   map:parameter name=use-request-parameters value=true/
   /map:transform
   map:serialize type=html/
/map:match
I'm sure I'm probably going about it completely wrong or something,
but this is basically the first time I'm trying to get cocoon to do
something in two steps instead of one. ;-)  It is probably something
really simple.
Any suggestions (on and/or off-list -- I get it via digest)?

-James


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


Re: XUpdate questions

2003-07-01 Thread Erik Bruchez
I am not sure if this is 100% relevant to your need, as it looks like
you may need XIndice, but we will release soon an XUpdate processor
that we developed independently from the XUpdate implementation that
comes with XIndice. It will work with our framework OXF
(www.orbeon.com/oxf), but will also be available as a standalone TrAX
tranformer that you should be able to integrate with Cocoon. This will
come with OXF beta 2 (RC 1?) early next week.
-Erik

Jonathan Spaeth wrote:

 The Xupdate functionality comes with the xindice database.  (See the wiki
 for more information on how to integrate xindice).

 Jon

 -Original Message-
 From: jm [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 01, 2003 9:43 AM
 To: [EMAIL PROTECTED]
 Subject: XUpdate questions


 hi all,

 i have one complex xml-document which i want
 to edit via my webbrowser with some kinds of forms so i don't really need
 a heavy CMS.

 i read about xmlforms, xforms and then i came across XUpdate which
 sounds like that i'm looking for. (but i would be glad about any system
 which is easy to use instead of XUpdate either)

 so the first problem is, that i don't realy know how to install and use the
 XUpdate
 functionality into my cocoon 2.0.4.

 i would be glad if anybody could help me or give me a hint where
 to find further information.

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


Re: esql:getXXX - wrong diagnostics?

2003-07-01 Thread Joerg Heinicke
Why? You use a not existing column name and you get the message Invalid 
column name. What's wrong with it?

Joerg

Dmitry Diskin wrote:
Hello

I have been struggling with the following problem for a while: if I 
specify non-existing column name in esql:get-int column=wrong_column 
//xsp:attribute tag, I get the following error message:

org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
executing statement: select something from somewhere : 
java.sql.SQLException: Invalid column name

I think that is misleading, since the error is not in SQL, but in my XSp 
text. It was very hard to find it out.

Regards,
Dmitry.


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


Re: Trouble with if

2003-07-01 Thread Erik Bruchez
If you just want to ignore the subsequent productivity-line records
with the same date, i.e. you are only concerned about the first record
for a given date, AND records with the same date are ordered, you
could use something like:
xsl:for-each select=productivity-line
  xsl:if test=position() = 1
 or preceding-sibling::productivity-line[1]/date != date
...
  /xsl:if
/xsl:for-each
This is much lighter that grouping.

-Erik

Joerg Heinicke wrote:

 Group your data by date/, anything else won't work.

 http://www.jenitennison.com/xslt/grouping/muenchian.xml
 http://www.dpawson.co.uk/xsl/sect2/N4486.html

 Joerg

 Tim Bachta wrote:

 I am having trouble with an xsl:if condition.  I am testing to see if
 the date value is the same as the previous date value. If it is I want
 to skip over the code otherwise I want it to execute the code, simple,
 here is my code: (the xsl:variable is declared under the stylesheet
 element as xsl:variable name=oldGroup/

 Xml coming in is -


 XML and XSLT stripped ...

 and my output is showing up with each productivity-line showing.  Thanks
 for the help

 Tim Bachta


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


Re: including a static XML file in the return from my sql call?

2003-07-01 Thread Joerg Heinicke
Have a look on the output of the render-logic5.xsl transformation. You 
have maybe kicked the sql:* elements out of your XML.

Joerg

Paul Tomsic wrote:
I'm trying to import a static XML file into the
results of my SQL call.  
Here's my sitemap.xmap block:
	map:match pattern=ameddReportByBDE/*.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=xinclude/
map:transform type=xslt src=render-logic5.xsl   
map:parameter name=label value={1}/
/map:transform
map:transform type=sql
map:parameter name=dburl
value=jdbc:mysql://localhost/amedd?user=adminamp;password=alpha
/
/map:transform
map:transform type=xinclude/
!--

map:transform src=ameddReportByBDE.xsl/

map:serialize type=fo2pdf/
--
map:serialize type=xml/
/map:match
and inside render-logic5.xsl, I've got :

xsl:template match=mops:report-sql
mops:report-xinclude-headlines
xi:include
xsl:attribute name=hrefreports/xsl:value-of
select=$label//headlines.xml#xpointer(/headlines)/xsl:attribute
/xi:include 
/mops:report-xinclude-headlines
/xsl:template
but my final XML only includes the included xml, and
not the results from the sql query.
Help?


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


RE: problem with WebServiceProxyGenerator

2003-07-01 Thread Lenz, Evan
I have been periodically scanning the list for almost a year, hoping that
someone would take this bull by the horns, i.e. wsproxy in general. At SU
Law, we are currently supporting legacy ASP pages through use of the
HTMLGenerator and hard-coded GET params in sitemap.xmap. I have really been
looking forward to a better approach, especially since it would be nice to
just allow our Web developer to use her ASP skills to develop forms,
surveys, etc. (provided that they generate well-formed output) and know we
can integrate them into our Cocoon-based Web site in a solid and
maintenance-friendly way.

Other features needed to make WebServiceProxyGenerator feature-complete, at
least for us, include:

  * Remote HTTP authentication support
  * Reverse redirects, a la Apache's ProxyPassReverse directive [1]

Good luck to whomever tries to fix the issues with WebServiceProxyGenerator!
You can count me as another user eagerly awaiting to see progress in this
area.

Thanks,

Evan Lenz
Content Management Architect
Seattle University School of Law

[1] http://httpd.apache.org/docs/mod/mod_proxy.html#proxypassreverse


 -Original Message-
 From: Tony Collen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 01, 2003 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: Re: problem with WebServiceProxyGenerator
 
 Joerg Heinicke wrote:
  There seems to be a real problem with WebServiceProxyGenerator:
 
  http://www.mail-archive.com/[EMAIL PROTECTED]/msg27925.html
 
 Yeah, It's looking that way :(
 
 I've noticed posts from other people asking about this, too -- no replies.
 
 I'm a little short on time this afternoon, I'll try to dig into it tonight
 after class...
 
 
 Tony
 
 
 -
 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: Trouble with if

2003-07-01 Thread Tim Bachta
Can you give me an example of what you are referring to?

Tim Bachta
 
 

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Trouble with if

Group your data by date/, anything else won't work.

http://www.jenitennison.com/xslt/grouping/muenchian.xml
http://www.dpawson.co.uk/xsl/sect2/N4486.html

Joerg

Tim Bachta wrote:
 I am having trouble with an xsl:if condition.  I am testing to see if
 the date value is the same as the previous date value. If it is I want
 to skip over the code otherwise I want it to execute the code, simple,
 here is my code: (the xsl:variable is declared under the stylesheet
 element as xsl:variable name=oldGroup/
 
 Xml coming in is -

XML and XSLT stripped ...

 and my output is showing up with each productivity-line showing.
Thanks
 for the help
 
 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: problem with WebServiceProxyGenerator

2003-07-01 Thread Tony Collen
Lenz, Evan wrote:
I have been periodically scanning the list for almost a year, hoping that
someone would take this bull by the horns, i.e. wsproxy in general. At SU
Law, we are currently supporting legacy ASP pages through use of the
HTMLGenerator and hard-coded GET params in sitemap.xmap. I have really been
looking forward to a better approach, especially since it would be nice to
just allow our Web developer to use her ASP skills to develop forms,
surveys, etc. (provided that they generate well-formed output) and know we
can integrate them into our Cocoon-based Web site in a solid and
maintenance-friendly way.
A year?!  Yoink.  I had some mods to the WSPG a while ago and I know it was working correctly.  I 
don't think they were that long ago, though.

Other features needed to make WebServiceProxyGenerator feature-complete, at
least for us, include:
  * Remote HTTP authentication support
  * Reverse redirects, a la Apache's ProxyPassReverse directive [1]
I do know the HttpProxyGenerator was intended as a replacement for the WSPG, but as previous posts 
have mentioned, the newer proxygenerator doesn't contain all of the functionality of the WSPG yet. 
It would be nice to get all of the functionality merged into one nice component (which has the added 
bonus of working correctly ;) )

Tony

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


RE: problem with WebServiceProxyGenerator

2003-07-01 Thread Lenz, Evan
 A year?!  Yoink.  I had some mods to the WSPG a while ago and I know it
 was working correctly.  I
 don't think they were that long ago, though.

Sorry, I didn't mean to imply that it had been completely broken for a year,
but just that for whatever reason it has never been up to snuff for what we
wanted to use it for.

  Other features needed to make WebServiceProxyGenerator feature-complete,
 at
  least for us, include:
 
* Remote HTTP authentication support
* Reverse redirects, a la Apache's ProxyPassReverse directive [1]
 
 I do know the HttpProxyGenerator was intended as a replacement for the
 WSPG, but as previous posts
 have mentioned, the newer proxygenerator doesn't contain all of the
 functionality of the WSPG yet.
 It would be nice to get all of the functionality merged into one nice
 component (which has the added
 bonus of working correctly ;) )

Yes, that sounds good to me!

Evan

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



Re: background task management

2003-07-01 Thread Peter Nuetzel . inglobo
Hi David,

there are still missing the sources for
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment
and com.dotech.messaging.Message
to compile all classes. The latter one is less interesting, but the
BackgroundThreadEnvironment seems to be pretty cocoon specific ;-)
I would suggest you to create a complete source package with sitemap.xmap and
cocoon.xconf snippets (already in user documentation) which can be easily
compiled and testet. I think this will raise the changes that a commiter will
review and commit the code.

Do I unterstand correct that the BackgroundThreadEnvironment is some kind of
FakeEnvironment (no output/no input)?
I digged a bit around in your code and in the cocoon core and environment code
and now I am a bit confused about using different Environments with the same
Cocoon instance. What I was wondering about is that you use the HTTPEnvironment
to resolve (and construct) a Source object (in UploadTaskAction) and later use
your own BackgroundThreadEnvironment (in FileUploadTask) to process the source.
Does this work without problems?
What I want to do is generating PDF files in a background thread triggered by a
HTTP request. I guess I have to use the FileSavingEnvironment to do this. I am
somehow curious how to correctly use Cocoon and the CocoonComponentManager to
do this. Can you give me some hints or point to some docs about this?
Is this the following code the right approach?

env = new FileSavingEnvironment(...);
Processor processor =
(Processor)this.componentManager.lookup(Processor.ROLE);
processor.process(environment);

Thank You,
Peter



David Kavanagh [EMAIL PROTECTED] wrote:

Peter,
Thanks for finding the omission. I've uploaded a zip including the two
actions.
Yes, that environment object was needed to keep the underlying code
happy. I don't do anything with the pipeline results. I just scan for
error elements because I was doing some SQL commands via the
SQLTransformer.
If I can be of any further help, please let me know.
Thanks,
David

Peter Nuetzel . inglobo wrote:

Hi David,

I am interested in your background task manager.

I downloaded your document and your code from Bugzilla and found that several
source files are missing.
e.g. the Actions described in the document and
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the
FileUploadTask.

I'm specially interested in calling a cocoon pipeline from a background
thread.
Am I right that the BackgroundThreadEnvironment is responsible for that?

Maybe you can upload the missing source files to bugzilla.

Regards, Peter

BTW: I would not recommend to use Microsoft Word files for documentation in
an
open source project. Especially if it's not bound to the Microsoft Windows
platform. Better you use plain text, html or xml for contributing
documentation.


David Kavanagh [EMAIL PROTECTED] wrote:


For those who were interested in something to manage background tasks in
cocoon, have a look at bug 20271 in the bugzilla database. Please vote
for it so it gets some attention.

Thanks,
David





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



Re: background task management

2003-07-01 Thread Peter Nuetzel . inglobo
Hi David,

there are still missing the sources for
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment
and com.dotech.messaging.Message
to compile all classes. The latter one is less interesting, but the
BackgroundThreadEnvironment seems to be pretty cocoon specific ;-)
I would suggest you to create a complete source package with sitemap.xmap and
cocoon.xconf snippets (already in user documentation) which can easily be
compiled and testet. I think this will raise the changes that a commiter will
review and commit the code.

Do I unterstand correct that the BackgroundThreadEnvironment is some kind of
FakeEnvironment (no output/no input)?
I digged a bit around in your code and in the cocoon core and environment code
and now I am a bit confused about using different Environments with the same
Cocoon instance. What I was wondering about is that you use the HTTPEnvironment
to resolve (and construct) a Source object (in UploadTaskAction) and later use
your own BackgroundThreadEnvironment (in FileUploadTask) to process the source.
Does this work without problems?
What I want to do is generating PDF files in a background thread triggered by a
HTTP request. I guess I have to use the FileSavingEnvironment to do this. I am
somehow curious how to correctly use Cocoon and the CocoonComponentManager to
do this. Can you give me some hints or point to some docs about this?
Is this the following code the right approach?

env = new FileSavingEnvironment(...);
Processor processor =
(Processor)this.componentManager.lookup(Processor.ROLE);
processor.process(environment);


or is there some way to directly get the Cocoon object from the manager or
somewhere else?

Thank You,
Peter



David Kavanagh [EMAIL PROTECTED] wrote:

Peter,
Thanks for finding the omission. I've uploaded a zip including the two
actions.
Yes, that environment object was needed to keep the underlying code
happy. I don't do anything with the pipeline results. I just scan for
error elements because I was doing some SQL commands via the
SQLTransformer.
If I can be of any further help, please let me know.
Thanks,
David

Peter Nuetzel . inglobo wrote:

Hi David,

I am interested in your background task manager.

I downloaded your document and your code from Bugzilla and found that several
source files are missing.
e.g. the Actions described in the document and
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the
FileUploadTask.

I'm specially interested in calling a cocoon pipeline from a background
thread.
Am I right that the BackgroundThreadEnvironment is responsible for that?

Maybe you can upload the missing source files to bugzilla.

Regards, Peter

BTW: I would not recommend to use Microsoft Word files for documentation in
an
open source project. Especially if it's not bound to the Microsoft Windows
platform. Better you use plain text, html or xml for contributing
documentation.


David Kavanagh [EMAIL PROTECTED] wrote:


For those who were interested in something to manage background tasks in
cocoon, have a look at bug 20271 in the bugzilla database. Please vote
for it so it gets some attention.

Thanks,
David






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



XSP examples not working in Cocoon 1.8.2

2003-07-01 Thread Mark Vitale
When I load the example /xsp/page.xml (First XSP Page
and pure content version) I get the folowing error:

java.lang.Exception: XSP Java Compiler: Compilation
failed for _page.java
error: An error has occurred in the compiler; please
file a bug report
http://java.sun.com/cgi-bin/bugreport.cgi).
1 error


at
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJavaProcessor.java,
Compiled Code)
at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java,
Compiled Code)
at org.apache.cocoon.Engine.handle(Engine.java,
Compiled Code)
at org.apache.cocoon.Cocoon.service(Cocoon.java,
Compiled Code)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java,
Compiled Code)
at
org.apache.jserv.JServConnection.run(JServConnection.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)

---
I am running: 
Apache 1.3
Cocoon 1.8.2
ApacheJServ 1.1.1
JDK 1.2.2


My classpath (jserv.properties):


wrapper.bin=/usr/local/jdk1.2.2/bin/java
wrapper.classpath=/usr/local/jdk1.2.2/lib/tools.jar
wrapper.classpath=/var/cocoon/bin/cocoon.jar
wrapper.classpath=/var/cocoon/lib/xalan_1_2_D02.jar
wrapper.classpath=/var/cocoon/lib/xerces_1_2.jar
wrapper.classpath=/var/cocoon/lib/w3c.jar
wrapper.classpath=/var/cocoon/lib/xml.jar
wrapper.classpath=/var/cocoon/lib/xt.jar
wrapper.classpath=/var/cocoon/lib/stylebook-1.0-b2.jar
wrapper.classpath=/var/cocoon/lib/turbine-pool.jar
wrapper.classpath=/var/cocoon/lib/fesi.jar
wrapper.classpath=/var/cocoon/lib/sax-bugfix.jar
wrapper.classpath=/var/cocoon/lib/bsf.jar
wrapper.classpath=/var/cocoon/lib/bsfengines.jar
wrapper.classpath=/var/cocoon/lib/fop_0_15_0.jar
wrapper.classpath=/var/cocoon/lib/mysql-connector-java-2.0.14-bin.jar


All other examples work great. Any help dealing with
my specific setup would be appreciated.

Thanks,

Marco

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: XUpdate questions

2003-07-01 Thread Michael Wechner
Erik Bruchez wrote:

I am not sure if this is 100% relevant to your need, as it looks like
you may need XIndice, but we will release soon an XUpdate processor
that we developed independently from the XUpdate implementation that
comes with XIndice.


Under what software license will your XUpdate processor be released?

Thanks

Michael

It will work with our framework OXF
(www.orbeon.com/oxf), but will also be available as a standalone TrAX
tranformer that you should be able to integrate with Cocoon. This will
come with OXF beta 2 (RC 1?) early next week.
-Erik

Jonathan Spaeth wrote:

 The Xupdate functionality comes with the xindice database.  (See the 
wiki
 for more information on how to integrate xindice).

 Jon

 -Original Message-
 From: jm [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 01, 2003 9:43 AM
 To: [EMAIL PROTECTED]
 Subject: XUpdate questions


 hi all,

 i have one complex xml-document which i want
 to edit via my webbrowser with some kinds of forms so i don't really 
need
 a heavy CMS.

 i read about xmlforms, xforms and then i came across XUpdate which
 sounds like that i'm looking for. (but i would be glad about any system
 which is easy to use instead of XUpdate either)

 so the first problem is, that i don't realy know how to install and 
use the
 XUpdate
 functionality into my cocoon 2.0.4.

 i would be glad if anybody could help me or give me a hint where
 to find further information.

 regards,
 jm

-
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: sendMail using Logicsheet

2003-07-01 Thread Christian Haul
Yan, Charlene wrote:
 
It may be a silly question.  I'm using Cocoon2.1M2's sendMail example.  http://localhost:8080/cocoon/samples/mail/sendmail/new.html.  When I tried to use sendMail by logicsheet, after the email is sent, there is setup done message on the next page.  I cannot find out where the message is defined and how I can get rid of it.  I have checked simplepage2html.xsl and sendmail_xsp.xml and still cannot find it.  Anybody can help me out here?
It appears that I have forgotten to remove it from the logicsheet 
please update from CVS.

	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: XUpdate questions

2003-07-01 Thread Erik Bruchez
Michael Wechner wrote:

 Erik Bruchez wrote:

 I am not sure if this is 100% relevant to your need, as it looks
 like you may need XIndice, but we will release soon an XUpdate
 processor that we developed independently from the XUpdate
 implementation that comes with XIndice.

 Under what software license will your XUpdate processor be released?
Right now it's still part of OXF, which is not open source, but free
(like in free beer) for evaluation and non-commercial use.
-Erik



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


Antw: RE: LDAP Transformer with XSP page?

2003-07-01 Thread Martin Geissler
Hello Maxime,

it is possible.
the xsp page has to generate the correct xml syntax for the 
LDAP transformer. (example at wiki)

Martin


 [EMAIL PROTECTED] Dienstag, 1. Juli 2003 16:20:59 
Is it possible to create the ldap.xml, with the ldap queries in a xsp
page?

-Original Message-
From:
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] .org] 
Sent: Tuesday, July 01, 2003 4:10 PM
To: [EMAIL PROTECTED] 
Subject: RE: LDAP Transformer


I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
ldap:filter(amp;(cn=request:get-query-string/))/ldap:filter

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] .org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED] 
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?


hello,
I have integrated ldap into my portal as identhification system.
My problem is that I have to put a filter to search all users from
these
seven groups :
DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
I have to ways, the first would be to set into my filter a parameter in
the sitemap, like 
map:parameter name=filter value=(cn={request-param:name})/ 
But it seems that the ldap transformer has a lot of bugs. The parameter
rootdn works, password works, but both filter and serverurl doesn't
work!!!

So the only way to filter it is to search by the attribute memberOf
in
every user data. But this attribute is a DN (means not substring or
wildcards search). With a shareware I've found (LDAP Browser) I can
search all these data, but with the ldap transformer I get the error :
[LDAPTransformer] Error in LDAP-Query:
javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
Exceeded]; remaining name 'DC=corproot,DC=net'
Is it a bug of the ldap transformer? Is the filter to long/complex?

Here is the filter (ldap:filter)

(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))

Thanks


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED] 
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
[EMAIL PROTECTED] wrote:

 hello,
 I have integrated ldap into my portal as identhification system.
 My problem is that I have to put a filter to search all users from
these
 seven groups :
 DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
 I have to ways, the first would be to set into my filter a parameter
in
 the sitemap, like 
 map:parameter name=filter value=(cn={request-param:name})/ 
 But it seems that the ldap transformer has a lot of bugs. The
parameter
 rootdn works, password works, but both filter and serverurl doesn't
 work!!!
 
try the following filter syntax: (amp;(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

-
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: LDAP Transformer with XSP page?

2003-07-01 Thread Yury Mikhienko
On Tue, 1 Jul 2003 16:20:59 +0200
[EMAIL PROTECTED] wrote:

 Is it possible to create the ldap.xml, with the ldap queries in a xsp
 page?
 
Yes, for example:

xsp:page
language=java
xmlns:xsp=http://apache.org/xsp; 
xmlns:ldap=http://apache.org/cocoon/LDAP/1.0;

  page
  xsp:logic
  String cn = request.getParameter(cn);
  if(cn == null) cn = *;
 /xsp:logic
  ldap:execute-query
  ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer
  ldap:serverurlldap://ldaphost/ldap:serverurl
  ldap:port389/ldap:port
  ldap:scopeOBJECTS_SCOPE/ldap:scope
  ldap:rootdncn=Directory Manager/ldap:rootdn
  ldap:passwordpassword/ldap:password
  ldap:searchbaseou=people,o=company/ldap:searchbase
  ldap:attributecn/ldap:attribute
  ldap:attributesn/ldap:attribute
  ldap:attributegivenName/ldap:attribute
  ldap:attributeinitials/ldap:attribute
  ldap:attributemobile/ldap:attribute
  ldap:attributemail/ldap:attribute
  ldap:attributeou/ldap:attribute
  ldap:attributeuid/ldap:attribute
  ldap:attributetitle/ldap:attribute
  ldap:show-attributetrue/ldap:show-attribute
  ldap:filter(amp;(uid=xsp:exprcn/xsp:expr)(mobile=*))/ldap:filter
 /ldap:execute-query
  /page
/xsp:page



-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

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



XMLFormTransformer: unknown element [item]

2003-06-30 Thread Hill Karimov
Hi,

I get following error in error.log on demo xmlForm:

ERROR   (2003-06-30) 11:27.58:188  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: unknown element [item]
ERROR   (2003-06-30) 11:27.58:188  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: unknown element [item]
...

ERROR   (2003-06-30) 11:28.02:501  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: pass through element
[group]
ERROR   (2003-06-30) 11:28.02:548  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: pass through element
[group]
...

Regards,
Hill
Cocoon 2.1m2, Tomcat 4.1, Java 1.4


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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




RE: svgz to jpeg ?

2003-06-30 Thread Conal Tuohy
I think you'll have to write your own GZipGenerator or possibly a
GZipSource?

You are right that the gzipped svg document is not a ZIP archive (it doesn't
include a table of contents or anything - it's just a single BLOB). On the
bright side, gzip is trivial to use in Java, so writing your own shouldn't
be hard.

CHeers

Con

 -Original Message-
 From: rob [mailto:[EMAIL PROTECTED]
 Sent: Monday, 30 June 2003 09:35
 To: [EMAIL PROTECTED]
 Subject: Re: svgz to jpeg ?


 On 28 Jun 2003 at 14:51, Upayavira wrote:

 Ah. So your file on disc is compressed svg. Okay, so you
 need to uncompress
 it into
 XML and pass that into the SVG2JPG serializer. There's two
 ways to do that,
 either
 with a zip generator (I think there's an example of one in
 the Langham 
 Ziegler
 Cocoon book), or using the Jar protocol (see
 http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample).
 
 Both should extract your zipped SVG ready for converting to JPG.

 Thanks again for you reply.

 I've tried using the jar protocol, but it does not accept the
 'svgz' file as
 a
 valid zip archive. I guess this is because there is no
 physical file to
 extract
 i.e jar:http//localhost/xyz.svg!???

 Even Winzip will not open it.

 I haven't tried the zip generator yet because I haven't found any
 documentation,
 and someone has borrowed my Cocoon book !!

 Regards,

 Rob.


 -
 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: xsp-request:get-parameter into xsl:variable problem

2003-06-30 Thread Christian Haul
On 29.Jun.2003 -- 09:50 PM, C Bram Dit Saint Amand wrote:
 This is an extract from request_attributes.xsl, a logicsheet which is
 called by some_page.xsp
 
 xsl:template match=request-attributes:get/webaction
 xsl:variable name=webaction-valuexsp-request:get-parameter
 name=webaction//xsl:variable
 xsl:if test=contains($webaction-value, 'add_to_favourites_session')
 and contains('add_to_favourites_session', $webaction-value)

$webaction-value most likely contains some XSP or Java code at the
time the logicsheet is applied -- which is when the XSP is translated
to Java servlet sourcecode *not* which every request!

So you may not use XSL to check for run time values in a
logicsheet. You need to use Java instead.

 esql:connection
   esql:poolperso-mysql/esql:pool
   esql:execute-query
 esql:queryINSERT INTO FavouritesBasketSession(SessionID,
 URL) VALUES('xsp-session:get-id/', 'xsp-request:get-attribute
 name=relative-url/');/esql:query
   /esql:execute-query
 /esql:connection
 /xsl:if /xsl:template
 
 
 When I access some_page.xsp?webaction=add_to_favourites_session, the
 template is executed: the xsl:variable is created, but what is inside
 the xsl:if *isn't* executed, which suggests that there is a problem with
 the xsl:variable. For information, displaying the variable's content
 with xsl:copy-of works (it correctly displays
 'add_to_favourites_session'), but with xsl:value-of it doesn't display
 anything.

Indeed, since it effectively copies the XSP / Java code used to read
the request attribute. It does not, however, copy the _value_ of that
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]



Link Hosting: RimuHosting

2003-06-30 Thread Peter B



Hi. I'd 
appreciate a listing on your hosting page (http://cocoon.apache.org/2.1/link/hosting.html). 
Thanks!

Regards, 
Peter
http://rimuhosting.com


a 
href=""RimuHosting - Java Hosting 
Specialists/a - They will install the latest Cocoon version by 
request


Re: XSP+SVG in cocoon-2.0.4

2003-06-30 Thread Derek Hohls
Gautam

Look at:

http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105550804911211w=2

The use of SVG is well described in a set of sample code.

Derek

 [EMAIL PROTECTED] 30/06/2003 01:59:30 
hi there,
I want to display an SVG image along side the web page content on
the users browser(user has Adobe SVG Viewer3.0 installed ) by putting
the SVG document within my XSP page.
As long as  my pipeline displays the svg as png raster image
using the SVG2PNG serializer,it works fine.But the associated image
properties such as Zoom-In or Zoom-out are lost. For the user to keep
using these properties through IE,i want to pass the raw SVG content to
the users browser which then will handle the responsibility of
displaying the SVG .
   
My xsp documents looks something like this:
?xml version=1.0?
xsp:page language=java xmlns:xsp=http://apache.org/xsp;
  document
 header
titleTest SVG Page/title
 /header
 body
 s1 title=SVG Image
   pYou can use the mouse right click event to Zoom-In 
   or Zoom-Out  
   /p 
   p
 img src=batikFX.svg/
   /p
   /s1
 /body
/document
/xsp:page

Currently my sitemap pipeline looks like this:
   map:match pattern=*.svg
   map:generate src=resources/svg/{1}.svg/
map:serialize type=svg2png/
  /map:match

  What is the bext possible way to go about these? Can anyone help me
out on these?

regards,
Gautam






-
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]



[summary] reading xml from pipeline into a flow script

2003-06-30 Thread Simon Price
Jonathan's suggestion worked, so I thought I'd summarize the solution 
back to the list as a demo javascript flow script.

function demo() {
print getXML(http://localhost:8080/cocoon/mypipeline.xml;);
}
function getXML(urlStr) {
//
// return output of a pipeline as an xml string (and/or dom)
// [NB. watch out for my app-specific parse settings below!]
//
	var factory = 
Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance();
	factory.setValidating(false);

// Prevent expansion of entity references
factory.setExpandEntityReferences(false);
// Configure it to ignore comments
factory.setIgnoringComments(true);
var document;
var isvalid = true;
try {
document = factory.newDocumentBuilder().parse(urlStr);
} catch (e) {
isvalid = false;
print(xml parse error: + e + \n);
}
	var xmlStr;
	if (isvalid) {
		// Convert document to string
		var format = new Packages.org.apache.xml.serialize.OutputFormat(document);
		var strOut = new Packages.java.io.StringWriter();
		var XMLSerial = new 
Packages.org.apache.xml.serialize.XMLSerializer(strOut,format);
		XMLSerial.serialize(document.getDocumentElement());
		xmlStr = strOut.toString();
	}

return xmlStr;
}
Jonathan Spaeth wrote:
One simple way of accomplishing this is to simply, define pipeline to 
generate, transform, and serialize the xml.  Then, in the flowscript, 
simply use the jaxp dom api to load the generated xml:

flow() {
var document = 
Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().build(http://uri-to-xml-file);

...

document.getDocumentElement();
// it is now a dom
}
-Original Message-
From: Simon Price [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: reading xml from pipeline into a flow script
 From within a flow script, I would like to read (or pass in) xml
generated by a series of pipeline xslt transformations.
Please could someone give me a pointer on how to do this?

Cheers

Simon

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom
Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom
Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: reading xml from pipeline into a flow script

2003-06-30 Thread Frank Taffelt
you can use this snippet:

function getString(src) {
try {
 var is =  cocoon.environment.resolveURI(src).getInputStream();
 return
Packages.org.apache.cocoon.components.language.markup.xsp.XSPUtil.getContent
s(is);
}
catch(ex) {
print(ex: + ex);
}
return null;


}


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



RE: reading xml from pipeline into a flow script

2003-06-30 Thread Reinhard Pötz

This will work but not with the upcoming Flow Object Model. You won't
have access to the environment any more. If you are interested in the
FOM you find a reference here:
http://wiki.cocoondev.org/Wiki.jsp?page=FOM (be aware that this is a
working document and may change!!!)

So currently the easiest way is
{
...
 var uri = cocoon://blablabla;
var resolver = cocoon.componentManager.lookup(
Packages.org.apache.cocoon.environment.SourceResolver.ROLE );
var srce = resolver.resolveURI( uri );
cocoon.componentManager.release( resolver );
var dom =
Packages.org.apache.cocoon.components.source.SourceUtil.toDOM( srce );
...
}

which will probably change with FOM to

{
...
 var uri = cocoon://blablabla;
var resolver = cocoon.getComponent(
Packages.org.apache.cocoon.environment.SourceResolver.ROLE );
var srce = resolver.resolveURI( uri );
// release of the component (not defined yet
var dom =
Packages.org.apache.cocoon.components.source.SourceUtil.toDOM( srce );
...
}

Hope this helps!

Reinhard



 -Original Message-
 From: Frank Taffelt [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 30, 2003 9:34 AM
 To: [EMAIL PROTECTED]
 Subject: Re: reading xml from pipeline into a flow script
 
 
 you can use this snippet:
 
 function getString(src) {
 try {
  var is =  
 cocoon.environment.resolveURI(src).getInputStream();
  return 
 Packages.org.apache.cocoon.components.language.markup.xsp.XSPU
 til.getContent
 s(is);
 }
 catch(ex) {
 print(ex: + ex);
 }
 return null;
 
 
 }
 
 
 -
 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]



problems with a real mobile phone

2003-06-30 Thread binge21
Hi..

I'm trying to access my cocoon application on my computer with a real
mobile device (a panasonic GD67 GPRS) but I'm always getting 'unsupported
content type'.
With emulators it all worked properly but now I'm getting this problem on
a real mobile. I'm using custom generators to create XML and then I'm
using xsl to convert the xml into WML.
I'm managing to connect to the application with my mobile but it seems
that the problem is that no proper WML is given out.

Maybe I have to arrange something in the serializer of the sitemap for wml?

I would appreciate any hints and help..

I'm using Jdk 1.4.1 , Tomcat 4.1.18, Cocoon 2.0.4

(The mobile's user agent string is: Panasonic-GAD67/1.0 UP.Browser/5.0.3.5
(GUI))


---
Donate to YMCA's Help The Homeless Campaign at http://shop.di-ve.com

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



AW: problems with a real mobile phone

2003-06-30 Thread Marco Rolappe
ho,

if you haven't setup a serializer for wml (specifying the doctype, etc.),
then you should do so.

that would look something like:

...
map:serializer logger=sitemap.serializer.wml
mime-type=text/vnd.wap.wml name=wml
src=org.apache.cocoon.serialization.XMLSerializer
doctype-public-//WAPFORUM//DTD WML
1.1//EN/doctype-public

doctype-systemhttp://www.wapforum.org/DTD/wml_1.1.xml/doctype-system
encodingISO-8859-1/encoding
/map:serializer
...


 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von [EMAIL PROTECTED]
 Gesendet: Montag, 30. Juni 2003 13:09
 An: [EMAIL PROTECTED]
 Betreff: problems with a real mobile phone


 Hi..

 I'm trying to access my cocoon application on my computer with a real
 mobile device (a panasonic GD67 GPRS) but I'm always getting 'unsupported
 content type'.
 With emulators it all worked properly but now I'm getting this problem on
 a real mobile. I'm using custom generators to create XML and then I'm
 using xsl to convert the xml into WML.
 I'm managing to connect to the application with my mobile but it seems
 that the problem is that no proper WML is given out.

 Maybe I have to arrange something in the serializer of the
 sitemap for wml?

 I would appreciate any hints and help..

 I'm using Jdk 1.4.1 , Tomcat 4.1.18, Cocoon 2.0.4

 (The mobile's user agent string is: Panasonic-GAD67/1.0 UP.Browser/5.0.3.5
 (GUI))


 --
 -
 Donate to YMCA's Help The Homeless Campaign at http://shop.di-ve.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]



Using Saxon transformer together with Xalan and XSLTC

2003-06-30 Thread Peter Velychko
Hi,

I try to use Saxon 7.6 together with Xalan
There is the following warning in the logs when I try to place
saxon.jar to WEB-INF/lib:

Date:   Mon Jun 30 14:01:53 EEST 2003 (1056970913164)
Thread: PoolThread-4
Message #:  1
Level:  WARN
NDC:
Category:   sitemap.serializer.xhtml
Message:Cannot know if transformer needs namespaces attributes - assuming NO.
Location:   
org.apache.avalon.framework.logger.LogKitLogger.warn(LogKitLogger.java:159)
Thrown:
org.xml.sax.SAXException: Saxon requires an XML parser that reports the QName of each 
element
at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:170)
at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:128)
at 
org.apache.cocoon.serialization.AbstractTextSerializer.needsNamespacesAsAttributes(AbstractTextSerializer.java:341)
at 
org.apache.cocoon.serialization.AbstractTextSerializer.configure(AbstractTextSerializer.java:268)
at 
org.apache.cocoon.serialization.XMLSerializer.configure(XMLSerializer.java:76)
...

The result is the HTML and XHTML serializers work properly only after
Saxon transformer. They work incorrectly after XSLT and Xalan
transformers (f.e. the attribute href isn't generated, although as
far as I've found the xml-s after all transformers are the same).

My emviroment is Win2000, jdk1.4.1_02, Jetty4.2.9, Cocoon2.1m3-dev


-- 
Best regards,
Peter
mailto:[EMAIL PROTECTED]


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



Re: Using Saxon transformer together with Xalan and XSLTC

2003-06-30 Thread Peter Velychko
Hi,

PV I try to use Saxon 7.6 together with Xalan
PV There is the following warning in the logs when I try to place
PV saxon.jar to WEB-INF/lib:

PV Date:   Mon Jun 30 14:01:53 EEST 2003 (1056970913164)
PV Thread: PoolThread-4
PV Message #:  1
PV Level:  WARN
PV NDC:
PV Category:   sitemap.serializer.xhtml
PV Message:Cannot know if transformer needs namespaces attributes - assuming 
NO.
PV Location:   
org.apache.avalon.framework.logger.LogKitLogger.warn(LogKitLogger.java:159)
PV Thrown:
PV org.xml.sax.SAXException: Saxon requires an XML parser that reports the QName of 
each element
PV at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:170)
PV at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:128)
PV at 
org.apache.cocoon.serialization.AbstractTextSerializer.needsNamespacesAsAttributes(AbstractTextSerializer.java:341)
PV at 
org.apache.cocoon.serialization.AbstractTextSerializer.configure(AbstractTextSerializer.java:268)
PV at 
org.apache.cocoon.serialization.XMLSerializer.configure(XMLSerializer.java:76)
PV ...

PV The result is the HTML and XHTML serializers work properly only after
PV Saxon transformer. They work incorrectly after XSLT and Xalan
PV transformers (f.e. the attribute href isn't generated, although as
PV far as I've found the xml-s after all transformers are the same).

My apologies, but the same is the input xml. The output xml-s are
different:

for Saxon -
?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
titleSamples/title
meta http-equiv=Content-Type content=text/xhtml; charset=UTF-8/
link href=/styles/main.css type=text/css rel=stylesheet/
/head
body
h1List/h1
p xmlns= class=block2
Sample 1 - 
a href=examples/linotype/view/a
/p
p xmlns= class=block2
Sample 2 - 
a href=examples/charts/view/a
/p
/body
/html


for Xalan -
?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml;
head xmlns=http://www.w3.org/1999/xhtml;
title xmlns=http://www.w3.org/1999/xhtml;Samples/title
meta xmlns=http://www.w3.org/1999/xhtml/
link xmlns=http://www.w3.org/1999/xhtml/
/head
body xmlns=http://www.w3.org/1999/xhtml;
h1 xmlns=http://www.w3.org/1999/xhtml;List/h1
p xmlns=http://www.w3.org/1999/xhtml; xmlns=
Sample 1 - 
a xmlns=http://www.w3.org/1999/xhtml; xmlns=view/a
/p
p xmlns=http://www.w3.org/1999/xhtml; xmlns= xmlns=
Sample 2 - 
a xmlns=http://www.w3.org/1999/xhtml; xmlns= xmlns=view/a
/p
/body
/html

So there is duplicating xmlns attributes in XML generated by Xalan.

PV My emviroment is Win2000, jdk1.4.1_02, Jetty4.2.9, Cocoon2.1m3-dev


-- 
Best regards,
 Petermailto:[EMAIL PROTECTED]


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



  1   2   3   4   5   6   7   8   9   10   >