Q: JSP troubles

2002-08-26 Thread Raúl Wild-Spain

Hi! in my cocoon the exemples (server section) for JSP (JSP Generator and
JSP Reader) fails.
Exactly:

**4JSPgenerator**
---
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Exception JspGenerator.generate()

More precisely:

org.apache.cocoon.ProcessingException: Exception JspGenerator.generate():
java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
---

and the first line of chain stacktrace:

---
Original exception : java.lang.ClassNotFoundException:
org.apache.jasper.servlet.JspServlet
at com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:530)
---

***4JSPReader***
---
Exception JSPReader.generate()

More precisely:

org.apache.cocoon.ProcessingException: Exception JSPReader.generate():
java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
---


My system:
Linux Debian, java 1.4, ResinEE, Cocoon. (latest versions)
Tips: SERVER_ROOT and RESIN_HOME have different values. Previously I was
changed servlet-classloader-hack to true at the resin.conf, because of
another previous trouble.

somebody can help me?

thanks2all ;-)

Raúl,
[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: JSP troubles

2002-08-26 Thread Piroumian Konstantin

 From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] 
 
 Hi! in my cocoon the exemples (server section) for JSP (JSP 
 Generator and
 JSP Reader) fails.
 Exactly:
 
 **4JSPgenerator**
 ---
 The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:
 
 Exception JspGenerator.generate()
 
 More precisely:
 
 org.apache.cocoon.ProcessingException: Exception 
 JspGenerator.generate():
 java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
 ---
 
 and the first line of chain stacktrace:
 
 ---
 Original exception : java.lang.ClassNotFoundException:
 org.apache.jasper.servlet.JspServlet
 at 
 com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoade
 r.java:530)
 ---
 
 ***4JSPReader***
 ---
 Exception JSPReader.generate()
 
 More precisely:
 
 org.apache.cocoon.ProcessingException: Exception JSPReader.generate():
 java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
 ---
 
 
 My system:
 Linux Debian, java 1.4, ResinEE, Cocoon. (latest versions)
 Tips: SERVER_ROOT and RESIN_HOME have different values. 
 Previously I was
 changed servlet-classloader-hack to true at the resin.conf, because of
 another previous trouble.

No wonder that JSP fails. The default settings of the JSPEngine in Cocoon
are for Tomcat and not Resin. Take a look at WEB-INF/cocoon.xconf and change
the jsp-engine section to point to the JSP servlet in Resin. 

There were some troubles with JSPEngine in Cocoon on Resin, please let us
know if you succeed.

Konstantin

 
 somebody can help me?
 
 thanks2all ;-)
 
 Raúl,
 [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 force HTMLGenerator to leave xi:include elements?

2002-08-26 Thread Marcin Stefaniuk

Yes, it is smart idea for including but design source lost special goLive tags?

On the second hand when I use TidyGUI even without defining tags everything is left.
In HTMLGenerator not...

Marcin


-Original Message-
From: Conal Tuohy [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 25, 2002 9:59 PM
To: [EMAIL PROTECTED]
Subject: RE: How force HTMLGenerator to leave xi:include elements?


I've done something similar ... but I haven't hacked the HTMLGenerator ... I simply 
added custom ATTRIBUTES to the HTML elements, and transformed those. 

 -Original Message-
 From: Marcin Stefaniuk [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 26 August 2002 02:44
 To: Cocoon Users (E-mail)
 Subject: How force HTMLGenerator to leave xi:include elements?
 
 
 Hello!
 In my new company graphic design of a site is authored in
 Adobe goLive. I want to simply combine work of designers and 
 mine (in databases and Cocoon2.1). I decided to put some 
 xi:include elements in html source and join it in pipeline, 
 but jTidy strips all non html tags including goLive special 
 and xi:include (namespace is defined).
 
 I've tried to fix it rebuilding HTMLGenerator to use jTidy 
 with config file on disk (with defined tags) and with setting 
 setXmlInput property to true. No effect.
 
 Thanks for any help.
 Marcin Stefaniuk
 
 -
 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]




Try-catch error

2002-08-26 Thread Ganael LAPLANCHE



Hi !

I'm trying to include a very basic XSP part to my 
pages, but if I insert a try-catch, I get this error message :


type 
fatal
message 
Language Exception
description org.apache.cocoon.ProcessingException: 
Language Exception: org.apache.cocoon.components.language.LanguageException: 
Error compiling test_2_xml: Line 66, column 2: illegal start of type Line 49, 
column 11: class org.apache.cocoon.www.docs.test.docs.test_2_xml should be 
declared abstract; it does not define method generate() in interface 
org.apache.cocoon.generation.Generator Line 0, column 0: 2 errors 
Here is the source code :

xsp:logic
try
{
 public static String foo = 
"Hello";
}
catch(Exception e)
{
}
/xsp:logic

It works without the try-catch structure... but 
doesn't with...

Could someone help me ? What is this method 
generate() ? How do I declare my xml file abstact ??? I'm lost...

Thank you,
Marty.





Re: i18n transformer problem II

2002-08-26 Thread Dr. Hans M. Rupp

Ok

what I get before i18n  (using a pre_i18n view)

i18n:text i18n:key=x2TEMPERATURE_CURRENT/i18n:text
this originates from the master-stylesheet and is translated by the
transformer correctly.

further down in the file:
i18n:text i18n:key=x2TEMPERATURE_CURRENT/i18n:text
this originated from a named template in  included stylesheet. This is not
translated.

To me those two lines look exactly the same.

Any ideas??

This is really driving me nuts. :-(

Many thanks,

Hans



Piroumian Konstantin wrote:

  From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
 ...
 
  And the i18n tags in the main stylesheet are all processed
  correctly, only
  those coming from the included stylesheet with the named template are
  ignored.

 Try to remove the i18n transformer from the pipeline and serialize as XML to
 see what is the output. Maybe there are problems with the namespace that
 comes from another stylesheet. Maybe the namespace is redeclared for the
 i18n prefix and i18n transformer does not process them?

 Konstantin

 
  Many thanks,
 
  Hans
 
  Piroumian Konstantin wrote:
 
From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
   
Hallo!
   
When have the following problem.
i18n tags which are included in xsl templates which
  produce the main
body of the html output are processed correctly.
However at some times I want to call a named template which is
physically located in a different xsl file to produce the
right i18n tag
like:
   
xsl:template name=MapWeatherCriterionEnum
 xsl:param name=constant /
 xsl:variable name=enumType select='WeatherCriterionEnum' /
 xsl:choose
  xsl:when test=$constant='WEATHER'i18n:text
   
  i18n:key=WeatherCriterionEnum.WEATHERWEATHER/i18n:text/xsl:when
  xsl:when test=$constant='TEMPERATURE_CURRENT'i18n:text
i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR
E_CURRENT/i18n:text/xsl:when
   
...
   
The i18n tags produced by named templates are never touched
by the i18n
Transformer!
  
   This can mean only that i18n transformer is not present in
  your pipeline.
   You should run i18n transformer after the XSLT
  transformation. Check your
   sitemap.
  
   Konstantin
  
   
The output before i18n:
   
td class=Texti18n:text
i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR
E_CURRENT/i18n:text/td
   
output after i18n:
   
td class=Text
i18n:text
i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR
E_CURRENT/i18n:text
   
/td
   
We use Cocoon 2.03
   
I would be gratefull for any ideas.
   
Many thanks,
   
Hans
   
   

Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany
   
Fon +49 711 133 53 50
Fax +49 711 133 53 53
   
--
   
   
   
   
  -
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]
 
  --
  
  Dr. Hans M. Rupp
  danet Internet Solutions GmbH
  Waldburgstr. 17-19
  70563 Stuttgart
  Germany
 
  Fon +49 711 133 53 50
  Fax +49 711 133 53 53
 
  --
 
 
 
  -
  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]

--

Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



-
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 

RE: i18n transformer problem II

2002-08-26 Thread Piroumian Konstantin

 From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] 
 
 Ok
 
 what I get before i18n  (using a pre_i18n view)
 
 i18n:text i18n:key=x2TEMPERATURE_CURRENT/i18n:text
 this originates from the master-stylesheet and is translated by the
 transformer correctly.
 
 further down in the file:
 i18n:text i18n:key=x2TEMPERATURE_CURRENT/i18n:text
 this originated from a named template in  included 
 stylesheet. This is not
 translated.
 
 To me those two lines look exactly the same.

