Link Livesites:

2002-12-28 Thread Vincent Majer
Hi,

I don't know if my site can be listed in your Live Sites, but i'm using 
XML/XSL files with tomcat/cocoon 1.8.2 to produce a static html website, 
for all the informative pages (around 1000 html files are created this way).
You can see that here :
http://www.histoiredumonde.net

It's very useful, because no need of cooon on the production server, you 
serve simple html files. But the advantage is that u manage xml files only !
I'm using the redirect:write extension.
I've put the cocoon logo, in my home page, in the bottom.

So, if u think u can give me a link back.. i'll be proud.

Thanks, and sorry for my poor english.

===
Vincent Majer
http://www.histoiredumonde.net
===


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

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



Re: esql in Cocoon-2.1-dev not working well with Oracle? due to skip-rows element?

2002-12-28 Thread Antonio Gallardo
aps olute dijo:
   I did not have the need for this, so I will assume its okay, my code
 works
 without this.

 2-The esql:skip-rows and esql:max-rows are also optionals that
 means that it will not triggered if you dont request it.

 Apparently one of them is not optional, if it was, I would not
 brought this up as an issue.  If you recall my original posting on this:
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104069369318391w=2 I
 could not run same ESQL code on Tomcat4.1.12 but yet it works fine on
 Tomcat 4.0.1.

It looks like the problem is calling the absolute() method. As long as I
know the function is part of the java.sql then it must be into your
driver. Try to find a newer driver that implements the absolute()
function.

Also, better try to use Tomcat 4.1.18. I used before 4.1.12 and there are
some bugs that can confuse your development under windows.

BTW I am using tomcat 4.1.18 on Red Hat Linux 8.0

 Can you perhaps verify an ESQL(XSP file) like I had posted without
 the esql:skip-rows and can you post what the result is? Without this
 element on mine, it will not work.

I already checked your file and I think it must work is well written as
long as I know.

Sorry, but I dont know how this work for Oracle. I am using PostgreSQL. I
have many files without any of this tags and all the XSP works fine. Maybe
the problem is somewhere else. Try to download the sources from CVS and
check the source of Cocoon for Oracle.

 By the way I dont see a case when you will request 0 rows in the
 esql:max-rows. I the worst case you will need to set it just to
 control if the are some rows. Then you will need to request almost 1
 additional row (0+1) to check for additionals rows in the returned
 recordset.

   Umm, I was referring to esql:skip-rows being zero, not
 esql:max-rows.

It is the default approach. The default value for esql:skip-rows is -1
(minus 1) that means that the function absolute will not being called.

I review the code of OracleEsqlQuery.java and there if you does not use
any of the tags: esql:skip-rows and esql:max-rows, then your query is
sended to the database server without any other stuff. But if you are
using some of the tags, then Cocoon will send a query with tag stuff.

In the test I just did, I did not include esql:max-rows, so its not
 needed. I also tried esql:max-rows 3 and I did get 3 rows, not 4 and
 since I have to have skip-rows minimum set to 1, it printed rowid's 2,3
  4.  Anyhow, it seems confusing to remember one more rule having to add
 1 for the count.
That is correct!. The trick to get (MaxRows + 1) records works only
internal to let Cocoon check if there are more rows that meet your
criteria and shot the trigger esql:more-results. It will does not affect
the correct approach. If you want 3 rows, you must write
esql:max-rows3/esql:max-rows.

Also if you does not want to skip any row. you dont need to use
esql:skip-rows and esql:max-rows. Also note that for Oracle the use of
both tags is mandatory. You cannot use just one. If you need to use just 1
tag, you will need to set the second tag too.

I hope it will help you.

Best regards,

Antonio Gallardo.



 This way it will be faster for every database manager because database
 manager mainly stop when they already have filled the requested amount
 of rows. And returns after they get the maxrow you requested. As you
 can see this is the faster method I know to trigger the more-results.

