Re: split in sitemap

2003-06-23 Thread Luca Morandini
[EMAIL PROTECTED] wrote:
But is there no function to do that? Because I saw on a sample (sampes/modules) that a concat function is used: 
map:parameter name=session [truncated] value={request:concat('org. ... .', substring(session, 36))} / 

So maybe there is a split function also?

not all input modules let you use XPath expressions, and, AFAIK, the 
request parameter module is one of those :(

Regards,

--
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://space.virgilio.it/kumora/index.html
--


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


RE: sql transformer question; *not* esql... (was RE: ???ESQL upda te table???)

2003-03-18 Thread Luca Morandini
 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 5:18 PM
 To: '[EMAIL PROTECTED]'; 'Luca Morandini '
 Subject: RE: sql transformer question; *not* esql... (was RE: ???ESQL
 upda te table???)

 sitemap).  has anyone else run into a similar situation?  of course, i could
 write (i'd rather find one already developed ;-) another transform to
 strip offending characters (such as single-quotes) for each variable but i'd
 rather not.  any ideas?  do i need to re-design my approach?

I convert ìnput data using an XSL template: slow but portable.

An XSL extension function would do the trick faster, I presume hmmm

Regards,

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




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



RE: sql transformer question; *not* esql... (was RE: ???ESQL upda te table???)

2003-03-18 Thread Luca Morandini
 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 6:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: sql transformer question; *not* esql... (was RE: ???ESQL
 upda te table???)
 
 
 do you mind sharing the template? =-)  --chris

not at all (mind, it just converts single quotes in double-single quotes).

xsl:template name=escape-apos
xsl:param name=string /

xsl:choose

xsl:when test='contains($string, apos;)'

xsl:value-of select='substring-before($string, apos;)' /
xsl:text''/xsl:text

xsl:call-template name=escape-apos
xsl:with-param name=string select='substring-after($string, 
apos;)' /
/xsl:call-template

/xsl:when

xsl:otherwise
xsl:value-of select=$string /
/xsl:otherwise

/xsl:choose

/xsl:template

Regards,

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


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



RE: sql transformer question; *not* esql... (was RE: ???ESQL update table???)

2003-03-17 Thread Luca Morandini
Christopher,

IIUC, you need substitution: go to 
http://xml.apache.org/cocoon/userdocs/transformers/sql-transformer.html and look for 
the
Substitution topic

Regards,

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


 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 1:53 AM
 To: Delis, Christopher E.; ''[EMAIL PROTECTED]' '
 Subject: sql transformer question; *not* esql... (was RE: ???ESQL update
 table???)


 i replied to the wrong topic.  sorry...  what i meant to ask was:  is there
 a place-holder mechanism available using the sql transformer?   --chris

 -Original Message-
 From: Delis, Christopher E.
 To: '[EMAIL PROTECTED]'
 Sent: 3/17/03 9:48 AM
 Subject: RE: ???ESQL update table???

 on a slightly different note, is there place-holder functionality in
 esql
 stylesheet language?  e.g.,

 insert into atable (field1, field2) values (?, ?)
 select * from atable where field1 = ? limit ?
 ...

 TIA,
 chris


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 14, 2003 9:20 AM
  To: [EMAIL PROTECTED]
  Subject: ???ESQL update table???
 
 
  Hi,
  This is a part of a query. My problem is that when I make a
  SELECT right
  after an INSERT I don't get the last updated query :
 
  ---
  esql:execute-query
   esql:query
INSERT INTO Actions  (at_name, at_order)
VALUES ('esql:get-string column=at_name ancestor=1/',
  xsp:exprnouvOrder/xsp:expr)
   /esql:query
   esql:update-results/
  /esql:execute-query
 
  esql:execute-query
   esql:query
SELECT TOP xsp:exprmyTopCnt/xsp:expr * FROM Actions
WHERE at_order = xsp:exprmyOrderID/xsp:expr
ORDER BY at_id DESC
   /esql:query
   esql:results
   esql:row-results
xsp:logic
  nouvActionName = esql:get-string column=at_name/;
/xsp:logic
   /esql:row-results
   /esql:results
  /esql:execute-query
 
  esql:execute-query
   esql:query
SELECT TOP 1 * FROM Actions
WHERE at_name = 'xsp:exprnouvActionName/xsp:expr'
ORDER BY at_id DESC
   /esql:query
   esql:results
   esql:row-results
 xsp:logic
  nouvAction = esql:get-int column=at_order/;
 /xsp:logic
/esql:row-results
   /esql:results
  /esql:execute-query
  ---
  What I mean is that in the last execute-query the value
  esql:get-int
  column=at_order/ returns a value, but in my SQL Profiler I get a
  query witch returns another value (the right)
  I think that it is due to the refreshing from the insert, because the
  insert value is queried!
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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

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



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



[ANNOUNCEMENT] Fins 0.1.0 released (aka ChartTransformer)

2003-03-17 Thread Luca Morandini
Folks,

we are pleased to introduce you the FINS Project (aka ChartTransformer).

The aim of this project is to equip the Cocoon community with a set of
sitemap components able to generate professional charts in different formats
(SVG, PNG, JPEG) using the JFreeChart library.
The long-term goal is the implementation of all the chart types contained in
that library.

The project home page, kindly hosted by CocoonDev, can be found at: 
http://www.cocoondev.org/projects/fins.html

The first release is the 0.1.0, which adds a number of significant improvement over 
ChartTransformer:
1) New chart types: time series, XY
2) Improved performance: you can now use a serializer to gain 5x-10x performance 
improvements for your raster charts
3) Some cosmetics: background images
4) Logarithmic Y axis and moving averages on time series
5) More samples

On the con side, the XML schema for input documents has changed... we're sorry, but 
this move was necessary to accomodate those new
chart types.

Enjoy !

The Fins team.

P.S.
On a personal note, let me remember you that, on my 30 Jan 2003 message (to 
cocoon-dev), I promised to do some things... here's
their status:

1) Bring the JFreeChartTransformer (aka ChartTransformer) under the aegis of
CocoonDev.
DONE.

2) Start collaborating with the Wings project on a common XML schema for charts,
hence letting the user choose which transformer suits him/her best
NOT DONE: unfortunately me and the Wings team weren't able, so far, to converge on a 
common schema.

3) Setup a new Cocoon-GIS sub-project in CocoonDev
DONE... though it is almost empty: me and David Crossley will work on it during the 
next few weeks.

4) Donate, to the prospective Cocoon-GIS project (see 3), a transformer to connect
Cocoon with ArcIMS, a proprietary web-mapping package
NOT DONE YET: see point 3

I plan to complete the deliver of points 3 and 4 in a few weeks... hopefully :|

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



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



RE: Chart transformer

2003-03-14 Thread Luca Morandini
 -Original Message-
 From: Rajasekhar Atchutuni [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 12:31 AM
 To: [EMAIL PROTECTED]
 Subject: Chart transformer
 
 

 Not only is the graph not generated, but even the xml for the graph is not 
 being generated.  I get this error instead:
 
 XML document must have a top level element. Error processing resource

Rajasekhar,

IIUC, the input XML is somehow not well-formed, hence ChartTransformer cannot work 
properly.

Could you show us the offending input XML ?

Regards,

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


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



RE: sql result tags = column names minus case / any way to get case sensitive tags?

2003-03-13 Thread Luca Morandini
 -Original Message-
 From: Brian Johnson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 3:35 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: sql result tags = column names minus case / any way to get
 case sensitive tags?

 The SQLTransformer calls toLowerCase() on the column names when it
 serializes them. I'm not sure what the reason for this is. Does anybody
 know? Is it because case is driver dependent?
 Brian

I presume it is for having the same element names in output, regardless the case of 
names specifed in the query or returned from the
database's data dictionary.

Regards,

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



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



RE: sql result tags = column names minus case / any way to get case sensitive tags?

2003-03-13 Thread Luca Morandini
 -Original Message-
 From: Brian Johnson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 4:14 PM
 To: [EMAIL PROTECTED]
 Subject: Re: sql result tags = column names minus case / any way to get
 case sensitive tags?
 
 
 In my case, I would rather have it use the case returned by the query. 
 Maybe calling toLowerCase() should be an option?

It certainly could be an option... and a very simple to implement at that :)

You could, for instance, submit a patch to cocoon-dev and see whether they agree or 
not.
BTW, the default option should be lowercase, to avoid breaking existing code.

Regards,

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


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



RE: SQLTransformer stored procedure question

2003-03-11 Thread Luca Morandini
 -Original Message-
 From: Irv Salisbury III [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 6:38 PM
 To: [EMAIL PROTECTED]
 Subject: SQLTransformer stored procedure question

 I call an existing stored procedure with:
 
 sql:execute-query
 sql:query isstoredprocedure=true
 begin qChange.R_IMS_CHANGE( 'ALZHEIMERS', '1999 Q3', 
 'NRX', ?); end;
 /sql:query
 sql:out-parameter sql:nr=1 sql:name=resultset 
 sql:type=oracle.jdbc.driver.OracleTypes.CURSOR/
 /sql:execute-query
 
 However, I get an ORA-08103: object no longer exists error at 
 SQLTransformer:1250.  This line looks like it is simply calling 
 getObject on the CallableStatement.  Any reason why I might be getting 
 this ?

Irv,

the syntax is correct... it could be a JDBC driver problem... hmmm... 
Could you try the same statement using Java instead of Cocoon ?

Regards,

P.S.
You're absolutely sure that SP, with those parameters' values, returns a valid cursor, 
aren't you ?

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



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



RE: Accessing nrofrows from SQL Transformer within Stylesheet

2003-03-11 Thread Luca Morandini
 -Original Message-
 From: Samuel Bruce [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 7:23 PM
 To: cocoon
 Subject: Accessing nrofrows from SQL Transformer within Stylesheet
 
 

 
 My stylesheet snippet is:
 xsl:template match=records
   NumberOfRows
 xsl:value-of select=sql:rowset/@nrofrows/
   /NumberOfRows
 /xsl:template
 
 I have no problem accessing the sql rows, but I cannot
 access the nrofrows attribute. What am I doing wrong?
 

try using the sql namespace as prefix to attributes as well as element names), like 
in:
xsl:value-of select=sql:rowset/@sql:nrofrows/

Regards,

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

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



RE: Problem installation cocoon 2.0.4 on tomcat 4.1.18

2003-03-06 Thread Luca Morandini
 -Original Message-
 From: silvio [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 06, 2003 5:14 PM
 To: [EMAIL PROTECTED]
 Subject: Problem installation cocoon 2.0.4 on tomcat 4.1.18


 Hi,
 I want install Cocoon 2.0.4 on Tomcat 4.1.18 with Jdk 1.4.0 and  Windows
 2000 sp3
 but in instruction to instal
 (http://xml.apache.org/cocoon/installing/index.html) there is not specified
 what do for this case but only for installing on tomcat 4.0.x.
 Where can I find instruction for this installation?

I fear there's none... but don't panic, it's straightforward:

1) Install JDK 1.4.1_01 (AFAIK, 1.4.0 has some bugs)
2) Install Tomcat 4.1.x (I installed 4.1.12 LE 1.4)
3) Compile Cocoon for JDK 1.4
4) Put the cocoon.war under webapps
5) Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the .\lib\core\ to 
the %TOMCAT_HOME%\common\endorsed directory (or
in the endorsed of the JRE, but then you have to change a variable in catalina.bat). 
BTW, I've copied xercexImpl.jar as well.

Regards,

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



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



RE: ChartTransformer problems (deleting tag names)

2003-02-27 Thread Luca Morandini
 -Original Message-
 From: Mark H [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 8:13 PM
 To: Cocoon-Users
 Subject: ChartTransformer problems (deleting tag names)


 I'm trying to get chart transformer working but it seems to be deleting the
 tag names in the output. I'm not sure if this is a cocoon issue or
 chartTransformer. Anybody else come across this?

Mark,

I presume this is not a ChartTransformer issue, since your input is the same minimal 
sample we used in different environments
(Solaris, Windows 2000), with different servlet containers (Tomcat, WebLogic, 
Jetty)... though we tested it only under Cocoon
2.0.3... hmmm... which Cocoon version are you using ?

Regards,

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


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



RE: Mounting Sub-Sitemap from outside cocoon-dir...

2003-02-25 Thread Luca Morandini
 -Original Message-
 From: Menke Jörg,E2 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 10:47 AM
 To: '[EMAIL PROTECTED]'
 Subject: Mounting Sub-Sitemap from outside cocoon-dir...


 map:match pattern=test
  map:mount check-reload=yes reload-method=synchron
 src=x:/test/sitemap.xmap uri-prefix=test/
 /map:match

Try with 3 slashes... like in:

 map:match pattern=test
  map:mount check-reload=yes reload-method=synchron
src=file:///x:/test/sitemap.xmap uri-prefix=test/
 /map:match


 Is this possible at all? Eg: can you reference a sitemap, or even only
 a ressources directory (for styles p.e.) that is outside the
 cocoon-installation?

BTW, static contents are better left to the web-server, look into
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-4 for details

Regards,

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



 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi!
 For better integration into the versioning-system (clearcase in this
 case) I tried to let the locally installed cocoon (running in Weblogic
 7) mount a subsitemap on a different drive (I'm stuck on Windows at
 the moment... :-( ). This did not work... Examples:

 map:match pattern=test
  map:mount check-reload=yes reload-method=synchron src=x:/test/
 uri-prefix=test/
 /map:match

 or


 or


 Is this possible at all? Eg: can you reference a sitemap, or even only
 a ressources directory (for styles p.e.) that is outside the
 cocoon-installation?

 Thanks in advance,

 cu, Jörg

 -BEGIN PGP SIGNATURE-
 Version: PGP 6.0.2

 iQA/AwUBPlstjf+R/hOShE1OEQJrbwCbBs7N+CWYrYAa9iGx0JLdso9yAloAoNSS
 jkuV9MVtopDvK/MiDCjSxyxA
 =sS11
 -END PGP SIGNATURE-

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



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



RE: HOW DO I BUILD THE WAR FILE?

2003-02-23 Thread Luca Morandini
-Original Message-
From: Chance, Sam USA [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 4:36 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: HOW DO I BUILD THE WAR FILE?


 I'm sorry, but I'm a newbie.Can someone please tell me how to build Cocoon2.1 to 
 include
 the war file? .please?

On my system (Win2000) I built the war with the usual:

.\build.bat -Dinclude.webapp.libs=yes webapp

and then deployed the resulting war without any problem. Are you experiencing troubles 
with this build target ?

That said, a couple of things:

1) Could you please direct these kind of questions to cocoon-users only ? The dev list 
has been set up for other purposes.
2) Next time, please, use plain text messages, not HTML

joke
Are you planning to port Cocoon on a AN/UYK-44 ? It will make a nice replacement for 
the current software... possibly a little
slower though :)
/joke

Regards,

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



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



RE: HOW DO I BUILD THE WAR FILE?

2003-02-23 Thread Luca Morandini
 -Original Message-
 From: Amélie Cordier [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 23, 2003 2:56 PM
 To: [EMAIL PROTECTED]
 Subject: Re: HOW DO I BUILD THE WAR FILE?



 Luca is right, you should do what he said...


Amélie, unfortunately, I was wrong... as Stefano pointed out in the cocoon-dev list, 
the build system of 2.1 has been completely
re-done this week.

Hence, if you use the latest CVS, you should read the build.xml and go figure, since 
there still a few problems and no doc (no
wonder, being the CVS, by its very definition, a work in progress).

OTOH, if you happen to use the old build system of 2.1, my (and your) suggestion 
makes sense.

Regards,

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



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



RE: HOW DO I BUILD THE WAR FILE?

2003-02-23 Thread Luca Morandini
 -Original Message-
 From: Chance, Sam USA [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 23, 2003 7:17 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: HOW DO I BUILD THE WAR FILE?
 
 
 Roger all...except deploying Cocoon on a AN/UYK-44!  :-)

;)
 

 Any ideas on the cocoon.xconf error?

I think this problem has been taken care of (quoting from cocoon-dev):

 -Original Message-
 From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 23, 2003 5:23 AM
 To: [EMAIL PROTECTED]
 Subject: Re: New Build Report

  I also get the error reported earlier - Not allowed to define 
 mixed content
  in the element cocoon at
  
 file:/D:/cvs/xml-cocoon2/build/cocoon-2.1-dev/webapp/WEB-INF/cocoo
 n.xconf:3:
  23
  
  I looked over cocoon.xconf and didn't see any problem.
 
 fixed as well. it was a spurious '--' leftover that closed the comment 
 before I expected and my text editor didn't syntax highlight it 
 correctly and strangely enough the parser didn't complain about the 
 other -- that was left in the text, very strange.
 

Regards,

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



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



RE: Session problems!!!

2003-02-21 Thread Luca Morandini
Maxime,

have you already checked the list of attributes by using: 
xsp-session:get-attribute-names as=xml/ ?

This in order to know whether it has been created (and then it is a problem with its 
value), or it has not (and then it is a sesison
problem).

Regards,

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


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 9:27 AM
 To: [EMAIL PROTECTED]
 Subject: Session problems!!!


 How does sessions work???
 I created a login form like in the Cocoon developer's handbook
 chapter8, then the login xsp page as in the book.
 That works, I get on my page something like this
 User 'Guest' has been authentificated  but when I write

 xsp-session:get-attribute name=user/


 I don't get anything!!!

 Please help!

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



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




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 9:53 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!
 
 
 When I write xsp-session:get-attribute-names as=xml/ I don't get
 anything. Does that mean my session is not created? But I specified 
 xsp:page language=java 
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-session=http://apache.org/xsp/session/2.0;
   create-session=true
 
 
 And then xsp-session:set-attributeuser/xsp-session:set-attribute;
 Where user=Guest

shouldn't it be: xsp-session:set-attribute 
name=useruser/xsp-session:set-attribute ?

Regards,

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



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




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:05 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!
 
 
 Both are correct. The problem is somewhere with the creation of the
 session.
 

Let's put it this way: this works just fine on my 2.0.3:

?xml version=1.0 encoding=iso-8859-1 standalone=yes?
xsp:page
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true

page
xsp-session:set-attribute name=status/
xsp:logic
String user=guest;
/xsp:logic
xsp-session:set-attribute 
name=userxsp:expruser/xsp:expr/xsp-session:set-attribute
xsp-session:get-attribute-names as=xml/
xsp-session:get-attribute name=user as=xml/
/page