Absolutely. Except that they can be mapped to different namespaces depending
on their parent elements. Check that you don't have anything like bla
xmlns:i18n=something wrong / wrapping the second result.

 
 Any ideas??

No other ideas. If you send relevant files then I'll try to find out what's
wrong.

Konstantin

 
 This is really driving me nuts. :-(
 
 Many thanks,
 
 Hans
 
 
 
 Piroumian Konstantin wrote:
 
   From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
  ...
  
   And the i18n tags in the main stylesheet are all processed
   correctly, only
   those coming from the included stylesheet with the named 
 template are
   ignored.
 
  Try to remove the i18n transformer from the pipeline and 
 serialize as XML to
  see what is the output. Maybe there are problems with the 
 namespace that
  comes from another stylesheet. Maybe the namespace is 
 redeclared for the
  i18n prefix and i18n transformer does not process them?
 
  Konstantin
 
  
   Many thanks,
  
   Hans
  
   Piroumian Konstantin wrote:
  
 From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]

 Hallo!

 When have the following problem.
 i18n tags which are included in xsl templates which
   produce the main
 body of the html output are processed correctly.
 However at some times I want to call a named template which is
 physically located in a different xsl file to produce the
 right i18n tag
 like:

 xsl:template name=MapWeatherCriterionEnum
  xsl:param name=constant /
  xsl:variable name=enumType 
 select='WeatherCriterionEnum' /
  xsl:choose
   xsl:when test=$constant='WEATHER'i18n:text

   
 i18n:key=WeatherCriterionEnum.WEATHERWEATHER/i18n:text/xsl:when
   xsl:when test=$constant='TEMPERATURE_CURRENT'i18n:text
 i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR
 E_CURRENT/i18n:text/xsl:when

 ...

 The i18n tags produced by named templates are never touched
 by the i18n
 Transformer!
   
This can mean only that i18n transformer is not present in
   your pipeline.
You should run i18n transformer after the XSLT
   transformation. Check your
sitemap.
   
Konstantin
   

 The output before i18n:

 td class=Texti18n:text
 i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR
 E_CURRENT/i18n:text/td

 output after i18n:

 td class=Text
 i18n:text
 i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR
 E_CURRENT/i18n:text

 /td

 We use Cocoon 2.03

 I would be gratefull for any ideas.

 Many thanks,

 Hans


 
 Dr. Hans M. Rupp
 danet Internet Solutions GmbH
 Waldburgstr. 17-19
 70563 Stuttgart
 Germany

 Fon +49 711 133 53 50
 Fax +49 711 133 53 53

 --




   
 -
 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]
  
   --
   
   Dr. Hans M. Rupp
   danet Internet Solutions GmbH
   Waldburgstr. 17-19
   70563 Stuttgart
   Germany
  
   Fon +49 711 133 53 50
   Fax +49 711 133 53 53
  
   --
  
  
  
   
 -
   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: 

[HELP]Exception JSPReader.generate()

2002-08-26 Thread Matthias Baumann
Title: Nachricht



Description:org.apache.cocoon.ProcessingException: 
Exception JSPReader.generate(): java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
I use cocoon 2.0.3 on 
JBoss-2.4.4_Tomcat-4.0.1 !
I try to use jsp 
Generator . But it is the Exception shown.
i use this 
startpaarmeter: 
set 
JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/xml-apis.jar.jar
the lib's crimson.jar 
and jaxp.jar are deleted.

What can i 
do??

Please 
help.

Thanks,
Matthias




Re: CInclude bug???

2002-08-26 Thread Andrew C. Oliver

Incorrect.  This is a bug and the @select does work in Cocoon 2.1.x.  

I have a fix on my local drive but I haven't submitted it yet.  Will do 
so very soon.  

-Andy

Per Kreipke wrote:

Apurva,

  

to make the long story short:

the output has the whole xml file after the section of
the xml file i want to include.

i.e