No comment on this portion. I dont really know the logic behind.

   Just wanted to know, what are the file sizes for your
 OracleEsqlQuery.java,
 JdbcEsqlQuery.java, EsqlHelper.java, and PostgresEsqlQuery.java? just
 for my reference.

 Regards,
 aps


 Ragards,

 Antonio Gallardo.


 aps olute dijo:
 
   Antonio,
   Per your suggestion, I downloaded the latest on 12/24 and it
 still
  does
  not work. ESQL having a problem working with Oracle 8i and Tomcat
 4.1.12.  Exact xml file is working with Tomcat.4.0.1 but not on
 4.1.12. What actually has been changed?
   I tinkered a little bit more, and based on your postings, I
 kind of
  clue-in on this skip-rows and max-rows.  This was not needed before,
 why make it mandatory? Is this documented somewhere like on a DTD or
 a Schema for ESQL? Also it does not work with skip-rows set to
 zero
 
 
  aps
 
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
  http://mailplus.yahoo.com
 
  -
 Please check that your question  has not already been answered in
 the FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED] For additional commands,
 e-mail:   [EMAIL PROTECTED]




 -
 Please check that your question  has not already been answered in the
 FAQ before posting. 

ESQL bug, or even whorse?!?!?!

2002-12-28 Thread Luis Gois

Hello.

I'm facing a situation where I've tried almost everything and don't
understand why ESQL doesn't work for a particular situation :

a) I have 3 cascading queries, i.e., the 2nd query placed inside
esql:row-results of 1st query and 3rd query inside esql:row-results of
2nd query;
b) for the 3rd query, something strange happens :
1) Cocoon 2.0.2 :
Using esql:get-string (2nd line from bottom):
===

!-- 3rd query --  
esql:execute-query
esql:query
select aqa.nu_qms_activity_area
asnum_activity_area, aqa.name_qms_activity_area as name_activity_area
FROM opqa_metrics_tst omt, activities_qms_areas
aqa
WHERE omt.nu_descr_metrics_tst=esql:get-int
column=nu_descr_metricas_tst ancestor=1/
AND
omt.name_project_tst='xsp:exprcurrentProduct/xsp:expr'
AND omt.name_release_project in
xsp:exprreleasesSet/xsp:expr
AND
TO_CHAR(omt.date_input,'dd-mm-')='xsp:exprcurrentDate/xsp:expr'
AND aqa.nu_qms_activity_area =
omt.nu_qms_activity_area
order by num_activity_area asc
/esql:query
esql:results
esql:row-results
metric
xsp:attribute
name=namexsp:exprmetricName/xsp:expr/xsp:attribute
!-- === HERE IT IS
== --
xsp:attribute
name=activity_areaesql:get-string
column=name_activity_area//xsp:attribute
xsp:logic

(...)



the generated java is:
=

xspAttr.addAttribute(
,
activity_area,
  activity_area,
  CDATA,
  String.valueOf(.getBytes() != null ?
EsqlHelper.getStringFromByteArray(.getBytes (), ) :  )
);


Findings :


Looking at the esql.xsl, I see that the xsl:choose element at
get-encoded-string template isn't properly processed when retrieving a
value for the encoding variable, since even if I use esql:get-string
column=name_activity_area encoding=default/, $encoding won't
default to 'default'. If I copy that xsl:choose element outside the
variable element do debugging purposes and watch at the generated java,
I see that it correctly evaluates to a default value situation
(xsl:otherwise). Again, specifying the encoding attribute in
esql:get-string and then retrieving at the esql.xsl file the $encoding
and  @encoding values, the first is '' and the second 'default'. How can
this be possible?