/xsp:page

Regards,


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



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




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:42 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!


 If I copy the code you have I get nothing! Just
 Guest
 But that's because of xsp:expruser/xsp:expr, and when I write
 xsp-session:get-attribute name=user as=xml/ I don't get anything!

Hmm... therefore it should be something related to your environment, have you already 
searched the list or bugzilla for such
anomalies ?

BTW, which environment are you working on (mine is Tomcat 4.0.1 and Cocoon 2.0.3 on 
Windows 2000) ?

Regards,

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




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




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:50 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!


 The versions are the same, I'm just using it under Windows NT4 SP6.
 I'll try to copy the sample and modify it...

 What is bugzilla?

The bug repository of Cocoon (well, of many other projects, actually), check it out 
at: http://nagoya.apache.org/bugzilla/index.html

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



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




RE: How to get session attributes in XSL

2003-02-17 Thread Luca Morandini
 -Original Message-
 From: Xavier RODRIGUEZ [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 17, 2003 8:59 AM
 To: [EMAIL PROTECTED]
 Subject: How to get session attributes in XSL

 Is it posible to get session attributes in an XSL?

The short answer is yes.

The long answer is:

There are many ways to do such, but, first, take a look at the InputModules 
(introduced, AFAIK, in 2.0.4). Doc on InputModules is
thin, but they are worth spending some time on.

You could use as well the SessionAttributeMatcher matcher, which returns the given 
session variable as attribute 1 of the
pipeline. Then, you can pass that parameter to your sylesheet.

What you should avoid, however, is the use of document(), see: 
http://xml.apache.org/cocoon/faq/faq-xslt.html#faq-6

Regards,

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



-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with myapp to Tomcat/Cocoon
2) Setup an alias named myapp-static pointed to a directory containing your static 
files
3) Use URI like /myapp/dynamic.htlm for dynamic content and URI like 
/myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers serving the 
static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

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


 -Original Message-
 From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 6:14 PM
 To: [EMAIL PROTECTED]
 Subject: how can i get static files REALLY been processed by apache ???


 Hy;

 When i setup apache/tomcat/cocoon, i run into following
 fancy problem. Although what i want seems trivial, but i did not
 manage to get it done (I might not know the magic command to get round it)

 Here is the problem:

 1.) I want all static files been served by apache, i.e.:

  *.gif, *.html, *.jpg

 2.) I want *ALL* other files be served by cocoon.


 Now how should i setup mod_jk.conf 

 this doesn't help:

 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon   cocoon
JkMount /cocoon/  cocoon
JkMount /cocon/*  cocoon
 /IfModule

 because it redirects everything to cocoon. But apache shall
 serve the files mentioned above ...

 This is not complete (Indeed it can never be complete):
 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon/*.xml   cocoon
JkMount /cocoon/*.jsp   cocoon
JkMount /cocon/*.foococoon
...
 /IfModule

 The list could potentially go down endlessly.
 There MUST be an obvious solution to this!

 Anyone can help me here ?

 regards, Hussayn

 --
 Dr. Hussayn Dabbous
 SAXESS Software Design GmbH
 Neuenhöfer Allee 125
 50935 Köln
 Telefon: +49-221-56011-0
 Fax: +49-221-56011-20
 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]



-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
Lajos,

sure this is more elegant, but also slower than using the web-server directly... I 
hate going back to the Application server if not
absolutely necessary :(

Regards,

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


 -Original Message-
 From: Lajos [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 6:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: how can i get static files REALLY been processed by apache
 ???


 Hi Hussayn -

 Here is what I do in almost every cocoon app I do:

 map:match pattern=styles.css
   map:read mime-type=text/css src=/styles/styles.css/
 /map:match
 map:match pattern=**/styles.css
   map:read mime-type=text/css src=/styles/styles.css/
 /map:match

 map:match pattern=*.gif
   map:read mime-type=image/gif src=/images/{1}.gif/
 /map:match
 map:match pattern=**/*.gif
   map:read mime-type=image/gif src=/images/{2}.gif/
 /map:match

 Any gif or css (and you can do the same for jpg, js, etc.) gets
 redirected to the appropriate directory off the webserver root, and
 hence is served by Apache. So, under Apache's DocumentRoot I have
 /images, /styles, /scripts, etc., etc.

 Regards,

 Lajos


 SAXESS - Hussayn Dabbous wrote:
  hy,
 
  thats a very pragmatic idea. i like such approaches.
  but, hmm... wouldn't this need lots of static links
  in your pages ???
 
  i mean, you really must point to the myapp-static pages
  with absolute links. What about maintenance ... ???
 
  seems as if i need to do it in this way, or let cocoon
  serve everything ;-(
 
  Maybe i can plugin something in to apache, or would it be
  a big problem to get mod_JK do what i want (hacking ...) ???
  I'll go and ask the apache-group ...
  and report back, what i get from there maybe in a Wiki ;-) ?
 
  anyway thanks for the tip...
 
  regards, hussayn
 
 
  Luca Morandini wrote:
 
  Hussayn,
 
  I know it is not a smart solution, but it worked for me.
 
  1) Setup mod_jk to redirect everything starting with myapp to
  Tomcat/Cocoon
  2) Setup an alias named myapp-static pointed to a directory
  containing your static files
  3) Use URI like /myapp/dynamic.htlm for dynamic content and URI like
  /myapp-static/static.html for static content
 
  This has the advantage of scaling up well: we have three web-servers
  serving the static content (/myapp-static/*) and one
  app-server serving the Cocoon-generated content (/myapp/*).
 
  Regards.
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 
 
 
  -Original Message-
  From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 6:14 PM
  To: [EMAIL PROTECTED]
  Subject: how can i get static files REALLY been processed by apache ???
 
 
  Hy;
 
  When i setup apache/tomcat/cocoon, i run into following
  fancy problem. Although what i want seems trivial, but i did not
  manage to get it done (I might not know the magic command to get
  round it)
 
  Here is the problem:
 
  1.) I want all static files been served by apache, i.e.:
 
  *.gif, *.html, *.jpg
 
  2.) I want *ALL* other files be served by cocoon.
 
 
  Now how should i setup mod_jk.conf 
 
  this doesn't help:
 
  IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon   cocoon
JkMount /cocoon/  cocoon
JkMount /cocon/*  cocoon
  /IfModule
 
  because it redirects everything to cocoon. But apache shall
  serve the files mentioned above ...
 
  This is not complete (Indeed it can never be complete):
  IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon/*.xml   cocoon
JkMount /cocoon/*.jsp   cocoon
JkMount /cocon/*.foococoon
...
  /IfModule
 
  The list could potentially go down endlessly.
  There MUST be an obvious solution to this!
 
  Anyone can help me here ?
 
  regards, Hussayn
 
  --
  Dr. Hussayn Dabbous
  SAXESS Software Design GmbH
  Neuenhöfer Allee 125
  50935 Köln
  Telefon: +49-221-56011-0
  Fax: +49-221-56011-20
  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]
 
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting

RE: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
 -Original Message-
 From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 6:41 PM
 To: [EMAIL PROTECTED]
 Subject: Re: how can i get static files REALLY been processed by apache
 ???

 thats a very pragmatic idea. i like such approaches.
 but, hmm... wouldn't this need lots of static links
 in your pages ???
 i mean, you really must point to the myapp-static pages
 with absolute links. What about maintenance ... ???

Not really, I've put up this URIs in global parameter and refer to these variables in 
my XSLs: just a change in one XML file if you
want to change these URIs.
BTW, this way is already described in the Cocoon FAQ 
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-4


 I'll go and ask the apache-group ...
 and report back, what i get from there maybe in a Wiki ;-) ?

If you find something better, please, report it back in order to change 
afore-mentioned FAQ.

Regards,

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




 hy,



 seems as if i need to do it in this way, or let cocoon
 serve everything ;-(

 Maybe i can plugin something in to apache, or would it be
 a big problem to get mod_JK do what i want (hacking ...) ???


-
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: Jumping within sitemap?

2003-02-12 Thread Luca Morandini
Sonny,

if a client-side redirect would do, try redirect-to, like in:

map:act type=is-user-logged
!-- logged user stuff --
/map:act
!-- un-logged user stuff --
map:redirect-to uri=doc-stale.html/

Regards,

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

 -Mensaje original-
 De: Sonny Sukumar [mailto:[EMAIL PROTECTED]]
 Enviado el: miercoles, 12 de febrero de 2003 8:59
 Para: [EMAIL PROTECTED]
 Asunto: Jumping within sitemap?
 
 
 
 Hi guys,
 
 I'm wondering if it's possible to jump from one place
 in the sitemap to another.  I made up the following
 code, but it's basically what I'm aiming to do:
 
 map:match pattern=checkout
   map:act type=is-logged-in/
 !-- Customer is logged in, so proceed to first 
  checkout step --
 map:jump jumpto=customer-info-entry/
   /map:act
 
   !-- Customer isn't logged in, so jump to login
 page. --
   map:jump jumpto=customer-login/
 /map:match
 
 map:match pattern=customer-info-entry
   map:generate src=customerInfoEntry.xsp/
   map:transform src=someTransform.xsl/
   map:serialize type=html/
 /map:match
 
 map:match pattern=customer-login
   map:read src=customerLogin.html/
 /map:match
 
 It's like calling a function/method in a programming
 language, and it thus supports reuse of factored out
 code.
 
 Does it make sense?
 
 Please let me know how we can do it! :-)
 
 Thanks,
 
 Sonny
 


-
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: Javadoc in XML Format?

2003-02-11 Thread Luca Morandini
Robert,

I haven't looked into it, but I think this could be something of interest:
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=104370951430904w=2

Regards,

P.S.
Plain text next time, please.

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

-Original Message-
From: Robert Simmons [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:46 AM
To: Cocoon Users
Subject: Javadoc in XML Format?


Greetings, I have been looking for a doclet that will create Javadoc API documentation 
but in XML format. This could then be used
with cocoon to give far mroe control over rendering javadoc. I have looked through the 
internet and it appears Apache had a project
on it at one time but now i cant find any links to it. Anyone know where i could find 
such an animal? The default HTML Javadoc is
such a drag. =)


-- Robert


-
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: resource-exists problem

2003-02-11 Thread Luca Morandini
Ines,

are you absolutely sure the jobs.xml file is located in the same directory of your 
sub-sitemap ?

The url parameter is relative to the sitemap directory. Therefore, if the jobs.xml 
existed in the test directory, you would use
value=test/jobs.xml to properly assess its existence.

Regards,

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


 -Original Message-
 From: Ines Robbers [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 5:05 PM
 To: Cocoon Mailingliste
 Subject: resource-exists problem


 Hello!

 Can someone help me with this:

 map:pipeline
 map:match pattern=test/*
   map:act type=resource-exists
   map:parameter name=url value={1}.xml/
   !-- it's available --
 map:generate src=test/{1}.xml/
 map:transform src=test/style.xsl/
 map:serialize/
/map:act
!-- not found --
map:generate src=test/DocumentNotAvailable.xml/
map:transform src=test/stylesheet.xsl/
map:serialize/
 /map:match
 /map:pipeline

 When I type in http://localhost:8080/cocoon/test/jobs, for some reason
 Cocoon brings up DocumentNotAvailable.xml even though a jobs.xml
 document does exist.
 What am I doing wrong here?

 Many thanks!



 Ines Robbers



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




RE: SQLtransformer repeats namespace

2003-02-05 Thread Luca Morandini
I-Lin,

yes, there are a number of strange things about XML namespaces in SQL Transformer: one 
of those I ironed out myself... the others I
left to Carsten ;)

What I usually do is mention the namespace in the root element and then prefix all 
elements with the sql prefix.

I think it is clearer than implicit prefixes.

Regards,

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


 -Original Message-
 From: I-Lin Kuo [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 05, 2003 10:03 PM
 To: [EMAIL PROTECTED]
 Subject: SQLtransformer repeats namespace


 Running Cocoon 2.04 on Tomcat 4 on Apache 2 on Windows XP with JDK 1.4

 I've been working with Cocoon for a week. I have a simple xml page to be run
 through an SQLTransformer
 
 page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 titleSQLTransformer Test/title
 content
   para
   execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
   query
   select  count(*) as total,
   sum(XID) as IDSUM
   from XMAN
   /query
   /execute-query
   /para
 /content
 /page
 ==
 and this is what I get back (note that xmlns is declared twice in the
 rowset element):
 ==
 ?xml version=1.0 encoding=UTF-8?
 page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 titleSQLTransformer Test/title
 content
   para
   rowset nrofrows=1 xmlns=http://apache.org/cocoon/SQL/2.0;
 
xmlns=http://apache.org/cocoon/SQL/2.0;rowtotal2/totalidsum25/idsum/row/rowset
   /para
 /content
 /page
 ===
 Is this a bug, or did I configure something incorrectly? I can get around
 this by explicitly naming the namespace via execute-query
 xmlns:cocsqlt=http://apache.org/cocoon/SQL/2.0; but that's annoying.

 I-Lin Kuo, Ann Arbor, MI
 Macromedia Certified ColdFusion 5.0 Advanced Developer
 Sun Certified Java 2 Programmer
 Ann Arbor Java Users Group (http://www.aajug.org)


 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail


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




RE: Request Parameters in XSLT

2003-02-04 Thread Luca Morandini
Dan,

take a look at RequestGenerator: since it produces an XML document, it is easy to 
iterate thru all the request parameters whose name
start with val.

Regards,

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


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:02 PM
 To: [EMAIL PROTECTED]
 Subject: Request Parameters in XSLT



 Hello,
   I am still pretty knew to all of this, so please bare with me if this
 seems obvious. I want to be able to process a set of request parameters in
 my xsl stylesheet that have the same name. For example, if I request:

 http://www.foo.com/bar/test?val=1val=2val=3

 is there a way I could iterate through the different values of val in my
 request?

 Currently I am setting use-request-parameters to true in my sitemap for
 the transformer, and then I have xsl:param name=val/ in my stylesheet.
 This works great for the first val but I am not sure how to get the rest
 of them. Is there some sort of array type I can use in my stylesheet or
 something along those lines. I searched the various cocoon resources and
 came up empty handed.

 Thanks for your help!

 Dan Feather



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




RE: [POLL] JDK 1.2 Support

2003-02-03 Thread Luca Morandini
writing on behalf of my customers:

1.3.0 on Solaris
1.3.1 on various Windows (2000 Server, 2000 Professional, XP)

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



-
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: help with presentation wanted

2003-02-03 Thread Luca Morandini
 -Original Message-
 From: Argyn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 2:26 AM
 To: [EMAIL PROTECTED]
 Subject: help with presentation wanted

might I suggest to touch the subjects of re-usability and information hiding ?

If you have a pipeline producing an XML document, you can re-use it in different 
pipelines; moreover, you could change that pipeline
(keeping the same XML format, of course) from a static XML (for prototyping), to one 
produced by a DBMS, to one served by a
web-service without changing the consumer pipelines.

Regards,

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




 Hello

 I'm preparing a presentation/speech on Cocoon. The audience is IT pros and
 managers. I tend to talk about technical aspects of Cocoon projects when
 speaking to strangers :), but this time, the main focus must be the
 features/functionality.

 I've been thinking about this:
 to explain how Cocoon would be usefull in building portals. So the
 advantages would be:
 - configurability and management with sitemaps
 - extensibilty through well defined component interfaces
 - set of prepackaged ready to use components, like PDF serializers
 - content aggregation
 - pipeline architecture, XML/XSL based
 - caching.

 I would appreciate if you can suggest me other topics to cover. Since, I'm
 not too far in my work, I can incorporate them in the presentation.
 Unfortunately, the time is short, min 20 max 45 minutes. So, I'm trying to
 find the best list of topics to impress interested strangers with in half
 hour.

 Thanks,
 Argyn




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




RE: Cocoon use worldwide

2003-01-31 Thread Luca Morandini
 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 10:57 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon use worldwide

 -dont know. I have no acces to printed publications, since BYTE
 (http://www.byte.com) stop sending magazines and I had payed a 2 years
 subscription! 

Antonio,

you should have asked for a full refund... after a couple of months they gave me my 
money back :)

Regards,

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


-
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 Competence Center Updates

2003-01-30 Thread Luca Morandini
 -Original Message-
 From: Robert Simmons [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 1:08 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon Competence Center Updates

 No no no... you dont get it. Im a consumer. Im a professional programmer. Im
 not some guy hackign in his dorm room between classes. I dotn have TIME to
 learn the detailed integrated architecture of every little product I use.
...
 Once I figured out how it worked I would have to
 figure out a resolution to the problem and THEN get apache to accept the
 resolution. All this before my product is done and my customers are looking
 to download and use it. NOT.


Robert,

I agree on the sorry state of the doc in Cocoon; sorry state which I take, partially, 
as a fault of mine, since I wrote only 3-4 FAQ
entries and a couple pages... and I could have done more.

I don't agree on the bug resolution part: I uncovered a couple problems with the 
SQLTranformer: it was easy to fix them and have
them (well, actually one) accepted by the committers.

Compare that with a closed-source product: it would have taken me days struggling with 
the tech support to just have the problem
recognised as such; and then, I would have ended up waiting for the next release.

Regards,

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




-
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: proposal: The Newbies Competence Center

2003-01-28 Thread Luca Morandini
 -Original Message-
 From: Robert Simmons [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 10:41 PM
 To: [EMAIL PROTECTED]
 Subject: Re: proposal: The Newbies Competence Center

 What I would like to see now is a style guide for XML documents that will be
 common to all published cocoon info. In this manner we can apply a standard
 XSLT transform to all documents and the writers would just be using XML to
 accomplish the task. This would give us allot of flexibility. What I am
 talking about is a custom schema (or borrowed one) that all of the
 documentation authors can validate against and that the template authors can
 use to transform. Then I would suggest that the full cocoon samples and
 documentation be put through this framework. It would take some thought
 because you want the ability to have it referencable and indexable. For
 example, I should be able to create a sitemap entry that will combine all
 cocoon docs into one big page and transform it into PDF.

there is an ongoing effort to Forrest-ize [1] all the Cocoon doc, doing (nearly) all 
of the above.

[1] http://xml.apache.org/forrest

Regards,

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



-
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: Getting a generator class to reload.

2003-01-27 Thread Luca Morandini
Robert,

I guess you've alread set the reloadable=true in the context element of your Tomcat 
configuration (or something to that effect in
the servlet container of choice), haven't you ?

Regards,

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

-Original Message-
From: Robert Simmons [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 9:21 AM
To: Cocoon Users
Subject: Getting a generator class to reload.


I am working to create a custom generator and I have deployed my WAR in exploded 
format. The problem is that now when I change the
class file that the generator uses, cocoon keeps using the old class file. How can I 
get the classloader in cocoon to reload the
class?

-- Robert


-
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: newbie question

2003-01-27 Thread Luca Morandini
Tellis,

Cocoon is aimed at generating dynamic content, first and foremost.

Anyway, you can, as the Cocoon-based Forrest does, generate static content out of XMLs 
in batch mode and then drop them in a
web-serves, to improve performance.

Regards,

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


 -Original Message-
 From: Tellis George [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 27, 2003 11:16 AM
 To: [EMAIL PROTECTED]
 Subject: newbie question


 Hi,

 I am quite new to cocoon. I am evaulating web publishing frameworks for my
 company.
 Although Cocoon sounds very promising I am not entiely sure because the
 pages in my
 web application are not static. All of them are dynamically generated on the
 fly. The backend services
 although still under design may be developed using JINI, object databases,
 LDAP etc

 The main reason why I was drawn to cocoon was its multichanel capabilities.
 We may want to target
 the pages to a number of devices - mobiles, PDAs, PCs etc My original
 (very simplistic) design was
 to simply have servlets generate XML and then transform these using XSLT.
 This is where I thought cocoon would help.

 My question is - is cocoon good for static pages or can it be used for
 highly interactive dynamic pages?


 Regards
 Tellis









 _
 Stay in touch with absent friends - get MSN Messenger
 http://messenger.msn.co.uk


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




RE: passing servlet parameters

2003-01-27 Thread Luca Morandini
Jim,

you could just use the default matcher in the pipeline to this effect, like:

map:match pattern=Chart/*/*/ch
map:generate type=serverpages src=xsp/{1}.xsp/
map:transform type=xslt src=stylesheets/{2}.xsl/
map:transform type=chart/
map:serialize type=svg2jpeg/
/map:match

