Warning: VIRUS!!!

2002-05-07 Thread Sergei Batiuk

Hi all,

if you have just received message starting with 'A funny web site' -- do
not open it! This message has been sent by a virus!!!

I hope this is not too late...

Yours,
Sergei


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

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




Re: Form Data to XML Document

2002-05-07 Thread Bert Van Kets

I have used two different approaches.
One is using the request generator(*very* easy), the other creating an XSP 
that uses the request.getParameter(String) way.  The latter one was chosen 
to be able to mix the received data with database data and for sorting.
Bert

At 09:25 6/05/2002 -0700, you wrote:
What is the best way to get the user data from a form,
and to create a new xml document with that form data,
or update an existing xml document ?

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

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

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


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

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




RE: XSP + Dynamic XML generator ??

2002-05-07 Thread Bert Van Kets

Isn't the xsl-dynamic page that you need?  The sample can be found at 
http://localhost:8080/cocoon/sub/xsl-dynamic
The transformer of the main pipeline calls a different pipeline where an 
XSP page  generates the transformations.  To my opinion XSP can be used as 
a transformer this way, no?

!-- Dynamic XSL --
map:match pattern=xsl-dynamic-source
 map:generate type=serverpages src=stylesheets/simple-page2html.xsp/
 map:serialize type=xml/
/map:match
map:match pattern=xsl-dynamic
 map:generate src=docs/simple.xml/
 map:transform src=cocoon:/xsl-dynamic-source/
 map:serialize/
/map:match


Bert


At 22:23 6/05/2002 -0400, you wrote:
  From: Chris Wolf [mailto:[EMAIL PROTECTED]]
 
  Thanks, I'll wait for this XSPT to be better documented,

It does not exist. But it is possible.

Vadim

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

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

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

  effectively establishing alias URI's.

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

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

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

 It's called Transformer then.

  
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon

  
/transformation/Transformer.java?rev=1.4content-type=text/vnd.viewcvs-m
 arkup

 Implement, declare in the sitemap, use.

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

 It does work.

 Vadim
   ...


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

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


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

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




Problem with SQLTransformer and Encoding

2002-05-07 Thread Frank Ridderbusch

Hi Cocooners,

I'm having a problem with the encoding of a sql query from the SQLTransformer.

Configuration is:

  Cocoon 2.0.3-dev from CVS
  IBM JDK 1.3
  Tomcat 3.3
  Oracle 8.1.7