cinclude:include
src=../../commons/contents/ATTRIBUTES.xml
select=data/AGE/* /

outputs:

?xml version=1.0 encoding=UTF-8?
age data age  !-- this is what i want --

data   !-- this is what i DONT want --
  dt text dt
  age data age
/data

Am i doin something wrong or is it a bug??



Not a bug. CInclude does not support selecting just a portion of your XML
model (and neither does XInclude).

E.g. your @select above does nothing.

To do what you want to do, just add a XSLT tranformer _after_ your CInclude,
then in that XSLT logic either:

- match the elements you want with identity templates,

- or, create a generic identity template and use empty matchers for the
elements you _don't_ want.

XSLT makes a clean, generic filtering language.

Note: Cocoon's FilterTransformer does something similar but in a very
restricted way (it basically only is used for paging through data models).

Per


-
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: CInclude bug???

2002-08-26 Thread Andrew C. Oliver

And CInclude does support @select now.

Per Kreipke wrote:

Apurva,

I need more sleep: XInclude _does_ in fact allow you to subselect using
XPointer syntax.

See
http://xml.apache.org/cocoon/userdocs/transformers/xinclude-transformer.html

for details. Requires sitemap change.

  

-Original Message-
From: Per Kreipke [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 25, 2002 11:41 PM
To: [EMAIL PROTECTED]
Subject: RE: CInclude bug???


Apurva,



to make the long story short:

the output has the whole xml file after the section of
the xml file i want to include.

i.e

cinclude:include
src=../../commons/contents/ATTRIBUTES.xml
select=data/AGE/* /

outputs:

?xml version=1.0 encoding=UTF-8?
age data age  !-- this is what i want --

data   !-- this is what i DONT want --
  dt text dt
  age data age
/data

Am i doin something wrong or is it a bug??
  

Not a bug. CInclude does not support selecting just a portion of your XML
model (and neither does XInclude).

E.g. your @select above does nothing.

To do what you want to do, just add a XSLT tranformer _after_
your CInclude,
then in that XSLT logic either:

- match the elements you want with identity templates,

- or, create a generic identity template and use empty matchers for the
elements you _don't_ want.

XSLT makes a clean, generic filtering language.

Note: Cocoon's FilterTransformer does something similar but in a very
restricted way (it basically only is used for paging through data models).

Per


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




Passing multiple selection parameters through a query in XSP from a list box

2002-08-26 Thread Sreenivasan N.

Hi All

I am struck up in processing a XSP page passing multiple selection as 
parameters through a query from a multiselect listbox. The listbox values 
are basically populated from
the oracle database table. But i don't know how to pass more than one 
selected value as parameter to the database to get an output as xml.

Currently the output what i get is based on the last value send as parameter.

For example this is the query i want to execute taking parameters as a1, 
b1, c1 from the list box.
select * from projects where userid in (a1, b1, c1)  - sql query used in Oracle

Kindly give us some soultions

Regards
Sreenivasan.







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

Sreenivasan N.
Sony SARD
Ext 5816

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


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

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




Re: JSP troubles

2002-08-26 Thread Raúl Wild-Spain


 No wonder that JSP fails. The default settings of the JSPEngine in Cocoon
 are for Tomcat and not Resin. Take a look at WEB-INF/cocoon.xconf and
change
 the jsp-engine section to point to the JSP servlet in Resin.

 There were some troubles with JSPEngine in Cocoon on Resin, please let us
 know if you succeed.

 Konstantin

 

thanks, Konstantin! but, it implies that I should put
/usr/local/resin/lib/resin.jar into the WEBINF/classes/ directory? .. or is
it wrong?

regards,

Raúl


-
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: JSP troubles

2002-08-26 Thread Piroumian Konstantin

 From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] 
 
  No wonder that JSP fails. The default settings of the 
 JSPEngine in Cocoon
  are for Tomcat and not Resin. Take a look at 
 WEB-INF/cocoon.xconf and
 change
  the jsp-engine section to point to the JSP servlet in Resin.
 
  There were some troubles with JSPEngine in Cocoon on Resin, 
 please let us
  know if you succeed.
 
  Konstantin
 
  
 
 thanks, Konstantin! but, it implies that I should put
 /usr/local/resin/lib/resin.jar into the WEBINF/classes/ 
 directory? .. or is
 it wrong?

I don't know how Resin loads classes. The only thing needed is that servlet
class were available to the web application. This does not imply having
resin.jar in WEB-INF/lib (as well as in WEB-INF/classes), but only having
them somewhere in the classpath. Tomcat exposes jasper-compiler.jar (since
4.0) to web applications, so there is no need to copy it into the webapp.
Maybe something like is possible also with Resin.

Also, search the Bugzilla for a path about Resin and JSP, there were one
some time ago related to this issue.

Konstantin.

 
 regards,
 
 Raúl
 
 
 -
 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: CInclude bug???

2002-08-26 Thread apurva zaveri

Thats great Andy!

Let us know when you submit the fix.

Also is there a way one can find out every time a new
fix or a patch is submitted??? I am still quite new to
cocoon.

-Apurva

--- Andrew C. Oliver [EMAIL PROTECTED] wrote:
 Incorrect.  This is a bug and the @select does work
 in Cocoon 2.1.x.  
 
 I have a fix on my local drive but I haven't
 submitted it yet.  Will do 
 so very soon.  
 
 -Andy
 
 Per Kreipke wrote:
 
 Apurva,
 
   
 
 to make the long story short:
 
 the output has the whole xml file after the
 section of
 the xml file i want to include.
 
 i.e
 
 cinclude:include
 src=../../commons/contents/ATTRIBUTES.xml
 select=data/AGE/* /
 
 outputs:
 
 ?xml version=1.0 encoding=UTF-8?
 age data age  !-- this is what i want --
 
 data   !-- this is what i DONT want
 --
   dt text dt
   age data age
 /data
 
 Am i doin something wrong or is it a bug??
 
 
 
 Not a bug. CInclude does not support selecting just
 a portion of your XML
 model (and neither does XInclude).
 
 E.g. your @select above does nothing.
 
 To do what you want to do, just add a XSLT
 tranformer _after_ your CInclude,
 then in that XSLT logic either:
 
 - match the elements you want with identity
 templates,
 
 - or, create a generic identity template and use
 empty matchers for the
 elements you _don't_ want.
 
 XSLT makes a clean, generic filtering language.
 
 Note: Cocoon's FilterTransformer does something
 similar but in a very
 restricted way (it basically only is used for
 paging through data models).
 
 Per
 
 

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


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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]




Re: CInclude bug???

2002-08-26 Thread apurva zaveri

One more wierd finding:

This is another place where I am experimneting with
CInclude.

cinclude:include
src=cocoon://commons/contents/emp_table.xml
select=data/dept/* /

the @select in this CInclude transformer
works exactly the way it should. And it is no
different from the previous case.

The only difference is that the previous case had a
fileGenerator with a static xml file (ATTRIBUTES.xml)
wherease over here
(emp_table.xml) is a cocoon pipeline that has a
generator (not a fileGenerator like in previous case)
but a ServletGenerator that generates xml from a
database using an predefined SQL query.

But why should that difference matter?

@select in CInclude transformer does works corretly
with a ServletGenerator behind it but if fileGenerator
is behind it, it does not work.

Is that the nature of the bug???

-Apurva







--- apurva zaveri [EMAIL PROTECTED] wrote:
 Thats great Andy!
 
 Let us know when you submit the fix.
 
 Also is there a way one can find out every time a
 new
 fix or a patch is submitted??? I am still quite new
 to
 cocoon.
 
 -Apurva
 
 --- Andrew C. Oliver [EMAIL PROTECTED] wrote:
  Incorrect.  This is a bug and the @select does
 work
  in Cocoon 2.1.x.  
  
  I have a fix on my local drive but I haven't
  submitted it yet.  Will do 
  so very soon.  
  
  -Andy
  
  Per Kreipke wrote:
  
  Apurva,
  

  
  to make the long story short:
  
  the output has the whole xml file after the
  section of
  the xml file i want to include.
  
  i.e
  
  cinclude:include
  src=../../commons/contents/ATTRIBUTES.xml
  select=data/AGE/* /
  
  outputs:
  
  ?xml version=1.0 encoding=UTF-8?
  age data age  !-- this is what i want --
  
  data   !-- this is what i DONT
 want
  --
dt text dt
age data age
  /data
  
  Am i doin something wrong or is it a bug??
  
  
  
  Not a bug. CInclude does not support selecting
 just
  a portion of your XML
  model (and neither does XInclude).
  
  E.g. your @select above does nothing.
  
  To do what you want to do, just add a XSLT
  tranformer _after_ your CInclude,
  then in that XSLT logic either:
  
  - match the elements you want with identity
  templates,
  
  - or, create a generic identity template and use
  empty matchers for the
  elements you _don't_ want.
  
  XSLT makes a clean, generic filtering language.
  
  Note: Cocoon's FilterTransformer does something
  similar but in a very
  restricted way (it basically only is used for
  paging through data models).
  
  Per
  
  
 

-
  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]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.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]
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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]




RE: CInclude bug???

2002-08-26 Thread Per Kreipke

 Incorrect.  This is a bug and the @select does work in Cocoon 2.1.x.

Ah.

 I have a fix on my local drive but I haven't submitted it yet.  Will do
 so very soon.

While you're at it, how about updating:

http://xml.apache.org/cocoon/userdocs/transformers/cinclude-transformer.html

on which I based my answer.

Per

 to make the long story short:
 
 the output has the whole xml file after the section of
 the xml file i want to include.
 
 i.e
 
 cinclude:include
 src=../../commons/contents/ATTRIBUTES.xml
 select=data/AGE/* /
 
 outputs:
 
 ?xml version=1.0 encoding=UTF-8?
 age data age  !-- this is what i want --
 
 data   !-- this is what i DONT want --
   dt text dt
   age data age
 /data
 
 Am i doin something wrong or is it a bug??
 
 
 
 Not a bug. CInclude does not support selecting just a portion of your XML
 model (and neither does XInclude).
 
 E.g. your @select above does nothing.
 
 To do what you want to do, just add a XSLT tranformer _after_
 your CInclude,
 then in that XSLT logic either:
 
 - match the elements you want with identity templates,
 
 - or, create a generic identity template and use empty matchers for the
 elements you _don't_ want.
 
 XSLT makes a clean, generic filtering language.
 
 Note: Cocoon's FilterTransformer does something similar but in a very
 restricted way (it basically only is used for paging through
 data models).
 
 Per
 
 
 -
 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]




How to get URL parameters in an xsp:logic area ?

2002-08-26 Thread Ganael LAPLANCHE

Hi !

I'd like to acces an URL variable in an xsp:logic area ???
I call my page with : http:///foo.xml?bar=hello and would like to
get the value of bar into a string element to re-use it.

How would you do that ? Must be simple... but I'm a newbie... :)

Thank you,

Ganael.






-
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 get URL parameters in an xsp:logic area ?

2002-08-26 Thread Michael Mangeng

Hi!

You can use the xsp-request:get-parameter name=bar/ tag even inside the
a xsp:logic tag.

so you can do:
xsp:logic
String myString = xsp-request:get-parameter name=bar/;
/xsp:logic

(xsp-request must be mapped to http://apache.org/xsp/request/2.0 )
greetings
mike
- Original Message -
From: Ganael LAPLANCHE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 4:03 PM
Subject: How to get URL parameters in an xsp:logic area ?


 Hi !

 I'd like to acces an URL variable in an xsp:logic area ???
 I call my page with : http:///foo.xml?bar=hello and would like to
 get the value of bar into a string element to re-use it.

 How would you do that ? Must be simple... but I'm a newbie... :)

 Thank you,

 Ganael.






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




Setting up proxy access for Cocoon components

2002-08-26 Thread Igor Abade V. Leite

Hi!

I need to access na external resource from my Cocoon-based intranet
application. Our company uses a proxy for access to external resources,
so if I use something like:

map:generate type=html src=http://xml.apache.org/cocoon/

I'll get a java.net.UnknownHostException. What do I do to instruct the
HTTP client to use a proxy for HTTP requests dispatched from Cocoon?

Thanks in advance,
Igor.



-
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: CInclude bug??? (And my upcoming patch)

2002-08-26 Thread Andrew C. Oliver

Patches *should* be submitted to Bugzilla and hence you should catch the 
postings here.
You could also join the Cocoon-cvs mailing list (see webpage for 
details) or catch it on
gmane.org (news-mail-news bridge).  The CVS list is commits, the 
bugzilla mails are patches.

Its a one liner if you want to fix it yourself and recompile:
(someone pointed this out to me but I thought they were wrongsorry I 
was wrong)
in 
xml-cocoon2/src/java/org/apache/cocoon/transformation/CIncludeTransformer.java:

} else {
  // do nothing, will result in the inclusion of the whole
  // document
}

   this.sourceResolver.toSAX(source, consumer);

should read:

} else {
  // Normal flow this will result in the inclusion of the whole
  // document
   this.sourceResolver.toSAX(source, consumer);
}

I've tested it locally and it works nicely.  In a few weeks I'm going to do some 
serious
refactoring of both of these to use the same code base as folows:

CIncludeTransformer - inherit from  IncludeTransformer
XIncludeTransformer /

XInclude and CInclude transformers will be deprecated, and you'll be able to just use 
the
IncludeTransformer for either.  The behavior will be different based on how you 
configure the IncludeTransformer 
or the inherited versions (for backward compatibility) will automatically configure it 
for that behavior).
I'll also submit a set of unit tests for these.  If I have time (read: if the task is 
more exciting
than whichever task I'm procrastinating) I'll upgrade the XIncludeTransformer to match 
the current
specification.

Thanks,


-Andy


apurva zaveri wrote:

Thats great Andy!

Let us know when you submit the fix.

Also is there a way one can find out every time a new
fix or a patch is submitted??? I am still quite new to
cocoon.

-Apurva

--- Andrew C. Oliver [EMAIL PROTECTED] wrote:
  

Incorrect.  This is a bug and the @select does work
in Cocoon 2.1.x.  

I have a fix on my local drive but I haven't
submitted it yet.  Will do 
so very soon.  

-Andy

Per Kreipke wrote:



Apurva,

 

  

to make the long story short:

the output has the whole xml file after the


section of


the xml file i want to include.

i.e

cinclude:include
src=../../commons/contents/ATTRIBUTES.xml
select=data/AGE/* /

outputs:

?xml version=1.0 encoding=UTF-8?
age data age  !-- this is what i want --

data   !-- this is what i DONT want


--


 dt text dt
 age data age
/data

Am i doin something wrong or is it a bug??
   



Not a bug. CInclude does not support selecting just
  

a portion of your XML


model (and neither does XInclude).

E.g. your @select above does nothing.

To do what you want to do, just add a XSLT
  

tranformer _after_ your CInclude,


then in that XSLT logic either:

- match the elements you want with identity
  

templates,


- or, create a generic identity template and use
  

empty matchers for the


elements you _don't_ want.

XSLT makes a clean, generic filtering language.

Note: Cocoon's FilterTransformer does something
  

similar but in a very


restricted way (it basically only is used for
  

paging through data models).


Per


  

-


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]





__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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]




OT: How to get xml-entities into Javascript strings?

2002-08-26 Thread Koen Pellegrims

Hi,

(Not specifically cocoon-related, flame me if you want to...)

I ran into some trouble trying to generate a snippet of JavaScript from an
XML-file, containing entity-references.
The problem can be reduced to this:

XML-file:
product name=industri#235;le merkers/
#235; is euml; in HTML, or ë... if you can see this ;-)

XSL:
xsl:template match=product
script type=text/javascript
alert('xsl:value-of select=@name/');
/script
/xsl:template

I'm not that strong in JavaScript, but I know JS expects Unicode-type
encodings of the form \U.
Is there a standard way to convert XML entities into JavaScript entities or
is there a cunningly simple solution to this problem?

Koen



-
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: CInclude bug???

2002-08-26 Thread Andrew C. Oliver

That is weird.  It doesn't happen after the fix (I've got both static 
and dynamic includes)

-Andy

apurva zaveri wrote:

One more wierd finding:

This is another place where I am experimneting with
CInclude.

cinclude:include
src=cocoon://commons/contents/emp_table.xml
select=data/dept/* /

the @select in this CInclude transformer
works exactly the way it should. And it is no
different from the previous case.

The only difference is that the previous case had a
fileGenerator with a static xml file (ATTRIBUTES.xml)
wherease over here
(emp_table.xml) is a cocoon pipeline that has a
generator (not a fileGenerator like in previous case)
but a ServletGenerator that generates xml from a
database using an predefined SQL query.

But why should that difference matter?

@select in CInclude transformer does works corretly
with a ServletGenerator behind it but if fileGenerator
is behind it, it does not work.

Is that the nature of the bug???

-Apurva







--- apurva zaveri [EMAIL PROTECTED] wrote:
  

Thats great Andy!

Let us know when you submit the fix.

Also is there a way one can find out every time a
new
fix or a patch is submitted??? I am still quite new
to
cocoon.

-Apurva

--- Andrew C. Oliver [EMAIL PROTECTED] wrote:


Incorrect.  This is a bug and the @select does
  

work


in Cocoon 2.1.x.  

I have a fix on my local drive but I haven't
submitted it yet.  Will do 
so very soon.  

-Andy

Per Kreipke wrote:

  

Apurva,

 



to make the long story short:

the output has the whole xml file after the
  

section of
  

the xml file i want to include.

i.e

cinclude:include
src=../../commons/contents/ATTRIBUTES.xml
select=data/AGE/* /

outputs:

?xml version=1.0 encoding=UTF-8?
age data age  !-- this is what i want --

data   !-- this is what i DONT
  

want


--
  

 dt text dt
 age data age
/data

Am i doin something wrong or is it a bug??
   

  

Not a bug. CInclude does not support selecting


just


a portion of your XML
  

model (and neither does XInclude).

E.g. your @select above does nothing.

To do what you want to do, just add a XSLT


tranformer _after_ your CInclude,
  

then in that XSLT logic either:

- match the elements you want with identity


templates,
  

- or, create a generic identity template and use


empty matchers for the
  

elements you _don't_ want.

XSLT makes a clean, generic filtering language.

Note: Cocoon's FilterTransformer does something


similar but in a very
  

restricted way (it basically only is used for


paging through data models).
  

Per




-


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]

  

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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]





__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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: CInclude bug???

2002-08-26 Thread Andrew C. Oliver

Will do.

For now see:

http://outerthought.net/wiki/Wiki.jsp

I could have sworn I did it, but I must have left the documentation dir 
out of my patch.  In 3 weeks when
I send in my refactoring of CInclude/XInclude I'll submit that as well.

-Andy

Per Kreipke wrote:

Incorrect.  This is a bug and the @select does work in Cocoon 2.1.x.



Ah.

  

I have a fix on my local drive but I haven't submitted it yet.  Will do
so very soon.



While you're at it, how about updating:

http://xml.apache.org/cocoon/userdocs/transformers/cinclude-transformer.html

on which I based my answer.

Per

  

to make the long story short:

the output has the whole xml file after the section of
the xml file i want to include.

i.e

cinclude:include
src=../../commons/contents/ATTRIBUTES.xml
select=data/AGE/* /

outputs:

?xml version=1.0 encoding=UTF-8?
age data age  !-- this is what i want --

data   !-- this is what i DONT want --
 dt text dt
 age data age
/data

Am i doin something wrong or is it a bug??




Not a bug. CInclude does not support selecting just a portion of your XML
model (and neither does XInclude).

E.g. your @select above does nothing.

To do what you want to do, just add a XSLT tranformer _after_
  

your CInclude,


then in that XSLT logic either:

- match the elements you want with identity templates,

- or, create a generic identity template and use empty matchers for the
elements you _don't_ want.

XSLT makes a clean, generic filtering language.

Note: Cocoon's FilterTransformer does something similar but in a very
restricted way (it basically only is used for paging through
  

data models).


Per


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


  





-
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 get URL parameters in an xsp:logic area ?

2002-08-26 Thread Ganael LAPLANCHE

I works fine with a hand-typed URL, but If the URL is requested
by a form (action=url?foo=bar), it doesn't work... I can't acces to my
variable (even if it appears in the URL area of my navigator).
Do you have any idea ??? Many thanks...

On Mon, 2002-08-26 at 16:11, Michael Mangeng wrote:
 Hi!
 
 You can use the xsp-request:get-parameter name=bar/ tag even inside the
 a xsp:logic tag.
 
 so you can do:
 xsp:logic
 String myString = xsp-request:get-parameter name=bar/;
 /xsp:logic
 
 (xsp-request must be mapped to http://apache.org/xsp/request/2.0 )
 greetings
 mike
 - Original Message -
 From: Ganael LAPLANCHE [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, August 26, 2002 4:03 PM
 Subject: How to get URL parameters in an xsp:logic area ?
 
 
  Hi !
 
  I'd like to acces an URL variable in an xsp:logic area ???
  I call my page with : http:///foo.xml?bar=hello and would like to
  get the value of bar into a string element to re-use it.
 
  How would you do that ? Must be simple... but I'm a newbie... :)
 
  Thank you,
 
  Ganael.
 
 
 
 
 
 
  -
  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 get xml-entities into Javascript strings?

2002-08-26 Thread Robert Koberg

Hi,

You almost have it. But with XSLT you have to watch out for whitespace. There
are two ways to handle it:

1. Use xsl:text
xsl:textalert('/xsl:text
xsl:value-of select=@name/
xsl:text');/xsl:text

2. alert('xsl:value-of select=normalize-space(@name)/');

best,
-Rob

 -Original Message-
 From: Koen Pellegrims [mailto:[EMAIL PROTECTED]]

 Hi,

 (Not specifically cocoon-related, flame me if you want to...)

 I ran into some trouble trying to generate a snippet of JavaScript from an
 XML-file, containing entity-references.
 The problem can be reduced to this:

 XML-file:
 product name=industri#235;le merkers/
 #235; is euml; in HTML, or ë... if you can see this ;-)

 XSL:
 xsl:template match=product
   script type=text/javascript
   alert('xsl:value-of select=@name/');
   /script
 /xsl:template

 I'm not that strong in JavaScript, but I know JS expects Unicode-type
 encodings of the form \U.
 Is there a standard way to convert XML entities into JavaScript entities or
 is there a cunningly simple solution to this problem?

 Koen
 



-
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: CInclude bug???

2002-08-26 Thread Andrew C. Oliver

Specifically:

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

-Andy

Andrew C. Oliver wrote:

 Will do.

 For now see:

 http://outerthought.net/wiki/Wiki.jsp

 I could have sworn I did it, but I must have left the documentation 
 dir out of my patch.  In 3 weeks when
 I send in my refactoring of CInclude/XInclude I'll submit that as well.

 -Andy

 Per Kreipke wrote:

 Incorrect.  This is a bug and the @select does work in Cocoon 2.1.x.
   


 Ah.

  

 I have a fix on my local drive but I haven't submitted it yet.  Will do
 so very soon.
   


 While you're at it, how about updating:

 http://xml.apache.org/cocoon/userdocs/transformers/cinclude-transformer.html 


 on which I based my answer.

 Per

  

 to make the long story short:

 the output has the whole xml file after the section of
 the xml file i want to include.

 i.e

 cinclude:include
 src=../../commons/contents/ATTRIBUTES.xml
 select=data/AGE/* /

 outputs:

 ?xml version=1.0 encoding=UTF-8?
 age data age  !-- this is what i want --

 data   !-- this is what i DONT want --
 dt text dt
 age data age
 /data

 Am i doin something wrong or is it a bug??


   

 Not a bug. CInclude does not support selecting just a portion of 
 your XML
 model (and neither does XInclude).

 E.g. your @select above does nothing.

 To do what you want to do, just add a XSLT tranformer _after_
 

 your CInclude,
   

 then in that XSLT logic either:

 - match the elements you want with identity templates,

 - or, create a generic identity template and use empty matchers for 
 the
 elements you _don't_ want.

 XSLT makes a clean, generic filtering language.

 Note: Cocoon's FilterTransformer does something similar but in a very
 restricted way (it basically only is used for paging through
 

 data models).
   

 Per


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


  





 -
 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 get URL parameters in an xsp:logic area ?

2002-08-26 Thread Michael Mangeng

Hmmm

I´ve testet mixing POST and GET parameters and it works fine here
(tomcat 404, cocoon203, msie6x)
Maybe your browser cannot mix the methods do this...
Try submitting the GET parameter as a hidden param in the form..

input type=hidden name=bar value=foo/

(or did  i misunderstand you?)

greetings
mike
- Original Message -
From: Ganael LAPLANCHE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 5:05 PM
Subject: Re: How to get URL parameters in an xsp:logic area ?


 I works fine with a hand-typed URL, but If the URL is requested
 by a form (action=url?foo=bar), it doesn't work... I can't acces to my
 variable (even if it appears in the URL area of my navigator).
 Do you have any idea ??? Many thanks...

 On Mon, 2002-08-26 at 16:11, Michael Mangeng wrote:
  Hi!
 
  You can use the xsp-request:get-parameter name=bar/ tag even inside
the
  a xsp:logic tag.
 
  so you can do:
  xsp:logic
  String myString = xsp-request:get-parameter name=bar/;
  /xsp:logic
 
  (xsp-request must be mapped to http://apache.org/xsp/request/2.0 )
  greetings
  mike
  - Original Message -
  From: Ganael LAPLANCHE [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, August 26, 2002 4:03 PM
  Subject: How to get URL parameters in an xsp:logic area ?
 
 
   Hi !
  
   I'd like to acces an URL variable in an xsp:logic area ???
   I call my page with : http:///foo.xml?bar=hello and would like to
   get the value of bar into a string element to re-use it.
  
   How would you do that ? Must be simple... but I'm a newbie... :)
  
   Thank you,
  
   Ganael.
  
  
  
  
  
  
   -
   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]




-
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 get URL parameters in an xsp:logic area ?

2002-08-26 Thread Ganael LAPLANCHE

Ok, I submitted my form with a hidden value, it works very well :))
Thank you !!!

Gan.

On Mon, 2002-08-26 at 17:19, Michael Mangeng wrote:
 Hmmm
 
 I´ve testet mixing POST and GET parameters and it works fine here
 (tomcat 404, cocoon203, msie6x)
 Maybe your browser cannot mix the methods do this...
 Try submitting the GET parameter as a hidden param in the form..
 
 input type=hidden name=bar value=foo/
 
 (or did  i misunderstand you?)
 
 greetings
 mike
 - Original Message -
 From: Ganael LAPLANCHE [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, August 26, 2002 5:05 PM
 Subject: Re: How to get URL parameters in an xsp:logic area ?
 
 
  I works fine with a hand-typed URL, but If the URL is requested
  by a form (action=url?foo=bar), it doesn't work... I can't acces to my
  variable (even if it appears in the URL area of my navigator).
  Do you have any idea ??? Many thanks...
 
  On Mon, 2002-08-26 at 16:11, Michael Mangeng wrote:
   Hi!
  
   You can use the xsp-request:get-parameter name=bar/ tag even inside
 the
   a xsp:logic tag.
  
   so you can do:
   xsp:logic
   String myString = xsp-request:get-parameter name=bar/;
   /xsp:logic
  
   (xsp-request must be mapped to http://apache.org/xsp/request/2.0 )
   greetings
   mike
   - Original Message -
   From: Ganael LAPLANCHE [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, August 26, 2002 4:03 PM
   Subject: How to get URL parameters in an xsp:logic area ?
  
  
Hi !
   
I'd like to acces an URL variable in an xsp:logic area ???
I call my page with : http:///foo.xml?bar=hello and would like to
get the value of bar into a string element to re-use it.
   
How would you do that ? Must be simple... but I'm a newbie... :)
   
Thank you,
   
Ganael.
   
   
   
   
   
   
-
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]
 
 
 
 
 -
 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 get xml-entities into Javascript strings?

2002-08-26 Thread Koen Pellegrims

Maybe my post wasn't very clear; the XML contains #235; but JavaScript
expects \U00EB (which is 235 in hex).
Instead of reinventing the wheel, I was hoping there would be some standard
way to convert from one into the other.

K.

 -Oorspronkelijk bericht-
 Van: Robert Koberg [mailto:[EMAIL PROTECTED]]
 Verzonden: maandag 26 augustus 2002 17:10
 Aan: [EMAIL PROTECTED]
 Onderwerp: RE: How to get xml-entities into Javascript strings?


 Hi,

 You almost have it. But with XSLT you have to watch out for
 whitespace. There
 are two ways to handle it:

 1. Use xsl:text
 xsl:textalert('/xsl:text
 xsl:value-of select=@name/
 xsl:text');/xsl:text

 2. alert('xsl:value-of select=normalize-space(@name)/');

 best,
 -Rob

  -Original Message-
  From: Koen Pellegrims [mailto:[EMAIL PROTECTED]]

  Hi,
 
  (Not specifically cocoon-related, flame me if you want to...)
 
  I ran into some trouble trying to generate a snippet of
 JavaScript from an
  XML-file, containing entity-references.
  The problem can be reduced to this:
 
  XML-file:
  product name=industri#235;le merkers/
  #235; is euml; in HTML, or ë... if you can see this ;-)
 
  XSL:
  xsl:template match=product
  script type=text/javascript
  alert('xsl:value-of select=@name/');
  /script
  /xsl:template
 
  I'm not that strong in JavaScript, but I know JS expects Unicode-type
  encodings of the form \U.
  Is there a standard way to convert XML entities into JavaScript
 entities or
  is there a cunningly simple solution to this problem?
 
  Koen
  



 -
 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 get xml-entities into Javascript strings?

2002-08-26 Thread Robert Koberg

Oh, sorry... I understand now.

We have some pretty hairy JS regexps to handle this for pastes into our editor.
I would not recommend it.

What I would recommend (if you need an alert) is to write the string to a html
div and show/hide your custom alert box. This way you do not need to worry about
converting it. It is a ~standard~ browser entity.

best,
-Rob

p.s. you still need to normalize your spaces in js


 -Original Message-
 From: Koen Pellegrims [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 9:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: How to get xml-entities into Javascript strings?


 Maybe my post wasn't very clear; the XML contains #235; but JavaScript
 expects \U00EB (which is 235 in hex).
 Instead of reinventing the wheel, I was hoping there would be some standard
 way to convert from one into the other.

 K.

  -Oorspronkelijk bericht-
  Van: Robert Koberg [mailto:[EMAIL PROTECTED]]
  Verzonden: maandag 26 augustus 2002 17:10
  Aan: [EMAIL PROTECTED]
  Onderwerp: RE: How to get xml-entities into Javascript strings?
 
 
  Hi,
 
  You almost have it. But with XSLT you have to watch out for
  whitespace. There
  are two ways to handle it:
 
  1. Use xsl:text
  xsl:textalert('/xsl:text
  xsl:value-of select=@name/
  xsl:text');/xsl:text
 
  2. alert('xsl:value-of select=normalize-space(@name)/');
 
  best,
  -Rob
 
   -Original Message-
   From: Koen Pellegrims [mailto:[EMAIL PROTECTED]]
 
   Hi,
  
   (Not specifically cocoon-related, flame me if you want to...)
  
   I ran into some trouble trying to generate a snippet of
  JavaScript from an
   XML-file, containing entity-references.
   The problem can be reduced to this:
  
   XML-file:
   product name=industri#235;le merkers/
   #235; is euml; in HTML, or ë... if you can see this ;-)
  
   XSL:
   xsl:template match=product
 script type=text/javascript
 alert('xsl:value-of select=@name/');
 /script
   /xsl:template
  
   I'm not that strong in JavaScript, but I know JS expects Unicode-type
   encodings of the form \U.
   Is there a standard way to convert XML entities into JavaScript
  entities or
   is there a cunningly simple solution to this problem?
  
   Koen
   
 
 
 
  -
  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: XMLForm mod-db

2002-08-26 Thread Bobby Mitchell

Christian Haul wrote:

On 24.Aug.2002 -- 09:01 AM, Ivelin Ivanov wrote:
  

I am not very familiar with the modular db actions,
but from what I understand, you would be able to specify the name
of the session attribute where the modular db actions would read/write. You
can point the XMLForm model to the same bean.



I want to use XMLForm and the Modular Database actions together. I have
looked for information and can't find out if this can be done or not.

Can it be done?

If so, how would I go about populating the java bean with information
from the database?
  


Unfortunately, I haven't gotten up to speed with XMLForm, so I
cannot give full advice. Anyway, the point with the mod-db actions
is, that you can read / write data from / to arbitrary sources, as
long as you have a class that does it and conforms to the InputModule
/ OutputModule interfaces.

So, if you know how to locate your bean instance, it would be trivial
to write such a class. Supplied are currently only classes that write
to session attributes or request attributes.

Data can be read from a lot more sources, even complicated setups
like reding an entry of a java.util.Map stored in a request attribute
together with a default value are possible. You can chain those 
InputModules that carry the meta part in their name for a great
flexibility.

I assume that this is going to be requested more frequently, so it
would be nice if you could keep us updated. 

   Chris.
  

I would like to use mod-db to retrieve info from a database, but the 
mod-db example uses esql. Can I use DatabaseQueryAction to do this, and 
if so, how?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: import issue... maybe

2002-08-26 Thread J.Pietschmann

Phil Blake wrote:
...
 Then a second stylesheet named BluePage.xsl imports StandardPage.xsl. It 
 overrides only one template - match=/* mode=pageBody

There are a few more differences, namely
  xmlns:psi=http://prescience.org/logicsheets/app/2.0;
and, most odd:
  version=2.0
This means the processor should use XSLT v 2.0, which
is probably something the processor does not like.
It's somewhat strage that you get  the typical result
of default templates kicking in (all text copied, tags
stripped), instead of an error.

Your StandardPage.xsl is a bit strange too,
no XSL version on the document element, which is usually
a fatal error, and:
 xsl:template match=/ mode=page
...
  xsl:value-of select=title/
I'm surprised you get a title.

What processor are you using? Xalan? Which release?

Try to change version=1.0 in your blue style sheet,
this could be enough to fix the problem.

J.Pietschman


-
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 get xml-entities into Javascript strings?

2002-08-26 Thread J.Pietschmann

Koen Pellegrims wrote:
 Maybe my post wasn't very clear; the XML contains #235; but JavaScript
 expects \U00EB (which is 235 in hex).
 Instead of reinventing the wheel, I was hoping there would be some standard
 way to convert from one into the other.

I don't think you need to do anything at all. Entities
are only used in serialized XML, as the notation \u
is only used in JS source. The parser converts the XML
entieties and character references into the proper
internal Unicode character, which should be the same
the JS interpreter expects.

J.Pietschmann


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




Mysterious IllegalStateException thrown when I try to index files

2002-08-26 Thread icewind

Hello, 

I have something like this for my xml documents:

docs/
   dir1/
   dir2/
   dir3/
   dir4/
   dir5/

I can index each individual dir in docs separately and
a lucene index will be built properly. 

However, when I try to index all together (either by
aggregation, or by crawling from docs/, it get the
following exception at random times. It never fails on
the same file:

2002-08-26 16:04:35
StandardWrapper[/amber-dan.bak:default]: Loading
container servlet default
2002-08-26 16:04:35 default: init
2002-08-26 16:04:35
StandardWrapper[/amber-dan.bak:invoker]: Loading
container servlet invoker
2002-08-26 16:04:35 invoker: init
2002-08-26 16:04:35 jsp: init
2002-08-26 16:06:10 StandardWrapperValve[Cocoon2]:
Servlet.service() for servlet Cocoon2 threw exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1071)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:479)


I'm pretty sure my technique for doing the indexing is
fine. Everythign worked fine before when I had fewer
files in each of the directories (about 5 each). I
started getting the above error when I added more
files to a couple of the directories (now i have about
25 in at least two of the children of dir/. I don't
know if this problem stems from the fact that there
are more files and cocoon is timing out or something.
What does an IllegalStateException mean in general? Is
there a decent way to run the supplied cocoon indexer
on these files from the command line to  This is
really puzzling me... each dir will index fine on its
own. The problems appear when I try to index them all.
(I need one big index).


Thanks for any suggestions on how I can track this
problem down.




__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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]




Re: portal example doesn't work in current CVS?

2002-08-26 Thread Josema Alonso

Don't know what was wrong, maybe something went wrong when updating to
latest CVS, but it's working again after checking out today's head.

Best.

- Original Message -
From: Josema Alonso [EMAIL PROTECTED]
To: Cocoon-Users [EMAIL PROTECTED]
Sent: Sunday, August 25, 2002 1:45 AM
Subject: portal example doesn't work in current CVS?


 Hi, all.

 I'm using JDK 1.4, Tomcat 4.1.9, Windows XP.

 I downloaded the 2.1 CVS and built it a week ago. Everything worked fine.
 Since I believe it's better updating it frequently when working with these
 versions, today I updated via CVS, rebuilt it and the portal example does
 not work. The authentication one works ok.
 This is the error message I see:
 ---
 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
notifies
 that java.lang.NullPointerException says:
 XMLUtil.getNodeListFromPath() did catch a NullPointerException.This might
be
 due to a missconfigured XML parser which does not use DOM Level 2.Make
sure
 that you use the XML parser shipped with Cocoon.

 More precisely:
 java.lang.NullPointerException: XMLUtil.getNodeListFromPath() did catch a
 NullPointerException.This might be due to a missconfigured XML parser
which
 does not use DOM Level 2.Make sure that you use the XML parser shipped
with
 Cocoon.
 ---

 I've read the archives and copied the xalan, xerces and xml-apis to the
 lib/endorsed directory on my JDK 1.4 with no luck. I do not know if it has
 something to do with it cause it worked previously without those jars
copied
 there...

 May anybody help me?

 Thanks.


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




Link Livesites:

2002-08-26 Thread Jakov Senatow

Hello!
http://www.mycgiserver.com/~senatov

With best regards, Jakov Senatow.  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]