Using esql:get-string in previous queries had a completely
diferent JAVA code replacement, using getAscii() method for example. The
call to esql:get-string has exactly the same attributes, the column
types are exactly the same (though at XML-JAVA code transformation
that's irrelevant).

Moving to Cocoon 2.0.4 didn't solve this problem. Now, the
generated JAVA file has have something like
EsqlHelper.getStringFromByteArray(default.getBytes()) -- notice at the
default object. The error generated at compile time is related to
getStringFromByteArray() method not found in EsqlHelper class. (I can
give you more detailed error messages later, since those errors where
generated yesterday night at work). 

I thought that I was using a bad Xalan in my classpath or
something similar but I've tried the code in 2 different platforms, an
HP-UX and a Win2K machine and both generated the same java code and the
same compilation errors.

This is really frustrating for me, a Cocoon1 Vet and for the
persons who are now using Cocoon for the first time. I've developed some
of applications in our project and never experienced this behaviour, but
now, I'm lost!:( Help ... 


Regards,
Luis Gois



___
Vizzavi Mail powered by Vodafone - http://www.vizzavi.pt
Virus protected by TrendMicro - http://www.antivirus.com

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

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




i18n catalogue and sql

2002-12-28 Thread Cocoon User

hy people

i have found very usefull the i18n processing
but what happend when you  have large text?



is it possible for catalogues to retrieve data from an sql server
mySQL for example


xml page -ID- catalogue -ID- data from SQL


thnx

stavros



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

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




Re: Cocoon reversing element attributes at output?

2002-12-28 Thread Steven Noels
Anna Afonchenko wrote:


I am writing xsl file that will catch some nodes (according given XPath) 
and will output these nodes
as a string.
Here is the code snippet that outputs the matching node:
xsl:textlt;/xsl:text
xsl:value-of select=concat(name(),' ')/
xsl:for-each select=@*
xsl:value-of select=name()/
xsl:text=/xsl:text
xsl:value-of select=./
xsl:text /xsl:text
/xsl:for-each
xsl:textgt;/xsl:text
 
So, if, for example, the node img src=some.gif alt=/ is caught, 
then it will be output as is.

Also, consider the use of an identity template and xsl:copy for such tasks:

http://www.dpawson.co.uk/xsl/sect2/identity.html
http://www.dpawson.co.uk/xsl/sect2/N1930.html

/Steven
--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0103539/
stevenn at outerthought.orgstevenn at apache.org


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

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




Re: [warning] Wiki being moved

2002-12-28 Thread Steven Noels
Steven Noels wrote:


I'm moving the Wiki to its new location on 
http://wiki.cocoondev.org/

I'll quit fussing around for now - did some Forrestizing along the way. 
I didn't really pay much attention on validity of the generated HTML, 
and only checked in Moz1.2 and IE6 on W2K. If anyone has big problems 
reading the Wiki, please let me know.

Enjoy,

/Steven
--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0103539/
stevenn at outerthought.orgstevenn at apache.org


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

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



[ANNOUNCE] CVSView, a server-side CVS repository generator.

2002-12-28 Thread Matthieu Sozeau
Hi!

I've been working on this lately and finally got it reach a
distributable state and invite (urge!) you to try it. CVSView
has the same basic functionnalities as the ViewCVS CGI, is generic 
(i.e. it just generates metadata about the repository's contents)
and even documented! It requires both jakarta-ORO and the JRCS 
package currently in the jakarta commons sandbox.

Tried only with 2.0.2 on GNU/Linux.

Project page at: http://mattam.ath.cx/progs/CVSView.html

M@t



msg22331/pgp0.pgp
Description: PGP signature


installation question

2002-12-28 Thread edel claire ryder
Hi,

I was wondering if someone could help me with this problem.

I have just installed cocoon and when I try to access 
http://localhost:8080/cocoon, I get the following error:

type 
internal-server-error

message org.apache.xml.utils.WrappedRuntimeException: The output format must 
have a '{http://xml.apache.org/xalan}content-handler' property!

description java.lang.RuntimeException: 
org.apache.xml.utils.WrappedRuntimeException: The output format must have a 
'{http://xml.apache.org/xalan}content-handler' property!

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

exception

java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: 
The output format must have a '{http://xml.apache.org/xalan}content-handler' 
property!

request-uri

/cocoon/

path-info



stacktrace

java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: 
The output format must have a '{http://xml.apache.org/xalan}content-handler' 
property!
	at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
	at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
	at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
	at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
	at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown 
Source)
	at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
	at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
	at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130)
	at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:309)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
	at java.lang.Thread.run(Thread.java:536)



I have Tomcat 1.4.18 installed and jdk1.4.1
I created the 'endorsed' directory under %JAVA_HOME%/jre/lib and copied the 
latest stable versions of the xerces and xalan jars to this directory.

Any ideas ?

Any help would be really appreciated.  Thanks,

--edel.

.

_
MSN 8 with e-mail virus protection service: 3 months FREE*. 
http://join.msn.com/?page=features/virusxAPID=42PS=47575PI=7324DI=7474SU= 
http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_eliminateviruses_3mf


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

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



Re: Cocoon tutorial ... non production cocoon 'sand box'