Instead of getting the wanted germans umlauts, I'm apparently getting UTF 
encoded characters (instead of ü or Uumlaut; I'm seeing Atilde;frac14;).

I've looked at source code and see, that the encoding is set to 'ISO-8859-1'
in the constructor of the SQLTransformer:

  ...
  this.format.put(OutputKeys.ENCODING, ISO-8859-1);
  ...

I've configured the HTML serializer in the sitemap to use ISO-8859-1 like
this:

  map:serializer name=html mime-type=text/html
  logger=sitemap.serializer.html
  src=org.apache.cocoon.serialization.HTMLSerializer
encodingISO-8859-1/encoding
  /map:serializer

My pipeline looks like this:

  map:match pattern=sql/who-is-who/*
map:aggregate element=page
  map:part src={0}.xml/
  map:part element=sidebar src=sidebar.xml/
/map:aggregate
map:act type=request
  map:parameter name=parameters value=true/
  map:parameter name=default.department value=FSC EP SQ XS%/
  map:transform type=sql
map:parameter name=use-connection value=projects/
map:parameter name=department value={department}/
  /map:transform
  map:transform src=stylesheets/sql.xsl/
/map:act
map:serialize type=html/
  /map:match

The XML file, which contains the query looks like this:

  ?xml version=1.0 encoding=ISO-8859-1?
  sql xmlns:sql=http://apache.org/cocoon/SQL/2.0;
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
  query
select * from mgmt_users 
 where department like 'substitute-value sql:name=department/'
   and (auth like '%chef%' or job_desc like 'Sek%')
 order by department, surname
  /query
/execute-query
  /sql

This basically works all just nicely except for the encoding. I've searched 
the archives and found a similar problem described for the LDAPTransformer.

I think, I checked all the available documentation, but either I didn't find
the relevant section to give me a hints or there is indeed a problem.

Any opinions? Thanks.
-- 
Mit freundlichen Gruessen / Regards

Frank Ridderbusch

Fujitsu Siemens Computers, EP SQ XS1
Heinz Nixdorf Ring, 33106 Paderborn, Germany
Email: [EMAIL PROTECTED]

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

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




XInclude

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

This probably already has been discussed. 
But I have two files I want to aggregate. One way to do it is with
map:aggregate.
However xinclude has more possiblities, for example I can add a header. 
My big problem is that I can't use neither a url or a cocoon:/ in
xinclude (or can I?). Even though the attribute is named href, it doesn't
call the url but the file.
Why is this so terrible? Well I want the XSP to execute and the result
should be included in another file.

Is there anyone who can help?

Regards,

Edgar

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

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




RE: Caching of external documents

2002-05-07 Thread John Gilbertson

On Fri, 3 May 2002, Vadim Gritsenko wrote:

 The cached version it's using was me trying in work yesterday.. this
 morning it's still using that cached version, even though it's
 requesting the file each time I request the page from it.

Check last modified time in the HTTP response of your
www.compsoc.man.ac.uk server. Cocoon will use cached version if server
reports that file was not modified. See Cocoon's URLSource.java,
getLastModified method.

Unfortunately, the Zope server doesn't seem to return a last-modified
header with a page. Does this mean that Cocoon will always assume that
it's not modified, without checking the contents?
Barring editing the source, is it possible to put some directive
somewhere saying re-get it no matter what?

-- 
John Gilbertson


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

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




Re: Need to replace xalan

2002-05-07 Thread Frank Ridderbusch

On Mon, 6 May 2002 14:11:53 -0400
Vadim Gritsenko [EMAIL PROTECTED] wrote:

 Try saxon-6.5.2.jar. Works for me.
 
 Vadim

Does it work for you in every respect?

I'm also using Saxon and for the most part it works. However I'm including
this option in the TOMCAT_OPTS/CATALINA_OPTS env variable to force Saxon
to use Xerces instead of the included Alfred parser.

-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl

Otherwise I would get exceptions from Alfred, when I used !DOCTYPE ...
declarations, where the DTD included other entities. (I configured
CatalogManager.properties accordingly).

The SQLTranformer aparently does not work with Saxon. What works like 
charm with Xalan produces a exception with Saxon.

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.: \
 java.lang.UnsupportedOperationException: The Saxon DOM cannot be updated

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.: \
  java.lang.UnsupportedOperationException: The Saxon DOM cannot be updated
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:414)
at 
org.apache.cocoon.www.file_.usr.local.httpd.htdocs.sqxs.sitemap_xmap.matchd0e145(sitemap_xmap.java:1419)
at 
org.apache.cocoon.www.file_.usr.local.httpd.htdocs.sqxs.sitemap_xmap.process(sitemap_xmap.java:588)
at 
org.apache.cocoon.www.file_.usr.local.httpd.htdocs.sqxs.sitemap_xmap.process(sitemap_xmap.java:420)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.www.sitemap_xmap.matchd0e910(sitemap_xmap.java:6908)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3431)
  ..

I think, I've seen the same exception, when using the xmlform example from
scratchpad with Saxon.

I this something, that should be reported to buzilla?
-- 
Mit freundlichen Gruessen / Regards

Frank Ridderbusch

Fujitsu Siemens Computers, EP SQ XS1
Heinz Nixdorf Ring, 33106 Paderborn, Germany
Email: [EMAIL PROTECTED]

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

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




Re: How-to for sendmail published

2002-05-07 Thread Perry Molendijk

Hello Horst

Sorry it's taken a while for a reply.
Like I wrote I have only tried this on Win2K, jdk1.3.1, tomcat 4.0.1 and
Cocoon 2.0.2.

But do you have activation.jar and mail.jar in your cocoon/WEB-INF/lib
directory? If you haven't, give it a try. I may have done something wrong
myself but it was the only way I got it to work.

Regards

Perry

- Original Message -
From: Horst Rutter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 3:48 AM
Subject: Re: How-to for sendmail published


 I followed your instructions for sendmail (thanks for putting time into
this) but ran into the following:

 The xsp compiled fine I can see the generated class file in the working
dir,
 but when sendmail.xsp gets invoked it hangs and my sitemap.log says:

 WARN(2002-05-01) 12:18.27:262   [sitemap](/ba/xsp/sendmail)
HttpProcessor[8080][4]/PipelineNode: Resource not found in pipeline
 at file:/C:/eclipseworkspace/test/webapp/sitemap.xmap:888:17
 org.apache.cocoon.ResourceNotFoundException: javax/mail/MessagingException
  at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
.java:210)
  at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:202)
  at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
  etc..

 This is weird since javax.mail is in my classpath for both compilation and
runtime (j2ee.jar).

 Regards,
 Horst (XP, JDK1.4, Tomcat  4.0.4-b2, C2.1-dev)



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

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




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

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




taglib question

2002-05-07 Thread Bogdan Cirstea

i want to use eXist database with cocoon. for this, i have to configure the
taglib for eXist.
i have exist.jar in web-inf\lib
in coccon.xconf i put
builtin-logicsheet
parameter name=prefix value=exist-rpc/
parameter name=uri
value=http://exist.sourceforge.net/exist/1.0/
parameter name=href value=resource://org/exist/exist.xsl/
/builtin-logicsheet

in web.xml
taglib
taglib-uriexist-taglib/taglib-uri
taglib-location/WEB-INF/exist-taglib.tld/taglib-location
  /taglib

I have exist-taglib.tld in web-inf

In xsp page I use something like this:
xmlns:exist=http://exist.sourceforge.net/NS/exist;
xmlns:exist-rpc=http://exist.sourceforge.net/exist/1.0;

and then
exist-rpc:connection uri=http://localhost:8081;
  pConnection to server not established/p
select name=collection size=1
optionall documents/option
exist-rpc:get-collection-names root=/

optionexist-rpc:collection-name//option
/exist-rpc:get-collection-names
/select
/exist-rpc:connection

but nothing is happened.
i think that i have to specify the path to exist.jar but i don't know how.
can anybody tell me?
thanks


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

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




Samples or Example for xml form

2002-05-07 Thread Sreenivasan N.

Hi all

I have been asking this in cocoon users and got something called XML Form 
to build xml file and to add to xml file. Can anyone give me sample to get 
an idea of the working functionality.

Thanks in advance

Regards

sreenivasan.







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

Sreenivasan N.
Sony SARD
Ext 232

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


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

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




Antw: Re: Modular Database Actions - Multiple Inserts

2002-05-07 Thread Malte Vahlenkamp

Thanks a lot for your help. Know it works like supposed. These modular database 
actions are really great, so keep on the good work.

Malte

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

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

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

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

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

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

Chris.

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


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

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




RE: Using the IBM Compiler

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

Can't you get another compiler. I hear only complaints about IBM compilers

-Oorspronkelijk bericht-
Van: Emre Tezel [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 7 mei 2002 3:12
Aan: [EMAIL PROTECTED]
Onderwerp: Using the IBM Compiler


Hi Cocoon users,

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

Thanks
Emre

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


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

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




Re: Samples or Example for xml form

2002-05-07 Thread Ivelin Ivanov


If you need a working XML Form example, you need to get the latest dev
snapshot, build and run cocoon with scratchpad. Then point to:

http://localhost:8080/cocoon/mount/xmlform/wizard.html

You can also read the README.txt:
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/webapp/mount/xm
lform/


Ivelin

- Original Message -
From: Sreenivasan N. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 07, 2002 4:48 AM
Subject: Samples or Example for xml form


 Hi all

 I have been asking this in cocoon users and got something called XML Form
 to build xml file and to add to xml file. Can anyone give me sample to get
 an idea of the working functionality.

 Thanks in advance

 Regards

 sreenivasan.







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

 Sreenivasan N.
 Sony SARD
 Ext 232

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


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

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



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

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




Re: Stored Procedures in Descriptors?

2002-05-07 Thread Christian Haul

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

I'm afraid not. SQL statements are generated in a way incompatible
with SPs. Perhaps you can achieve your goal (still without SP, I'm
afraid) with the modular Database Actions from scratchpad. You can
have your encryption in a specialized input module or use the
MessageDigestMetaModule for it. There's no specialized authenticator
action in the modular package, but DatabaseSelectAction should do the
trick. 

HTH,

Chris.

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

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

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




RE: XInclude

2002-05-07 Thread Vadim Gritsenko

You should use base= attribute. IIRC:

x:include base=cocoon:/path/ url=to/page/

Vadim

--
Resistance is futile. 

 From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
 
 This probably already has been discussed.
 But I have two files I want to aggregate. One way to do it is with
 map:aggregate.
 However xinclude has more possiblities, for example I can add a
header.
 My big problem is that I can't use neither a url or a cocoon:/ in
 xinclude (or can I?). Even though the attribute is named href, it
doesn't
 call the url but the file.
 Why is this so terrible? Well I want the XSP to execute and the result
 should be included in another file.
 
 Is there anyone who can help?
 
 Regards,
 
 Edgar


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

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




RE: XSP + Dynamic XML generator ??

2002-05-07 Thread Vadim Gritsenko

 From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
 
 Isn't the xsl-dynamic page that you need? 

I think that's not exactly what he needs...


 The sample can be found at
 http://localhost:8080/cocoon/sub/xsl-dynamic
 The transformer of the main pipeline calls a different pipeline where
an
 XSP page  generates the transformations.  To my opinion XSP can be
used as
 a transformer this way, no?

It uses XSP to create XSLT sheet dynamically (and XSL is XML - so no
issue here), but in no means this creates Transformer. You can not write
Java code which operates on the input SAX stream, but Java code which
creates XSLT.

Vadim

 !-- Dynamic XSL --
 map:match pattern=xsl-dynamic-source
  map:generate type=serverpages
src=stylesheets/simple-page2html.xsp/
  map:serialize type=xml/
 /map:match
 map:match pattern=xsl-dynamic
  map:generate src=docs/simple.xml/
  map:transform src=cocoon:/xsl-dynamic-source/
  map:serialize/
 /map:match
 
 
 Bert
 
 
 At 22:23 6/05/2002 -0400, you wrote:
   From: Chris Wolf [mailto:[EMAIL PROTECTED]]
  
   Thanks, I'll wait for this XSPT to be better documented,
 
 It does not exist. But it is possible.
 
 Vadim
 
   until then, I'll just write a java-based Transformer...
  
 -Chris
  
   Vadim Gritsenko wrote:
   
 From: Chris Wolf [mailto:[EMAIL PROTECTED]]

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

 It seems the XSP allows you to create reusable sections
 of code (logicsheets) and to embed Java, the result
 is auto-generated code which is an instance of Generator.
   
You have got it right.
   
   
 I was hoping that XSP could also be used to define a
 code-generated
 instance of Transformer.
   
Cocoon markup-to-programming-language machinery can do that.
But
it
will not be XSP, but other language on its own (I think XSPT:
XSP
for transformations ;)
   
 The way things are now, it seems that
 only Generators can be coded up using XSP -- not Transformers.
   
Right now - yes.
   
 In other words, I must write my Transformer entirely in Java.
   
Or implement XSPT. I think it will be simplier for you to code
Transformer in Java at this stage. ;)
   
 Thanks for your help,
   
Welcome.
   
Vadim
...


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

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




RE: Caching of external documents

2002-05-07 Thread Vadim Gritsenko

 From: John Gilbertson [mailto:[EMAIL PROTECTED]]
 
 On Fri, 3 May 2002, Vadim Gritsenko wrote:
 
  The cached version it's using was me trying in work yesterday..
this
  morning it's still using that cached version, even though it's
  requesting the file each time I request the page from it.
 
 Check last modified time in the HTTP response of your
 www.compsoc.man.ac.uk server. Cocoon will use cached version if
server
 reports that file was not modified. See Cocoon's URLSource.java,
 getLastModified method.
 
 Unfortunately, the Zope server doesn't seem to return a last-modified
 header with a page. Does this mean that Cocoon will always assume that
 it's not modified, without checking the contents?

Cocoon will assume that it is always modified, and this effectively
disables any caching.


 Barring editing the source, is it possible to put some directive
 somewhere saying re-get it no matter what?

Comment out getLastModified() method in URLSource - default
implementation always returns 0 meaning that no last modification date
known.

Vadim

 
 --
 John Gilbertson


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

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




Re: Internationalization without i18n

2002-05-07 Thread Konstantin Piroumian

From: Cenk Uysal [EMAIL PROTECTED]
 Hi,

 I want to prepare a site which I will serve both in English and
 Turkish language. So I want to use a way of serving my site in
 different languages but without using i18n property of Cocoon.
 Because I think this technology is in stage of development. Thus I
 think I will use a method such like this:

i18n of Cocoon is quite mature and it's used successfully in many real
projects.


 This is the XML document example:

 ?xml version=1.0?
 personnels
   personnel
 nameCenk/name
 surnameUysal/surname
 title lang=trArastirma Gorevlisi/title
 title lang=enSearching Assistant/title
   /personnel
 /personnels

So, you have all your i18n data as contents in all your XML files. Cocoon
provide means for separating the i18n part from the content. That way
translations are better maintained.

 And this is the XSL file:

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

 xsl:template match=/
  html
  body
   table border=2
tr
 thName/th
 thSurname/th
 thtitle/th
/tr
xsl:for-each select=personnels/personnel/title[@lang='any lang
 attribute']
tr
 tdxsl:value-of select=name//td
 tdxsl:value-of select=surname//td
 tdxsl:value-of select=title//td
/tr
/xsl:for-each
   /table
  /body
  /html
 /xsl:template
 /xsl:stylesheet
 But with this method I always have to pass the language attribute. I
 don't want to pass it as a parameter after the address of the file
 such as: http://localhost/cocoon/personnel/personnel.xml?param=en

 I saw a method for parameter passing in Amazon.com website. It was
 like this:

 http://www.amazon.com/parameters_here/file_requested

 That means parameters were in address but as a directory name. May I
 do this by Cocoon? Or do you have any idea of passing parameters for
 internationalization? What about i18n? Do you think it is useful?

See LocaleAction (in i18n samples) or use a matcher like this in your
sitemap: */*. The {1} param will give you the language.

--
Konstantin


 Thanks for your helps...

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

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

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


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

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




Re: i18n

2002-05-07 Thread Konstantin Piroumian

 Hi,

 I'm wondering what is the preferred use of i18n. I'm developing a
 bi-lingual site.

 I've looked at message catalogs, but I don't want to insert all my content
 in a single file (of course).

You don't have to. You can use as many files as you wish. See latest i18n
samples (/samples/i18n/).


 should I use the locale variable to choose between directories that have
 translated xml files with content ?

That depends on the nature of your site. If it's more information site then
it'll be better to have separate directories. But if it's data-driven
application, where most of the data comes from a database and you have a lot
of input forms, then it's worth using i18n transformer.

--
  Konstantin


 thanks
 Ricardo Trindade


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

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


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

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




xsl:param element

2002-05-07 Thread Cenk Uysal

Hi,

I want to do some operations on a parameter that I get from Cocoon
Sitemap with xsl:param element. How can I do that? I can only print
it on screen. But I want to do some other operations like parsing. 

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

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

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




RE: param element

2002-05-07 Thread Luca Morandini

Cenk,

this an XSL issue... anyway, you can use XPath functions like substring(),
substring-before(), or substring-after() to have it scanned.

Best regards,

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


 -Original Message-
 From: Cenk Uysal [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 07, 2002 3:24 PM
 To: [EMAIL PROTECTED]
 Subject: xsl:param element


 Hi,

 I want to do some operations on a parameter that I get from Cocoon
 Sitemap with xsl:param element. How can I do that? I can only print
 it on screen. But I want to do some other operations like parsing.

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

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

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




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

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




RE: param element

2002-05-07 Thread Cenk Uysal

I don't have information about XPath. Can you give an example of that
kind of XPath usage? Assume that I get the parameter with this
element in my XSL file:

xsl:param name=param1

And then...

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

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

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




RE: param element

2002-05-07 Thread Luca Morandini

Cenk,

as you may know, XSL and XPath is not a matter to be explained in a message.

Get yourself a book, or browse at: http://www.w3c.org/Style/XSL/ or
http://www.zvon.org/xxl/XPathTutorial/General/examples.html or
http://www.zvon.org/xxl/XSLTutorial/Output/index.html


Sorry for not being of further assistance... but I can (sometimes) answer
only focused questions.

Best regards,


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


 -Original Message-
 From: Cenk Uysal [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 07, 2002 3:36 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: param element


 I don't have information about XPath. Can you give an example of that
 kind of XPath usage? Assume that I get the parameter with this
 element in my XSL file:

 xsl:param name=param1

 And then...

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



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

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




RE: Need to replace xalan

2002-05-07 Thread Vadim Gritsenko

 From: Frank Ridderbusch [mailto:[EMAIL PROTECTED]]
 
 On Mon, 6 May 2002 14:11:53 -0400
 Vadim Gritsenko [EMAIL PROTECTED] wrote:
 
  Try saxon-6.5.2.jar. Works for me.
 
  Vadim
 
 Does it work for you in every respect?

 
 I'm also using Saxon and for the most part it works. However I'm
including
 this option in the TOMCAT_OPTS/CATALINA_OPTS env variable to force
Saxon
 to use Xerces instead of the included Alfred parser.
 
 -

Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFact
oryImp
 l
 
 Otherwise I would get exceptions from Alfred, when I used !DOCTYPE
...
 declarations, where the DTD included other entities. (I configured
 CatalogManager.properties accordingly).

I do not use DTDs...


 The SQLTranformer aparently does not work with Saxon. What works like
 charm with Xalan produces a exception with Saxon.

Same here. My XSPs and XSLTs work fine with Saxon.


  org.apache.cocoon.ProcessingException: Failed to execute pipeline.: \
  java.lang.UnsupportedOperationException: The Saxon DOM cannot be
updated
 
  org.apache.cocoon.ProcessingException: Failed to execute pipeline.: \
   java.lang.UnsupportedOperationException: The Saxon DOM cannot be
updated
   at

org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStr
 eamPipeline.java:414)
   at

org.apache.cocoon.www.file_.usr.local.httpd.htdocs.sqxs.sitemap_xmap.mat
chd0e1
 45(sitemap_xmap.java:1419)
   at

org.apache.cocoon.www.file_.usr.local.httpd.htdocs.sqxs.sitemap_xmap.pro
cess(s
 itemap_xmap.java:588)
   at

org.apache.cocoon.www.file_.usr.local.httpd.htdocs.sqxs.sitemap_xmap.pro
cess(s
 itemap_xmap.java:420)
   at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
   at
 org.apache.cocoon.www.sitemap_xmap.matchd0e910(sitemap_xmap.java:6908)
   at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3431)
   ..
 
 I think, I've seen the same exception, when using the xmlform example
from
 scratchpad with Saxon.
 
 I this something, that should be reported to buzilla?

I think yes, it should be.

Vadim

 --
 Mit freundlichen Gruessen / Regards
 
 Frank Ridderbusch
 
 Fujitsu Siemens Computers, EP SQ XS1
 Heinz Nixdorf Ring, 33106 Paderborn, Germany
 Email: [EMAIL PROTECTED]



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

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




RE: Caching, Xindice, Aggregate

2002-05-07 Thread Vadim Gritsenko

 From: Michael Cortez [mailto:[EMAIL PROTECTED]]
 
  It does not *execute* XSP page neither *calls* XSP page.
  It merely *reads* XSP page, that's it.
 
 Ah, my mistake then, sorry.  The interesting thing to note, is that it
did
 not give any errors calling it the way I did -- and when I remove the
 xsp:page/xsp:page elements from the file and read it the way I
did, it
 gave me an erros in dynamic-page2html.xsl and in
simple-page2html.xsl
 
 
  Fix it by specifying correct generator type:
 
  map:generate type=serverpages src=ogc/ogl-preamble.xsp/
 
 I'll attempt this right away, but I still have a questions though:
 
 Can I place a map:generate inside an aggregate? 

No.


 I thought the only valid
 child element was map:part. 

Yes.


 Or do I accomplish it with a
 
 map:part type=serverpages src=ogc/ogl-preamble.xsp/
strip-root=true
 /

No. But you can reference pipeline which executes your XSP:

map:part src=cocoon:/ogc/ogl-preamble/ strip-root=true/

(just add pipeline for ogc/ogl-preamble)

 
 ---
 OK, I've tried what you've suggested...  I'm using the map:generate
tag,
 with type equaling serverpages.  I've placed my own root tag inside
the XSP
 page,
 
 
 sitemap.xmap
 =
 map:match pattern=test_xsp
 map:generate type=serverpages src=ogc/ogl-preamble.xsp/
 map:serialize type=html/
 /map:match
 =

Good.

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

Good.

 
 Now when I browse to the appriopiate address I get back an emtpy html
page:
 
 =
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META http-equiv=Content-Type content=text/html;
 charset=windows-1252/HEAD
 BODY/BODY/HTML
 =

I bet you use IE. Try refreshing or try something different and/or read
log files.

 
 No error messages reported in the browser, no error messages in the
error
 log.  So, as a sanity check I brought up the cocoon status page, and
low and
 behold I'm getting the same error messages.  OK, now I don't think
this
 problem has anything to do with my particular application, but with my
 replacing Xalan with Saxon... 

May be.


 So I'm going to pull the whole lot out,
 reinstall, and try putting Saxon in again and see if I can find out
where
 exactly I start gettting the error messages.

Try all the samples also, including XSP samples. Put your xsp page in
the docs/xsp directory and invoke it as
http://localhost:8080/cocoon/xsp/mypage.

Vadim

 
 For the record, here are the heads of the error messages that I get by
 starting up Coocon, and browsing to the status page at
 http://fclistserver.fullcoll.edu:8080/cocoon/status
 
 There are all of the variety:
 Attribute xmlns: is not allowed on this element
 
 
 =
 ERROR   (2002-05-06) 20:59.26:769   [core.xslt-processor] (/cocoon/)
 HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:

jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap
ache
 /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17;
Column
 -1;
 ; SystemID:

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

jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap
ache
 /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17;
Column
 -1;
 ; SystemID:

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

jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap
ache
 /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17;
Column
 -1;
 ; SystemID:

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

jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap
ache
 

RE: param element

2002-05-07 Thread Cenk Uysal

I can understand you but my question was how to run an XPath
expression in a XSL file for parsing the xsl:param element? More
specifically my problem is:

I get a parameter from Sitemap with xsl:param element like x,y,z

But I have to use this parameter as seperate parameters like x and y
and z in my XSL file. For example I will use x parameter here:

xsl:value-of select=/personnel/title[@lang=x]

Is it possible? If yes, how?

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

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

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




RE: param element

2002-05-07 Thread Lai, Harry

Hi Cenk,

You can store the x,y,z value in an xsl:variable, and then you can use the
functions Luca mentioned to parse the string.  Hope that helps!

Harry

-Original Message-
From: Cenk Uysal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 9:00 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: param element


I can understand you but my question was how to run an XPath
expression in a XSL file for parsing the xsl:param element? More
specifically my problem is:

I get a parameter from Sitemap with xsl:param element like x,y,z

But I have to use this parameter as seperate parameters like x and y
and z in my XSL file. For example I will use x parameter here:

xsl:value-of select=/personnel/title[@lang=x]

Is it possible? If yes, how?

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

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

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

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

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




ComponentSelector could not find the component...

2002-05-07 Thread Hiloliddin Karimov

Hi All,

I have downloaded xml-cocoon2_20020507041716.tar.gz and have BUILD
SUCCESSFUL
In http://localhost/cocoon/tutorial/create-dept.html
At trying creation new department show You have successfully processed the
department, but there is no new department if see department table (or find
department). It not add new record. At update of records same problem.

I get following on my sitemap.log:
...
DEBUG   (2002-05-07) 17:36.00:687
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/ExcaliburComponentSelector: generators:
ComponentSelector
could not find the component for hint: serverpages
DEBUG   (2002-05-07) 17:36.00:687
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/LogKitLogger: Got a
org.apache.cocoon.generation.ServerPag
esGenerator from the pool.
DEBUG   (2002-05-07) 17:36.00:687
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/ExcaliburComponentSelector: transformers:
ComponentSelecto
r could not find the component for hint: xslt
DEBUG   (2002-05-07) 17:36.00:687
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/LogKitLogger: Got a
org.apache.cocoon.transformation.TraxT
ransformer from the pool.
DEBUG   (2002-05-07) 17:36.00:687
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/ExcaliburComponentSelector: serializers:
ComponentSelector
 could not find the component for hint: html
DEBUG   (2002-05-07) 17:36.00:687
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/LogKitLogger: Got a
org.apache.cocoon.serialization.HTMLSe
rializer from the pool.
DEBUG   (2002-05-07) 17:36.00:687
[sitemap.transformer.xslt](/cocoon/tutorial/
create-dept.html) HttpProcessor[80][2]/TraxTransformer: Using stylesheet:
'file:
/F:/usr/tomcat/webapps/cocoon/tutorial/stylesheets/apache.xsl' in
org.apache.coc
oon.transformation.TraxTransformer@ed77a
DEBUG   (2002-05-07) 17:36.00:906
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/LogKitLogger: Put a
org.apache.cocoon.generation.ServerPag
esGenerator back into the pool.
DEBUG   (2002-05-07) 17:36.00:906
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/LogKitLogger: Put a
org.apache.cocoon.transformation.TraxT
ransformer back into the pool.
DEBUG   (2002-05-07) 17:36.00:906
[sitemap](/cocoon/tutorial/create-dept.html)
 HttpProcessor[80][2]/LogKitLogger: Put a
org.apache.cocoon.serialization.HTMLSe
rializer back into the pool.

I try off FormValidatorAction in the sitemap.xmap, all works fine.
!--
   map:act type=form action=Create Department
 map:parameter name=validate-set value=add/
 map:act type=dbAdd/
   /map:act
--
   map:act type=dbAdd action=Create Department/

What's problem?
Thanks,
Hill

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

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

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




RE: param element

2002-05-07 Thread Cenk Uysal

I think my problem came to the point that How can I run XPath
functions in XSL?

Sorry for this out of topic question...

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

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

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




logicsheet urls in sitemap

2002-05-07 Thread Zack Angelo

What is the correct way to declare an entry in my sitemap so that I can
reference logicsheet uris in my documents with cocoon://? Do I just do a
read like an image, or do I have to serialize them in some special way?
TIA.

-Zack




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

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




Saxon Xinclude problem

2002-05-07 Thread Artur Bialecki


I have a problem with Saxon 6.5.2 and Xinclude transformer.
I get the following:

java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
at 
org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl.selectNodeList(XPathProcessorImpl.java:65)
at 
org.apache.cocoon.transformation.XIncludeTransformer.processXIncludeElement(XIncludeTransformer.java:302)
at 
org.apache.cocoon.transformation.XIncludeTransformer.startElement(XIncludeTransformer.java:155)
at org.apache.cocoon.www.oem.customer.index_xml.generate(index_xml.java:764)

Do I have to keep xalan.jar for the XPathAPI or do I use something
else. How can I get this to work.

Thanks,

Artur...

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

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




Re: How-to for sendmail published

2002-05-07 Thread Horst Rutter

Thanks for your reply.
I've got it working already.
I had problems using the j2ee.jar
Now I am using the 2 individual jars instead and it works like a charm.

Horst

- Original Message - 
From: Perry Molendijk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 07, 2002 2:06 AM
Subject: Re: How-to for sendmail published


 
 Hello Horst
 
 Sorry it's taken a while for a reply.
 Like I wrote I have only tried this on Win2K, jdk1.3.1, tomcat 4.0.1 and
 Cocoon 2.0.2.
 
 But do you have activation.jar and mail.jar in your cocoon/WEB-INF/lib
 directory? If you haven't, give it a try. I may have done something wrong
 myself but it was the only way I got it to work.
 
 Regards
 
 Perry
 
 - Original Message -
 From: Horst Rutter [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, May 02, 2002 3:48 AM
 Subject: Re: How-to for sendmail published
 
 
  I followed your instructions for sendmail (thanks for putting time into
 this) but ran into the following:
 
  The xsp compiled fine I can see the generated class file in the working
 dir,
  but when sendmail.xsp gets invoked it hangs and my sitemap.log says:
 
  WARN(2002-05-01) 12:18.27:262   [sitemap](/ba/xsp/sendmail)
 HttpProcessor[8080][4]/PipelineNode: Resource not found in pipeline
  at file:/C:/eclipseworkspace/test/webapp/sitemap.xmap:888:17
  org.apache.cocoon.ResourceNotFoundException: javax/mail/MessagingException
   at
 org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
 .java:210)
   at
 org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
 stractEventPipeline.java:202)
   at
 org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
 tPipeline.java:278)
   etc..
 
  This is weird since javax.mail is in my classpath for both compilation and
 runtime (j2ee.jar).
 
  Regards,
  Horst (XP, JDK1.4, Tomcat  4.0.4-b2, C2.1-dev)
 
 
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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

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