Regards,

P.S.
No HTML messages, please.

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

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 11:38 PM
To: [EMAIL PROTECTED]
Subject: passing servlet parameters


I'm a newbie to cocoon...I'm trying to pass parameters to a pipeline to cocoon.  I 
want to be able to read these parameters to
locate the xsl and xml used in the transform.

for example:
http://test.com/cocoon/50/100

then, within my pipeline, grab the values 50 and 100.  Can I do this within cocoon??

thanks much Jim


-
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: Single JAR with all the libs?

2003-01-26 Thread Luca Morandini
Robert,

I'm not sure I've understood your question, but I like to give it a try.

When you build Cocoon, it produces a WAR file, you just:

1) put the WAR under the webapps of your servlet container
2) re-start the container

The you can deploy your Cocoon app under the mount directory, hence avoid editing 
the general sitemap.xmap (the one in
webapps/cocoon).

Regards,

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

-Original Message-
From: Robert Simmons [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 26, 2003 9:07 AM
To: Cocoon Users
Subject: Single JAR with all the libs?


Is there a way to compress all the cocoon jars into one jar so I can just drop in my 
application server like a golf ball and all
cocoon deployments will have access to it ?

-- Robert


-
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: Single JAR with all the libs?

2003-01-26 Thread Luca Morandini
Robert,

well, if I were you I'd tweak the build.xml to tailor it to your needs, and just tell 
the readers to: 

1) replace the native build.xml with yours
2) run it
3) deploy the resulting WAR.

I have no idea of alternative approaches... sorry :(

Regards,

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

 -Original Message-
 From: Robert Simmons [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 26, 2003 9:57 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Single JAR with all the libs?
 
 
 Ya I know that. I'm not talking about the prebuilt, distributed web
 application. I am trying to develop a strategy for other users to be able to
 use cocoon from within JBoss without having to leap through 15 hoops. So I
 basically want a way I can build cocoon libs and then in each war file I make
 that uses cocoon, I merely need the config files and only things pertaining
 to my stuff and not to cocoon in general.
 
 Getting the kitchen sink build working was a matter of just dropping it in
 JBoss. Now I want to go further and make other applications with the product.
 Right now Id have to resort to telling readers to download cocoon, unpack it,
 rewrite their manifests to include the Cocoon-Libs section, then run the
 build which should convert the old libs to the new location and then install
 cocoon.
 
 Picture this scenario. You want to use cocoon for a front end to a powerful
 EJB based system. Your readers of your book want to download your source code
 and install it and get it running. They need a simple process. Right now the
 process is download the kitchen sink version, figure out what the hell you
 don't need, repack everything and deploy it. Not functional for users of the
 product.
 
 Therefore I keep rolling back around to having a single jar that I can drop
 in JBoss like an oversized golf ball and call cocoon installed and ready
 for users to deploy their OWN war files that use cocoon rather than asking
 them to modify cocoon's war.
 
 I'm not sure if I'm making sense here.
 
 -- Robert
 
 
 - Original Message -
 From: Luca Morandini [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, January 26, 2003 9:41 AM
 Subject: RE: Single JAR with all the libs?
 
 
  Robert,
 
  I'm not sure I've understood your question, but I like to give it a try.
 
  When you build Cocoon, it produces a WAR file, you just:
 
  1) put the WAR under the webapps of your servlet container
  2) re-start the container
 
  The you can deploy your Cocoon app under the mount directory, hence avoid
 editing the general sitemap.xmap (the one in
  webapps/cocoon).
 
  Regards,
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 
  -Original Message-
  From: Robert Simmons [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, January 26, 2003 9:07 AM
  To: Cocoon Users
  Subject: Single JAR with all the libs?
 
 
  Is there a way to compress all the cocoon jars into one jar so I can just
 drop in my application server like a golf ball and all
  cocoon deployments will have access to it ?
 
  -- Robert
 
 
  -
  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]




Smileys Cocoon sample

2003-01-26 Thread Luca Morandini
Robert,

I've taken a look at your code and I'm tinkering with the idea of re-write it using 
Cocoon... could you be of assistance today ?

BTW, there is any other poster who'd like to replicate this example in Cocoon ?

Regards,

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

-
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: Single JAR with all the libs?

2003-01-26 Thread Luca Morandini
 -Original Message-
 From: Robert Simmons [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 26, 2003 1:23 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Single JAR with all the libs?
 
 
 Ok I yanked the manifest file from WEB-INF and it all still seems to work,
 though I don't know about in the full cocoon deployment. Is there any JUnit
 built into this sucker?

have you looked into the the test build target ?

Regards,

P.S.
Don't call it a sucker... it ain't a sucker.

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



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




Smileys Cocoon sample... the sequel

2003-01-26 Thread Luca Morandini
Robert,

I've developed a tentative Cocoon implemtation of your sample.

1) I've defined a suitable selector in order to switch to different contents according 
to its value:
map:selector name=command-selector
src=org.apache.cocoon.selection.RequestParameterSelector
parameter-namecommand/parameter-name
/map:selector

2) Then use it to make the actual switching:
map:match name=wildcard pattern=*.html
map:select type=command-selector
map:when test=SysAdminView
map:generate type=file src=cocoon:/sp-getall-smileys.xml/
/map:when
map:when test=SmileyEditView
map:generate type=file src=cocoon:/sp-get-smiley.xml/
/map:when
map:otherwise
map:generate type=file src=documents/smileys.xml/
/map:otherwise
/map:select
map:transform src=stylesheets/jconfer-page.xsl/
map:serialize type=html/
/map:match

You may notice that now you don't have to aearch the servlets to understand how the 
content-reading switching works, it is all in
one place: the pipeline.

This begs the question: where can you get your content from ? Or, better, how Cocoon 
deals with RDBMS (which are the most common
persistence mechanism around).

Well, I use (as you may infer from the names I gave to contents URIs), Stored 
Procedures via SQLTransformer. Probably not the
fastest way, but sure the most flexible and SoC-oriented.

You can use DatabaseActions, ESQL, or EJBs... which is the option appealing most to 
you, I guess.
How to get an EJB from Cocoon... no idea sorry, I steered well clear of JSP, Servlets 
and EJBs.

Regards,

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



-
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: Smileys Cocoon sample... the sequel

2003-01-26 Thread Luca Morandini

Robert,

I think I misunderstood you.

Did you want the same approach (servlets + EJB + XSL) to work In Cocoon ? It could be 
done, it's only a configuration problem... but
what's the point ?

I mean, if you want to show how Cocoon could help developing apps you should go the 
Cocoon way a little.

This is why I thought useful re-factoring your sample using the sitemap... did you 
need something else, or what ?

Regards,

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


 -Original Message-
 From: Robert Simmons [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 26, 2003 1:55 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Smileys Cocoon sample... the sequel


 I do all my database work in the EJBs on the server side using JDO. JDO is
 basically god for persisting Java objects. =)

 I can probably figure out how to connect the suckers. In fact if I'm  not too
 far off I can drop them in the container and just grab an initial context.
 However what I'm trying to envision is my reader deploying this and shot of
 reproducing the build file or telling my users to unpack the cocoon war, I
 don't know what to do exactly. If there was one jar they could include, it
 would be perfect. I envision a user being able to download a jar file that
 has every one of the classes all jared into one cocoon-all.jar and then
 dropping it as one unit in their WEB-INF/lib directory but I'm not sure how
 to accomplish that. I would also need to know if the path to the cocoon
 properties file and the xconf files are hardcoded as I would like to file
 them away too. but now I'm talking about developing on cocoon and that's what
 I was trying to avoid. Sigh.

 -- Robert.




-
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: Smileys Cocoon sample... the sequel

2003-01-26 Thread Luca Morandini
 -Original Message-
 From: Robert Simmons [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 26, 2003 2:35 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Smileys Cocoon sample... the sequel


 dont forget that this is jsut a very small part of the application and a
 refactoring usign the sitemap is a good thing. But yes, the data will be
 retrieved from EJBs as that is my specialty and what has proven to be ubver
 powerful in the server side. Client side I think cocooncould lay all others
 to waste if I could just get it going down the road im thinkign of.

Which I have not yet understood, I'm afraid.

Anyway, I hold a different view: Cocoon can rule server-side, coupled with some 
business-logic tier, like Stored Procedures or EJBs.

After all, the content-switching mechanism I've showed you in my pipeline belongs to 
the server-side, doesn't it ?

Regards,

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



-
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: XSLT debugger (was RE: .Net port of Cocoon)

2003-01-24 Thread Luca Morandini
Mark,

I don't use XSLT debuggers, I've just configured logkit to put all messages produced 
by Xalan into a single log file.

LogTransformer, as Antonio pointed out, could be useful too.

Nevertheless, there are a number of XSLT debuggers out there, which, if you save the 
XML document before the XSLT stage into a file,
could be used to debug your XSLT... but I never tried them.

Regards,

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


 -Original Message-
 From: Mark H [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 24, 2003 12:20 PM
 To: [EMAIL PROTECTED]
 Subject: XSLT debugger (was RE: .Net port of Cocoon)


 AFAIK, there is no single debugger like this, only a patchwork of
 debuggers, one for XSLT, one for Java...

 Where can I get hold of a XSLT debugger to use with cocoon? a lot of times
 cocoon doesn't provide much debugging information when there is something
 wrong with your stylesheets.

 Mark

 -Original Message-
 From: Luca Morandini [mailto:[EMAIL PROTECTED]]
 Sent: 23 January 2003 17:09
 To: [EMAIL PROTECTED]
 Subject: RE: .Net port of Cocoon


  -Original Message-
  From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 5:05 PM
  To: [EMAIL PROTECTED]
  Subject: Re: .Net port of Cocoon

  
  Granted, there is no debugger in Cocoon,
  
 
  ... and shoud not be: all IDEs as well as JDK has debuggers. Use them
  remotely or start your servlet engine from under it - in either case you
  can put breakpoints and debug your Java.
 
  /me goes back to lurking
  Vadim

 Vadim,

 let's get this straight: since Cocoon is composed of many technologies, a
 Java debugger alone cannot do the work.

 I'd like to debug my XSLT, see the parameters' values as they flow from the
 sitemap to the XSLT, check every stage's XML output, set
 breakpoints in Actions... and more: this is what an ideal Cocoon debugger
 should do.

 AFAIK, there is no single debugger like this, only a patchwork of debuggers,
 one for XSLT, one for Java...


 Regards,

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


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



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




[ANNONUNCEMENT] ChartTransformer 0.0.4 released

2003-01-24 Thread Luca Morandini
Folks,

me and the worthy Piero De Nicola ([EMAIL PROTECTED]) would like to announce 
you the first release (0.0.4) of a Cocoon
transformer able to generate business charts (Bar, Area, Line, Pie, ...) out of plain 
XML.

Some of you may remember me talking about it at the First Cocoon GetTogether in 
Ghent... well, now it's for real :)

Let me just point out that this wouldn't have been possible without some good men at 
the IPZS S.p.A (Istituto Poligrafico e Zecca
dello Stato), which let us make public a piece of software we wrote for a customer of 
theirs.

BTW, thanks to the Forrest team for letting us make so much doc in so little time :)

Enjoy ! And give us some feedback too !

Regards,

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



-
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: [ANNONUNCEMENT] ChartTransformer 0.0.4 released

2003-01-24 Thread Luca Morandini

Oh... I guess I slept too little this night :( 

Anyway, here it is: http://www.sidimar.ipzs.it/site/

Regards,

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

 -Original Message-
 From: Steven Noels [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 24, 2003 4:14 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [ANNONUNCEMENT] ChartTransformer 0.0.4 released
 
 
 Luca Morandini wrote:
 
  Folks,
  
  me and the worthy Piero De Nicola ([EMAIL PROTECTED]) would
  like to announce you the first release (0.0.4) of a Cocoon 
  transformer able to generate business charts (Bar, Area, Line, Pie,
  ...) out of plain XML.
 
 uhm... where can we find it, Luca? ;-)
 
 /Steven
 -- 
 Steven Noelshttp://outerthought.org/
 Outerthought - Open Source, Java  XML Competence Support Center
 Read my weblog athttp://blogs.cocoondev.org/stevenn/
 stevenn at outerthought.orgstevenn at apache.org
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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

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




RE: ChartTransformer and ESQL queries [WAS:[ ANNONUNCEMENT] ChartTransformer 0.0.4 released]

2003-01-24 Thread Luca Morandini
Rajasekhar,

you're the first reported ChartTransformer user: you won a free trip to Las Vegas !
Just kidding ;)

First: ChartTransformer was designed to use databse queries, and we managed to create 
hundreds of charts with it, hence, this is
possible.

Second: the problem most probably lies in the structure of the XML containing your 
data, coudl you give us an example of the input
given to ChartTransformer ?

Regards,

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


 -Original Message-
 From: Rajasekhar Atchutuni [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 25, 2003 12:47 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [ANNONUNCEMENT] ChartTransformer 0.0.4 released


 Hi,


 I am trying to generate a bar graph and having problems.  If I have values
 hard-coded into the xml it generates fine, but am not able to get values
 dynamically and pass them.

 I am getting the values from database using esql queries and want to create
 graphs.  Any help on how to do this.

 Help much appreciated.

 Thanks
 Raj





 Original Message Follows
 From: Mark H [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED],[EMAIL PROTECTED]
 Subject: RE: [ANNONUNCEMENT] ChartTransformer 0.0.4 released
 Date: Fri, 24 Jan 2003 18:03:53 -
 MIME-Version: 1.0
 Received: from apache.org ([208.185.179.12]) by mc2-f13.law16.hotmail.com
 with Microsoft SMTPSVC(5.0.2195.5600); Fri, 24 Jan 2003 10:10:29 -0800
 Received: (qmail 82872 invoked by uid 500); 24 Jan 2003 18:10:19 -
 Received: (qmail 82857 invoked from network); 24 Jan 2003 18:10:18 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 list-help: mailto:[EMAIL PROTECTED]
 list-unsubscribe: mailto:[EMAIL PROTECTED]
 list-post: mailto:[EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Message-ID: [EMAIL PROTECTED]
 X-Priority: 3 (Normal)
 X-MSMail-Priority: Normal
 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
 In-Reply-To: [EMAIL PROTECTED]
 Importance: Normal
 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.
 X-AntiAbuse: This header was added to track abuse, please include it with
 any abuse report
 X-AntiAbuse: Primary Hostname - thunder5.cwihosting.com
 X-AntiAbuse: Original Domain - xml.apache.org
 X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0]
 X-AntiAbuse: Sender Address Domain - markhorgan.com
 X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N
 Return-Path: [EMAIL PROTECTED]
 X-OriginalArrivalTime: 24 Jan 2003 18:10:29.0432 (UTC)
 FILETIME=[E0A68380:01C2C3D3]

 Luca,

 Great work! Should be very useful in a lot of applications. I was thinking I
 could use it to present a report of a database in a project I'm working on.

 Mark

 -Original Message-
 From: Luca Morandini [mailto:[EMAIL PROTECTED]]
 Sent: 24 January 2003 15:17
 To: [EMAIL PROTECTED]
 Cc: Cocoon-users; Forrest-dev
 Subject: RE: [ANNONUNCEMENT] ChartTransformer 0.0.4 released



 Oh... I guess I slept too little this night :(

 Anyway, here it is: http://www.sidimar.ipzs.it/site/

 Regards,

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


   -Original Message-
   From: Steven Noels [mailto:[EMAIL PROTECTED]]
   Sent: Friday, January 24, 2003 4:14 PM
   To: [EMAIL PROTECTED]
   Subject: Re: [ANNONUNCEMENT] ChartTransformer 0.0.4 released
  
  
   Luca Morandini wrote:
  
Folks,
   
me and the worthy Piero De Nicola ([EMAIL PROTECTED]) would
like to announce you the first release (0.0.4) of a Cocoon
transformer able to generate business charts (Bar, Area, Line, Pie,
...) out of plain XML.
  
   uhm... where can we find it, Luca? ;-)
  
   /Steven
   --
   Steven Noelshttp://outerthought.org/
   Outerthought - Open Source, Java  XML Competence Support Center
   Read my weblog athttp://blogs.cocoondev.org/stevenn/
   stevenn at outerthought.orgstevenn at apache.org
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/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

RE: .Net port of Cocoon

2003-01-23 Thread Luca Morandini
Andreas,

wait a second:

 I mean no memory leaks in the VM

Memory leaks ? I've got applications in operation for months without having a single 
hiccup... aren't you confusing the Servlet
container (say, a buggy verisone of Tomcat) with Cocoon ?


 no complicated superlong configration files

That's the con side of flexibility: I hate those GUI-based administration tools that 
don't allow you to do much.


 no VM restarting for debugging

Hmm I never restart the Servlet container (not the VM) for debugging: could you 
please explain ?

Regards,

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


 -Original Message-
 From: Andreas Bednarz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 3:30 PM
 To: [EMAIL PROTECTED]
 Subject: Re: .Net port of Cocoon


 Hi Derek,

 thank you very much for your comment. Yes, it is all true and I am not a
 friend of MS closed sources in any way. We know Java very well but you
 hardly get peoply who can do the real thinks with Cocoon and can develop
 a real application ... not just some test cases and handler forms. In
 thins case a .NET application would not be easier to handle too, but
 maybe there is some company who can provide a Cocoon Clone which is as
 easy to use as PHP. I mean no memory leaks in the VM, no complicated
 superlong configration files, no VM restarting for debugging etc

 Andreas Bednarz, Germany




-
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: .Net port of Cocoon

2003-01-23 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 3:55 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: .Net port of Cocoon

 Hi Luca,

 Hmm I never restart the Servlet container (not the VM) for debugging.
 Could you explain how you debug your Cocoon app?

By looking at the log files (you can easily configure them via logkit.xconf) and by 
using views (meaning: looking at the output of
intermediate steps in the pipeline).

Granted, there is no debugger in Cocoon, but no need to re-start the container either.

Regards,

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




-
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: .Net port of Cocoon

2003-01-23 Thread Luca Morandini
 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 5:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: .Net port of Cocoon

 
 Granted, there is no debugger in Cocoon,
 

 ... and shoud not be: all IDEs as well as JDK has debuggers. Use them
 remotely or start your servlet engine from under it - in either case you
 can put breakpoints and debug your Java.

 /me goes back to lurking
 Vadim

Vadim,

let's get this straight: since Cocoon is composed of many technologies, a Java 
debugger alone cannot do the work.

I'd like to debug my XSLT, see the parameters' values as they flow from the sitemap to 
the XSLT, check every stage's XML output, set
breakpoints in Actions... and more: this is what an ideal Cocoon debugger should do.

AFAIK, there is no single debugger like this, only a patchwork of debuggers, one for 
XSLT, one for Java...


Regards,

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


-
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: Standard in creatring xml files

2003-01-22 Thread Luca Morandini
Alireza,

you can do it in a number of ways, as of now, a couple of those come to my mind:

1) Build an intermediate XSLT stage to transform the found elements in a common 
row/attributes schema... later to be rendered in
HTML by a single XSLT
customer
nameAlireza/name
familyFattahi/family
/customer
or
product
brandIBM/brand
price10,000/price
/product

Will become:
row
columnAlireza/column
columnFattahi/column
/row
or
row
columnIBM/column
column10,000/column
/row

And then they will become:
tr
tdAlireza/td
tdFattahi/td
/tr
or
tr
tdIBMtd
td10,000/td
/tr

2) Build an XSLT which renders any root's children as rows of an HTML table 
(regardless the name of such children) and any children
of them as single HTML columns
Hence:
customer
nameAlireza/name
familyFattahi/family
/customer
or
product
brandIBM/brand
price10,000/price
/product