2002-12-28 Thread J. Norment
What dedication!  ( I'm impressed! )
Thanks for the tip.  I will keep it in mind, if I want to get the tutorial working in 
the original install directory.

For the time being though, my primary interest is in creating a separate development 
cocoon-space.

( I had been hoping to use a simple tutorial to get that done. )

Anyone have any ideas on how to create a separate 'non-production' space ( that won't 
include cocoon sample files/etc? )


On Tue, 24 Dec 2002 19:35:40 -0800 (PST), aps olute wrote:

While the Turkey is bakingNo need to make this a whole web-app
to
itself and having its own context.
1) I did this, jar the
com.sphere.cocoon.generation.CSVGenerator.class as
myapp.jar.
2) put myapp.jar at the existing cocoon/WEB-INF/lib/  directory
3) Use one of the existing submounts, like for example samples off
of cocoon/
Make sure samples sitemap.xmap can submount, look for this, as this
will make a
submount:
map:match pattern=*/**
map:mount uri-prefix={1} src={1}/ check-reload=yes/
/map:match
4) symlink or copy the myapp/ directory to, and it should look like
cocoon/samples/myapp/
5) leave the myapp sitemap.xmap its working fine as a submount.
6) re-start tomcat 4.1.x since you have added the myapp.jar in step
2. for
tomcat to recognize the jar file added.
7) in browser  http://localhost:8080/cocoon/samples/myapp/  and
whoala it
works.
at least on mine :)

8)  check the Turkey temperature..opps that just for me..happy
holidays.

aps
--- [EMAIL PROTECTED] wrote:
J.,

I just installed myapp under Tomcat 4.1 and got the same error
you
did.  I'm not enough of a Servlet API expert to know for sure, but
it
seems to be an API conflict.  For now, I recommend using Tomcat
4.0.6
to run the myapp tutorial.

-- jack

John R. Callahan, Ph.D.
CTO
Sphere Software Corporation - The Intelligence of XML
[EMAIL PROTECTED]
410-772-9740 x1116
509-532-1536 (efax)
410-598-2157 (cell)



I took a look at your tutorial, and I'm having trouble getting the
example
application to work.  ( Specifically, I'm getting this error ):

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw
exception
at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:962)

java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass0(Native Method)


I highly suspect that it has something to do with the way I tried
to
integrate it into my existing Tomcat 4.1 environment.
( Unpacked the zip file, named the folder cmswatch, put the folder
under
the webapps directory. )

-- and that's all, as far as setup.

I did notice that the servlet has the same name as the servlet in
the
original cocoon directory.  Will that cause a problem?
( Can you tell how new I am to this? )

Any help you can offer is appreciated.  I'd like to at least get
past this
snag soon.

Thanks,

J.


On Tue, 24 Dec 2002 08:04:49 -0800, John R. Callahan wrote:
FYI... I have written a brief article on Cocoon (with tutorial
and
downloadable demo).  The article is available at:

http://www.cmswatch.com/Features/ProductWatch/FeaturedProduct/?fea
tur
e_id=81

The associated demo is available at:

http://www.sphere.com/docs/myapp.zip

The demo is meant to be installed as a webapps subdirectory (no,
not
as a
war file)
in Tomcat 4.0.6.  The myapp.zip file includes everything you
need
(all jar
files, etc.)
and could even serve as a minimal Cocoon application for
beginners.  It is
based
on 2.1dev and requires JDK1.3.  I've tested it with Tomcat 4.0.6
and
Resin
2.x.

(I've also got PPT slides to accompany the article if anyone
wants
them :-p)

Thanks for Carsten, Matthew, Lajos and Jeremy for their inspiring
and
helpful books!

Enjoy!

-- jack

John R. Callahan, Ph.D.
CTO
Sphere Software Corporation (www.sphere.com) - The Intelligence
of
XML
[EMAIL PROTECTED]
410-772-9740 x1116
509-352-1536 (eFax)



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

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




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

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




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

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


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. 

Re: ESQL bug, or even whorse?!?!?!

2002-12-28 Thread aps olute
  I dont have much to offer but I will commiserate with you.  I just noted that
java codes have been moved around in 2.1-dev to organized  to blocks, and yes
files like EsqlHelper.java has gotten larger comparing 2002/07/05 to
2002/11/21.
I have not checked the 2.0.1 vs 2.0.3 versions, so there could be changes
between there too.
  For the dev version, there are no EsqlConnection.java but has changed to
AbstractEsqlConnection.java, it does the functionality I guess since it
implements Connection. Anyhow,  FOR THE DEVELOPERS, CAN YOU PLEASE RE-INSTATE
javadoc DOCUMENTING like the version as a reference for us struggling to
follow? Or are those done only when you get a release version?

Regards,
aps

--- Luis Gois [EMAIL PROTECTED] wrote:
 
 Hello.
 
 I'm facing a situation where I've tried almost everything and don't
 understand why ESQL doesn't work for a particular situation :
 
   a) I have 3 cascading queries, i.e., the 2nd query placed inside
 esql:row-results of 1st query and 3rd query inside esql:row-results of
 2nd query;
   b) for the 3rd query, something strange happens :
   1) Cocoon 2.0.2 :
 Using esql:get-string (2nd line from bottom):
 ===
 
   !-- 3rd query --  
   esql:execute-query
   esql:query
   select aqa.nu_qms_activity_area
 asnum_activity_area, aqa.name_qms_activity_area as name_activity_area
   FROM opqa_metrics_tst omt, activities_qms_areas
 aqa
   WHERE omt.nu_descr_metrics_tst=esql:get-int
 column=nu_descr_metricas_tst ancestor=1/
   AND
 omt.name_project_tst='xsp:exprcurrentProduct/xsp:expr'
   AND omt.name_release_project in
 xsp:exprreleasesSet/xsp:expr
   AND
 TO_CHAR(omt.date_input,'dd-mm-')='xsp:exprcurrentDate/xsp:expr'
   AND aqa.nu_qms_activity_area =
 omt.nu_qms_activity_area
   order by num_activity_area asc
   /esql:query
   esql:results
   esql:row-results
   metric
   xsp:attribute
 name=namexsp:exprmetricName/xsp:expr/xsp:attribute
   !-- === HERE IT IS
 == --
   xsp:attribute
 name=activity_areaesql:get-string
 column=name_activity_area//xsp:attribute
   xsp:logic
   
   (...)
 
   
 
 the generated java is:
 =
   
   xspAttr.addAttribute(
   ,
   activity_area,
 activity_area,
 CDATA,
 String.valueOf(.getBytes() != null ?
 EsqlHelper.getStringFromByteArray(.getBytes (), ) :  )
   );
   
 
 Findings :
 
 
   Looking at the esql.xsl, I see that the xsl:choose element at
 get-encoded-string template isn't properly processed when retrieving a
 value for the encoding variable, since even if I use esql:get-string
 column=name_activity_area encoding=default/, $encoding won't
 default to 'default'. If I copy that xsl:choose element outside the
 variable element do debugging purposes and watch at the generated java,
 I see that it correctly evaluates to a default value situation
 (xsl:otherwise). Again, specifying the encoding attribute in
 esql:get-string and then retrieving at the esql.xsl file the $encoding
 and  @encoding values, the first is '' and the second 'default'. How can
 this be possible?
 
   Using esql:get-string in previous queries had a completely
 diferent JAVA code replacement, using getAscii() method for example. The
 call to esql:get-string has exactly the same attributes, the column
 types are exactly the same (though at XML-JAVA code transformation
 that's irrelevant).
 
   Moving to Cocoon 2.0.4 didn't solve this problem. Now, the
 generated JAVA file has have something like
 EsqlHelper.getStringFromByteArray(default.getBytes()) -- notice at the
 default object. The error generated at compile time is related to
 getStringFromByteArray() method not found in EsqlHelper class. (I can
 give you more detailed error messages later, since those errors where
 generated yesterday night at work). 
 
   I thought that I was using a bad Xalan in my classpath or
 something similar but I've tried the code in 2 different platforms, an
 HP-UX and a Win2K machine and both generated the same java code and the
 same compilation errors.
 
   This is really frustrating for me, a Cocoon1 Vet and for the
 persons who are now using Cocoon for the first time. I've developed some
 of applications in our project and never experienced this behaviour, but
 now, I'm lost!:( Help ... 
 
 
 Regards,
 Luis Gois
 
 
 
 

Re: Cocoon tutorial ... non production cocoon 'sand box'

2002-12-28 Thread aps olute


  I would build like so:

  ./build.sh clean-webapp  #this builds a cocoon.war but it is bare min

Don't expect to see much other than an error of failed to load sitemap.xmap as
there isnt much there. So you modify it and put pipelines that work.  Another
alernative is search on this list posting by Lajos on build with no samples.
Good luck.

aps

PS.  I am not sure if this may cause a problem, having two cocoon started if
both uses hsqldb.  I have not verified this, but it maybe a cause of your
issues.  From what I recall of hsqldb, you can only have one running (as a
standalone) in a machine unless you configured hsqldb as a server.  Please see
the init() of how hsqldb gets instantiated, perhaps in one instance of cocoon
you can disable it.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

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




Problem Installing Cocoon on Mac OS X

2002-12-28 Thread Chet Rindfuss
I'm trying to install Cocoon on Mac OS X 10.2.3.
Java version 1.3.1
TOMCAT version 4.1.18.

Apache and TOMCAT appear to be working correctly.

I've tried using the binary cocoon.war file for version 2.0.4, but when  
I try to localhost:8080/cocoon I get the following exception:

Failed to generate program code (this may happen if you use Xalan in  
incremental processing mode). Please check log file and/or console for  
errors.

Checking error.log I found:

FATAL_E (2002-12-28) 12:05.22:052   [core.xslt-processor] (/cocoon/)
Thread-9/TraxErrorHandler: File  
jar:file:/Users/chet/jakarta-tomcat-4.1.18/webapps/cocoon/WEB-INF/lib/ 
cocoon-2.0.4.jar
!/org/apache/cocoon/components/language/markup/sitemap/java/ 
sitemap.xsl; Line 154; Column 32;
org.apache.xml.utils.WrappedRuntimeException: The output format must  
have a '{http://xml.apache.org/xalan}content-handler' property!
; SystemID:  
jar:file:/Users/chet/jakarta-tomcat-4.1.18/webapps/cocoon/WEB-INF/lib/ 
cocoon-2.0.4.jar
!/org/apache/cocoon/components/language/markup/sitemap/java/ 
sitemap.xsl; Line#: 154; Column#: 32
javax.xml.transform.TransformerException:  
org.apache.xml.utils.WrappedRuntimeException:
The output format must have a  
'{http://xml.apache.org/xalan}content-handler' property!

I searched the e-mail archives and did find references to this problem  
on JVM 1.4. Tried putting copies of jar files into common/endorsed, but  
that has not helped. Stopped and restarted Tomcat and Apache, problem  
still exists.

Does anyone have any other ideas on what the problem might be?

Thanks for you help.

Chet Rindfuss


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

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



Problem with get map:parameter/ in xsp

2002-12-28 Thread Björn Voigt
Hello cocooners,

i am try to read in my xsp-page a map:parameter from

my sitemap looks like this

map:match pattern=body-**/page-1-*-*.xml
   map:generate type=serverpages 