Re: Problem with SQLTransformer and Encoding

2002-05-07 Thread KOZLOV Roman

Hi Frank,

Did you check the result you get before transformation by sql.xsl? Perhaps it is
necessary to use attribute disable-output-escaping=yes in its elements.

Roman

Frank Ridderbusch wrote:

 Hi Cocooners,

 I'm having a problem with the encoding of a sql query from the SQLTransformer.

 Configuration is:

   Cocoon 2.0.3-dev from CVS
   IBM JDK 1.3
   Tomcat 3.3
   Oracle 8.1.7

 Instead of getting the wanted germans umlauts, I'm apparently getting UTF
 encoded characters (instead of ü or Uumlaut; I'm seeing Atilde;frac14;).

 I've looked at source code and see, that the encoding is set to 'ISO-8859-1'
 in the constructor of the SQLTransformer:

   ...
   this.format.put(OutputKeys.ENCODING, ISO-8859-1);
   ...

 I've configured the HTML serializer in the sitemap to use ISO-8859-1 like
 this:

   map:serializer name=html mime-type=text/html
   logger=sitemap.serializer.html
   src=org.apache.cocoon.serialization.HTMLSerializer
 encodingISO-8859-1/encoding
   /map:serializer

 My pipeline looks like this:

   map:match pattern=sql/who-is-who/*
 map:aggregate element=page
   map:part src={0}.xml/
   map:part element=sidebar src=sidebar.xml/
 /map:aggregate
 map:act type=request
   map:parameter name=parameters value=true/
   map:parameter name=default.department value=FSC EP SQ XS%/
   map:transform type=sql
 map:parameter name=use-connection value=projects/
 map:parameter name=department value={department}/
   /map:transform
   map:transform src=stylesheets/sql.xsl/
 /map:act
 map:serialize type=html/
   /map:match

 The XML file, which contains the query looks like this:

   ?xml version=1.0 encoding=ISO-8859-1?
   sql xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
   query
 select * from mgmt_users
  where department like 'substitute-value sql:name=department/'
and (auth like '%chef%' or job_desc like 'Sek%')
  order by department, surname
   /query
 /execute-query
   /sql

 This basically works all just nicely except for the encoding. I've searched
 the archives and found a similar problem described for the LDAPTransformer.

 I think, I checked all the available documentation, but either I didn't find
 the relevant section to give me a hints or there is indeed a problem.

 Any opinions? Thanks.
 --
 Mit freundlichen Gruessen / Regards

 Frank Ridderbusch

 Fujitsu Siemens Computers, EP SQ XS1
 Heinz Nixdorf Ring, 33106 Paderborn, Germany
 Email: [EMAIL PROTECTED]

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

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


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

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




Re: XSP + Dynamic XML generator ??

2002-05-07 Thread Chris Wolf

Yes, now I think this might be what I'm looking for...

Bert Van Kets wrote:
 
 Isn't the xsl-dynamic page that you need?  The sample can be found at
 http://localhost:8080/cocoon/sub/xsl-dynamic
 The transformer of the main pipeline calls a different pipeline where an
 XSP page  generates the transformations.  To my opinion XSP can be used as
 a transformer this way, no?
 
 !-- Dynamic XSL --
 map:match pattern=xsl-dynamic-source
  map:generate type=serverpages src=stylesheets/simple-page2html.xsp/
  map:serialize type=xml/
 /map:match
 map:match pattern=xsl-dynamic
  map:generate src=docs/simple.xml/
  map:transform src=cocoon:/xsl-dynamic-source/
  map:serialize/
 /map:match
 
 Bert
 
 At 22:23 6/05/2002 -0400, you wrote:
   From: Chris Wolf [mailto:[EMAIL PROTECTED]]
  
   Thanks, I'll wait for this XSPT to be better documented,
 
 It does not exist. But it is possible.
 
 Vadim
 
   until then, I'll just write a java-based Transformer...
  
 -Chris
  
   Vadim Gritsenko wrote:
   
 From: Chris Wolf [mailto:[EMAIL PROTECTED]]

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

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

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

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

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




Re: Cocoon Portal - Tabbed layout and Radio integration

2002-05-07 Thread Geert Pante


There's an crossbrowser JavaScript LGPL Project at 
http://www.uwyn.com/projects/relativelayers .

It shows dynamic Layer creation at: 
http://www.uwyn.com/projects/relativelayers/examples/example10.html .

Most of the RelativeLayers package is supported on both IE and Netscape.  Even Opera 
(www.opera.com) can
handle some of its functionality, but not all...

mvg, Geert.

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

 Bert

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

   -Original Message-
   From: Michael Homeijer [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 06, 2002 8:49 AM
   To: '[EMAIL PROTECTED]'
   Subject: RE: Cocoon Portal - Tabbed layout and Radio integration
  
  
   IMHO the problem with most portal layout's is that if you have multiple
   portlets open and one is changed, the complete page has to be refreshed.
   Depending on the functionality and the possibility of caching, this can be
   very time consuming.
  
   Gartner had a site that solved this by having portlets in a single layer
   (I am not a HTML expert, but I think this is what it's called). It looked
   great, all portlets could be dragged to the location at which you want to
   have them and they really looked like child windows.
  






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

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




RE: param element

2002-05-07 Thread Luca Morandini

Cenk,

something along these lines should work:

xsl:variable name=x
xsl:value-of select=substring-before($par, ',')/
/xsl:variable

I wrote it without testing it first, so, don't blame me for errors :)

Best regards,

P.S.
I really meant it: XSL/XPath is worth buying a book or two.

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

 -Original Message-
 From: Cenk Uysal [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 07, 2002 4:31 PM
 To: [EMAIL PROTECTED]
 Subject: RE: param element
 
 
 I think my problem came to the point that How can I run XPath
 functions in XSL?
 
 Sorry for this out of topic question...
 
 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

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




Sources, Components and cocoon.xmap

2002-05-07 Thread Stephan Michels

Hi,

It is possible for components in the cocoon.xmap to get source over
the SourceResolver from the sitemap.

cocoon.xconf:
 component role=.. class=.. logger=..
  entry source=cocoon://.../
 /component

My second question is about the validity of sources. Is this
the correct way to test if a file has changed?

resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);
source = resolver.resolveURI(file://...);

[...after a time delay..]

if (!source.getValidity().isValid())
{
  // For a new source, if the file has changed
  source = resolver.resolveURI(reference);
  [ do something ]
}

Tanks, Stephan Michels.


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

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




ClassCastExcep'n on ServletExec 3.1 / Solaris

2002-05-07 Thread Chris Wolf

I searched the faq's and surfed before posting this and was 
surprised to find that this has not already been addressed.

After successfully using C2 on Tomcat, I attempted to migrate
to a hosting environment running ServletExec 3.1 on Solaris 5.8
and I get the following error when the servlet engine attempts
to start the Cocoon servlet:

Has anyone deployed on ServletExec3.1 on Solaris?

BTW, I changed out the old xerces jar for version 1.4.3 -- both
with and without the xml_apis.jar present...

Thanks, 
 
Chris

Error. The server encountered an unexpected condition which prevented it
from fulfilling the request.

java.lang.Error: Unable to setup SAX parserjava.lang.ClassCastException:
org.apache.xerces.jaxp.SAXParserFactoryImpl
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.(DefaultConfigurationBuilder.java:92)
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.(DefaultConfigurationBuilder.java:64)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:582)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:165)
at
com.newatlanta.servletexec.ServletExec.CallServletInit(ServletExec.java)
at
com.newatlanta.servletexec.ApplServletContext.CreateServlet(ApplServletContext.java)
at
com.newatlanta.servletexec.ApplServletContext.loadConfiguredServlet(ApplServletContext.java)
at
com.newatlanta.servletexec.ApplicationInfo.LoadExternalServlets(ApplicationInfo.java)
at

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

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




Problems with Saxon and xsp

2002-05-07 Thread Omar Alos

Docbook stylesheets works fine with Saxon, but I can't
execute xsp

this page:

xsp:page xmlns:xsp=http://apache.org/xsp; 
language=java
 article
  title
   CONTRATO DE ARRENDAMIENTO DE SERVICIOS
PROFESIONALES
  /title
  para
   prueba
  /para
 /article
/xsp:page

works with Xalan, but when I try with Saxon, java
generated file is not correct. Nodes are not generated

all commands this.contentHandler.startElement like

this.contentHandler.startElement(,title,title,xspAttr);

are missing. I only have
...
  this.characters(\n\t\t);  
  this.characters(\n\t\t\tCONTRATO DE ARRENDAMIENTO
DE SERVICIOS PROFESIONALES); 
  this.characters(\n\t\t);
  this.characters(\n\t\t);
  this.characters(\n\t\t\tprueba);
...
 
 
 tomcat 3.3a
 cocoon 2.02
 Saxon 6.5.2
 
 Thanks,
 Omar

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

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

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




Re: Problems with Saxon and xsp

2002-05-07 Thread Peter Royal

On Tuesday 07 May 2002 01:29 pm, Omar Alos wrote:
 works with Xalan, but when I try with Saxon, java
 generated file is not correct. Nodes are not generated

 all commands this.contentHandler.startElement like

 this.contentHandler.startElement(,title,title,xspAttr);

 are missing. I only have

I believe this was just fixed in CVS:

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

-pete

-- 
peter royal - [EMAIL PROTECTED]

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

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




is there an issue with international characters in XSP (C2.0.1)?

2002-05-07 Thread Argyn Kuketayev

I'm retrieving UTF-8 data from Oracle table. I put UTF-8 encoding in my XSP
page. then I use XML-serializer to see what's coming out. I have some
chinese words in the varchar2 field, I see that they are #145; and so on
in the XML file produced, which is apparently wrong. Any ideas?

Argyn

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

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