Re: DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML

2002-10-11 Thread Roger Ting
] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add(2002-9-01,  interval 23 day)discharge_date
DEBUG   (2002-10-10) 05:44.06:430   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=25
DEBUG   (2002-10-10) 05:44.06:600   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add(2002-9-01,  interval 24 day)discharge_date
DEBUG   (2002-10-10) 05:44.06:710   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=26
DEBUG   (2002-10-10) 05:44.06:870   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add(2002-9-01,  interval 25 day)discharge_date
DEBUG   (2002-10-10) 05:44.07:040   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=27
DEBUG   (2002-10-10) 05:44.07:200   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add(2002-9-01,  interval 26 day)discharge_date
DEBUG   (2002-10-10) 05:44.07:370   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=28
DEBUG   (2002-10-10) 05:44.07:530   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add(2002-9-01,  interval 27 day)discharge_date
DEBUG   (2002-10-10) 05:44.07:700   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=29
DEBUG   (2002-10-10) 05:44.07:860   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add(2002-9-01,  interval 28 day)discharge_date
DEBUG   (2002-10-10) 05:44.08:030   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=30
DEBUG   (2002-10-10) 05:44.08:190   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add(2002-9-01,  interval 29 day)discharge_date


HERE ARE MY SITEMAP DECLARATION
map:match pattern=monthly type=wildcard-request-parameter
map:generate 
type=xsp src=Xsp/monthly.xsp/
map:transform 
type=xslt src=Xsl/monthly_fall.xsl/
map:serialize 
type=xml/
/map:match

No error message etc, it just drop the output for drawing bar and tex
as shown on the XSLT below.

XSP-XML SAVED-XSLT - OUTPUT works

XSP-XSLT-OUTPUT doesn't works