Will directly become:
tr
tdAlireza/td
tdFattahi/td
/tr
or
tr
tdIBMtd
td10,000/td
/tr

I'd prefer the first approach, since then you can re-use the intermediate schema for 
other purposes.

Regards,

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


 -Original Message-
 From: Alireza Fattahi [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 11:41 AM
 To: '[EMAIL PROTECTED]'
 Subject: Standard in creatring xml files


 Hi,

 We want to create a web site with 40 pages. The site has typical input forms
 and search/search result pages. We want to have some XSL files as the
 template for these pages. Of course we should not have 40 xsl files, but 40
 xml files. But, how?

 Here is an example:
 Suppose we have two search result pages that generate these xml files.
 1)
 customer
   nameAlireza/name
   familyFattahi/family
 /customer

 2)
 product
   brandIBM/brand
   price10,000/price
 /product
 We should create 2 xsl files for parsing if there are 40 files we should
 create 40 file! Is it correct?

 Is there any guideline that can help us creating a standard for these
 typical applications? What standards should be obeyed by (for example) a
 typical search result page?

 Alireza

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




RE: URL-bar (the bar where you type in the URLs in the browser) question

2003-01-21 Thread Luca Morandini
Johannes,

I'm afraid this has nothing to do with Cocoon; anyway, an easy solution is the use of 
a frameset.
You can do all the URI calling within the frameset's frames: this way the displayed 
URI remains the same (I mean the original
frameset URI).

Regards,

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


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 21, 2003 6:15 PM
 To: [EMAIL PROTECTED]
 Subject: URL-bar (the bar where you type in the URLs in the browser)
 question


 Hi,

 I want to avoid that in the URL-bar (the bar where you type in the URLs
 in the browser) certain URLs are displayed.

 For example:
 My sitemap:
 ...
 map:pipelines
   map:pipeline
 map:match pattern=
 map:redirect-to uri=login/
   /map:match

 map:match pattern=login
   map:generate type=serverpages src
 =stylesheets/login.xsp/
   map:serialize/
 /map:match

 map:match pattern=interactive
   map:generate type=serverpages src=interactive.xsp/
   map:transform src=interactive.xsl/
   map:serialize/
/map:match
 

 My aim is, that if I e.g. map:match pattern=interactive is called I
 don't have http://localhost:8080/cocoon/example/interactive; standing in
 the URL-bar.
 Instead I want http://localhost:8080/cocoon/example/; (or something else)
 standing there.

 How can I do that?

 Cheeers
 Jonny

 


 This electronic message contains information from the mmo2 plc Group which
 may be
 privileged or confidential. The information is intended to be for the use
 of the
 individual(s) or entity named above. If you are not the intended recipient
 be aware
 that any disclosure, copying, distribution or use of the contents of this
 information
 is prohibited. If you have received this electronic message in error,
 please notify
 us by telephone or email (to the numbers or address above) immediately.




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




RE: setup natch for dummies

2003-01-21 Thread Luca Morandini
Stavros,

you may try Az [1] from galatea.com: it has Apache, Tomcat and Cocoon.

Regards,

[1] http://www.galatea.com/az/home

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

 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 21, 2003 8:39 PM
 To: [EMAIL PROTECTED]
 Subject: setup natch for dummies
 
 
 
 hi
 
 our problem:
 
 we want to send our work for a presentation to some people
 but our work run only under cocoon
 
 the question:
 is there any project that have an almost ready bat process that
 install java, tomcat, cocoon (based in  pre-configuration files)?
 
 so we create a CD and send this to those people?
 
 i know that something simila (apache, mysql, php) exist
 
 the idea is something like a runtime cocoon environment
 
 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]
 

-
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: Hello and question

2003-01-21 Thread Luca Morandini
Brent,

you may try inserting them into Xindice (an XML DBMS [1]) or, much simpler, search 
them by the use of XSLT.

Though, I must say, time series data beg to live in a Relational model.

Regards,

[1] http://xml.apache.org/xindice/

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

 -Original Message-
 From: Brent Eades [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 21, 2003 10:48 PM
 To: [EMAIL PROTECTED]
 Subject: Hello and question
 
 
 Hello,
 
 A word of introduction... I belonged to the list a year or so back, 
 but got sidetracked from Cocoon for awhile. Now I'm back tinkering 
 with 2.04, and have no shortage of questions.
 
 Here's one (a rather broad and newbie-ish one.) In my project I have 
 a large number of XML files that correspond to time series. Each is 
 the same format:
 
 timeSeries
   seriesNameP12345/seriesName
   observation
 
   date2001-03-12/date
   value1.25/value
 
   date2001-03-13/date
   value1.28/value
 
   /observation  
 /timeSeries
 
 ... etc.
 
 Now: using the various mechanisms available through Cocoon, how best 
 would I query a given file (directly, as opposed to through a 
 database) via an HTML form, e.g., to extract and display only 
 selected dates/values?
 
 I have a vague grasp of various ways I could do this if my data were 
 to reside in an intermediate DBMS of some sort, but the objective 
 here is to store each time series as an XML source file only, while 
 still being able to query it.
 
 Does this make any sense? :)
 
 -
 Brent Eades, Almonte, Ontario
  http://www.almonte.com
  http://www.bankofcanada.ca
 
 
 -
 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]




RE: '\n' character in cocoon output stream

2003-01-14 Thread Luca Morandini
Yuri,

not sure I've understood what you asked...

Anyway, if you want to insert a line feed during an XSLT transformation stage, you 
could do the following in your stylesheet:
firstline#x0a;secondline

Regards,

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


 -Original Message-
 From: Yury Mikhienko [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 14, 2003 8:34 AM
 To: [EMAIL PROTECTED]
 Subject: '\n' character in cocoon output stream


 Hi all!

 Ho to I can insert the '\n' character (0x0a)  in cocoon output stream (in serialized 
document)?
 I wish this symbol add  in transformation step (if it possible).

 Thanx for advise.

 --

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

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




RE: Output beautifier

2003-01-08 Thread Luca Morandini
Miles,

1) have you checked your XML serializer declaration has the indent element set to 
yes ? If it is set to no, the indenting is stripped off while serializing

2) You should use the exclude-result-prefixes attribute of your xsl:stylesheet 
element to get rid of those unwanted namespaces

Best regards,

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

 -Original Message-
 From: Miles Elam [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 8:27 AM
 To: cocoon-users
 Subject: Output beautifier
 
 
 Hi all,
 
 I'm looking for a way to neatly indent and otherwise clean up the output 
 of a XSLT transformation, but the usual method of
 
   xsl:output method=xml version=1.0 indent=yes/
   xsl:strip-space elements=*/
 
 does not appear to work when used with Cocoon.  I also want a easy way 
 of stripping all namespace declarations from the output except for
 
   xmlns=http://www.w3.org/1999/xhtml;
 
 so that the output document will validate according to the W3C DTDs.  As 
 it stands, other namespaces that are used in intermediate parts of the 
 pipeline stick around despite the fact that no element in the output 
 document belongs to those namespaces.
 
 All of the examples I have come across from Google and other resources 
 point me back to the same items which don't seem to work from within the 
 Cocoon framework.  I'd be thankful for any pointers you could give me.
 
 - Miles
 
 
 
 -
 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]




RE: [more] cocoon 204 - core.log - [become bigger without requests]

2003-01-03 Thread Luca Morandini
Stavros,

change the log level in logkit.xconf to FATAL or (better) ERROR.

Anyway, this is not a bug... it is a feature :)

Best regards,

P.S.
By the way, it writes those lines every ten seconds, not every one second.

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

 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 8:24 PM
 To: [EMAIL PROTECTED]
 Subject: [more] cocoon 204 - core.log - [become bigger without requests]
 
 
 
 the core.log entry is:
 
 DEBUG   (2003-01-03) 16:57.03:764   [core.store.janitor] (Unknown-URI)
 Unknown-thread/StoreJanitorImpl: JVM total Memory: 66650112
 DEBUG   (2003-01-03) 16:57.03:764   [core.store.janitor] (Unknown-URI)
 Unknown-thread/StoreJanitorImpl: JVM free Memory: 24154624
 DEBUG   (2003-01-03) 16:57.03:764   [core.store.janitor] (Unknown-URI)
 Unknown-thread/StoreJanitorImpl: Memory is low = false
 
 
 
 On Fri, 3 Jan 2003, Cocoon User wrote:
 
 
 
  hi people
 
  i have compile and install the latest cocoon 2.0.4
 
  redhat 7.1
  java 1.3
  tomcat 4
 
  we plan to replace cocoon2rc1 in our prodaction machine
 
  the problem is that core.log file become bigger avery second
  when we dont ask any page cocoon add every second the entry:
 
  DEBUG   (2003-01-03) 21:04.45:443   [core.store.janitor] (Unknown-URI)
  Unknown-thread/StoreJanitorImpl: JVM free Memory: 12818096
 
  in ths machine whe have cocoon2rc1 working without problem for the last 14
  months
 
 
  is something strange happend here? he have to be completly sure that
  everything work fine before replace cocoon in this machine
 
 
 
  is there any answer ebout this problem?
 
 
  thanx
  Stavros Kounis
 
 
 
  -
  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]
 

-
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: How to control a user already is logged?

2002-12-30 Thread Luca Morandini
Antonio,

I dislike actions... but, on occasions, they're useful:

/*
 *
 * @(#)IsUserLoggedAction.java
 * @version 0.1.0 08/07/02
 *
 * Descrizione:
 * Controlla che l'utente sia loggato, restituisce una mappa vuota
 * se lo è, e null se non è loggato.
 *
 * Storia:
 * @author a href=mailto:[EMAIL PROTECTED];Luca Morandini/a
 * 08/07/02 Creazione
 *
 */

package com.lucamorandini.cocoon;

import org.apache.avalon.framework.parameters.Parameters;
import org.apache.avalon.framework.thread.ThreadSafe;
import org.apache.cocoon.Constants;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.Session;
import org.apache.cocoon.environment.SourceResolver;
import org.apache.cocoon.acting.AbstractAction;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;


public class IsUserLoggedAction extends AbstractAction
implements ThreadSafe {

public Map act( Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters param )
throws Exception {

try {
Request req= ObjectModelHelper.getRequest(objectModel);
if (req == null) {
getLogger().debug(IsUserLoggedAction: no request object);
return null;
}

Session session= req.getSession(false);
if (session == null) {
getLogger().debug(IsUserLoggedAction: no session object);
return null;
}

Object par= session.getAttribute(sessionParameters);
if ( par == null ) {
getLogger().debug(IsUserLoggedAction: user is not logged);
return null;
} else {
getLogger().debug(IsUserLoggedAction: user is logged);
Map map= new HashMap();
return map;
}
} catch (Exception e) {
getLogger().debug(IsUserLoggedAction: exception  + e);
}

return null;
}
}

This is the way to use it in the sitemap:

map:actions
map:action name=is-user-logged
src=com.lucamorandini.cocoon.IsUserLoggedAction/
/map:actions

map:match name=wildcard pattern=selectchangeform.html
map:act type=is-user-logged
!-- Do something, since user is logged --
/map:act
!-- Do something else, since user is NOT logged --
/map:match

Best regards,

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


 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 30, 2002 11:58 AM
 To: [EMAIL PROTECTED]
 Subject: How to control a user already is logged?


 Hi.

 I am trying to implement a control that a user cannot log from another
 computer if he is already logged-in.

 Where I can find the info about sessions to check if somebody is already
 logged?

 Thanks in advance,

 Antonio Gallardo.





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




RE: sitemap [if or select case]

2002-12-30 Thread Luca Morandini
Stavros,

I presume the ParameterSelector selector is the Cocoon component closest to your need.

Or, you may use WildcardRequestParameterMatcher to write pipelines checking request 
parameters' values instead of URIs... though
this is not EXACTLY a select/case construct.

See it for yourself at: 
http://xml.apache.org/cocoon/userdocs/concepts/matchers_selectors.html

Best regards,

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


 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 30, 2002 5:20 PM
 To: [EMAIL PROTECTED]
 Subject: sitemap [if or select case]



 hi people
 is it possible to have any if or select case implementation

 into sitemap.xmap?


 i'm thinking to get a parameter from the requested URL
 and then call pipelines relative the requested url parameter



 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]



-
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: XML form and database

2002-12-29 Thread Luca Morandini
Poornima

there are numerous examples with mySQL in books devoted to Cocoon and in some entries 
of this mailiing list: wet your feet, you'll
find yourself swimming :)

Best regards,

Disclaimer: I've not tried mySQL with Tomcat 4.1 and Cocoon 2.1... but I bet this 
conbination is no different from the one I used
(Tomcat 4.0.1, Cocoon 2.0.3, mySQL and/or Oracle 8.1.7)

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


 -Original Message-
 From: poornima ponnuswamy [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 29, 2002 4:34 PM
 To: [EMAIL PROTECTED]
 Subject: XML form and database


 Hello All,
 I need to get the XML form input and store it in a
 database. Is there any help available for cocoon 2.1
 dev to connect to the database. I see an example
 Introduction to Cocoon 2 by Leigh Dodds. Does this
 work for Cocoon 2.1, MySQl and Apache tomcat 4.1. Can
 anyone please help me to proceed with my project.
 Thanks for any help provided
 poornima

 __
 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. http://xml.apache.org/cocoon/faq/index.html

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




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

2002-12-24 Thread Luca Morandini
Stavros,

ok, I've downloaded the demo and installed it... could you tell me where is, exactly, 
the problem ?

Best regards,

P.S.
I'm about to go out for a trip: if you want some help from me hurry up... in a couple 
of hours I will be out of your reach !

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

 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 24, 2002 11:00 AM
 To: [EMAIL PROTECTED]
 Subject: [demostration] Re: xsl through pipelin [anyone can help?]
 
 
 
 i have a working demo that pass a xsl file through pipeline and call it
 using
 cocoon:/ protocol to transform other .xml's
 
 but i have problems to create this .xsl using xml/xsl (confused with
 namespaces)
 
 demo files are:
 http://www.osmosis.gr/temp/osDynXSL.zip
 
 
 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]
 

-
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: [demostration] Re: xsl through pipelin [anyone can help?]

2002-12-24 Thread Luca Morandini
Stavros,

I guess you aren't aware of that little nameapace attribute :)

Anyway, here are the modified pipelines:

!-- HTML output by generated XSL--
map:match pattern=hello.html
map:generate src=./htdocs/hello.xml/
map:transform src=/cocoon:sitebuilder.xsl/
map:serialize type=html/
/map:match

!-- XSL through pipeline by XSLT --
map:match pattern=sitebuilder.xsl
map:generate src=./htdocs/hello.xml/
map:transform src=./htdocs/makexsl.xsl/
map:serialize type=xml/
/map:match

...and here's the makexsl.xsl stylesheet doing the trick:

?xml version=1.0 encoding=UTF-8?

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

xsl:template match=/

xsl:element name=xsl:stylesheet
namespace=http://www.w3.org/1999/XSL/Transform;

xsl:element name=xsl:template
namespace=http://www.w3.org/1999/XSL/Transform;
xsl:attribute name=matchpage/xsl:attribute

xsl:element name=html
xsl:element name=head
xsl:element name=title
hello...
/xsl:element
/xsl:element
xsl:element name=body
xsl:element name=xsl:call-template

namespace=http://www.w3.org/1999/XSL/Transform;
xsl:attribute 
name=namepara/xsl:attribute
/xsl:element
/xsl:element
/xsl:element

/xsl:element

xsl:element name=xsl:template
namespace=http://www.w3.org/1999/XSL/Transform;
xsl:attribute name=namepara/xsl:attribute

p
xsl:element name=xsl:value-of

namespace=http://www.w3.org/1999/XSL/Transform;
xsl:attribute 
name=selectpara/xsl:attribute
/xsl:element
/p
/xsl:element

/xsl:element

/xsl:template

/xsl:stylesheet

I think this should fit the bill.

Best regards,

P.S.
I'd rather avoid making XSLs on the fly... unless for didactic purposes.

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

 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 24, 2002 11:51 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [demostration] Re: xsl through pipelin [anyone can help?]
 
 
 
 in patern getXSL
 now i read a xsl file
 
 
 i want to read(generate) a xml file and trasform it
 to xsl using another xsl
 but i have problem with name spaces (and i dont know if its possible)
 
 how can an xsl file generate elements that belongs to xsl namespace too
 i think about to use for the produced xsl name space prefix other than xsl
 but is this possible and how cocoon will react ?
 
 
 
 (i know that this is more an XML/XSL than cocoon about question sorry
 about this)
 
 thnx for your reply
 
 stavros
 
 
 On Tue, 24 Dec 2002, Luca Morandini wrote:
 
  Stavros,
 
  ok, I've downloaded the demo and installed it... could you tell me where is, 
exactly, the problem ?
 
  Best regards,
 
  P.S.
  I'm about to go out for a trip: if you want some help from me hurry up... in a 