src=context://portal/resources/free/page2.xml
   map:parameter name=linkid value=100/
   /map:generate
   [...]
/map:match

In my xsp page I do this:

xsp:logic
   try{
   String linkid = parameters.getParameter(linkid);
   }catch(org.apache.avalon.framework.parameters.ParameterException e){
   String linkid = 100;
   }
/xsp:logic

xsp:exprlinkid/xsp:expr

And I get this:

*type* fatal

*message* _Failed to execute pipeline._

*description* _org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
page2_xml: ERROR 1 
(/home/u13209/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/localhost/mh-portal/cocoon-files/org/apache/cocoon/www/jndi_/localhost/mh_portal/portal/resources/free/page2_xml.java): 
... this.characters(\n\t); // start error (lines 432-432)  variable 
linkid not found in class 
org.apache.cocoon.www.jndi_.localhost.mh_portal.portal.resources.free.page2_xml 
XSPObjectHelper.xspExpr(contentHandler, linkid); // end error 
this.characters(\n\t); this.characters(\n ); ... Line 432, column 
48: variable linkid not found in class 
org.apache.cocoon.www.jndi_.localhost.mh_portal.portal.resources.free.page2_xml 
Line 0, column 0: 1 error _

*Thank you for helping


*



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

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



Re: Problem with get map:parameter/ in xsp