From: Geoff Howard [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML Date: 
Thu, 10 Oct 2002 12:53:03 -0700 (PDT)

I haven't followed your this whole thread, but I think
I've had similar problems that turned out to be
related to namespaces.  Are there any namespaces
declared in your XSP that are not declared in your
XSLT (whether they are used in the output or not)?  If
so, try declaring them in the xslt.  I never looked at
the problem carefully enough to determine whether it
was cocoon not handling things properly, or whether it
was just sloppy handling of namespaces on my part, but
that has fixed

DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML

2002-10-10 Thread Roger Ting
xsl:attribute name=height
2
/xsl:attribute
/rect


line style=stroke:red; stroke-width:0.4;
xsl:attribute name=y1
xsl:value-of select=$threshold+1/
/xsl:attribute
xsl:attribute name=x1
xsl:value-of select=(($count)*5)+2/
/xsl:attribute
xsl:attribute name=y2
xsl:value-of select=$threshold+1/
/xsl:attribute
xsl:attribute name=x2
xsl:value-of select=(($count)+1*5)+2/
/xsl:attribute
/line

xsl:if test=not($count=$last)
line style=stroke:blue; stroke-width:0.4;
xsl:attribute name=y1xsl:value-of 
select=($n)*10//xsl:attribute
xsl:attribute name=x1xsl:value-of 
select=($count*5)+2//xsl:attribute
xsl:attribute name=y2xsl:value-of 
select=($next)*10//xsl:attribute
xsl:attribute name=x2xsl:value-of 
select=(($count+1)*5)+2//xsl:attribute
/line
/xsl:if
/g
/xsl:template

xsl:template name=write-text
xsl:param name=count/
g transform=translate(1,100) scale(2,2)
text
xsl:attribute name=font-size
xsl:value-of select=5 * 2 div 3 /
/xsl:attribute
xsl:attribute name=x
xsl:value-of select=$count*5/
/xsl:attribute
xsl:attribute name=y6/xsl:attribute

xsl:value-of select=$count/

/text
   /g
/xsl:template
/xsl:stylesheet





I am suspecting there is something wrong with cocoon when it come to xsp 
with esql and do transformation using XSLT. The other user solve
the problem by breaking down the XSLT stylesheet to a smaller chunk
and it works. He also tried everything before using the last method.







From: Joerg Heinicke [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Cocoon FAILS in transforming XML
Date: Thu, 10 Oct 2002 02:57:32 +0200

If your Cocoon is working in general, I can only guess that the error is to 
search in your stylesheet. Cocoon itself uses XSLT more or less heavily 
(e.g. for creating sitemap_xmap.java). Can you show a bit code of your XSP, 
XSL and sitemap? You can post a minimum example, where your code gets 
already wrong.

Regards,

Joerg

Roger Ting wrote:

I kind of doubt that it has to do with XSP because if i serialize the
output as XML and do the transformation later by reading the xml file
generated from the XSP directly, it works fine . HOwever, if i generate
the XSP directly, some of the output just missing

Anyone use XSP with ESQL and use XSLT transformation faces the same
problem?

From: Ryan Agler [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Cocoon FAILS in transforming XML
Date: Wed, 9 Oct 2002 00:20:19 -0400

Best guess is that something is wrong with the xsp.  Can you post your
log file?

-Original Message-
From: Roger Ting [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon FAILS in transforming XML

I am using the latest binary distribution which is the 2.0.3.

I just change the Xalan and Xerces to the latest version. This
doesn't help.

This only happens when i am using xsp with xslt to do transformation.
The xsp are using esql logicsheet. This doesn't happen when i am
using file generator to read xml and transform to SVG using XSLT.

Any idea?

Thx


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




_
Send and receive Hotmail on your mobile device: http://mobile.msn.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

Re: DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML

2002-10-10 Thread Geoff Howard
   xsl:attribute name=height
   2
   /xsl:attribute
   /rect
 
   rect style=fill:blue;stroke:blue;
   xsl:attribute name=yxsl:value-of
 select=$n*10//xsl:attribute
   xsl:attribute name=xxsl:value-of 
 select=$count*5+1//xsl:attribute
   xsl:attribute name=width
   2
   /xsl:attribute
   xsl:attribute name=height
   2
   /xsl:attribute
   /rect
 
 
   line style=stroke:red; stroke-width:0.4;
   xsl:attribute name=y1
   xsl:value-of select=$threshold+1/
   /xsl:attribute
   xsl:attribute name=x1
   xsl:value-of select=(($count)*5)+2/
   /xsl:attribute
   xsl:attribute name=y2
   xsl:value-of select=$threshold+1/
   /xsl:attribute
   xsl:attribute name=x2
   xsl:value-of select=(($count)+1*5)+2/
   /xsl:attribute
   /line
 
   xsl:if test=not($count=$last)
   line style=stroke:blue; stroke-width:0.4;
   xsl:attribute name=y1xsl:value-of 
 select=($n)*10//xsl:attribute
   xsl:attribute name=x1xsl:value-of 
 select=($count*5)+2//xsl:attribute
   xsl:attribute name=y2xsl:value-of 
 select=($next)*10//xsl:attribute
   xsl:attribute name=x2xsl:value-of 
 select=(($count+1)*5)+2//xsl:attribute
   /line
   /xsl:if
   /g
 /xsl:template
 
 xsl:template name=write-text
   xsl:param name=count/
   g transform=translate(1,100) scale(2,2)
   text
   xsl:attribute name=font-size
   xsl:value-of select=5 * 2 div 3 /
   /xsl:attribute
   xsl:attribute name=x
   xsl:value-of select=$count*5/
   /xsl:attribute
   xsl:attribute name=y6/xsl:attribute
 
   xsl:value-of select=$count/
 
   /text
/g
 /xsl:template
 /xsl:stylesheet
 


 
 
 
 I am suspecting there is something wrong with cocoon
 when it come to xsp 
 with esql and do transformation using XSLT. The
 other user solve
 the problem by breaking down the XSLT stylesheet to
 a smaller chunk
 and it works. He also tried everything before using
 the last method.
 
 
 
 
 
 
 
 From: Joerg Heinicke [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon FAILS in transforming XML
 Date: Thu, 10 Oct 2002 02:57:32 +0200
 
 If your Cocoon is working in general, I can only
 guess that the error is to 
 search in your stylesheet. Cocoon itself uses XSLT
 more or less heavily 
 (e.g. for creating sitemap_xmap.java). Can you show
 a bit code of your XSP, 
 XSL and sitemap? You can post a minimum example,
 where your code gets 
 already wrong.
 
 Regards,
 
 Joerg
 
 Roger Ting wrote:
 
 I kind of doubt that it has to do with XSP because
 if i serialize the
 output as XML and do the transformation later by
 reading the xml file
 generated from the XSP directly, it works fine .
 HOwever, if i generate
 the XSP directly, some of the output just missing
 
 Anyone use XSP with ESQL and use XSLT
 transformation faces the same
 problem?
 
 From: Ryan Agler [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Cocoon FAILS in transforming XML
 Date: Wed, 9 Oct 2002 00:20:19 -0400
 
 Best guess is that something is wrong with the
 xsp.  Can you post your
 log file?
 
 -Original Message-
 From: Roger Ting [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 11:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon FAILS in transforming XML
 
 I am using the latest binary distribution which
 is the 2.0.3.
 
 I just change the Xalan and Xerces to the latest
 version. This
 doesn't help.
 
 This only happens when i am using xsp with xslt
 to do transformation.
 The xsp are using esql logicsheet. This doesn't
 happen when i am
 using file generator to read xml and transform to
 SVG using XSLT.
 
 Any idea?
 
 Thx

RE: Cocoon FAILS in transforming XML

2002-10-09 Thread Roger Ting


I kind of doubt that it has to do with XSP because if i serialize the
output as XML and do the transformation later by reading the xml file
generated from the XSP directly, it works fine . HOwever, if i generate
the XSP directly, some of the output just missing

Anyone use XSP with ESQL and use XSLT transformation faces the same
problem?



From: Ryan Agler [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Cocoon FAILS in transforming XML
Date: Wed, 9 Oct 2002 00:20:19 -0400

Best guess is that something is wrong with the xsp.  Can you post your
log file?

-Original Message-
From: Roger Ting [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon FAILS in transforming XML

I am using the latest binary distribution which is the 2.0.3.

I just change the Xalan and Xerces to the latest version. This
doesn't help.

This only happens when i am using xsp with xslt to do transformation.
The xsp are using esql logicsheet. This doesn't happen when i am
using file generator to read xml and transform to SVG using XSLT.

Any idea?

Thx


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


\

_
Send and receive Hotmail on your mobile device: http://mobile.msn.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]




RE: Cocoon FAILS in transforming XML

2002-10-09 Thread Ryan Agler

My apologies as I'm having trouble following sitemap flow from your
description.  You can find most likely the root cause in the
WEB-INF/logs.  A couple things that might help:

Make sure you have include type=serverpages when generating the xsp
(map:generate type=serverpages src=myfile.xsp/).  

Also, I have had problems before when trying to do generate--serialize
instead of generate--transform--serialize.  So, I wrote a simple
stylesheet that just copies the generated xsp content before
serialization:

   xsl:template match=/
  xsl:element name={name(*)}
 xsl:copy-of select=*/*/
  /xsl:element
   /xsl:template

Good Luck

-Original Message-
From: Roger Ting [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 12:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon FAILS in transforming XML


I kind of doubt that it has to do with XSP because if i serialize the
output as XML and do the transformation later by reading the xml file
generated from the XSP directly, it works fine . HOwever, if i generate
the XSP directly, some of the output just missing

Anyone use XSP with ESQL and use XSLT transformation faces the same
problem?


-
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 FAILS in transforming XML

2002-10-09 Thread Joerg Heinicke

If your Cocoon is working in general, I can only guess that the error is 
to search in your stylesheet. Cocoon itself uses XSLT more or less 
heavily (e.g. for creating sitemap_xmap.java). Can you show a bit code 
of your XSP, XSL and sitemap? You can post a minimum example, where your 
code gets already wrong.

Regards,

Joerg

Roger Ting wrote:
 
 I kind of doubt that it has to do with XSP because if i serialize the
 output as XML and do the transformation later by reading the xml file
 generated from the XSP directly, it works fine . HOwever, if i generate
 the XSP directly, some of the output just missing
 
 Anyone use XSP with ESQL and use XSLT transformation faces the same
 problem?
 
 From: Ryan Agler [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Cocoon FAILS in transforming XML
 Date: Wed, 9 Oct 2002 00:20:19 -0400

 Best guess is that something is wrong with the xsp.  Can you post your
 log file?

 -Original Message-
 From: Roger Ting [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 11:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon FAILS in transforming XML

 I am using the latest binary distribution which is the 2.0.3.

 I just change the Xalan and Xerces to the latest version. This
 doesn't help.

 This only happens when i am using xsp with xslt to do transformation.
 The xsp are using esql logicsheet. This doesn't happen when i am
 using file generator to read xml and transform to SVG using XSLT.

 Any idea?

 Thx


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




Cocoon FAILS in transforming XML

2002-10-08 Thread Roger Ting


Hi all..Have anyone experience this problem before?
Cocoon failing to transform the XML to HTML or SVG using XSLT.

When i use Xalan alone to do the transformation, it works perfectly
fine. But i do a transformation through cocoon. It lost most of
the output. Another user said that he broke the XSLT stylesheet into
smaller module, the whole things work again.

Is it a known bug in cocoon??? Any way out of this ??


Thx!




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.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]




Re: Cocoon FAILS in transforming XML

2002-10-08 Thread Joerg Heinicke

Hi Roger,

normally everything works okay in Cocoon. We use XSLT heavily in 
different applications (both HTML and SVG as output). Maybe your version 
of Cocoon or Xerces/Xalan version have some bugs. What versions are you 
used?

Regards,

Joerg

Roger Ting wrote:
 
 Hi all..Have anyone experience this problem before?
 Cocoon failing to transform the XML to HTML or SVG using XSLT.
 
 When i use Xalan alone to do the transformation, it works perfectly
 fine. But i do a transformation through cocoon. It lost most of
 the output. Another user said that he broke the XSLT stylesheet into
 smaller module, the whole things work again.
 
 Is it a known bug in cocoon??? Any way out of this ??
 
 Thx!


-
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 FAILS in transforming XML

2002-10-08 Thread Roger Ting

I am using the latest binary distribution which is the 2.0.3.

I just change the Xalan and Xerces to the latest version. This
doesn't help.

This only happens when i am using xsp with xslt to do transformation.
The xsp are using esql logicsheet. This doesn't happen when i am
using file generator to read xml and transform to SVG using XSLT.

Any idea?

Thx

From: Joerg Heinicke [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Cocoon FAILS in transforming XML
Date: Tue, 08 Oct 2002 22:10:26 +0200

Hi Roger,

normally everything works okay in Cocoon. We use XSLT heavily in different 
applications (both HTML and SVG as output). Maybe your version of Cocoon or 
Xerces/Xalan version have some bugs. What versions are you used?

Regards,

Joerg

Roger Ting wrote:

Hi all..Have anyone experience this problem before?
Cocoon failing to transform the XML to HTML or SVG using XSLT.

When i use Xalan alone to do the transformation, it works perfectly
fine. But i do a transformation through cocoon. It lost most of
the output. Another user said that he broke the XSLT stylesheet into
smaller module, the whole things work again.

Is it a known bug in cocoon??? Any way out of this ??

Thx!


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




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.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]




RE: Cocoon FAILS in transforming XML

2002-10-08 Thread Ryan Agler

Best guess is that something is wrong with the xsp.  Can you post your
log file?

-Original Message-
From: Roger Ting [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 08, 2002 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon FAILS in transforming XML

I am using the latest binary distribution which is the 2.0.3.

I just change the Xalan and Xerces to the latest version. This
doesn't help.

This only happens when i am using xsp with xslt to do transformation.
The xsp are using esql logicsheet. This doesn't happen when i am
using file generator to read xml and transform to SVG using XSLT.

Any idea?

Thx


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