couple of hours I will be out of your reach !
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 
 
   -Original Message-
   From: Cocoon User [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, December 24, 2002 11:00 AM
   To: [EMAIL PROTECTED]
   Subject: [demostration] Re: xsl through pipelin [anyone can help?]
  
  
  
   i have a working demo that pass a xsl file through pipeline and call it
   using
   cocoon:/ protocol to transform other .xml's
  
   but i have problems to create this .xsl using xml/xsl (confused with
   namespaces)
  
   demo files are:
   http://www.osmosis.gr/temp/osDynXSL.zip
  
  
   stavros
  
  
  
   -
   Please check

RE: XPath problem in Cocoon?

2002-12-20 Thread Luca Morandini
Joerg,

indeed, namespaces could be a problem when you forget to properly use them... but not 
in this particular problem.

The code Anna sent us works just fine on my Cocoon, hence, I think the problem lies 
with Anna's configuration, moreover, I
experienced nasty bugs with Xalan already.

Best regards,

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


 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 20, 2002 1:43 AM
 To: [EMAIL PROTECTED]
 Subject: Re: XPath problem in Cocoon?


 Anna Afonchenko wrote:
  Hi Luca. Thank you for answering. Yes, probably that's something with my
  configuration. I am using Win98, Tomcat 4.1.12, Cocoon 2.0.4, Xalan 2.4.1.
  I'll try to change the Xalan version.
  Anyway, this thing is very weird.
 
  Thank you.
  Anna

 Hello Anna,

 may I point out again, that in my opinion it is a simple namespace
 problem. Ok, it's only a guess, but I never heart of a bug like you
 describe. And exactly this behaviour is comprehensible with the
 following test case:

 XML: elements are in default namespace

 root xmlns=test
  pa node to match/p
 /root

 XSL:

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

 xsl:template match=/
 table border=1
tr
  td1. test using //p:/td
  tdxsl:value-of select=count(//p)/ matched/td
/tr
tr
  td2. test using //test:p:/td
  tdxsl:value-of select=count(//test:p)/ matched/td
/tr
tr
  td3. test using //*[name() = 'p']:/td
  tdxsl:value-of select=count(//*[name() = 'p'])/ matched/td
/tr
tr
  td4. test using //*[name() = 'test:p']:/td
  tdxsl:value-of select=count(//*[name() = 'test:p'])/ matched/td
/tr
 /table
 /xsl:template

 /xsl:stylesheet

 Result:

 1. test using //p: 0 matched
 2. test using //test:p:1 matched
 3. test using //*[name() = 'p']:   1 matched
 4. test using //*[name() = 'test:p']:  0 matched

 Your cases are number 1 and 3 and you can see the same behaviour. Have a
 look into your XML file, whether a default namespace is set there. The
 reason for the differences when using default namespace is, that you
 must bind it in XSLT on a prefix. You can not match on elements via //p,
 if they are in default namespace.

 Regards,

 Joerg


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




RE: XPath problem in Cocoon?

2002-12-19 Thread Luca Morandini
Anna,

this is the output I got from your code:

?xml version=1.0 encoding=iso-8859-1 ? 
  root xmlns:fo=http://www.w3.org/1999/XSL/Format;HELLO P content = some text/root

...which I suppose to be the right one.

Therefore, could it be a problem related to the configuration you're using ?

My configuration is:
- Windows 2000 Prof SP3
- Tomcat 4.0.1
- Cocoon 2.0.3 with Xalan 2.2.0.D13 (yes, Xalan 2.3.1 has some bugs,  and I decided to 
step down a little).

If I were you, I would;

- Change the Xalan version

and, provided that doesn't work:

- Change the Cocoon version (provided you're not using 2.0.3, of course)

Best regards,

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

 -Original Message-
 From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 8:35 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: XPath problem in Cocoon?
 
 
 Hi Luca.
 Thank you so much for help.
 Here are all my components:
 
 1. the pipeline:
 
 map:match pattern=*.html
 map:generate src={1}.html type=html/
 map:transform src=test.xsl/
 map:serialize type=xml/
 /map:match
 
 2. the imput file (test.html):
 
 html
  head
   titleUntitled/title
  /head
  body
   psome text/p
  /body
 /html
 
 3. the xsl (test.xsl):
 
 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 xmlns:saxon=http://icl.com/saxon;
 extension-element-prefixes=saxon
 
 xsl:template match=/
  xsl:element name=root
   xsl:textHELLO /xsl:text
   xsl:for-each select=//p
xsl:textP content = /xsl:text
xsl:value-of select=./
   /xsl:for-each
  /xsl:element
 /xsl:template
 /xsl:stylesheet
 
 As you can see, with such xml and xsl I should have one match for p element
 and it's content should be output inside the root element. But it just
 doesn't happen, it doesn't match the node. And now the interesting part
 strats:
 If I replace the select attribute of xsl:for-each to be
 descendant::node()[name()='p']
 instead of just //p (those two expressions mean exactly the same in the
 XPath),
 I suddenly get the match and the right answer from Cocoon.
 Also, if I run this stylesheet externally of Cocoon (for example, using
 XMLSpy XSLTransformation tool) I get the right answer for match //p.
 
 So I know that my stylesheet is OK, but I can't understand why it doesn't
 work from Cocoon.
 If somebody can explain this thing for me, I would be more than happy,
 because I can't use the descendant::... style instead the // style in my
 real (big) stylesheet.
 
 Thank you all very much.
 Hope somebody can help me with this.
 
 Regards,
 Anna
 
 


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

-
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: Where to get the 2.1-dev without using CVS?

2002-12-19 Thread Luca Morandini
http://cvs.apache.org/snapshots/xml-cocoon2/


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

 -Original Message-
 From: aps olute [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 8:03 PM
 To: [EMAIL PROTECTED]
 Subject: Where to get the 2.1-dev without using CVS? 
 
 
 
  Can the 2.1-dev download retrieved without using CVS? Is the cvs version not
 guaranteed to compile? sorry for the newbie questions.
 
 __
 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. http://xml.apache.org/cocoon/faq/index.html

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




RE: XSP/ESQL - separation of concerns?

2002-12-18 Thread Luca Morandini
Robert,

you could try using SQLTransformer to handle just your SQL queries and then apply a 
stylesheet to transform them, if need be, in
another XML dictionary before the final rendegin in HTML, WML, PDF, etc.

The advantages are:
- a streamlining of the source code
- the ability to easily replace XML produced by a query with a static XML file (and 
viceversa)

The caveats are:
- SQLTranformer in slower than ESQL
- use 2.0.4, since there is a nasty bug in 2.0.3 making hard, at times, the use of 
XSLT after an SQLTransformer step

Best regards,

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


 -Original Message-
 From: Robert Sösemann [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 12:22 PM
 To: [EMAIL PROTECTED]
 Subject: XSP/ESQL - separation of concerns?


 Hello,

 in my current project I am using xsp and esql logicsheet for db retrivieval
 and tag generation only.
 Although I know that this is good for developing (no extra compilation) I am
 not very happy with it.

 What I don't like is:
 ---
 - many SQL statement (complex tag structure) mixed cionfusingly with the
 actual document elements
 - the low readability of the code, also hard to debug...
 - no cocoon-like separtion of concerns (mix SQL-logic with tags)
 - the feeling that it is not the most performant way of doing this

 What I would like better (but don't excately know how):
 ---
 - put all SQL that is needed for generating on specific page into another
 thing (beans?) that has no tags
 - make my xsp shorter, more readable
 - have the good balance of performance, easy debugging, extensibility and
 the typical cocoon separation of concerns

 Here is a short but typical code snippet:
 ---
 ROOT
 esql:connection
 esql:poolmysql_pool/esql:pool

 esql:execute-query
 esql:query
 *COMPLEX QUERY, SOMETIMES 5 esql:query PER XSP *
 /esql:query

 esql:results
 esql:row-results
 ARTICLE
 xsp:attribute name=IDesql:get-int
 column=5//xsp:attribute
 xsp:attribute name=MAINesql:get-string
 column=7//xsp:attribute
 xsp:attribute name=SUBesql:get-string
 column=8//xsp:attribute
 xsp:attribute name=PDFPRINTesql:get-int
 column=9//xsp:attribute

 !-- Attribute evtl. NULL bei Direktanzeige --
 xsp:logic
 if(!esql:is-null column=3/) {
 HEADEResql:get-string
 column=1//HEADER
 }

 /xsp:logic

 esql:get-xml column=2/

 DATEesql:get-string column=11//DATE
 AUTHOResql:get-string column=12//AUTHOR
 /ARTICLE
 /esql:row-results
 /esql:results
 esql:no-results/esql:no-results
 esql:error-results/esql:error-results
 /esql:execute-query
 /esql:connection
 /ROOT

 /xsp:page


 Should I better use own generators or beans? What are your experiences?

 Robert



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




RE: Writing output of pipeline to a file

2002-12-18 Thread Luca Morandini
Anna,

why don't you use SourceWritingTransformer to write the document, and then transform 
its output (the status message) in an HTML that
automatically loads the written XML document ?

Yes, you'd bounce the browser (not a particularly nice thing to do) and should write a 
separate pipeline to handle the rendering of
the written XML document... but I presume it would be easier than other methods.

You may even check, with the ResourceExists action, whether the XML document has 
already been written to disk... hence deciding
dinamycally which pipeline to use: the one writing the XML document, or the one 
rendering it.

Best regards,

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

-Original Message-
From: Ludovic de Beaurepaire [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: Re: Writing output of pipeline to a file


Sorry Anna, i didn't understand it.

I thought you had to generate data and next save and transfom them, but you have datas 
in a file and want to transform them and next
save and send them to your browser.

A solution could be to write a transformer (in XSL with redirection or in Java), 
localized after your transformer in the pipeline.
This one does not transform XML datas, but copy (not redirect) them in a file.

Ludovic
- Original Message -
From: Anna Afonchenko
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 11:57 AM
Subject: Re: Writing output of pipeline to a file


Thank you Ludovic.
Just to ensure that I got you right:
You say that I need to write an action that will get the content of the file, will 
write it, and then in the same pipeline there
will be generator that will just read the file that was written and will serialize the 
output to the browser?
But I need to write the file after it was transformed by the xsl. How this is possible 
in sitemap?
I just don't understand the logic of what I need to do in order to both write to the 
file and output file to the browser.
Sorry I'm bothering you, but can you just explain me in little more detail what I need 
to do?

Thank you very very much.
Anna
- Original Message -
From: Ludovic de Beaurepaire
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 12:44 PM
Subject: Re: Writing output of pipeline to a file


Hi Anna,

When you use  redirect:write file=testWrite.xml, your XML datas are redirected, so 
you have to generate other XML datas for your
serializer. In your case in error, no XML datas are passed after the transformation.

So, in your case, you have to transform AND save your XML datas. i think the best 
solution is saving these datas in file in an
Action, and use this file for transformation.

Ludovic

- Original Message -
From: Anna Afonchenko
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 8:44 AM
Subject: Re: Writing output of pipeline to a file


Thank you all for answering me, but I still can't manage to do it.
Here is my pipeline:
map:match pattern=test.html
map:generate src=test.html/
map:transform src=writeToFile.xsl/
map:serialize type=xml/
map:match

Here is my writeToFile.xsl:
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:fo=http://www.w3.org/1999/XSL/Format 
xmlns:redirect=org.apache.xalan.xslt.extensions.Redirect
 extension-element-prefixes=redirect
xsl:output method=xml/

 xsl:template match=/
 xsl:copy-of select=*/
 redirect:open file=testWrite.xml/
 redirect:write file=testWrite.xml
  xsl:copy-of select=*/
 /redirect:write
 redirect:close file=testWrite.xml/
 /xsl:template
/xsl:stylesheet

When I am running this, I get the following error message from the Cocoon:
type fatal
message Exception in HTMLGenerator.generate()
description org.apache.cocoon.ProcessingException: Exception in 
HTMLGenerator.generate(): java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
If I remove all the redirect: lines, then I get the serialized input file, so the 
input is OK, obviously,
I have some problems with this redirect:
Can anybody please tell me what's wrong?
Thank you very much for help.
Anna

- Original Message -
From: Ludovic de Beaurepaire
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 4:36 PM
Subject: Re: Writing output of pipeline to a file


First, i had just to save it (not to send the result file to the client). I did it in 
a stylesheet like this :

?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:redirect=org.apache.xalan.xslt.extensions.Redirect
 extension-element-prefixes=redirect
 xsl:output method=xml encoding=ISO-8859-1/
 xsl:template match=/
 redirect:write file={$path}
  xsl:copy-of select

RE: removing cocoon from my url base

2002-12-18 Thread Luca Morandini
Mirco,

I presume something like this:

map:match pattern=**
map:mount uri-prefix=
src=file:///c:/something/mysite/
check-reload=yes
reload-method=synchron/
/map:match

should work.

Best regards,

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

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 1:04 PM
 To: cocoon-users
 Subject: removing cocoon from my url base
 
 
 I've my cocoon application running on something like:
 http://localhost/cocoon/something/mysite
 
 I'd like to get mysite using a simpler URL like:
 http://localhost
 
 How can I do this?
 
 I know I can change the Tomcat server.xml, and point the docBase of the ROOT web 
application to the location of the 
 cocoon web app, for example:
 Context path= docBase=cocoon dubug=0 reloadable=true/
 
 Now I've
 http://localhost/something/mysite
 
 How can I remove something/mysite ?
 
 Thanks in advance
 Mirco
 
 
 -
 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]




RE: removing cocoon from my url base [performance ??]

2002-12-18 Thread Luca Morandini
Stavros,

I don't think so; since the matching process is executed in a strictly sequential 
manner, if you have this map:match element in
the first pipeline, no other matching will take place... or do you refer to something 
else ?

Best regards,

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


 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 1:33 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: removing cocoon from my url base [performance ??]



 yes but what about the performance

 maybe this way has effects to cocoon performance ?


 stavros

 On Wed, 18 Dec 2002, Luca Morandini wrote:

  Mirco,
 
  I presume something like this:
 
  map:match pattern=**
  map:mount uri-prefix=
  src=file:///c:/something/mysite/
  check-reload=yes
  reload-method=synchron/
  /map:match
 
  should work.
 
  Best regards,
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 


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



-
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: Writing output of pipeline to a file

2002-12-18 Thread Luca Morandini
Anna,

wait, you could use  a small  XSLT to parse the input XML document, enclose the 
document in a source:write element and pass it
along to the SourceWritingTransformer... any problem with this scenario ?

Best regards,

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


 -Original Message-
 From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 1:25 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Writing output of pipeline to a file


 As I understand the SourceWritingTransformer (I may be wrong, I am new to
 all this)
 the directives for write to a file (source:write) should be in the xml, not
 in xsl.
 I don't write the xml, I get it, so I need to perform the writing in xsl.
 If you can explain to me how I can use SourceWritingTransformer  to write to
 a file from the stylesheet, I would be very grateful.
 For now I will just use java extension function in my xsl stylesheet to
 perform writing to file.

 Thanks for answering

 Anna

 - Original Message -
 From: Luca Morandini [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, December 18, 2002 1:45 PM
 Subject: RE: Writing output of pipeline to a file


 Anna,

 why don't you use SourceWritingTransformer to write the document, and then
 transform its output (the status message) in an HTML that
 automatically loads the written XML document ?

 Yes, you'd bounce the browser (not a particularly nice thing to do) and
 should write a separate pipeline to handle the rendering of
 the written XML document... but I presume it would be easier than other
 methods.

 You may even check, with the ResourceExists action, whether the XML document
 has already been written to disk... hence deciding
 dinamycally which pipeline to use: the one writing the XML document, or the
 one rendering it.

 Best regards,



-
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: XPath problem in Cocoon?

2002-12-18 Thread Luca Morandini
Anna,

ok, let's try to sort it out, send us:

- The pipeline
- The XML to be transformed
- The XSLT

Possibly, strip off all the unnecessary stuff.

Best regards,

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

 -Original Message-
 From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 3:25 PM
 To: [EMAIL PROTECTED]
 Subject: Re: XPath problem in Cocoon?
 
 
 Hi Konstantin.
 I know that my stylesheet works without Cocoon, I ran it through the batch
 file, using saxon. Even if I just run it using XSL Transformation of XMLSpy,
 it works fine, and chooses the //p tags as it should.
 So I am sure the problem is with Cocoon, but I don't understand, if it's my
 problem giving cocoon some wrong parameters (I don't know how this could
 happen) or maybe it is Cocoon problem? Using //node-name is a common XPath
 expression, it should work.
 
 Maybe somebody knows what's wrong?
 Does nobody having problems with matching this kind of XPath expression in
 Cocoon?
 It is very important for me, so if somebody can give me a hint of where the
 problem lies, I would really appreciate this.
 
 Thank you very much for helping
 
 Anna
 


-
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 container: tomcat or not?

2002-12-17 Thread Luca Morandini
Stavros,

I used both Tomcat and WebLogic in production environments: I've found both of them 
quite reliable with Cocoon, bar a nasty problem
when compiling Cocoon components with Tomcat under Solaris.

No statistics to show though.

Best regards,

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


 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: cocoon container: tomcat or not?



 after  one year from the first stable cocoon 2 version
 is tomcat the best container for cocoon?


 we use the first cocoon2 rc1 version on tomcat the last 18 months in
 production.

 we have test other cocoon2 versions in development environment but never
 something else than tomcat!

 your experiences from other containers?


 stavros kounis
 http://www.osmosis.gr


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




RE: Java 1.4 configuration for Cocoon

2002-12-17 Thread Luca Morandini
Ines,

you could either download the source distribution and build it (I prefer this method), 
or search those JARs under
your-servlet-container-home/webapps/cocoon/WEB-INF/lib.

The lib directory is filled with JARs the first time Cocoon in invoked (the servlet 
container takes care of expanding the
cocoon.war): try invoking Cocoon, maybe on JDK 1.4 it will not work, but most probably 
it will explode the WAR just the same and you
will be able to proceed with you installation.

Best regards,

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


 -Original Message-
 From: Ines Robbers [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 1:08 PM
 To: [EMAIL PROTECTED]
 Subject: Java 1.4 configuration for Cocoon


 Hello!

 I'm trying to install cocoon with the help of
 http://xml.apache.org/cocoon/installing/index.html and got stuck here:

 Java 1.4 configuration
 ...follow these steps:
 1. Create %JAVA_HOME%\jre\lib\endorsed directory.
 2. Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the
 .\lib\core\ to the %JAVA_HOME%\jre\lib\endorsed\ directory.

 There are no such files on my system. Perhaps I downloaded the wrong
 cocoon?
 I am using WindowsXP and saved the file:
 cocoon-2.0.4-vm14-bin.zip, 06-Dec-2002 04:05, 19M  -[ Latest
 binary distribution for JDK 1.4]
 from http://xml.apache.org/cocoon/dist/ on my computer.

 Perhaps someone could help?

 Many thanks!!

 Ines



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




RE: Problem SQLTransformer

2002-12-05 Thread Luca Morandini
Didier,

are you sure the rpb_id columns are not null ? If they were, that's the correct result.

BTW, why the column names are the same ? 

Best regards,

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

 -Original Message-
 From: Rano, Didier [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 05, 2002 10:37 AM
 To: [EMAIL PROTECTED]
 Subject: Problem SQLTransformer
 
 
 
 Hello,
 
 With Cocoon 2.0.3, on windows NT, and tomcat 4.1.12
 
 I have a problem with SQLTransformer (with Oracle JDBC  driver). Cocoon returns
 all records normally without data !!
 
 Example:
   rowset
 row
 rpb_id/
 rpb_id/
 /row
 /rowset
 
 How solve this problem ?
 
 Thank you
 
 Didier Rano
 Serv'N Data
 
 -
 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]




RE: Don't get XML tags with SQLTransformer

2002-12-04 Thread Luca Morandini
Maxime,

this is a problem related to that stylesheet, if you try opening the SQLTranformer's 
output with, for instance, Internet Explorer
6.0, those tags are displayed nicely.

Best regards,

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


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 04, 2002 9:17 AM
 To: [EMAIL PROTECTED]
 Subject: Don't get XML tags with SQLTransformer


 Hi,
 When I execute a query like select wfID as ID, wfName as Name from Workflowlist
 In the browser (I used the default xml2html stylesheet) I get something like this :

 -4=4name=name
   -
    1/
    Max_pkg1/
   /
   -  
2/
    Max_pkg2/
   /
 ...
 /

 But how can I get the tags like :

 -Workflowlist
   -Workflow
    ID1/ID
    NameMax_pkg1/Name
   /Workflow
   -Workflow  
ID2/ID
    NameMax_pkg2/Name
   /Workflow
 ...
 /Workflowlist

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




R: cocoon to oracle ?

2002-11-14 Thread Luca Morandini
Paul,

yes indeed.

You can use the ESQL tag library or the SQLTransformer to do so, both
methods support plain-vaniall SQL and stored procedures.

Read the respective doc in the Cocoon site, and ask here only for specific
problems, please.

Best regards,

P.S.
Please, use plain text messages next time.

Luca Morandini
[EMAIL PROTECTED]

-Messaggio originale-
Da: Dhiman Paul [mailto:dhiman;techna.co.in]
Inviato: giovedì 14 novembre 2002 12.48
A: [EMAIL PROTECTED]
Oggetto: cocoon to oracle ?


Dear All,

Is it possible to communicate with oracle via cocoon ?
Please say me the way to do that ?

Thanks.


 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: Difference between cocoon: and file:// in map:part

2002-11-14 Thread Luca Morandini
Piotr,

the cocoon: pseudo-protocol doesn't search for files, but for pipelines.

With this pseudo-protocol you can build pipelines and call them (more or
less as subroutines) from any aggregation.

Best regards,

Luca Morandini
[EMAIL PROTECTED]

 -Messaggio originale-
 Da: Piotr Legiecki [mailto:piotrlg;sci.pam.szczecin.pl]
 Inviato: giovedi 14 novembre 2002 13.53
 A: [EMAIL PROTECTED]
 Oggetto: Difference between cocoon: and file:// in map:part


 Hi
 I'm new to cocoon and don't get the difference between map:part src
 arguments:
 
 map:part src=cocoon:/somefile.xml
 map:part src=cocoon:/anotherfile.xml
 

 means that cocoon should join two xml files (taken from some misterious
 place)

 But the same happens with this:
 
 map:part src=somefile.xml
 map:part src=anotherfile.xml
 .

 which means take two files from filesystem which is clear to me.

 In my example:
 
   map:pipeline
   map:match pattern=
  map:aggregate element=site
map:part src=content/menu.xml/
map:part src=content/books.xml/
  /map:aggregate
  map:transform src=styles/simplemenu2html.xsl/
  map:serialize/
   /map:match
/map:pipeline
 

 It works ok, but using
 ...
 src=cocoon:content/menu.xml
 ...
 instead doesn't (ie the rendered html page is empty). *Why*?

 BTW, where is map:aggregate component *fully* documented? In main user
 documentation there is only one example and not all of the attributes
 are explained (ie strip-root, ne etc).

 Regards
 Piotr Legiecki


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



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: R: Difference between cocoon: and file:// in map:part

2002-11-14 Thread Luca Morandini
Piotr,

 Right?

Yes :) But don't serialize those parts as HTML, use the XML serializer
instead.

 Hm. I'm not sure about it. What happens when line
 map:part src=cocoon:/menu.xml/
 is executed? Cocoon jumps directly to pipeline which matches the
 pattern, makes something there (ie *map:read* (or should I use
 map:generate?) source xml, *transform* using xsl, *serialize* (is this
 neccessery here?)) and returns to second map:part.

Well, pipelines are pipelines, the cocoon: pseudo-protocol is just another
way to call them.


 So the joined parts are not xml files anymore but html files?

Parts should be XML to be aggregated, just use the XML serializer. BTW,
don't think of them as files, but rather as XML streams.

 And when use separate map:pipeline for matches and when to group this
 matches under one map:pipeline? I know it looks like completely
 another question;-)


This has been answered over and over... check the mailing list archives or
point your browser to:
http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-9

Best regards,

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Piotr Legiecki [mailto:piotrlg;sci.pam.szczecin.pl]
 Inviato: giovedi 14 novembre 2002 14.36
 A: [EMAIL PROTECTED]
 Oggetto: Re: R: Difference between cocoon: and file:// in map:part


 Luca Morandini wrote:
  Piotr,
 
  the cocoon: pseudo-protocol doesn't search for files, but for
 pipelines.
 
  With this pseudo-protocol you can build pipelines and call them (more or
  less as subroutines) from any aggregation.
 

 I see. So when I want to separate navigation and content (having
 menu.xml and books.xml) and join them using aggregate, *but* use
 different xsl files for them I can write something like this:

map:pipeline
map:match pattern=
   map:aggregate element=site
 map:part src=cocoon:/menu.xml/
 map:part src=cocoon:/books.xml/
   /map:aggregate
   map:transform src=styles/menuandbook2html.xsl/
   map:serialize/
/map:match
/map:pipeline


map:pipeline
map:match pattern=menu.xml
  map:read src=content/menu.xml/
  map:transform src=styles/menu.xsl/
  map:serialize/
/map:match
/map:pipeline

map:pipeline
map:match pattern=books.xml
  map:read src=content/books.xml/
  map:transform src=styles/books.xsl/
  map:serialize/
/map:match
/map:pipeline

 Right? Hm. I'm not sure about it. What happens when line
 map:part src=cocoon:/menu.xml/
 is executed? Cocoon jumps directly to pipeline which matches the
 pattern, makes something there (ie *map:read* (or should I use
 map:generate?) source xml, *transform* using xsl, *serialize* (is this
 neccessery here?)) and returns to second map:part.

 So the joined parts are not xml files anymore but html files?  So I
 can't use
   map:transform src=styles/menuandbook2html.xsl/
 on them anymore and I can't also use
   map:serialize/

 Is it the right way to use aggregate or I have simply missused
 this feature?

 And when use separate map:pipeline for matches and when to group this
 matches under one map:pipeline? I know it looks like completely
 another question;-)

 Regards
 Piotr Legiecki


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



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: Separation of concerns?

2002-11-13 Thread Luca Morandini
Evan,

I avoid the use of document() by means of aggregation: one map:part for
the template, the other map:part for data.

The use of meta-stylesheets doesn't excite me... I smell performance
problems, though it is rather a sexy thing to do :)

I even managed to have for each and if constructs in my tag library
(based, IIRC on an XML.com article)... but maybe this was stretching the
concept too far.

Anyway, I agree with you that graphic designers shouldn't touch XSL and tag
libraries are the way to go.

Best regards,

Luca Morandini
[EMAIL PROTECTED]

 -Messaggio originale-
 Da: Lenz, Evan [mailto:lenze;seattleu.edu]
 Inviato: martedì 12 novembre 2002 20.37
 A: '[EMAIL PROTECTED]'
 Oggetto: RE: Separation of concerns?


 I've taken this approach in the past. I've found that it involves
 heavy (or
 at least essential) use of the document() function. This approach has been
 documented in a couple articles on XML.com.

 http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html
 http://www.xml.com/pub/a/2002/03/27/templatexslt.html

 But I learned there are apparently problems with use of the document()
 function in Cocoon, given current limitations with respect to caching.

 http://xml.apache.org/cocoon/faq/faq-xslt.html#faq-6

 I was pleased to find Leigh Dodds' note on the Cocoon Wiki for
 metastylesheets.

 http://outerthought.net/wiki/Wiki.jsp?page=MetaStylesheets

 I'm now successfully using this approach in my current project to
 implement
 custom tag libraries in Cocoon without needing to use the document()
 function.

 However, I am wondering how much this approach really scales. I
 guess I will
 find out.

 I believe that putting XSLT into the hands of graphic designers
 and average
 Web developers does *not* achieve separation of concerns. Custom tag
 libraries is the way to go. XSP addresses that. But Cocoon appears yet to
 directly address the problem of implementing tag libraries *in XSLT*.
 Perhaps metastylesheets is the way to go. Or perhaps the document()
 function is the way to go, and the caching problems just need to get
 addressed. Or perhaps there is another approach that I haven't considered.
 In any case, this needs to be addressed, IMHO. It's also quite
 possible that
 this has been fully addressed and I just haven't seen it. In that case, I
 would appreciate a link to that discussion :-)

 Evan

  -Original Message-
  From: Luca Morandini [mailto:spectrum.morandini;ipzs.it]
  Sent: Tuesday, November 12, 2002 5:35 AM
  To: [EMAIL PROTECTED]
  Subject: R: Separation of concerns?
 
  Lorenzo,
 
  to ease the burden on your graphic designers, you could even
 build a sort
  of
  taglib with XML elements to be expanded by an appropriate XSL.
 
  I've done a lib which allows me to specify smart HTML without the need
  of
  XSL (well, it works behind the scenes)... here's an example:
 
  img src={insert-request-parameter:images-home}/blank.gif border=0
  width=4/
 
  I hope you got the idea :)
 
  Best regards,
 
  Luca Morandini
  [EMAIL PROTECTED]



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: Separation of concerns?

2002-11-12 Thread Luca Morandini
Lorenzo,

to ease the burden on your graphic designers, you could even build a sort of
taglib with XML elements to be expanded by an appropriate XSL.

I've done a lib which allows me to specify smart HTML without the need of
XSL (well, it works behind the scenes)... here's an example:

img src={insert-request-parameter:images-home}/blank.gif border=0
width=4/

I hope you got the idea :)

Best regards,

Luca Morandini
[EMAIL PROTECTED]

 -Messaggio originale-
 Da: Lorenzo De Sio [mailto:l.desio;w4b.it]
 Inviato: martedì 12 novembre 2002 12.35
 A: '[EMAIL PROTECTED]'
 Oggetto: R: Separation of concerns?


 I think you pointed out quite a big issue, though from my point
 of view this
 is not such a problematic one.

 I currently work in a co-founded small company. We are 1 programmer, 1
 HTML/graphic designer, 1 HTML/Flash developer, 1 junior developer
 which has
 no actual programming skills, but quickly learned HTML and XSL.

 You could ask: why Cocoon in such a small team? The answer is XSL itself.

 Currently, our application development work in the past few years (we are
 focused on small-medium businesses) has been mainly on e-commerce,
 data-driven, customer-updatable sites and, later, content management for
 small-to-medium publishing needs.

 We ended up in producing many, many times the same mini-applications,
 branding them differently each time. This led us (even on the ASP platform
 we were, and still mainly are, working on) to XSL. ASP already
 (no .NET) has
 a few underlooked features (XML serialization of a Recordset object to a
 Stream object, for example, which is quite fast and can support XSL
 transformation) which allowed us to separate the presentation
 layer from the
 content/logic one. This actually allowed me to totally drop the production
 of such applications to the junior programmer. He also benefits from the
 separation, by actually reusing 99% of the code (we embedded
 database write
 logic in a single library .asp file, the only required code changes are
 for changing SELECT queries), and by being able to personalize the look by
 only changing one XSL template file.

 This simple implementation of a XML/XSL separation, much simpler
 but similar
 to Cocoon's approach, already gave us these benefits.

 The next step, which we are experiencing in the development of
 quite a large
 e-learning site (with Cocoon), is to directly let the designers access the
 XSLs, by giving them the basic XSL skills required to do the job.

 I find that The XSL skills required are not really heavy. Heavy XSL skills
 are, in my opinion, required in working on complex structure
 transformations
 that come *before* the final, presentation-aimed XSL transformation. Our
 experience is that, instead, the final transformation deals 99%
 of the time
 with: a) a container with many rows of data (a master, which can be easily
 handled even with a simple xsl:for-each/; b) an item of data with many
 fiels (a detail). Such XSL-drive HTML renderings are done mostly using
 xsl:value-of/ inserted into traditional HTML markup and I found
 that even
 the HTML designer and the Flash developer are comfortable with them.

 Of course you need designers who know HTML. But even this
 requirement could
 fade in the future, since tools like Dreamweaver already support XHTML
 conformance, and they could easily be scripted to allow insertion of XSL
 value elements and for-each loops.


 L.


 -Messaggio originale-
 Da: Andrew Watt [mailto:andrew;andrewwatt.com]
 Inviato: martedì 12 novembre 2002 10.47
 A: [EMAIL PROTECTED]
 Oggetto: Separation of concerns?


 I have a (multi-part) question about the suggested separation of
 concerns
 that it is proposed that Cocoon achieves.

 I would like to ask how Cocoon is being used in a production environment,
 specifically how does separation of roles work out. Does it actually work
 in practice? How easy is it in production settings to find graphics
 designers who are also fluent in XSLT?

 Aren't such bi-skilled people essential to achieve the implementation of
 the style concern? Or, in practice, are real designers and
 real XSLT
 coders working together on the XSLT stylesheets?

 I guess that the suspicion that is lurking at the back of my mind is that
 the confusion of concerns (to coin a phrase) is, to some extent, being
 shuffled off into the style box. Of course, that may be a signficant
 improvement over other workflows.

 I can see pretty clearly the cleanness of the current approach for
 programmers/administrators ... designers don't touch the content nor the
 sitemaps ... but I do have slight doubts about the cleanness of the style
 concern. Or maybe my doubt is about the realisticness of finding graphics
 designers comfortable to code in XSLT.

 I notice, too, that style is little mentioned in the online documentation
 and doesn't appear as a term in the index of the Langham/Ziegeler book.
 That makes me wonder if others either have doubts too about the style

R: R: Strings to SAX events

2002-11-11 Thread Luca Morandini
Steven,

first: we'd like to thank you for your help :)

Second: we've tried to use your suggestion... to no avail :(

Here's the failing code:

InputSource source= new InputSource(new StringReader(svgs));
XercesParser respParser;
respParser= new XercesParser();
ChartXMLConsumer cons= new ChartXMLConsumer((AbstractSAXTransformer)(this));
respParser.setConsumer(cons);
respParser.parse(source);

It fails at the last statement with the dreaded null pointer exc..
The parser we're using is an
org.apache.cocoon.components.parser.XercesParser, while the ChartXMLConsumer
is subclass of an org.apache.cocoon.xml.AbstractXMLConsumer, with suitable
methods added.

We think your idea is to trap some SAX events in the AbstractXMLConsumer
subclass, and pass them along to the Transfomer class; while some SAX
events, like StartDocument/EndDocument aren't passed along.

Well, we've done that, but it fails before even passing a single SAX event
to the transformer... any guess ?

Best regards,

P.S.
Here's the AbstractXMLConsumer subclass code:

public class ChartXMLConsumer extends AbstractXMLConsumer {

AbstractSAXTransformer trasf;

ChartXMLConsumer(AbstractSAXTransformer trasfIn) {

this.trasf= trasfIn;
}

public void processingInstruction(String target, String data)
throws SAXException {

getLogger().debug([CHART XML CONSUMER] RECEIVED AND IGNORED PI);
}

public void startDTD(String name, String publicId, String systemId)
  throws SAXException {

getLogger().debug([CHART XML CONSUMER] RECEIVED START DTD);
}

public void endDTD()
throws SAXException {

getLogger().debug([CHART XML CONSUMER] RECEIVED START DTD);
}

public  void startDocument()
throws SAXException {

getLogger().debug([CHART XML CONSUMER] RECEIVED START OF 
DOCUMENT
V.02);
}

public  void endDocument()
throws SAXException {

getLogger().debug([CHART XML CONSUMER] RECEIVED END OF 
DOCUMENT);
}

public void startElement(String uri, String name, String raw,
 Attributes attributes) throws SAXException {

getLogger().debug([CHART XML CONSUMER] RECEIVED 
STARTELEMENT);
trasf.startElement(uri, name, raw, attributes);
}


public void endElement(String uri, String name, String raw)
throws SAXException {

getLogger().debug([CHART XML CONSUMER] RECEIVED ENDELEMENT);
trasf.endElement(uri, name, raw);
}
}

Luca Morandini
[EMAIL PROTECTED]
[EMAIL PROTECTED]

 -Messaggio originale-
 Da: Steven Cummings [mailto:cummingscs;netscape.net]
 Inviato: venerdì 8 novembre 2002 17.43
 A: [EMAIL PROTECTED]
 Oggetto: RE: R: Strings to SAX events


 Luca,

 I'm doing something very similar to implement a SOAPTransformer.
 What I've done is implement an XMLConsumer so that it passes ALL
 events that it recieves directly to the transformer's super-class
 (super.startElement, super.endElement... etc.) Because you've
 probably already started an output SAX stream that you want to
 embed the content of the string in, you simply neglect to pass
 along the startDocument and endDocument events. This is very
 important. Otherwise, the solution is pretty simple. Hope this helps.

 /S

 Luca Morandini [EMAIL PROTECTED] wrote:

 Ludovic,
 
 we're writing a Transformer to produce SVG (and JPEG/PNG
 optionally) charts.
 The idea is having the chart description and associated data in XML as
 input, transform them, ending up with a nice SVG to be serialized.
 
 We're using a charting library which doesn't produce a SAX stream, but
 outputs the SVG element as a string, hence, the need to insert this XML
 elements in the output SAX stream.
 
 I hope this clears the matter :)
 
 Luca Morandini
 Istituto Poligrafico e Zecca dello Stato
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 
  -Messaggio originale-
  Da: Ludovic de Beaurepaire [mailto:ludovic.debeaurepaire;axonie.com]
  Inviato: venerdì 8 novembre 2002 11.26
  A: [EMAIL PROTECTED]
  Oggetto: Re: Strings to SAX events
 
 
  Luca
 
  Sorry if it is NOK, but i didn't understand why you want to add
  XML datas in
  the transformer instead of in your pipeline's generator ?
 
  Ludovic
  - Original Message -
  From: Luca Morandini [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, November 08, 2002 11:11 AM
  Subject: R: Strings to SAX events
 
 
   Ludovic,
  
   thanks for your kind answer, but we are not in an XSP page
  (we're writing
  a
   Transformer instead), hence, your

R: R: Strings to SAX events

2002-11-11 Thread Luca Morandini
Judith,

it seems the problem has been solved by filtering out some characters (using
the characters() method) from the input file and deleting both XML header
and DOCTYPE from the string containing the SVG.

I know this solution is weirder than the original problem... but that's a
fact :(

Anyway, thanks for the code you've provided us :)

Best regards,

Luca Morandini
[EMAIL PROTECTED]
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Andres, Judith [mailto:Judith.Andres;rauser-ag.com]
 Inviato: lunedì 11 novembre 2002 11.59
 A: [EMAIL PROTECTED]
 Oggetto: AW: R: Strings to SAX events


 Hallo Luca,

 this is a bit of a hack, but it seems to work.

 HTH
 Judith

  TestTransformer.java

  -Ursprüngliche Nachricht-
  Von:Luca Morandini [SMTP:[EMAIL PROTECTED]]
  Gesendet am:Montag, 11. November 2002 10:39
  An: [EMAIL PROTECTED]
  Betreff:R: R: Strings to SAX events
 
  Steven,
 
  first: we'd like to thank you for your help :)
 
  Second: we've tried to use your suggestion... to no avail :(
 
  Here's the failing code:
 
  InputSource source= new InputSource(new StringReader(svgs));
  XercesParser respParser;
  respParser= new XercesParser();
  ChartXMLConsumer cons= new
 ChartXMLConsumer((AbstractSAXTransformer)(this));
  respParser.setConsumer(cons);
  respParser.parse(source);
 
  It fails at the last statement with the dreaded null pointer exc..
  The parser we're using is an
  org.apache.cocoon.components.parser.XercesParser, while the
 ChartXMLConsumer
  is subclass of an org.apache.cocoon.xml.AbstractXMLConsumer,
 with suitable
  methods added.
 
  We think your idea is to trap some SAX events in the AbstractXMLConsumer
  subclass, and pass them along to the Transfomer class; while some SAX
  events, like StartDocument/EndDocument aren't passed along.
 
  Well, we've done that, but it fails before even passing a
 single SAX event
  to the transformer... any guess ?
 
  Best regards,
 
  P.S.
  Here's the AbstractXMLConsumer subclass code:
 
  public class ChartXMLConsumer extends AbstractXMLConsumer {
 
  AbstractSAXTransformer trasf;
 
  ChartXMLConsumer(AbstractSAXTransformer trasfIn) {
 
  this.trasf= trasfIn;
  }
 
  public void processingInstruction(String target,
 String data)
  throws SAXException {
 
  getLogger().debug([CHART XML CONSUMER]
 RECEIVED AND IGNORED PI);
  }
 
  public void startDTD(String name, String publicId,
 String systemId)
throws SAXException {
 
  getLogger().debug([CHART XML CONSUMER]
 RECEIVED START DTD);
  }
 
  public void endDTD()
  throws SAXException {
 
  getLogger().debug([CHART XML CONSUMER]
 RECEIVED START DTD);
  }
 
  public  void startDocument()
  throws SAXException {
 
  getLogger().debug([CHART XML CONSUMER]
 RECEIVED START OF DOCUMENT
  V.02);
  }
 
  public  void endDocument()
  throws SAXException {
 
  getLogger().debug([CHART XML CONSUMER]
 RECEIVED END OF DOCUMENT);
  }
 
  public void startElement(String uri, String name,
 String raw,
   Attributes attributes) throws
 SAXException {
 
  getLogger().debug([CHART XML CONSUMER]
 RECEIVED STARTELEMENT);
  trasf.startElement(uri, name, raw, attributes);
  }
 
 
  public void endElement(String uri, String name, String raw)
  throws SAXException {
 
  getLogger().debug([CHART XML CONSUMER]
 RECEIVED ENDELEMENT);
  trasf.endElement(uri, name, raw);
  }
  }
 
  Luca Morandini
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
 
   -Messaggio originale-
   Da: Steven Cummings [mailto:cummingscs;netscape.net]
   Inviato: venerdì 8 novembre 2002 17.43
   A: [EMAIL PROTECTED]
   Oggetto: RE: R: Strings to SAX events
  
  
   Luca,
  
   I'm doing something very similar to implement a SOAPTransformer.
   What I've done is implement an XMLConsumer so that it passes ALL
   events that it recieves directly to the transformer's super-class
   (super.startElement, super.endElement... etc.) Because you've
   probably already started an output SAX stream that you want to
   embed the content of the string in, you simply neglect to pass
   along the startDocument and endDocument events. This is very
   important. Otherwise, the solution is pretty simple. Hope this helps.
  
   /S
  
   Luca Morandini [EMAIL PROTECTED] wrote:
  
   Ludovic,
   
   we're writing a Transformer to produce SVG (and JPEG/PNG
   optionally) charts.
   The idea is having the chart description and associated data
 in XML as
   input, transform them, ending up

Strings to SAX events

2002-11-08 Thread Luca Morandini
Folks,

 We're in the process of writing a Transformer, which, of course, outputs
SAX
 events... but, in the midst of this stream , we need to insert an
 XML element stored in a string.

 To do this we're groping in the dark trying something like this:

  JaxpParser respParser = new JaxpParser();
  respParser.parse( new InputSource(new StringReader(str)),
  new EmbeddedXMLPipe(contentHandler));

 Which fails giving this:
 org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
 java.lang.ClassCastException
 ...
 Caused by: java.lang.ClassCastException
  at

com.lucamorandini.charts.ChartTransformer.endElement(ChartTransformer.java:6
55)
  at

org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStrea
mInterpreter.java:129)
  at