2002-12-28 Thread Björn Voigt
Sorry for wasting your time

I've just found a solution for my problem in the mailinglist-archives


Björn Voigt


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

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




Re: wsproxy generator

2002-12-28 Thread Ivelin Ivanov

Sorry, misunderstood. I am not sure about excalibur.



- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 27, 2002 3:19 PM
Subject: RE: wsproxy generator


 right, but my response was about HTMLGenerator - he needed the results to
go
 through tidy.  Do you know off hand if excalibur source supports https?

 Geoff

  -Original Message-
  From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 26, 2002 10:31 PM
  To: [EMAIL PROTECTED]
  Subject: Re: wsproxy generator
 
 
  Actually, the WSProxyGen is using Jakarta HttpClient lib, which in turn
  supports HTTPS.
 
 
 
  - Original Message -
  From: Geoff Howard [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, December 26, 2002 12:33 PM
  Subject: RE: wsproxy generator
 
 
   Don't know that off hand - it's using Excalibur Source
  Resolver, so you'll
   have to go digging through docs/source there.
  
   Unfortunately, 90% of the time, the api docs at excalibur give a 404.
I
   often wish the Avalon/Excalibur docs from the appropriate version were
   bundled with cocoon and this is one of those times.
  
   It may be faster to just try it.
  
   Geoff
  
-Original Message-
From: Sushil Bhattarai [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 26, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: RE: wsproxy generator
   
   
   
Thanks for the suggestion. Does html generator retrieve remote
sources
  by
https also or does it support http only? I've read that
  webserviceproxy
works with https. If html generator works with https as well then
that would
be super and solve all my problems.
   
Sushil
   
From: Geoff Howard [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: wsproxy generator
Date: Tue, 24 Dec 2002 11:41:46 -0500

Yes, you can use WebProxyGenerator with any url, but yes it
needs to return
xml.

If you need to retrieve arbitrary html content it would be
  safer to use
HTMLGenerator, which can retrieve remote sources via http,
  and runs the
input through Tidy before sending the sax events through the
  pipeline,
guaranteeing [?] that you get wellformed xml.

There is an example this in the samples that ship with cocoon,
coincidentally using yahoo as an example.  If the sample is
broken, there
is
a good chance that a recent yahoo site redesign has broken the
xpath used
in
the example, as has happened in the past.

Hope that helps,
Geoff Howard

  -Original Message-
  From: Sushil Bhattarai [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 24, 2002 10:39 AM
  To: [EMAIL PROTECTED]
  Subject: wsproxy generator
 
 
 
  Hello
 
  Does wsproxy generator work only with xform or does it work for
  any url. If
  it works for any url, does that url need to return xml output?
If
  it doesn't
  how to get around it?
 
  I'm trying to call a url which basically returns html.
  But I want to
  serialize this as xml and put it in my pipeline so that I can
  manipulate the
  xml and extract whatever I want to. Is this possible using
  wsproxy or am I
  in the wrong direction. Can I do this to get yahoo page as xml
 
  map:match pattern=yahoo
 map:generate type=wsproxy src=http://www.yahoo.com/
map:serialize type=xml/
  /map:match
 
  Thanks
  Sushil
 
 
 
_
  MSN 8 with e-mail virus protection service: 3 months FREE*.
 
http://join.msn.com/?page=features/virusxAPID=42PS=47575PI=7324
  DI=7474SU=
 
http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_e
liminateviruses_3mf


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

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




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

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
_
The new MSN 8: smart spam protection and 3 months FREE*.
http://join.msn.com/?page=features/junkmailxAPID=42PS=47575PI=7
324DI=7474SU=
http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_s
   martspamprotection_3mf
  
  
   

RE: [demostration] Re: xsl through pipelin [anyone can help?]

2002-12-28 Thread Conal Tuohy
Instead of creating elements with xsl:element name=foo namespace=bar/,
you can also use a namespace alias. The namespace-alias xsl element is used
mostly for this purpose (xsl generating xsl).

Cheers

Con

See http://www.google.com/search?q=namespace%2Dalias


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

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