org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByt
eStreamInterpreter.java:102)
  at
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
 (CachingEventPipeline.java:219)
  ... 44 more

 java.lang.ClassCastException
  at

com.lucamorandini.charts.ChartTransformer.endElement(ChartTransformer.java:6
55)
  at

org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStrea
mInterpreter.java:129)
  at

org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByt
eStreamInterpreter.java:102)
  at
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
 (CachingEventPipeline.java:219)
  at

org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)

 The classes we use are:
  org.apache.avalon.excalibur.xml.JaxpParser;
  org.xml.sax.InputSource;
  java.io.StringReader;
  org.apache.cocoon.xml.EmbeddedXMLPipe;

 And the environment is:
  Solaris 5.8
  JDK 1.4.1_01
  Tomcat 4.1.12-LE-jdk14
  Cocoon 2.0.3

 May someone please help us ?

 Thanks in advance,

Piero De Nicola  Luca Morandini


 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: Strings to SAX events

2002-11-08 Thread Luca Morandini
Ludovic,

we're writing a Transformer to produce SVG (and JPEG/PNG optionally) charts.
The idea is having the chart description and associated data in XML as
input, transform them, ending up with a nice SVG to be serialized.

We're using a charting library which doesn't produce a SAX stream, but
outputs the SVG element as a string, hence, the need to insert this XML
elements in the output SAX stream.

I hope this clears the matter :)

Luca Morandini
Istituto Poligrafico e Zecca dello Stato
[EMAIL PROTECTED]
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Ludovic de Beaurepaire [mailto:ludovic.debeaurepaire;axonie.com]
 Inviato: venerdì 8 novembre 2002 11.26
 A: [EMAIL PROTECTED]
 Oggetto: Re: Strings to SAX events


 Luca

 Sorry if it is NOK, but i didn't understand why you want to add
 XML datas in
 the transformer instead of in your pipeline's generator ?

 Ludovic
 - Original Message -
 From: Luca Morandini [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 08, 2002 11:11 AM
 Subject: R: Strings to SAX events


  Ludovic,
 
  thanks for your kind answer, but we are not in an XSP page
 (we're writing
 a
  Transformer instead), hence, your suggestion is not truly useful to us.
 
  Best regards,
 
  Luca Morandini
  [EMAIL PROTECTED]
 
   -Messaggio originale-
   Da: Ludovic de Beaurepaire [mailto:ludovic.debeaurepaire;axonie.com]
   Inviato: venerdì 8 novembre 2002 11.02
   A: [EMAIL PROTECTED]
   Oggetto: Re: Strings to SAX events
  
  
   Try in a XSP the following, data is your xml string :
  
   util:include-expr
   util:exprxsp:expr
   data
   /xsp:expr/util:expr
   /util:include-expr
  
  
  
   - Original Message -
   From: Luca Morandini [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, November 08, 2002 10:55 AM
   Subject: Strings to SAX events
  
  
Folks,
   
 We're in the process of writing a Transformer, which, of
   course, outputs
SAX
 events... but, in the midst of this stream , we need to insert an
 XML element stored in a string.
   
 To do this we're groping in the dark trying something like this:
   
  JaxpParser respParser = new JaxpParser();
  respParser.parse( new InputSource(new StringReader(str)),
  new EmbeddedXMLPipe(contentHandler));
   
 Which fails giving this:
 org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
 java.lang.ClassCastException
 ...
 Caused by: java.lang.ClassCastException
  at
   
   
   com.lucamorandini.charts.ChartTransformer.endElement(ChartTransfor
   mer.java:6
55)
  at
   
   
   org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XM
   LByteStrea
mInterpreter.java:129)
  at
   
   
   org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserial
   ize(XMLByt
eStreamInterpreter.java:102)
  at
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
 (CachingEventPipeline.java:219)
  ... 44 more
   
 java.lang.ClassCastException
  at
   
   
   com.lucamorandini.charts.ChartTransformer.endElement(ChartTransfor
   mer.java:6
55)
  at
   
   
   org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XM
   LByteStrea
mInterpreter.java:129)
  at
   
   
   org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserial
   ize(XMLByt
eStreamInterpreter.java:102)
  at
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
 (CachingEventPipeline.java:219)
  at
   
   
   org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces
   s(CachingS
treamPipeline.java:399)
   
 The classes we use are:
  org.apache.avalon.excalibur.xml.JaxpParser;
  org.xml.sax.InputSource;
  java.io.StringReader;
  org.apache.cocoon.xml.EmbeddedXMLPipe;
   
 And the environment is:
  Solaris 5.8
  JDK 1.4.1_01
  Tomcat 4.1.12-LE-jdk14
  Cocoon 2.0.3
   
 May someone please help us ?
   
 Thanks in advance,
   
Piero De Nicola  Luca Morandini
   
   
 We are protected from the virus by Norton Antivirus
   Corporate Edition
   
   
 -
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]
 


  We are protected from the virus by Norton Antivirus Corporate Edition

 -
 Please check

R: R: Strings to SAX events

2002-11-08 Thread Luca Morandini
Marcus,

thanks for you help, but our implementation uses a SAX Transformer.
We evaluated Wings and decided to go our own way: I hate re-inventing the
wheel, but this time I deemed it necessary.

Best regards,

Luca Morandini
[EMAIL PROTECTED]

 -Messaggio originale-
 Da: Marcus Crafter [mailto:crafterm;fztig938.bank.dresdner.net]
 Inviato: venerdì 8 novembre 2002 13.00
 A: [EMAIL PROTECTED]
 Oggetto: Re: R: Strings to SAX events


 Hi Luca,

   Have you seen the WingsTransformer in 2.1 scratchpad ? It converts
   xcml (over at Krysalis) chart markup to svg which you can then give
   to svg2png/etc.

   I'm using it at the moment and it works quite well for pie, line
   and bar charts. Perhaps that might be of use, as it works nicely
   with Cocoon ?

   Cheers,

   Marcus

 On Fri, Nov 08, 2002 at 11:33:03AM +0100, Luca Morandini wrote:
  Ludovic,
 
  we're writing a Transformer to produce SVG (and JPEG/PNG
 optionally) charts.
  The idea is having the chart description and associated data in XML as
  input, transform them, ending up with a nice SVG to be serialized.
 
  We're using a charting library which doesn't produce a SAX stream, but
  outputs the SVG element as a string, hence, the need to insert this XML
  elements in the output SAX stream.
 
  I hope this clears the matter :)
 
  Luca Morandini
  Istituto Poligrafico e Zecca dello Stato
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
 
 
   -Messaggio originale-
   Da: Ludovic de Beaurepaire [mailto:ludovic.debeaurepaire;axonie.com]
   Inviato: venerdì 8 novembre 2002 11.26
   A: [EMAIL PROTECTED]
   Oggetto: Re: Strings to SAX events
  
  
   Luca
  
   Sorry if it is NOK, but i didn't understand why you want to add
   XML datas in
   the transformer instead of in your pipeline's generator ?
  
   Ludovic
   - Original Message -
   From: Luca Morandini [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, November 08, 2002 11:11 AM
   Subject: R: Strings to SAX events
  
  
Ludovic,
   
thanks for your kind answer, but we are not in an XSP page
   (we're writing
   a
Transformer instead), hence, your suggestion is not truly
 useful to us.
   
Best regards,
   
Luca Morandini
[EMAIL PROTECTED]
   
 -Messaggio originale-
 Da: Ludovic de Beaurepaire
 [mailto:ludovic.debeaurepaire;axonie.com]
 Inviato: venerdì 8 novembre 2002 11.02
 A: [EMAIL PROTECTED]
 Oggetto: Re: Strings to SAX events


 Try in a XSP the following, data is your xml string :

 util:include-expr
 util:exprxsp:expr
 data
 /xsp:expr/util:expr
 /util:include-expr



 - Original Message -
 From: Luca Morandini [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 08, 2002 10:55 AM
 Subject: Strings to SAX events


  Folks,
 
   We're in the process of writing a Transformer, which, of
 course, outputs
  SAX
   events... but, in the midst of this stream , we need
 to insert an
   XML element stored in a string.
 
   To do this we're groping in the dark trying something
 like this:
 
JaxpParser respParser = new JaxpParser();
respParser.parse( new InputSource(new StringReader(str)),
new EmbeddedXMLPipe(contentHandler));
 
   Which fails giving this:
   org.apache.cocoon.ProcessingException: Failed to
 execute pipeline.:
   java.lang.ClassCastException
   ...
   Caused by: java.lang.ClassCastException
at
 
 
 com.lucamorandini.charts.ChartTransformer.endElement(ChartTransfor
 mer.java:6
  55)
at
 
 
 org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XM
 LByteStrea
  mInterpreter.java:129)
at
 
 
 org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserial
 ize(XMLByt
  eStreamInterpreter.java:102)
at
 
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
   (CachingEventPipeline.java:219)
... 44 more
 
   java.lang.ClassCastException
at
 
 
 com.lucamorandini.charts.ChartTransformer.endElement(ChartTransfor
 mer.java:6
  55)
at
 
 
 org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XM
 LByteStrea
  mInterpreter.java:129)
at
 
 
 org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserial
 ize(XMLByt
  eStreamInterpreter.java:102)
at
 
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
   (CachingEventPipeline.java:219)
at
 
 
 org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces
 s(CachingS
  treamPipeline.java:399)
 
   The classes we use are:
org.apache.avalon.excalibur.xml.JaxpParser;
org.xml.sax.InputSource;
java.io.StringReader

JDK 1.4.1 on Solaris: org.apache.xml.dtm.DTMException: No more DTM IDs are available error

2002-10-30 Thread Luca Morandini
Folks,

we're trying to run Cocoon 2.0.3 on Solaris 8 with Tomcat 4.0.4b3 and JDK
1.4.1, but we're not even able to see the welcome page :(

Yes, we've put the Xalan, Xerces, and XML-apis jars in the endorsed
directory... but the problem is still there: any clue ?

Best regards,

Luca Morandini
[EMAIL PROTECTED]



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: JDK 1.4.1 on Solaris: org.apache.xml.dtm.DTMException: No more DTM IDs are available error

2002-10-30 Thread Luca Morandini
Luca,

the problem lies with Tomcat 4.0.4 b3 setting its own java.endorsed.dirs
parameter, thus overriding the default endorsed directory
($JAVA_HOME/jre/lib/endorsed).

What you could do is adding the following in catalina.sh (right after the
Execute requested command line):

JAVA_ENDORSED_DIRS=$JAVA_HOME/jre/lib/endorsed:$TOMCAT_HOME/bin:
$TOMCAT_HOME/common/lib
export JAVA_ENDORSED_DIRS

This would let JDK ovverride its version of Xalan and Xerces with the ones
shipped with cocoon 2.0.3 (they should be placed in
$JAVA_HOME/jre/lib/endorsed, of course).

Best regards,

P.S.
Folks, I'm growing tired of helping myself :(

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Luca Morandini [mailto:spectrum.morandini;ipzs.it]
 Inviato: mercoledì 30 ottobre 2002 12.56
 A: Cocoon-users
 Oggetto: JDK 1.4.1 on Solaris: org.apache.xml.dtm.DTMException: No more
 DTM IDs are available error


 Folks,

 we're trying to run Cocoon 2.0.3 on Solaris 8 with Tomcat 4.0.4b3 and JDK
 1.4.1, but we're not even able to see the welcome page :(

 Yes, we've put the Xalan, Xerces, and XML-apis jars in the endorsed
 directory... but the problem is still there: any clue ?

 Best regards,

 Luca Morandini
 [EMAIL PROTECTED]



  We are protected from the virus by Norton Antivirus Corporate Edition

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



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: Cocoon SQL Transformation

2002-10-29 Thread Luca Morandini
Tom,

what about adding a couple quotes around the username value ?

Something like:
insert into user_info (USERNAME) values ('xsl:value-of
select=detail/name/')

Best regards,

P.S.
Mind ! Strings may contain unmatched single quotes, which greatly offend the
SQL parser, think about converting unmatched single quotes in matched ones
(' -- '') before sending SQL statements to the SQLTransformer.

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Tom Place [mailto:psyttrp;nottingham.ac.uk]
 Inviato: lunedì 28 ottobre 2002 18.19
 A: [EMAIL PROTECTED]
 Oggetto: RE: Cocoon SQL Transformation


 OK the actual XML that is going into the failing XSL is as follows:

 user
   detail
 nametomplace/name
 passwordtom/password
 firsttom/first
 lastplace/last
   /detail
   existing-user
 rowset /
   /existing-user
 /user

 The fact that the existing user rowset is empty is a good thing (if it
 wasn't empty then something else happens that works!

 The xsl that fails is as follows:

 ?xml version=1.0?

 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:sql=http://apache.org/cocoon/SQL/2.0;

 xsl:template match=user

   page
 xsl:choose
   xsl:when test=existing-user/sql:rowset/sql:row
 titleBlah/title
   /xsl:when
   xsl:otherwise
 execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
   query
  insert into user_info (USERNAME) values (xsl:value-of
 select=detail/name/)
   /query
 /execute-query

 titleBlah 2/title
   /xsl:otherwise
 /xsl:choose
   /page
 /xsl:template
 /xsl:stylesheet

 -Original Message-
 From: Luca Morandini [mailto:spectrum.morandini;ipzs.it]
 Sent: 28 October 2002 15:27
 To: [EMAIL PROTECTED]
 Subject: R: Cocoon SQL Transformation

 Tom,

 I guess your pipeline contains a couple XSLT transformations and a
 couple
 SQL ones (one for the select, one for the insert), isn't it ?

 If this is true, could you please send me the XML which is sent to the
 failing transformation (be it SQL or XSLT) ?

 I'm interested in the actual XML document going into the transformer,
 not in
 the XSL source code.

 Best regards,

 Luca Morandini
 Istituto Poligrafico e Zecca dello Stato
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]




  We are protected from the virus by Norton Antivirus Corporate
 Edition

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



 We are protected from the virus by Norton Antivirus Corporate Edition

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




[SUMMARY]: document() XSLT function not working properly [WAS: Is this as anomaly ?]

2002-10-28 Thread Luca Morandini
Folks,

the anomaly I've found (document XSLT function returning a string instead of
a node-set) is linked to the Xalan version AND the incremental-processing
parameter.

It could be summarized as follows:

1) Xalan 2.2.0.D14 and incremental-processing set to true: Error
2) Xalan 2.2.0.D14 and incremental-processing set to false: Ok
3) Xalan 2.3.1 and incremental-processing set to true: Ok
4) Xalan 2.3.1 and incremental-processing set to false: Ok

Unfortunately, since Xalan 2.3.1 has a lot of bugs in it, I'm bounded to use
2.2.0.D14.
Therefore, I had to set the incremental-processing to false manually when
I switched to Cocoon 2.0.3, since the default is true (note: the default
is false in Cocoon 2.0.2, which explains why I didn't notice the problem
with that version of Cocoon).

Best regards,

P.S.
Vadim, thanks for the hint about Xalan !

Luca Morandini
[EMAIL PROTECTED]



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: Cocoon SQL Transformation

2002-10-28 Thread Luca Morandini
Tom,

every query element should live within a separate execute-query one,
like in:

 execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
   query
 insert into my_table (Col1, Col2) values ('1', '2')
   /query
 /execute-query

 execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
   query
 insert into my_table (Col1, Col2) values ('2', '3')
   /query
 /execute-query

I suppose you've already try this... then, what's the error you get ?

Best regards,

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Tom Place [mailto:psyttrp;nottingham.ac.uk]
 Inviato: lunedì 28 ottobre 2002 14.27
 A: [EMAIL PROTECTED]
 Oggetto: Cocoon SQL Transformation


 Hi all,

 Quick question to do with the way the cocoon SQL parser copes with
 multiple SQL statements.
 There is probably a very quick fix for this but I'm tearing my hair out
 trying to find it!

 When inserting using and SQL statement based in XSL like so:

 execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
   query
 insert into my_table (Col1, Col2) values ('1', '2')
   /query
 /execute-query
 This is fine, but when you want to add a second it wont do it!
 I have tried with a second set of execute-query tags, I have tried
 putting a second set of query tags within an execute-query

 Any Ideas?

 Cheers
 Tom


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



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: Cocoon SQL Transformation

2002-10-28 Thread Luca Morandini
Tom,

could you post the XML document that fails ?

Best regards,

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Tom Place [mailto:psyttrp;nottingham.ac.uk]
 Inviato: lunedì 28 ottobre 2002 15.38
 A: [EMAIL PROTECTED]
 Oggetto: RE: Cocoon SQL Transformation


 I have tried it like you say however am still getting an internal server
 error:

 org.apache.cocoon.ProcessingException: Exception during processing of
 file:/C:/tomcat/webapps/cocoon/autorevs/docs/doregister.xml:
 java.lang.RuntimeException: java.lang.RuntimeException:
 java.lang.NullPointerException

 The page will run with the sql commented out so that’s not the problem
 and the sql actually does insert into the db, but then you get the
 above!

 Tom

 -Original Message-
 From: Luca Morandini [mailto:spectrum.morandini;ipzs.it]
 Sent: 28 October 2002 14:06
 To: [EMAIL PROTECTED]
 Subject: R: Cocoon SQL Transformation

 Tom,

 every query element should live within a separate execute-query one,
 like in:

  execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
query
  insert into my_table (Col1, Col2) values ('1', '2')
/query
  /execute-query

  execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
query
  insert into my_table (Col1, Col2) values ('2', '3')
/query
  /execute-query

 I suppose you've already try this... then, what's the error you get ?

 Best regards,

 Luca Morandini
 [EMAIL PROTECTED]


  -Messaggio originale-
  Da: Tom Place [mailto:psyttrp;nottingham.ac.uk]
  Inviato: lunedì 28 ottobre 2002 14.27
  A: [EMAIL PROTECTED]
  Oggetto: Cocoon SQL Transformation
 
 
  Hi all,
 
  Quick question to do with the way the cocoon SQL parser copes with
  multiple SQL statements.
  There is probably a very quick fix for this but I'm tearing my hair
 out
  trying to find it!
 
  When inserting using and SQL statement based in XSL like so:
 
  execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
query
  insert into my_table (Col1, Col2) values ('1', '2')
/query
  /execute-query
  This is fine, but when you want to add a second it wont do it!
  I have tried with a second set of execute-query tags, I have tried
  putting a second set of query tags within an execute-query
 
  Any Ideas?
 
  Cheers
  Tom
 
 
  -
  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]
 


  We are protected from the virus by Norton Antivirus Corporate
 Edition

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



 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: encoding problem

2002-10-25 Thread Luca Morandini
Bert,

try iso-8859-1 as the default XML serializer encoding.

Best regards,

P.S.
Search the mailing list's archive for more information on serializers'
encodings.

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Bert Van Kets [mailto:bert;vankets.com]
 Inviato: venerdì 25 ottobre 2002 13.39
 A: [EMAIL PROTECTED]
 Oggetto: encoding problem


 Hi all,

 I have a mySQL database with varchar fields containing foreign characters
 (ex. ë)  Queries in the mySQL client yield correct results.
 When I do a query using the SQLTransfomer or esql the non ASCII
 characters
 are not presented properly.  The ë is converted to ë

 Here's the pipeline:
 map:match pattern=members/getmemberdata
map:generate type=serverpages src=test/test2.xsp/
map:transform type=sql
  map:parameter name=use-connection value=bvar/
/map:transform
map:serialize type=xml/
 /map:match

 All the serializers have the encodingUTF-8/encoding tag.
 The XSP file has a ?xml version=1.0 encoding=UTF-8? header.

 Isn't UTF-8 the correct encoding for European characters, or is something
 else wrong?

 Bert

 Using Cocoon 2.1 build 5/14/2002, Tomcat 4.0.1, JDK 1.3.1_02



 This mail is written in 100% recycled electrons.


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





 We are protected from the virus by Norton Antivirus Corporate Edition

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




R: R: encoding problem

2002-10-25 Thread Luca Morandini
Bert,

I can only say that I had your same problem and solved it by replacing utf-8
with iso-8859-1 in the serializers' encoding; moreover, AFAIK, the default
is utf-8 (as it should be, since XML has utf-8 as default).

Best regards,

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Bert Van Kets [mailto:bert;vankets.com]
 Inviato: venerdì 25 ottobre 2002 16.33
 A: [EMAIL PROTECTED]
 Oggetto: Re: R: encoding problem


 Of course I checked the mail logs before bugging the list.  I could not
 find a solution though.  I did find that I need to use UTF-8 and not
 iso-8859-1 (the Cocoon default)

 Searching through the source I found that a LOT of classes and XSLTs set
 the encoding to iso-8859-1, so I am replacing these to UTF-8 and will
 recompile afterwards.  Lets see what that gives.

 Bert

 At 13:55 25/10/2002 +0200, you wrote:
 Bert,
 
 try iso-8859-1 as the default XML serializer encoding.
 
 Best regards,
 
 P.S.
 Search the mailing list's archive for more information on serializers'
 encodings.
 
 Luca Morandini
 [EMAIL PROTECTED]
 
 


 We are protected from the virus by Norton Antivirus Corporate Edition

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




[SUMMARY] JFreeChart, anyone ?

2002-10-22 Thread Luca Morandini
Folks,

first, I'd like to thank all the people who kindly answered my call.

However, the project I'm currently involved needs something else than a
serializer, and something more flexible than Krysalis-Wings, therefore:

1) We'd like to build a transformer (chart definition and chart data in, SVG
out) from scratch (the resulting SVG may be serialized as PNG or JPEG later
in the pipeline)
2) We'll use JFreeChart (our customer likes it, moreover, we deem it more
powerful than JChart)
3) We'll develop the code for Pie, Bar and Stacked bar charts only; but we
hope to provide a good code base to build upon
4) Our customer (Istituto Poligrafico e Zecca dello Stato
http://www.ipzs.it ) would like to donate the resulting software (the
Transformer).
5) We'll develop it in the next couple of weeks
6) We'll build it using Cocoon 2.0.2

Let me know if someone has some comments/suggestions on it. Particularly,
I'd like to know whether it could be built as a Cocoon block (and how).

Best regards,

Luca Morandini
[EMAIL PROTECTED]
[EMAIL PROTECTED]



 We are protected from the virus by Norton Antivirus Corporate Edition

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




Software Development magazine reviews a Cocoon book

2002-10-11 Thread Luca Morandini

Folks,

in the November issue of Software Developoment ( http://www.sdmagazine.com ) you may 
find a brief review of Cocoon: building XML
applications by well-known posters Carsten  Matthew: Cocoon scores another point :)

Best regards,

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



-
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: Accessing Oracle Stored Procedures

2002-10-08 Thread Luca Morandini

Tom,

what about putting a comma to separate the parameters in the SP call ?

Best regards,

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

 -Original Message-
 From: Tom Shepherd [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 7:08 PM
 To: [EMAIL PROTECTED]
 Subject: Accessing Oracle Stored Procedures
 
 
 I am using esql on Cocoon 2.0.3 to run a stored procedure with multiple 'IN' 
parameters on an Oracle 8.1.7 database but 
 without success. I have run other procedures on the same database which have a 
single 'IN' parameter without any problem. 
 I have also altered my 'problem' procedure to have a single 'IN' parameter and all 
is OK so I know the procedure if fine.
 
 The esql code I am using is as follows:-
 
 esql:call{call suggestion.enterSuggestion(
 esql:parameter direction=in 
type=Stringxsp:exprexprOne/xsp:expr/esql:parameter
 esql:parameter direction=in 
type=Stringxsp:exprexprTwo/xsp:expr/esql:parameter
 )}/esql:call
 
 (I am using this within the standard esql:execute-query structure).
 
 I always get the same error:-
 
 ORA-06550: line 1, column 38: PLS-00103: Encountered the symbol  when expecting 
one of the following: . ( ) , * @ %  | 
 = - +  /  at in mod not range rem = .. an exponent (**)  or != or ~= = =  
and or like as between from using is 
 null is not || indicator is dangling The symbol , was substituted for  to 
continue.
 
 Can anyone help?
 
 
 --
 
 This e-mail may contain confidential and/or privileged information. If you are not 
the intended recipient (or have 
 received this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized copying, 
 disclosure or distribution of the material in this e-mail is strictly forbidden.
 
 
 
 -
 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]




RE: Why is my cocoon app an IE6 killer?

2002-10-05 Thread Luca Morandini

Ryan,

I can confirm your findings, with IE 5.5 and IE 6.0 I've experienced this anomaly even 
when not using coyote. Actually, I used the
ISAPI filter, since my front-end is IIS.

BTW, back then (a year ago) I've contacted the Microsoft tech support: they recognized 
the existence of a problem and were very
collaborative, but, in the end, nothing came out of it.

Best regards,

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


 -Original Message-
 From: Ryan Agler [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, October 05, 2002 9:29 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Why is my cocoon app an IE6 killer?


 That could be a clue.  However, from testing, I don't think it's limited
 to the use of HTTP/1.0. I experience the same thing even though I am
 positive  IE6 is using HTTP/1.1 -- both when I visit
 http://www.helnwein.com/werke/theater/tafel_1.html , and when I enable
 Coyote and visit my own webapp's pages (and I can even see in the logs
 that IE6 is using HTTP/1.1)

 -Original Message-
 From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]]

 Sent: Saturday, October 05, 2002 2:00 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Why is my cocoon app an IE6 killer?

 I posted this today:

 I think I found where the problem is:

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12783

 It looks like is a Tomcat.

 Antonio Gallardo.


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




RE: R: embedding html in xml ?

2002-10-04 Thread Luca Morandini

Jessica  Lorenzo,

I'd like conducting a little experiment

let's suppose we have an XML like this:

?xml version=1.0?
page
parameter
well-formed a href=http://www.apache.org;Apache/a html
br/
/parameter
/page

...and an XSL like this:

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

xsl:template match=page
html
head/
body
xsl:apply-templates/
/body
/html
/xsl:template

xsl:template match=parameter

p
value-of with escapingbr/
xsl:value-of select=. 
disable-output-escaping=yes/
/p

p
value-of without escapingbr/
xsl:value-of select=. disable-output-escaping=no/
/p

p
copy-ofbr/
xsl:copy-of select=./node()/
/p

/xsl:template

/xsl:stylesheet

..and a simple sitemap like:

map:match pattern=test.html
map:generate src=test.xml/
map:transform src=test.xsl/
map:serialize type=html/
/map:match

...the result is that only copy-of respects the tagging of the HTML fragment.

Since I believe your method, somehow, works, could you please send me an example of 
the output of the generation step (i.e. what
your XSP page retrieves from the database) ?

Best regards,

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


 -Original Message-
 From: Jessica Niewint [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 5:10 PM
 To: [EMAIL PROTECTED]
 Subject: Re: R: embedding html in xml ?


 At 16.21 03/10/2002 +0200, you wrote:
 Luca,
 
 I'm sure you're right with the specification. I was just sharing a humble
 real life example.
 
 I actually have an XSP containing esql:get-columns/. One of the columns
 contains HTML (which BTW most of the times isn't even well-formed at all
 :-)), as I guessed in Jessica's case.



 Yes :-))


 If I don't put any disable-output-escaping=yes I get the whole markup
 escaped and visible to the user. That's why I disable it, and get a nice
 page fragment as designed by who put the HTML in the DB. This works to me,
 even if sincerely I don't know why :-))
 
   Works also for me  (and I also have no idea why 8-)





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




  1   2   3   4   >