How to use Xindice in Cocoon?

2002-07-16 Thread Ken C
I have been reading through the mail archive and can't find up-to-date mails on 'using xindice in Cocoon'. As the user guide suggests, both XML:DB Generator and XML:DB Collection Generator are gonna be deprecated. I am wondering how cocoon can communicate with xindice and what protocol I shall be using for that purpose. And would it be the same protocol for use in xsp and in a sitemap, if possible?
    Thanks in advance.
PS. A summary of the problem and its solution will be provided, as suggested by the Cocoon developers and its community.  
And sorry for my poor english if it doesn't present clearly.Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes

SUMMARY: Deleting multiple rows with the modular DatabaseDeleteAction

2002-07-16 Thread Tuomo Lesonen

Thank you Chris, everything works ok now! :)

-Tuomo

On 15.Jul.2002 -- 01:40 PM, Tuomo Lesonen wrote:
> Hi,
> 
> I can't figure out how to remove multiple rows with this action within a
> single request. Am I using the right syntax in HTML? :

Tuomo, you need to define a "set" with a "master" that determines
how many rows are affected. Look again at the sample, search for
"slave" and "master". Since you have only one column, you only
need a master.

> 
> 
>   
>   
>   
> 
> 
> This seems to remove only one row from the table. Also tried...
> 
> 
>   
>   
>   
> 
> 
> and in database.xml:
> 
> 
>   
> 
   
>   
> 
>   
>   
> 
>  
> 
> 
> table is accessed from the sitemap with this set:
> 
> 
>   
> 
> 
> ...But doesn't work either, only throws with a nullpointer exception. 
> 
> Cocoon 2.03 (dev)

I'd strongly suggest to use 2.1-dev since with that those actions were
moved to trunk (i.e. not scratchpad anymore). In addition, they contain
additions that are not found in 2.0.3

> Tomcat 4.04
> JDK 1.4.1
> MS SQL2000

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

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

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

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. 

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




RE: building 2.0.3

2002-07-16 Thread Carsten Ziegeler

Hi Mike,

you did nothing wrong, except that you found a bug ;)
No, seriously, thanks for finding this problem,
I will fix it for the next release.

Thanks
Carsten

Carsten Ziegeler Chief Architect Open Source Group, S&N AG
--
 Cocoon Consulting, Training and Projects
--
mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
http://ziegeler.bei.t-online.de


-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 8:01 PM
To: '[EMAIL PROTECTED]'
Subject: building 2.0.3


If I remove all of the optional jars and try to build I get errors about not
finding the servlet stuff, in the optional directory is the servlet jar.  So
my question is should the servlet jar be in the core directory or am I doing
something wrong?


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

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




Re: How to use Xindice in Cocoon2?

2002-07-16 Thread sheshadri



check for XMLDBTransformer
 
regards,
shesh

  - Original Message - 
  From: 
  Ken C 

  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 17, 2002 10:49 
  AM
  Subject: How to use Xindice in 
  Cocoon2?
  
  I have been reading through the mail archive and can't find up-to-date 
  mails on 'using xindice in Cocoon'. As the user guide suggests, both 
  XML:DB Generator and XML:DB Collection Generator are gonna be deprecated. I am 
  wondering how cocoon can communicate with xindice and what protocol I shall be 
  using for that purpose. And would it be the same protocol for use in xsp and 
  in a sitemap, if possible?
      Thanks in advance.
  PS. A summary of the problem and its solution will be provided, as 
  suggested by the Cocoon developers and its community.  
  And sorry for my poor english if it doesn't present clearly.
  
  
  Do You Yahoo!?Yahoo! Autos - 
  Get free new car price quotes


How to use Xindice in Cocoon2?

2002-07-16 Thread Ken C
I have been reading through the mail archive and can't find up-to-date mails on 'using xindice in Cocoon'. As the user guide suggests, both XML:DB Generator and XML:DB Collection Generator are gonna be deprecated. I am wondering how cocoon can communicate with xindice and what protocol I shall be using for that purpose. And would it be the same protocol for use in xsp and in a sitemap, if possible?
    Thanks in advance.
PS. A summary of the problem and its solution will be provided, as suggested by the Cocoon developers and its community.  
And sorry for my poor english if it doesn't present clearly.Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes

Re: cleaning xmlns attribute with XSL transformation

2002-07-16 Thread yuryx

It work!
Thanx Vadim.

Yury.

Vadim Gritsenko wrote:

>>From: yuryx [mailto:[EMAIL PROTECTED]]
>>
>>How can I set up the xsp processor that way that it will not unclude
>>'xmlns' attributes to HTML output?
>>
>>
>
>This might be of help:
>http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102553660504679&w=2
>
>
>Vadim
>
> 
>...
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>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. 

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




XMLForm How-To problems

2002-07-16 Thread Matthew Hailstone

I followed the XMLForm How-To, which was very thorough and excellent
BTW. Everything seems like it should work: I can see the start view, but
when the registration view comes up, I get the following stacktrace:

Original exception : java.lang.ArrayIndexOutOfBoundsException 
at org.apache.xml.utils.IntStack.pop(IntStack.java:127) 
at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1892) 
at
org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(Incrementa
lSAXSource_Filter.java:287) 
at
org.apache.xalan.transformer.TransformerHandlerImpl.endElement(Transform
erHandlerImpl.java:552) 
at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:14
7) 
at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:14
7) 
at
org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(Abstr
actSAXTransformer.java:366) 
at
org.apache.cocoon.transformation.XMLFormTransformer.endTransformingEleme
nt(XMLFormTransformer.java:791) 
at
org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(Abstr
actSAXTransformer.java:358) 
at
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:1
24) 
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser
.java:559) 
at
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceB
inder.java:853) 
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.
java:643) 
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValida
tor.java:2978) 
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.ja
va:918) 
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(X
MLDocumentFragmentScannerImpl.java:1145) 
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML
DocumentFragmentScannerImpl.java:988) 
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446) 
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:333) 
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erConfiguration.java:529) 
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erConfiguration.java:585) 
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) 
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1148) 
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)

at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)

at
org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:92)

at
org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:75)

at
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironm
ent.java:479) 
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
40) 
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:255) 
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:476) 
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
SerializeNode.java:146) 
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:83) 
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
tTypeNode.java:152) 
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:83) 
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:160) 
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107) 
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:157) 
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107) 
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:152) 
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:328) 
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:309) 
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun
tNode.java:131) 
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:83) 
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:160) 
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107) 
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:157) 
at
org.apache.cocoon.components.treeproce

RE: creating pipeline output for XML File viewable with IE browser

2002-07-16 Thread Kulkarni, Mohan (GEL, MSX)

I guess your serialize type should be xml not html in your map.

-Original Message-
From: Earl Bingham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 5:30 PM
To: [EMAIL PROTECTED]
Subject: creating pipeline output for XML File viewable with IE browser



I was having difficulty constructing a map entry that will display XML 
output within the IE browser.  In which I receive a cocoon error message 
within Tomcat 4.0.1 web server.

In which I have the following in a sitemap file:


  
  
  
  



test.xml
---

  John
  Jacob
  Joseph


test.xsl
---

http://www.w3.org/1999/XSL/Transform";>



  




  
   
  




does anyone know what should be used to properly display an XML document 
within IE?

Thanks,

- Earl


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

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. 

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




Re: AW: ServletProxyGenerator

2002-07-16 Thread Michael Wechner



Ewert, Sven wrote:

> is your generic-servlet a "single thread" servlet?






No, not that I know. Just a common "HelloWorld" servlet for testing
purposes:

public class HelloWorld extends HttpServlet {


(or how do I recognize a "single thread" servlet?)

Thanks

Michael


P.S.: Sorry for taking such a long time to answer, but we have
a DNS problem at our office and the emails bounce for whatever reason


> 
> cheerz
> 
> sven
> 
> -Ursprüngliche Nachricht-
> Von: Michael Wechner [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. Juli 2002 17:47
> An: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Betreff: ServletProxyGenerator
> 
> 
> Hi
> 
> I am currently working on a ServletProxyGenerator:
> 
> ++   ++   +-+
> || > | Cocoon:| > | |
> | Client |   | ServletProxyGenerator: |   | Servlet |
> || < | HttpClient | < | |
> ++   ++   +-+
> 
> with the goal to connect some "legacy servlets" and being able to
> pipe them through Cocoon.
> 
> Actually the ServletProxyGenerator doesn't do a lot. It is just creating
> an HttpClient (org.apache.commons.http) and "forwarding" all parameters
> (POST) and
> the QueryString (GET) from the original client to the HttpClient being
> instanced within the ServletProxyGenerator.
> 
> It is working very fine so far. I now wanted to connect some servlets
> which need the session of the original client, which means I started to
> transfer all Cookies into the HttpClient.
> 
> The problem now is, that the servlet still doesn't find the session!
> 
> Does anyone have experience with these kind of stuff: Passing cookies
> from one client to another?
> 
> Thanks for your help and comments
> 
> Michael
> 
> P.S.: If the ServletProxyGenerator is of any use for the Cocoon
> community, then I would be happy to donate it.
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 
> 
> 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. 

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




RE: creating pipeline output for XML File viewable with IE browser

2002-07-16 Thread Hunsberger, Peter


> I was having difficulty constructing a map entry that will display XML 
> output within the IE browser.  

It sounds like you have two separate problems:

> In which I receive a cocoon error message 
> within Tomcat 4.0.1 web server.

What's the error message?

> In which I have the following in a sitemap file:

> 
>  
>  
>  
>  

should be type="xml" if you are outputting XML, but this should just cause
the results not to display as you expect and not cause a Cocoon error...

> 
> 


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

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




creating pipeline output for XML File viewable with IE browser

2002-07-16 Thread Earl Bingham


I was having difficulty constructing a map entry that will display XML 
output within the IE browser.  In which I receive a cocoon error message 
within Tomcat 4.0.1 web server.

In which I have the following in a sitemap file:


  
  
  
  



test.xml
---

  John
  Jacob
  Joseph


test.xsl
---

http://www.w3.org/1999/XSL/Transform";>



  




  
   
  




does anyone know what should be used to properly display an XML document 
within IE?

Thanks,

- Earl


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

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




RE: string handling in xsl

2002-07-16 Thread Luca Morandini

Suma,

something like:  (where spaces is a string of blanks) ?

Just off the top of my head... but should work.

Best regards,

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

> -Original Message-
> From: SUMA INDRAGANTI [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 11:13 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: string handling in xsl
> 
> 
> Hi
>   Luca,
> 
>   Iam a new member of cocoon users.I have a question
> regarding handling strings in XSL.
> I have a string which would appear in 3 separate
> lines.
> I want to compute their string length..and check if
> their length is less than 100 i need to append spaces
> else trim it to length 100.
> please could u help me with an example.
> 
> thanks,
> suma
> 
> __
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com

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

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




Re: need advice on beginning a new Cocoon based project called XMTrader

2002-07-16 Thread Josema Alonso

Dear all,

Please, excuse my double post. I do not what I did but it seems I sent it
twice from two different accounts. I'm sorry.

Best.


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

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




Trouble Getting Started

2002-07-16 Thread Shawn_McManus


All,

I am getting an Internal Server Error when trying to access the Cocoon
servlet (http://localhost:8080/cocoon).  The ServletException's root cause
is a java.lang.NoClassDefFoundError for javax/xml/transform/Source.

My environment is as follows:

OS:  Win2k using Tomcat
JAVA_HOME=d:\jdk1.3.1
J2EE_HOME=d:\j2sdkee1.3.1
TOMCAT_HOME=d:\tomcat
CLASSPATH=d:\j2sdkee1.3.1\lib;d:\jdk1.3.1\lib;;d:
\j2sdkee1.3.1\lib\j2ee.jar;d:\j2sdkee1.3.1\lib\ejb10deployment.jar;d:
\j2sdkee1.3.1\lib\j2ee-ri-svc.jar;d:\j2sdkee1.3.1\lib\j2eetools.jar;d:
\j2sdkee1.3.1\lib\jhall.jar;

>From the command line, I can import the javax.xml.transform.Source class in
a java source file.  Is there something in the Cocoon environment that
needs to be changed regarding classpaths?  Any other suggestions?

With regard,
Shawn

Shawn Alexander McManus
Concentra Managed Care Services, Inc.
972-720-7876 (office)
972-720-7999 (fax)

** CONFIDENTIALITY NOTICE **
THIS E-MAIL, INCLUDING ANY ATTACHED FILES, MAY CONTAIN CONFIDENTIAL AND
PRIVILEGED INFORMATION FOR THE SOLE USE OF THE INTENDED RECIPIENT(S).  ANY
REVIEW, USE, DISTRIBUTION, OR DISCLOSURE BY OTHERS IS STRICTLY PROHIBITED.
IF YOU ARE NOT THE INTENDED RECIPIENT (OR AUTHORIZED TO RECEIVE INFORMATION
FOR THE RECIPIENT), PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE
ALL COPIES OF THIS MESSAGE.  THANK YOU.




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

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




RE: Renamed cocoon webapp directory

2002-07-16 Thread Matthew Hailstone

I deleted my work/Standalone/localhost directory under
. Works fine. Thought I did that, sorry. :)

Matthew

> -Original Message-
> From: Matthew Hailstone 
> Sent: Tuesday, July 16, 2002 12:03 PM
> To: [EMAIL PROTECTED]
> Subject: Renamed cocoon webapp directory
> 
> 
> I have both 2.0.3 and 2.1 (HEAD) under Tomcat 4.1.3. 
> webapps/cocoon203 webapps/cocoon21. All the main cocoon 
> sitemap stuff works fine. I redirect eval stuff to my 
> subsitemap. Am I not configuring something right to run from 
> a different URL than the default "cocoon" for my subsitemap? 
> 
> Environment:
> Cocoon 2.1 (HEAD) 
> Tomcat 4.1.3
> jdk1.3.1_03
> Win2K
> 
> I get the following error:
> 
> type fatal
> message Cannot get component selector for 'match' at 
> file:/D:/apps/Tomcat 4.1/webapps/cocoon21/eval/sitemap.xmap:36:29
> description
> org.apache.avalon.framework.configuration.ConfigurationExcepti
> on: Cannot get component selector for 'match' at 
> file:/D:/apps/Tomcat 4.1/webapps/cocoon21/eval/sitemap.xmap:36:29
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> stack-trace
> org.apache.avalon.framework.configuration.ConfigurationExcepti
> on: Cannot get component selector for 'match' at 
> file:/D:/apps/Tomcat 4.1/webapps/cocoon21/eval/sitemap.xmap:36:29
>   at 
> org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.
> getTypeFor
> Statement(DefaultTreeBuilder.java:545)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBu
> ilder.buil
> dNode(MatchNodeBuilder.java:83)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
> eBuilder.b
> uildNode(PipelineNodeBuilder.java:116)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNodeB
> uilder.buildChildNodesList(AbstractParentProcessingNodeBuilder
> .java:156)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNodeB
> uilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:172)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNo
> deBuilder.
> buildNode(PipelinesNodeBuilder.java:100)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNodeB
> uilder.buildChildNodesList(AbstractParentProcessingNodeBuilder
> .java:156)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNodeB
> uilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:172)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.SitemapNode
> Builder.bu
> ildNode(SitemapNodeBuilder.java:76)
>   at 
> org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.
> createTree
> (DefaultTreeBuilder.java:361)
>   at 
> org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.
> build(Defa
> ultTreeBuilder.java:432)
>   at 
> org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.
> build(Defa
> ultTreeBuilder.java:392)
>   at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.setup
> RootNode(T
> reeProcessor.java:403)
>   at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreePro
> cessor.java:321)
>   at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreePro
> cessor.java:309)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.i
> nvoke(Moun
> tNode.java:131)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.
> invokeNodes(AbstractParentProcessingNode.java:83)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableM
> atchNode.i
> nvoke(PreparableMatchNode.java:160)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.
> invokeNodes(AbstractParentProcessingNode.java:107)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
> e.invoke(P
> ipelineNode.java:157)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.
> invokeNodes(AbstractParentProcessingNode.java:107)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNo
> de.invoke(
> PipelinesNode.java:152)
>   at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreePro
> cessor.java:328)
>   at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreePro
> cessor.java:309)
>   at org.apache.cocoon.Cocoon.process(Cocoon.java:585)
>   at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:997)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applica
> tionFilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilt
> erChain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValv
> e.java:260)
>   at 
> org.apache.catalina.core.Sta

Re: Réf. : XMLForms & Cocoon-2.0.3

2002-07-16 Thread Barbara Post



I could only see that C2.1 works with XMLForms, am I wrong ?
 
Babs
--website: www.babsfrance.fr.stICQ #: 
135868405

  - Original Message - 
  From: 
  Othman 
  Haddad 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, July 16, 2002 4:12 
PM
  Subject: Réf. : XMLForms & 
  Cocoon-2.0.3
  
  


  
please look at:
http://xml.apache.org/cocoon/installing/index.html
 
it works fine..
hope this helps.
othman
 
---Message 
original---
 

De : [EMAIL PROTECTED]
Date : mardi 16 
juillet 2002 16:05:07
A : [EMAIL PROTECTED]
Sujet : XMLForms 
& Cocoon-2.0.3
 Can XMLForms be used with Cocoon-2.0.3? If not, how can 
I download the Cocoon-2.1 branch from cvs.-- Robert J. 
(Bobby) MitchellSystems AdministratorNASA Institute for Advanced 
Concepts555A 14th St Atlanta, Ga. 30318Phone: (404)347-9633 Fax: 
(404)347-9638-Please 
check that your question has not already been answered in theFAQ 
before posting. To 
unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
additional commands, e-mail: <[EMAIL PROTECTED]>.

  

  
  


  IncrediMail - La messagerie électronique a enfin 
  évolué - Cliquer 
  ici 


RE: Conceptual difficulties

2002-07-16 Thread Per Kreipke

In summary:

- how/where would one store an XML snippet as (effectively) a singleton
object for use by all users?

Per


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

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




Debugging buggy XSL code

2002-07-16 Thread Lajos Moczar

Hi all -

At various times (or versions), I though I have seen Cocoon spit out 
messages about XSL errors, like "The element type "xsl:if" must be 
terminated by a matching end-tag". In 2.0.2, these messages come at the 
Tomcat console window or logs. Wouldn't it be helpful to capture these 
messages and add them to Cocoon error page? It would certainly help me - 
the "Transform error: null pointer exception" doesn't mean very much.

If someone has an idea of where the change needs to be made, unless it 
has already been done, I'll gladly look into doing it.

Regards,

Lajos

-- 
galatea.com
Cocoon training, consulting & support



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

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




Conceptual difficulties

2002-07-16 Thread Per Kreipke

I feel like a newbie again.

It seems as if with every new page or problem I have a large set of choices
about where I can store information. But where I choose to store something
depends on its lifetime, cachability, granularity, etc.

In a typical servlet model, I understand the difference in lifetime and
scope between contexts (e.g. session, servlet, etc). But in Cocoon I don't.

I'm having trouble figuring out where to keep application vs. user level
settings in a web applicaton using Cocoon without every user getting a copy
of a global setting, etc. I think most of the confusion centers around the
repeated use of Source objects and Resolvers throughout C2.

Note: I've looked through a most of the C2 code (esp. sunshine) and still am
fuzzy on some basics. I've also looked through most of the documentation
both online and in the 2.0.3 build on my machine.

- is the Cocoon Source the same as the Source in Excalibur (doesn't seem so,
yet they both seem to be used)?

- does the resolver automatically cache the source object if possible, and
also watch for changes (it doesn't seem as if any of the Source's are
caching)?

- that is, is there little cost to requesting an XML file repeatedly?

- does it depend on which protocol (cocoon:, resource:, file:, context:,
...)?

- sitemap components have their own config info, and some have external
config info (e.g. ValidatorAction descriptor files). Are the external config
files automatically cached in memory and kept up to date if they change?
How: by simply using Source and a resolver?

- sitemap components are stored in and returned from pools, each potentially
with its own settings, etc. But is the pool a pool of _all_ components
together, separate pools for each component type (e.g. one for generators,
one for matchers), or separate pools for each specific component (e.g. a
pool of CIncludeTransformer's, each with their own default settings)?

- the sun* code expects config information directly in the sitemap instead
of a separate file. When using the compiled sitemap, that's a real nuisance.
Is there a way around that?

- when you access the application context in the sun* code, is it accessing
a single copy for everyone? Where is it actually stored?

- is there an architectural overview I've missed (it's not really covered by
the UML diagrams in the Dev section of the docs)?

Thanks in advance,
Per Kreipke


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

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




Re: using i18n in xsl

2002-07-16 Thread Albert Cervera Areny

I'm quite new to cocoon but I've been having trouble with things like
that. The thing is that you should process the XSL file, and after that,
apply it to the XML one.
May be it doesn't work but you could try to use cocoon://file.xsl instead
of file.xsl in the transform call. 
And file.xsl should be processed with a pipeline which would apply the
i18n. I'm not sure though if it is possible to make this kind of call
(cocoon://) inside the src parameter.Try it, and please let us know whether it worked 
or not.

> Hi,
>
> I would like to use the i18n tags inside an xsl file.Is it
> possible?If so how do I use it?
> For example, I have the following content inside an xml file:
>
> 
> titletext
> 
>
> How do I use the same thing inside an xsl file?I dont want any
> contents inside my xml file.But everything should be inside an xsl
> file,,,Please help me,,,
>
> Kavitha
> _
> Click below  to experience Aishwarya Rai's beauty secrets. New
> International Lux Skincare - It's not just soap, It's skincare.
> http://www.luxskincare.com
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


-- 
Albert Cervera Areny
Dept. Informàtica Sedifa, S.L.



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

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




RE: Java packages

2002-07-16 Thread Vadim Gritsenko

> From: Robert Bourdeau [mailto:[EMAIL PROTECTED]]
> 
> > > It's not that these solutions won't work, but they feel awkward
and
> > > seem a little like hacks. I work in a shop where we have multiple
> > > virtual hosts running on a single server configuration, and within
> > > each virtual host, multiple applications. Further, there are dev,
> > > alpha, beta, and prod configurations of everything, so I expect to
> > > be able to configure my software to allow for the independent
upgrade
> > > of a Cocoon application from dev to prod without interferring
> > > with any of my other applications (except for changes in the
common
> > > components, Cocoon, Tomcat, etc.)
> >
> > Every application has WEB-INF directory, thus, it has all the
libraries
> > it needs and it does not interfere with other applications.
> >
> > When you upgrade one of the applications, you just replace
application
> > directory with the version of the new one, replacing all the
libraries
> > old application has with new versions. This does not affect any
other
> > application deployed in the system.
> >
> >
> > So, what's the issue?
> >
> > Vadim
> 
>
> You're calling Cocoon "the application".

I see your point, but you can either go with approach:

> For me, the

Cocoon-based

> application is my "Environmental Treaty Information Service", and
> my "Work Flow Management System", and my "Guide to Global Population
> Projections", and my "Collaborative Document Authoring Environment".
> These applications could all be XML applications supported by Cocoon,

by Servlet engine (e.g. Tomcat)

> but in Cocoon they do not get their own WEB-INF directory.

In Tomcat they do get.


> In JSP, they
> do. Now, yes, I could create subdirs in cocoon/WEB-INF/classes or
create
> separate jars for each in the libs, and have my apps each include
their own.
> I'm still mulling this over, and maybe this is all fine. Still mulling
this
> over.  In gneral, I'm wanting something as transparent as a an Apache
module,
> or add on Tomcat core classes. Something more transparent than Cocoon
> current seems.

That's was first way, and I guess you know it but don't like it.
Other way is described in Lajos Moczar's letter: have separate
classloaders.

BTW, looks to me that your issue will be addressed by Cocoon blocks.
Search for cocoon blocks discussion on cocoon-dev list.


> Don't get me wrong. I think Cocoon is great. It's really fantastic.
> It's a steep learning curve, but I think it's worth the climb.

:)


> This is a hunt for the right way to configure an environment for
> multiple developers, multiple projects, multiple computers,
> and a staged releases.

Good luck,

Vadim

 
> Thanks for your comments!
> 
> --- Bob
> 


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

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




need advice on beginning a new Cocoon based project called XMTrader

2002-07-16 Thread Josema Alonso

Dear all,

Finally I could start a 100% Cocoon based project. I've been developing web
applications using scripting languages, mainly ASP on the server and
Javascript on the client, for some 4 years now. I always try to use them the
cleanest possible way; unfortunately it's always a mess at then end of the
project. Being the XML fan I am I should change to Cocoon or any other XML
framework someday :-)

This project is known as XMTrader - eXcellent Music Trader. This is not any
kind of P2P software.
I'm a music fan and I'm lately involved with some fan communities which want
to share legal music in a lossless format. The music sharing is done by way
of FTP servers maintained by individuals, where kind people store the files.
They are very concerned about security issues so these servers and some
communities are closed to the general public. FTP servers are usually
filtered by IP, user name and other variables, and accounts are only given
to people who have been introduced by some member of the community; though
anyone can ask for an account on any server. The contents or the server are
displayed on web pages that FTP admins must update by hand on a week by week
basis.

And here comes myself with a solution to automate those tasks. So these are
the goals this project should accomplish and how I think I could do them,
and this is where I need some expert advice:
1.- A portal for FTP admins, members of the community and general public.
This will let users communicate, ask FTP admins for accounts and see
listings of the content of FTP servers. The latter is the most important
feature of the project and is explained more in details below.
I think I could use the Portal & Authentication components and XMLForms for
this task. Since some parts of the web site should be protected and I'd need
to develop many pages with forms for the users to configure the site the way
they want.
2.- A look account will be created for all the servers. This account can
only see the contents of a server. Some kind of indexer should iterate
through all the servers and get their contents in a daily basis to show them
on the portal. So, members of the community could see there the contents,
even the contents of servers where they do not have an account created. But
his should be configured by every FTP admin in the portal.
My intention is to make a collection of XML files conforming to a XML
Schema. Every XML file should have the contents of one of the servers. I'll
query all of the servers once by day, maybe using some servlet and extending
the DirectoryGenerator (can I query remote directories?) and creating the
XML files locally, we are almost agreeing on a naming convention for the
directories and files. Then I should give users the chance of querying this
structure by server, artists, songs, etc. What should I use? XIndice,
Lucene???

This is just the beginning. After that I hope I could add more modules to
the application. We have tons of ideas on how to improve the day by day
community experience.

Well, that's all. Oh, what a long message...I'm sorry. I tried to explain it
in short...hope you could understand it and if not, please let me know what
I should explain more in detail.

Thank you very very much for reading.




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

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




[HELP]Language Exception

2002-07-16 Thread Murari

Hello Friends,

 I m using cocoon 2.0.2 ,Tomcat 4.0.4 and Jdk1.3.When i m writing
 Systen.out.println() inside  tag, i m getting following
 error.Can u please help me on this


 Description:org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 employee_xsp:


 Line 63, column 26:   expected


 Line 63, column 19:  cannot access class println; file
 System\out\println.class not found


 Line 0, column 0:


 2 errors



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

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




Re: image and relative path issue

2002-07-16 Thread Barbara Post
Title: RE: image and relative path issue



IE but in French

  - Original Message - 
  From: 
  Naquin, 
  Beth 
  To: '[EMAIL PROTECTED]' 
  Sent: Tuesday, July 16, 2002 8:11 
PM
  Subject: RE: image and relative path 
  issue
  
  I really don't know. I use IE and I don't have a 'show image' 
  option when I right click on images. Maybe it is the browser you are using or 
  a browser setting?
  -Original Message- From: 
  Barbara Post [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, July 16, 2002 11:05 AM To: [EMAIL PROTECTED] 
  Subject: Re: image and relative path issue 
  RE: image and relative path issueok, I did as indicated 
  : src="../../images/menu.gif" in my stylesheet, but 
  the images does appear only when I right-click and do 
  "show image". what's wrong ? 
  thx - Original Message 
  - From: Naquin, Beth To: 
  '[EMAIL PROTECTED]' Sent: Tuesday, July 16, 
  2002 7:47 PM Subject: RE: image and relative path 
  issue 
  try looking at this mail http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102434844115169&w=2 
  -Original Message- From: 
  Barbara Post [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, July 16, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: image 
  and relative path issue 
  I have a problem with images / css. I 
  use a pipeline for them but it doesn't seem to work. images are in /images. pipeline for .gif :       
       a request for 
  index.* then a xsl stylesheet using :  src="images/menu.gif"/> creates an image 
  path ok : /images/menu.gif (in the html output 
  : src="images/menu.gif") but the 
  picture does not show up, however when I right-click it and choose 
  "show image" the picture comes to view. second case : a request for first/second/*. xsl stylesheet : 
   src="images/menu.gif"/> image path by right-click on the (broken) picture : /a/b/images/menu.gif in the 
  html output : src="images/menu.gif". so how can I tell 
  my pipeline that it has to look for pictures in the webapp's root/images folder, whatever the depth of the request ? 
  thanks, Babs 
  - 
  Please check that your question  has not already been 
  answered in the FAQ before 
  posting.  
  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.  
  To unsubscribe, e-mail: 
  <[EMAIL PROTECTED]> For 
  additional commands, e-mail:   
  <[EMAIL PROTECTED]> 


RE: image and relative path issue

2002-07-16 Thread Naquin, Beth
Title: RE: image and relative path issue





I really don't know. I use IE and I don't have a 'show image' option when I right click on images. Maybe it is the browser you are using or a browser setting?

-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: image and relative path issue



RE: image and relative path issueok, I did as indicated :
src=""../../images/menu.gif"" in my stylesheet, but the images does appear
only when I right-click and do "show image". what's wrong ?


thx
- Original Message -
From: Naquin, Beth
To: '[EMAIL PROTECTED]'
Sent: Tuesday, July 16, 2002 7:47 PM
Subject: RE: image and relative path issue



try looking at this mail
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102434844115169&w=2
-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:42 AM
To: [EMAIL PROTECTED]
Subject: image and relative path issue



I have a problem with images / css.
I use a pipeline for them but it doesn't seem to work.
images are in /images.
pipeline for .gif :
 
    
   
a request for index.* then a xsl stylesheet using : 
src=""images/menu.gif"/>
creates an image path ok : /images/menu.gif (in the html output
: src=""images/menu.gif")
but the picture does not show up, however when I right-click it and choose
"show image" the picture comes to view.
second case : a request for first/second/*. xsl stylesheet : 
src=""images/menu.gif"/>
image path by right-click on the (broken) picture :
/a/b/images/menu.gif
in the html output : src=""images/menu.gif".
so how can I tell my pipeline that it has to look for pictures in the
webapp's root/images folder, whatever the depth of the request ?
thanks,
Babs





-
Please check that your question  has not already been answered in the
FAQ before posting. 
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. 


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





Re: image and relative path issue

2002-07-16 Thread Barbara Post

RE: image and relative path issueok, I did as indicated :
src="../../images/menu.gif" in my stylesheet, but the images does appear
only when I right-click and do "show image". what's wrong ?

thx
- Original Message -
From: Naquin, Beth
To: '[EMAIL PROTECTED]'
Sent: Tuesday, July 16, 2002 7:47 PM
Subject: RE: image and relative path issue


try looking at this mail
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102434844115169&w=2
-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:42 AM
To: [EMAIL PROTECTED]
Subject: image and relative path issue


I have a problem with images / css.
I use a pipeline for them but it doesn't seem to work.
images are in /images.
pipeline for .gif :
 

   
a request for index.* then a xsl stylesheet using : 
creates an image path ok : /images/menu.gif (in the html output
: src="images/menu.gif")
but the picture does not show up, however when I right-click it and choose
"show image" the picture comes to view.
second case : a request for first/second/*. xsl stylesheet : 
image path by right-click on the (broken) picture :
/a/b/images/menu.gif
in the html output : src="images/menu.gif".
so how can I tell my pipeline that it has to look for pictures in the
webapp's root/images folder, whatever the depth of the request ?
thanks,
Babs




-
Please check that your question  has not already been answered in the
FAQ before posting. 
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. 

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




Renamed cocoon webapp directory

2002-07-16 Thread Matthew Hailstone

I have both 2.0.3 and 2.1 (HEAD) under Tomcat 4.1.3. webapps/cocoon203
webapps/cocoon21. All the main cocoon sitemap stuff works fine. I
redirect eval stuff to my subsitemap. Am I not configuring something
right to run from a different URL than the default "cocoon" for my
subsitemap? 

Environment:
Cocoon 2.1 (HEAD) 
Tomcat 4.1.3
jdk1.3.1_03
Win2K

I get the following error:

type fatal
message Cannot get component selector for 'match' at
file:/D:/apps/Tomcat 4.1/webapps/cocoon21/eval/sitemap.xmap:36:29
description
org.apache.avalon.framework.configuration.ConfigurationException: Cannot
get component selector for 'match' at file:/D:/apps/Tomcat
4.1/webapps/cocoon21/eval/sitemap.xmap:36:29
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.avalon.framework.configuration.ConfigurationException: Cannot
get component selector for 'match' at file:/D:/apps/Tomcat
4.1/webapps/cocoon21/eval/sitemap.xmap:36:29
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.getTypeFor
Statement(DefaultTreeBuilder.java:545)
at
org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder.buil
dNode(MatchNodeBuilder.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNodeBuilder.b
uildNode(PipelineNodeBuilder.java:116)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeB
uilder.buildChildNodesList(AbstractParentProcessingNodeBuilder.java:156)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeB
uilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:172)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.
buildNode(PipelinesNodeBuilder.java:100)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeB
uilder.buildChildNodesList(AbstractParentProcessingNodeBuilder.java:156)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeB
uilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:172)
at
org.apache.cocoon.components.treeprocessor.sitemap.SitemapNodeBuilder.bu
ildNode(SitemapNodeBuilder.java:76)
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.createTree
(DefaultTreeBuilder.java:361)
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(Defa
ultTreeBuilder.java:432)
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(Defa
ultTreeBuilder.java:392)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(T
reeProcessor.java:403)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:321)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:309)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun
tNode.java:131)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:160)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:152)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:328)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:309)
at org.apache.cocoon.Cocoon.process(Cocoon.java:585)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:997)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:646)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
83)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:646)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
83)
at
org.

building 2.0.3

2002-07-16 Thread Mike Ash
Title: building 2.0.3





If I remove all of the optional jars and try to build I get errors about not finding the servlet stuff, in the optional directory is the servlet jar.  So my question is should the servlet jar be in the core directory or am I doing something wrong?




RE: cannot get my parameter / value passed to transformer

2002-07-16 Thread Naquin, Beth
Title: RE: cannot get my parameter / value passed to transformer





What do you see on your page?


Are you sure that you are passing in a value from the sitemap?  Maybe try hard-coding the value of the sitemap parameter to make sure it isn't empty.

...
 
 
 
...


In your xsl stylesheet, I think you need a  tag for something to show up on your HTML page.


   
   

   
   
   
   test1
   
   


.


-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: cannot get my parameter / value passed to transformer



hello, I have the following now, but don't see anything else that "test1"
printed out :


   
   

   
   
   test1
   
.


and in the sitemap :
...
 
 
 
...


log says :
Current Sitemap Parameters:
PARAM: 'lang' VALUE: 'EN'
PARAM: '../1' VALUE: 'html'
PARAM: '../0' VALUE: 'index.html'


The match right before this ones does :


    
    
    
    
    
    


so "lang" is set by map:act. I can check that it's ok in menu.xsl. Thanks.
BP


- Original Message -



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


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





RE: image and relative path issue

2002-07-16 Thread Naquin, Beth
Title: RE: image and relative path issue





try looking at this mail


http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102434844115169&w=2


-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:42 AM
To: [EMAIL PROTECTED]
Subject: image and relative path issue



I have a problem with images / css.


I use a pipeline for them but it doesn't seem to work.


images are in /images.


pipeline for .gif :


 
    
   


a request for index.* then a xsl stylesheet using : 
src=""images/menu.gif"/>
creates an image path ok : /images/menu.gif (in the html output
: src=""images/menu.gif")
but the picture does not show up, however when I right-click it and choose
"show image" the picture comes to view.


second case : a request for first/second/*. xsl stylesheet : 
src=""images/menu.gif"/>
image path by right-click on the (broken) picture :
/a/b/images/menu.gif
in the html output : src=""images/menu.gif".


so how can I tell my pipeline that it has to look for pictures in the
webapp's root/images folder, whatever the depth of the request ?


thanks,


Babs





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


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





Re: Schematron

2002-07-16 Thread Alexander Smirnoff

I'm not a big pro in Schematron. It uses mainly XPath for referencing nodes,
in Cocoon scratchpad it implemented with JXPath, where you could use
extension mechanics to add your own functions to XPath.

I did not do that but if you really want to have regexps in XPath, I think this 
is the direction.

Alex.


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 12:44 PM
Subject: Schematron


Hello,

   is there a way to use regular expressions with Schematron?
  (like with an descriptor xml match-regex)

  thanks for any help,


  miHam


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

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. 

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




image and relative path issue

2002-07-16 Thread Barbara Post

I have a problem with images / css.

I use a pipeline for them but it doesn't seem to work.

images are in /images.

pipeline for .gif :

 

   

a request for index.* then a xsl stylesheet using : 
creates an image path ok : /images/menu.gif (in the html output
: src="images/menu.gif")
but the picture does not show up, however when I right-click it and choose
"show image" the picture comes to view.

second case : a request for first/second/*. xsl stylesheet : 
image path by right-click on the (broken) picture :
/a/b/images/menu.gif
in the html output : src="images/menu.gif".

so how can I tell my pipeline that it has to look for pictures in the
webapp's root/images folder, whatever the depth of the request ?

thanks,

Babs




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

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




Re: Java packages

2002-07-16 Thread Lajos Moczar

You still can keep your concept of "Application". I look at Cocoon as a 
framework, within which my applications run. I make each application a 
subdirectory off the main directory, and each has its own sitemap. The 
benefit is that I have a "clean" sitemap, (i.e. very few map:component 
definitions except those that are specific to the application, like 
actions) and then I have a certain degree of portability. I have 
development and deployment copies of my website, which is comprised of 4 
such applications. When I want to roll a new version of an application, 
I jar up the appropriate directory, copy it to the production machine 
and unjar. All automated, too.

A traditional Servlet Spec-based application is a different paradigm 
from a Cocoon-based application which, obviously can only run inside 
Cocoon. In a way, you are comparing apples and oranges. A Cocoon-based 
application does have certain ties to the framework: the application 
sitemap must be referenced in the main sitemap and it shares 
WEB-INF/libs and the settings in web.xml/cocoon.xconf. Unless, of 
course, you write your own class-loader that picks up jars from your 
application directory structure.

Regards,

Lajos
galatea.com
Cocoon training, consulting & support


Robert Bourdeau wrote:

>>>It's not that these solutions won't work, but they feel awkward and
>>>seem a little like hacks. I work in a shop where we have multiple
>>>virtual hosts running on a single server configuration, and within
>>>each virtual host, multiple applications. Further, there are dev,
>>>alpha, beta, and prod configurations of everything, so I expect to
>>>be able to configure my software to allow for the independent upgrade
>>>of a Cocoon application from dev to prod without interferring
>>>with any of my other applications (except for changes in the common
>>>components, Cocoon, Tomcat, etc.)
>>>
>>Every application has WEB-INF directory, thus, it has all the libraries
>>it needs and it does not interfere with other applications.
>>
>>When you upgrade one of the applications, you just replace application
>>directory with the version of the new one, replacing all the libraries
>>old application has with new versions. This does not affect any other
>>application deployed in the system.
>>
>>
>>So, what's the issue?
>>
>>Vadim
>>
> 
> 
> You're calling Cocoon "the application". For me, the application is 
> my "Environmental Treaty Information Service", and 
> my "Work Flow Management System", and my "Guide to Global Population
> Projections", and my "Collaborative Document Authoring Environment".
> These applications could all be XML applications supported by Cocoon, 
> but in Cocoon they do not get their own WEB-INF directory. In JSP, they
> do. Now, yes, I could create subdirs in cocoon/WEB-INF/classes or create
> separate jars for each in the libs, and have my apps each include their own.
> I'm still mulling this over, and maybe this is all fine. Still mulling this
> over.  In gneral, I'm wanting something as transparent as a an Apache module, 
> or add on Tomcat core classes. Something more transparent than Cocoon
> current seems.
> 
> Don't get me wrong. I think Cocoon is great. It's really fantastic.
> It's a steep learning curve, but I think it's worth the climb.
> This is a hunt for the right way to configure an environment for
> multiple developers, multiple projects, multiple computers,
> and a staged releases.
> 
> Thanks for your comments!
> 
> --- Bob
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




RE: Java packages

2002-07-16 Thread Hunsberger, Peter


>  Now, yes, I could create subdirs in cocoon/WEB-INF/classes or create
> separate jars for each in the libs, and have my apps each include their
own.

The other possibility is deploying Cocoon multiple times as different EARs,
once for each "application".  That way if one application needs some
features of a particular Cocoon release that breaks other things you're
still fine.

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

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




Schematron

2002-07-16 Thread michael_hampel

Hello,

   is there a way to use regular expressions with Schematron?
  (like with an descriptor xml match-regex)

  thanks for any help,


  miHam


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

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




RE: Java packages

2002-07-16 Thread Robert Bourdeau

> 
> > It's not that these solutions won't work, but they feel awkward and
> > seem a little like hacks. I work in a shop where we have multiple
> > virtual hosts running on a single server configuration, and within
> > each virtual host, multiple applications. Further, there are dev,
> > alpha, beta, and prod configurations of everything, so I expect to
> > be able to configure my software to allow for the independent upgrade
> > of a Cocoon application from dev to prod without interferring
> > with any of my other applications (except for changes in the common
> > components, Cocoon, Tomcat, etc.)
> 
> Every application has WEB-INF directory, thus, it has all the libraries
> it needs and it does not interfere with other applications.
> 
> When you upgrade one of the applications, you just replace application
> directory with the version of the new one, replacing all the libraries
> old application has with new versions. This does not affect any other
> application deployed in the system.
> 
> 
> So, what's the issue?
> 
> Vadim


You're calling Cocoon "the application". For me, the application is 
my "Environmental Treaty Information Service", and 
my "Work Flow Management System", and my "Guide to Global Population
Projections", and my "Collaborative Document Authoring Environment".
These applications could all be XML applications supported by Cocoon, 
but in Cocoon they do not get their own WEB-INF directory. In JSP, they
do. Now, yes, I could create subdirs in cocoon/WEB-INF/classes or create
separate jars for each in the libs, and have my apps each include their own.
I'm still mulling this over, and maybe this is all fine. Still mulling this
over.  In gneral, I'm wanting something as transparent as a an Apache module, 
or add on Tomcat core classes. Something more transparent than Cocoon
current seems.

Don't get me wrong. I think Cocoon is great. It's really fantastic.
It's a steep learning curve, but I think it's worth the climb.
This is a hunt for the right way to configure an environment for
multiple developers, multiple projects, multiple computers,
and a staged releases.

Thanks for your comments!

--- Bob


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

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




RE: Actions and multipage form processing

2002-07-16 Thread Matthew Hailstone

Ivelin,
  Thanks for the response. I actually was looking at (reading the howto)
yesterday. I'm hoping to get 2.1 setup again and try out XMLForms today.

Matthew

> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 15, 2002 8:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Actions and multipage form processing
> 
> 
> 
> Did you look at XMLForm?
> 
> http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlfor
> m-wizard.html
> 
> 
> 
> - Original Message - 
> From: "Matthew Hailstone" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 15, 2002 5:12 PM
> Subject: Actions and multipage form processing
> 
> 
> I'm finding that actions are looking/sounding really useful. 
> I just can't figure out how to use them efficiently yet. Here 
> is my desire:
> 
> 1) Form gets data from user
> 2) Cocoon processes form and returns customized form based on 
> values from form in step 1.
>   a) Gets value(s) from input fields and performs queries on 
> a database
>   b) Returns results from database so that my transformer 
> (xslt sheet) transforms the data into HTML select inputs for 
> next page's form
> 3) Ater desired inputs are given on last form page, a 
> delimited text file is returned for user to save and process 
> in third-party tool.
> 
> Currently, I have one really messy xsp file that has a bunch 
> of nested if statements. The ifs are mostly on session data 
> that I set from previously encountered request parameters and 
> their value(s). Works kinda OK, but any variation from the 
> user on the normal use of the form/back button/type in URL by 
> hand/etc. and my code is gone to pot in logic. I got the 
> Hello World action example to work fine.
> (http://xml.apache.org/cocoon/userdocs/concepts/actions.html) 
> The action sets explanation was a little over my head at this 
> point, though.
> 
> Any suggestions/examples of how to simplify my xsp 
> implementation (get rid of so many ifs) and do logic 
> somewhere else by using actions/action sets?
> 
> Using:
>   Cocoon 2.0.3 release
>   Tomcat 4.1.3
>   Win2K
> 
> Here is a snippet from my pipeline:
> 
>   
> 
> 
>   
> 
>   
> 
> 
>   
>   
>   
> 
> 
>   
> 
> Thanks!
> 
> Matthew
> 
> P.S. I'm willing to help Dianna and her team compile and make 
> a nice How-To on multipage form processing with actions 
> depending on the amount of input is given. ;)
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 
> 
> 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. 

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




RE: Java packages

2002-07-16 Thread Vadim Gritsenko

> From: Robert Bourdeau [mailto:[EMAIL PROTECTED]]
> 
> That's pretty unsatisfying.
> I just disentangled my Tomcat 3.x JSP apps from each other when
> upgrading to Tomcat 4, localizing their WEB-INF dirs to allow
> them to be evolved independently.
> Now, with Cocoon, I'm back to a single WEB-INF? Not a good solution.
> 
> I found a message from Vadim in the archive (following the Nagoya
link)
> that suggested the one other idea I had, to add a classpath parameter
> to web.xml.

With recent Cocoon versions, this will work only with
ParanoidCocoonServlet (IIRC), and intended to be used with servlet
engines which do not play nice.


> That'll probably work for now, but it introduces name 
> collisions in classes across multiple applications. This all seems
> kinda unsatisfying, but perhaps there's no "good" solution with
> Cocoon XSP. I guess I want to think of Cocoon as the application
server
> with all the flexibility in configuration, but it's an application
> IN the server and is restricted accordingly.

Exaclty. There is nothing wrong with how Cocoon works. It just follows
servlet specification.


> It's not that these solutions won't work, but they feel awkward and
> seem a little like hacks. I work in a shop where we have multiple
> virtual hosts running on a single server configuration, and within
> each virtual host, multiple applications. Further, there are dev,
> alpha, beta, and prod configurations of everything, so I expect to
> be able to configure my software to allow for the independent upgrade
> of a Cocoon application from dev to prod without interferring
> with any of my other applications (except for changes in the common
> components, Cocoon, Tomcat, etc.)

Every application has WEB-INF directory, thus, it has all the libraries
it needs and it does not interfere with other applications.

When you upgrade one of the applications, you just replace application
directory with the version of the new one, replacing all the libraries
old application has with new versions. This does not affect any other
application deployed in the system.


So, what's the issue?

Vadim


> There's no "best practices" guide out there that I found yet for such
> configurations.
> If not, and if I ever find a nice way to integrate Cocoon into this
setup,
> perhaps
> I'd write it up (if anyone else finds themselves supporting such an
> environment).
> But I'm still unsatisfied.
> 
> --- Bob
> 
> >
> > cocoon/WEB-INF/classes or cocoon/WEB-INF/libs  (for jar files)
> >
> > -Andy
> >
> > Robert Bourdeau wrote:
> >
> > >I think there was a thread on this, BUT it appears that the
> > >cocoon-users archive is not indexed, there is no web archive, and
> > >I can't keep all the Cocoon-user messages. So, apologies in advance
> > >if this question was recently asked. (I did check the FAQ, nothing
> > >there).
> > >
> > >Ok, I want to utilize application specific java classes in my XSPs
> > >that, using JSP, I would normally location within the
/WEB-INF
> > >directory. I'm quite familiar with the Tomcat 4 class loaders, but
> > >Cocoon is its own Tomcat servlet, so it would seem that I'm forced
> > >to utilize a WEB-INF directory within the cocoon dir?
> > >
> > >Suggestions or pointers?
> > >Using:
> > >   Cocoon 2.0.1-dev
> > >   Tomcat 4.0.1, Apache 1.3.24 with WARP
> > >   JDK 1.3.1
> > >   Solaris 2.7 on a Sparc platform
> > >
> > >
> > >Thanks
> > >
> > >--- Bob


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

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




RE: cleaning xmlns attribute with XSL transformation

2002-07-16 Thread Vadim Gritsenko

> From: yuryx [mailto:[EMAIL PROTECTED]]
> 
> How can I set up the xsp processor that way that it will not unclude
> 'xmlns' attributes to HTML output?

This might be of help:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102553660504679&w=2


Vadim

 
...


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

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




AW: ServletProxyGenerator

2002-07-16 Thread Ewert, Sven

is your generic-servlet a "single thread" servlet?

cheerz

sven

-Ursprüngliche Nachricht-
Von: Michael Wechner [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. Juli 2002 17:47
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: ServletProxyGenerator


Hi

I am currently working on a ServletProxyGenerator:

++   ++   +-+
|| > | Cocoon:| > | |
| Client |   | ServletProxyGenerator: |   | Servlet |
|| < | HttpClient | < | |
++   ++   +-+

with the goal to connect some "legacy servlets" and being able to
pipe them through Cocoon.

Actually the ServletProxyGenerator doesn't do a lot. It is just creating
an HttpClient (org.apache.commons.http) and "forwarding" all parameters
(POST) and
the QueryString (GET) from the original client to the HttpClient being
instanced within the ServletProxyGenerator.

It is working very fine so far. I now wanted to connect some servlets
which need the session of the original client, which means I started to
transfer all Cookies into the HttpClient.

The problem now is, that the servlet still doesn't find the session!

Does anyone have experience with these kind of stuff: Passing cookies
from one client to another?

Thanks for your help and comments

Michael

P.S.: If the ServletProxyGenerator is of any use for the Cocoon
community, then I would be happy to donate it.




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

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. 

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




ServletProxyGenerator

2002-07-16 Thread Michael Wechner

Hi

I am currently working on a ServletProxyGenerator:

++   ++   +-+
|| > | Cocoon:| > | |
| Client |   | ServletProxyGenerator: |   | Servlet |
|| < | HttpClient | < | |
++   ++   +-+

with the goal to connect some "legacy servlets" and being able to
pipe them through Cocoon.

Actually the ServletProxyGenerator doesn't do a lot. It is just creating
an HttpClient (org.apache.commons.http) and "forwarding" all parameters
(POST) and
the QueryString (GET) from the original client to the HttpClient being
instanced within the ServletProxyGenerator.

It is working very fine so far. I now wanted to connect some servlets
which need the session of the original client, which means I started to
transfer all Cookies into the HttpClient.

The problem now is, that the servlet still doesn't find the session!

Does anyone have experience with these kind of stuff: Passing cookies
from one client to another?

Thanks for your help and comments

Michael

P.S.: If the ServletProxyGenerator is of any use for the Cocoon
community, then I would be happy to donate it.




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

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




Re: non standard input encoding

2002-07-16 Thread Joerg Heinicke

Jo Bourne wrote:
 > Hi,
 >
 > We are trying to migrate to cocoon2 from 1.8x. Our app receives xml
 > content which is MacRoman encoded and cocoon 1.8 has been conveniently
 > converting this to utf8 on the way out. Cocoon 2 spits the dummy. I can
 > see plenty of posts on specifying your output encoding in the sitemap, but
 > how do we specify the input encoding in order for it to be converted as it
 > is in c1.8?
 >
 > and yes we do know it would be best if our content wasn't macroman
 > encoded, but fixing that isn't a choice.
 >
 > thanks in advance
 > Jo

Hello Jo,

you say that your files are working with Cocoon 1.8x and MacRoman, i.e. you 
had a parser in Cocoon 1.8x which understands MacRoman encoding. If the 
parser of the Cocoon 2 (normally Xerces 2.0.x) does not understand this 
encoding (anymore??), you have to search for another one.

The parser is the important, not the possible output transformation to 
utf-8. You can specify the output encoding in the sitemap, but the input 
encoding is specified in the XML and read by the parser (by default it's 
utf-8). If the old parser really reads MacRoman and the new one does not, 
you maybe should use the old one. THere is no other possibility I think.

Regards,

Joerg


-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de



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

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




need advice on beginning a new Cocoon based project called XMTrader

2002-07-16 Thread Josema Alonso

Dear all,

Finally I could start a 100% Cocoon based project. I've been developing web
applications using scripting languages, mainly ASP on the server and
Javascript on the client, for some 4 years now. I always try to use them the
cleanest possible way; unfortunately it's always a mess at then end of the
project. Being the XML fan I am I should change to Cocoon or any other XML
framework someday :-)

This project is known as XMTrader - eXcellent Music Trader. This is not any
kind of P2P software.
I'm a music fan and I'm lately involved with some fan communities which want
to share legal music in a lossless format. The music sharing is done by way
of FTP servers maintained by individuals, where kind people store the files.
They are very concerned about security issues so these servers and some
communities are closed to the general public. FTP servers are usually
filtered by IP, user name and other variables, and accounts are only given
to people who have been introduced by some member of the community; though
anyone can ask for an account on any server. The contents or the server are
displayed on web pages that FTP admins must update by hand on a week by week
basis.

And here comes myself with a solution to automate those tasks. So these are
the goals this project should accomplish and how I think I could do them,
and this is where I need some expert advice:
1.- A portal for FTP admins, members of the community and general public.
This will let users communicate, ask FTP admins for accounts and see
listings of the content of FTP servers. The latter is the most important
feature of the project and is explained more in details below.
I think I could use the Portal & Authentication components and XMLForms for
this task. Since some parts of the web site should be protected and I'd need
to develop many pages with forms for the users to configure the site the way
they want.
2.- A look account will be created for all the servers. This account can
only see the contents of a server. Some kind of indexer should iterate
through all the servers and get their contents in a daily basis to show them
on the portal. So, members of the community could see there the contents,
even the contents of servers where they do not have an account created. But
his should be configured by every FTP admin in the portal.
My intention is to make a collection of XML files conforming to a XML
Schema. Every XML file should have the contents of one of the servers. I'll
query all of the servers once by day, maybe using some servlet and extending
the DirectoryGenerator (can I query remote directories?) and creating the
XML files locally, we are almost agreeing on a naming convention for the
directories and files. Then I should give users the chance of querying this
structure by server, artists, songs, etc. What should I use? XIndice,
Lucene???

This is just the beginning. After that I hope I could add more modules to
the application. We have tons of ideas on how to improve the day by day
community experience.

Well, that's all. Oh, what a long message...I'm sorry. I tried to explain it
in short...hope you could understand it and if not, please let me know what
I should explain more in detail.

Thank you very very much for reading.


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

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




problems with SQLTransformer

2002-07-16 Thread Ramsés Morales

Hi.

I'm receiving two consecutive unsuported exceptions:

---
DEBUG   (2002-07-16) 10:09.12:987  
[sitemap.transformer.sql](/cocoon/LinePlant)
HttpProcessor[8080][4]/SQLTransformer$Query: EXECUTING SELECT
field_value, codes_desc FROM cst_codes
ERROR   (2002-07-16) 10:09.13:222  
[sitemap.transformer.sql](/cocoon/LinePlant)
HttpProcessor[8080][4]/SQLTransformer$Query: Caught a SQLException
java.sql.SQLException: unsupported
at
com.Connx.jdbc.TCJdbc.TCJdbcConnection.prepareStatement(TCJdbcConnection.java:581)
at
org.apache.avalon.excalibur.datasource.JdbcConnection.prepareStatement(JdbcConnection.java:172)
at
org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer.java:1014)
at
org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:271)
at
org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTransformer.java:417)
.
.
.
DEBUG   (2002-07-16) 10:09.13:649  
[sitemap.transformer.sql](/cocoon/LinePlant)
HttpProcessor[8080][4]/SQLTransformer: SQLTransformer:.executeQuery()
query.execute failed 
java.sql.SQLException: unsupported
at
com.Connx.jdbc.TCJdbc.TCJdbcConnection.prepareStatement(TCJdbcConnection.java:581)
at
org.apache.avalon.excalibur.datasource.JdbcConnection.prepareStatement(JdbcConnection.java:172)
at
org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer.java:1014)
at
org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:271)
.
.
.


I'm using a JDBC 1.1.6 driver, compatible with 1.2. I checked the source
code of the transformer, and I don't see why I get that unsupported
exception, I mean, regular JDBC in there.

I saw an "oldDriver" attribute on SQLtransformer.java, so I used it on
cocoon.xconf to see if that would solve the problem (but didn't):

  

  
  false
  true
  jdbc:connx:dd=--;GATEWAY=
  
  

  

This is the query:

http://apache.org/cocoon/SQL/2.0";>
  SELECT field_value, codes_desc FROM cst_codes
  


This is the transformation part of that pipe:


  


I tested that query with jdbc on a plain java class, and it worked.
Checking SQLTranformer.java, it should be working too. What's wrong??

Thanks for your help.


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

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




Re: HSSFSerializer

2002-07-16 Thread Sven Kuenzler

[EMAIL PROTECTED] schrieb:

 >> [Gnumeric->Excel]
> i tried it. works very well. thanks.
> just one more question: how can i deactivate
> the log-msgs?

Replace Priority.DEBUG with something like Priority.ERROR or .FATAL(?). 
Have a look at LogKits JavaDoc to learn about the "log levels" 
available. Maybe there's also a "null logger" which turns logging off 
completely.

Sven




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

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




Using Schematron for XML request validation

2002-07-16 Thread Alexander Smirnoff

Hi all,

I'm considering to use SchematronValidator for validation of XML 
requests (embedded in the body of HTTP requests). Since XML 
Forms validation is dealing with forms and validation of JavaBeans,
I have a different problem.

The question I have is somewhat general. 

I would like to use schema for populating some report object in 
the case the validation succeeds. Probably it should be a different 
procedure, but does it looks more natural to have it there?

http://www.ascc.net/xml/schematron"; >
Test


No username and password 
attributes




account_info.xsp






Then I can pass it to specific hanle or even redirect the request.
Would it be a violation of Schematron schema and if not, how could I implement this?

Thanks,
Alex.



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

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




Re: cleaning xmlns attribute with XSL transformation

2002-07-16 Thread Joerg Heinicke

1. "push" vs. "pull"

Hmm, I don't know whether I would validate the XML input for HTML output. 
You would have to validate so many elements and attributes - I think it's to 
extreme. But there have been many discussions about push or pull approach 
(output data-driven or xsl-driven).

XSL FAQ: http://www.dpawson.co.uk/xsl/sect2/pushpull.html
XSL mailing list archive: 
http://sources.redhat.com/cgi-bin/htsearch?method=and&format=builtin-long&sort=time&config=htdig&restrict=%2Fml%2Fxsl-list%2F&exclude=&words=push+pull

2. namespace "attributes"

The problem is, that xmlns:xxx (namespace declaration) are no attributes. 
You can normally remove them by specifying an 
"exclude-result-prefixes='xxx'" on the  element. The problem 
in your code is, that you are copying the nodes ... and so the namespace 
declarations too. You have to replace  by .

Regards,

Joerg



Robert Bourdeau wrote:
> One thing that strikes me is that you're tranferring XML element attributes
> to HTML element attributes uninspected. It would seem to be, admittedly
> far from expert, a better practice is to specifically select and handle the XML 
>attributes,
> transforming then into appropriate (perhaps equivalent) HTML attributes. But
> for the most part, most such attributes would belong in the xsl-stylesheet or
> CSS anyway.
> 
> I know that doesn't answer your question if why your code doesn't work. 
> But perhaps folks will respond about the wisdom of doing it one way or another.
> 
> regards,
> 
> --- Bob
> 
> 
> 
>>-Original Message-
>>From: yuryx [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, July 16, 2002 9:48 AM
>>To: [EMAIL PROTECTED]
>>Subject: cleaning xmlns attribute with XSL transformation
>>
>>
>>How can I set up the xsp processor that way that it will not unclude 
>>'xmlns' attributes to HTML output?
>>
>>For example. I'm generate XML from my XSP.In XSP page  i define the 
>>following namespace: [xmlns:xsp="http://apache.org/xsp";].
>>my XSP:
>>
>> test
>>
>>1)When I tried to execute this logicsheet
>>...
>>
>> 
>>
>>...
>>  
>>   
>>
>> 
>>
>>   
>>  
>>
>>  
>> 
>>  
>>
>>
>>  >select="."/>
>>
>>root tags () contain [xmlns:xsp="http://apache.org/xsp] attribute 
>>(and 'test' attribute also)
>>
>>2)When I tried to execute this logicsheet
>>...
>>
>> 
>>
>>...
>>  
>>   
>>
>>
>>
>> 
>>
>>   
>>  
>>
>>  
>> 
>>  
>>
>>
>>  >select="."/>
>>
>>Root tags () contain [xmlns:xsp="http://apache.org/xsp] attribute 
>>without test attribute
>>Of course I cleaned this attribute, but why xmlns:xsp attribute is not 
>>cleaned in first XSL example?
>>
>>Or I'm in a wrong way here?
>>
>>
>>Thanx.
>>Yury.


-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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

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




RE: Java packages

2002-07-16 Thread Robert Bourdeau

That's pretty unsatisfying.
I just disentangled my Tomcat 3.x JSP apps from each other when upgrading
to Tomcat 4, localizing their WEB-INF dirs to allow them to be evolved independently.
Now, with Cocoon, I'm back to a single WEB-INF? Not a good solution.

I found a message from Vadim in the archive (following the Nagoya link) that 
suggested the one other idea I had, to add a classpath parameter to web.xml.
That'll probably work for now, but it introduces name collisions in classes
across multiple applications. This all seems kinda unsatisfying, but perhaps there's
no "good" solution with Cocoon XSP. I guess I want to think of Cocoon as the 
application server with all the flexibility in configuration, but it's an application
IN the server and is restricted accordingly.

It's not that these solutions won't work, but they feel awkward and
seem a little like hacks. I work in a shop where we have multiple virtual hosts
running on a single server configuration, and within each virtual host, multiple
applications. Further, there are dev, alpha, beta, and prod configurations of
everything, so I expect to be able to configure my software to allow for the
independent upgrade of a Cocoon application from dev to prod without interferring
with any of my other applications (except for changes in the common components, 
Cocoon, Tomcat, etc.)

There's no "best practices" guide out there that I found yet for such configurations.
If not, and if I ever find a nice way to integrate Cocoon into this setup, perhaps
I'd write it up (if anyone else finds themselves supporting such an environment). 
But I'm still unsatisfied.

--- Bob

> 
> cocoon/WEB-INF/classes or cocoon/WEB-INF/libs  (for jar files)
> 
> -Andy
> 
> Robert Bourdeau wrote:
> 
> >I think there was a thread on this, BUT it appears that the
> >cocoon-users archive is not indexed, there is no web archive, and 
> >I can't keep all the Cocoon-user messages. So, apologies in advance
> >if this question was recently asked. (I did check the FAQ, nothing there).
> >
> >Ok, I want to utilize application specific java classes in my XSPs
> >that, using JSP, I would normally location within the /WEB-INF 
> >directory. I'm quite familiar with the Tomcat 4 class loaders, but Cocoon is
> >its own Tomcat servlet, so it would seem that I'm forced to utilize
> >a WEB-INF directory within the cocoon dir? 
> >
> >Suggestions or pointers?
> >Using:
> > Cocoon 2.0.1-dev
> > Tomcat 4.0.1, Apache 1.3.24 with WARP
> > JDK 1.3.1
> > Solaris 2.7 on a Sparc platform
> >
> >
> >Thanks
> >
> >--- Bob
> >
> >
> >-
> >Please check that your question  has not already been answered in the
> >FAQ before posting. 
> >
> >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. 
> 
> 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. 

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




Re: Java packages

2002-07-16 Thread Steven Noels

Robert Bourdeau wrote:

> I think there was a thread on this, BUT it appears that the
> cocoon-users archive is not indexed, there is no web archive, and 
> I can't keep all the Cocoon-user messages.

http://marc.theaimsgroup.com/?l=xml-cocoon-users
http://nagoya.apache.org/eyebrowse/SummarizeList?[EMAIL PROTECTED]

HTH,


-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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

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




RE: Java packages

2002-07-16 Thread TREGAN Fabien

>I think there was a thread on this, BUT it appears that the
>cocoon-users archive is not indexed, there is no web archive, and 
>I can't keep all the Cocoon-user messages. So, apologies in advance
>if this question was recently asked. (I did check the FAQ, 
>nothing there).

Did you check http://localhost:8080/cocoon/documents/mail-archives.html ?

fabien.

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

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




Re: Java packages

2002-07-16 Thread Andrew C. Oliver

cocoon/WEB-INF/classes or cocoon/WEB-INF/libs  (for jar files)

-Andy

Robert Bourdeau wrote:

>I think there was a thread on this, BUT it appears that the
>cocoon-users archive is not indexed, there is no web archive, and 
>I can't keep all the Cocoon-user messages. So, apologies in advance
>if this question was recently asked. (I did check the FAQ, nothing there).
>
>Ok, I want to utilize application specific java classes in my XSPs
>that, using JSP, I would normally location within the /WEB-INF 
>directory. I'm quite familiar with the Tomcat 4 class loaders, but Cocoon is
>its own Tomcat servlet, so it would seem that I'm forced to utilize
>a WEB-INF directory within the cocoon dir? 
>
>Suggestions or pointers?
>Using:
>   Cocoon 2.0.1-dev
>   Tomcat 4.0.1, Apache 1.3.24 with WARP
>   JDK 1.3.1
>   Solaris 2.7 on a Sparc platform
>
>
>Thanks
>
>--- Bob
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>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. 

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




Out of memory error.

2002-07-16 Thread TREGAN Fabien

Hi,

I'm making some perfomance test with cocoon. The pipeline is like this :
-action that instanciate a bean (with one property wich is an array of one
hundred beans)
-castor transformer
-2 xsl transformation
-html serializer

When I try stressing it, when I have around 50 concurrent hit (50 thread in
JMeter), i get some "out of memory" error (wich are displayed without
stacktrace). Winnt 4 indicate that java.exe uses around 80Mo of memory (the
server has 1Go, and more than 500Mo of physical memory aviable)

I tryed to add -Xmx268435456 -Xms 268435456 in %catalina_opt%, and to set
the "heap_size" parameter in the sitemap to 268435456, but it did'nt changed
anything.

any idea ?

fabien.

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

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




Java packages

2002-07-16 Thread Robert Bourdeau

I think there was a thread on this, BUT it appears that the
cocoon-users archive is not indexed, there is no web archive, and 
I can't keep all the Cocoon-user messages. So, apologies in advance
if this question was recently asked. (I did check the FAQ, nothing there).

Ok, I want to utilize application specific java classes in my XSPs
that, using JSP, I would normally location within the /WEB-INF 
directory. I'm quite familiar with the Tomcat 4 class loaders, but Cocoon is
its own Tomcat servlet, so it would seem that I'm forced to utilize
a WEB-INF directory within the cocoon dir? 

Suggestions or pointers?
Using:
Cocoon 2.0.1-dev
Tomcat 4.0.1, Apache 1.3.24 with WARP
JDK 1.3.1
Solaris 2.7 on a Sparc platform


Thanks

--- Bob


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

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




cactus...

2002-07-16 Thread Othman Haddad




hi,
is there anybody who has already worked with Cactus to test Avalon 
components inside of cocoon2 ?
where can i find examples?
thanks a lot..
  


Receiving blank pages.

2002-07-16 Thread David Vos

We've upgraded our cocoon system, so now we are running cocoon 2.0.3
binary, tomcat 4.0.4 (LW binary), and Sun's jdk1.4 binary.

It seems to be running better now.  However, I'm starting to notice that
after a little while cocoon starts returning empty pages to the user
(i.e. "").  I can make this go away by
restarting tomcat, but then it comes back.  I've had to restart tomcat 4
times this morning already.  I don't know if someone keeps visiting a bad
page or what.  I do know that this would happen when converting large xml
files to pdf (large being 8MB).  I've gone through the log files, and it
looks to me like things are going normally.  Cocoon will process the
request, apply the xsl, and return it (at least that is what I think the
log files are saying).

Also, tomcat often has trouble shutting down.  I wait a minute or two and
there are still a bunch of java processes that I kill with 'killall java'.  
This seems to happen less now that I've upgraded, but I think I've had it
happen a few times already -- usually after cocoon stops responding.

David


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

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




RE: cactus...

2002-07-16 Thread Todd Densmore



please - no HTML emails.

  -Original Message-From: Othman Haddad 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 16, 2002 5:21 
  AMTo: cocoon user listSubject: 
  cactus...
  


  
hi,
is there anybody who has already worked with Cactus to test Avalon 
components inside of cocoon2 ?
where can i find examples?
thanks a lot..

  

  
  


  
  IncrediMail - La messagerie électronique a enfin évolué - 
  Cliquer 
  ici 

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

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


Réf. : XMLForms & Cocoon-2.0.3

2002-07-16 Thread Othman Haddad








  please look at:
  http://xml.apache.org/cocoon/installing/index.html
   
  it works fine..
  hope this helps.
  othman
   
  ---Message original---
   
  
  De : [EMAIL PROTECTED]
  Date : mardi 16 juillet 
  2002 16:05:07
  A : [EMAIL PROTECTED]
  Sujet : XMLForms & 
  Cocoon-2.0.3
   Can XMLForms be used with Cocoon-2.0.3? If not, how can I 
  download the Cocoon-2.1 branch from cvs.-- Robert J. 
  (Bobby) MitchellSystems AdministratorNASA Institute for Advanced 
  Concepts555A 14th St Atlanta, Ga. 30318Phone: (404)347-9633 Fax: 
  (404)347-9638-Please 
  check that your question has not already been answered in theFAQ 
  before posting. To 
  unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
  additional commands, e-mail: <[EMAIL PROTECTED]>.





	
	
	
	
	
	
	




  IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



XMLForms & Cocoon-2.0.3

2002-07-16 Thread Bobby Mitchell

Can XMLForms be used with Cocoon-2.0.3? If not, how can I download the 
Cocoon-2.1 branch from cvs.

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

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




RE: cleaning xmlns attribute with XSL transformation

2002-07-16 Thread Robert Bourdeau

One thing that strikes me is that you're tranferring XML element attributes
to HTML element attributes uninspected. It would seem to be, admittedly
far from expert, a better practice is to specifically select and handle the XML 
attributes,
transforming then into appropriate (perhaps equivalent) HTML attributes. But
for the most part, most such attributes would belong in the xsl-stylesheet or
CSS anyway.

I know that doesn't answer your question if why your code doesn't work. 
But perhaps folks will respond about the wisdom of doing it one way or another.

regards,

--- Bob


> -Original Message-
> From: yuryx [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 9:48 AM
> To: [EMAIL PROTECTED]
> Subject: cleaning xmlns attribute with XSL transformation
> 
> 
> How can I set up the xsp processor that way that it will not unclude 
> 'xmlns' attributes to HTML output?
> 
> For example. I'm generate XML from my XSP.In XSP page  i define the 
> following namespace: [xmlns:xsp="http://apache.org/xsp";].
> my XSP:
> 
>  test
> 
> 1)When I tried to execute this logicsheet
> ...
> 
>  
> 
> ...
>   
>
> 
>  
> 
>
>   
> 
>   
>  
>   
> 
> 
>select="."/>
> 
> root tags () contain [xmlns:xsp="http://apache.org/xsp] attribute 
> (and 'test' attribute also)
> 
> 2)When I tried to execute this logicsheet
> ...
> 
>  
> 
> ...
>   
>
> 
> 
> 
>  
> 
>
>   
> 
>   
>  
>   
> 
> 
>select="."/>
> 
> Root tags () contain [xmlns:xsp="http://apache.org/xsp] attribute 
> without test attribute
> Of course I cleaned this attribute, but why xmlns:xsp attribute is not 
> cleaned in first XSL example?
> 
> Or I'm in a wrong way here?
> 
> 
> Thanx.
> Yury.
> 
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




cleaning xmlns attribute with XSL transformation

2002-07-16 Thread yuryx

How can I set up the xsp processor that way that it will not unclude 
'xmlns' attributes to HTML output?

For example. I'm generate XML from my XSP.In XSP page  i define the 
following namespace: [xmlns:xsp="http://apache.org/xsp";].
my XSP:

 test

1)When I tried to execute this logicsheet
...

 

...
  
   

 

   
  

  
 
  


  

root tags () contain [xmlns:xsp="http://apache.org/xsp] attribute 
(and 'test' attribute also)

2)When I tried to execute this logicsheet
...

 

...
  
   



 

   
  

  
 
  


  

Root tags () contain [xmlns:xsp="http://apache.org/xsp] attribute 
without test attribute
Of course I cleaned this attribute, but why xmlns:xsp attribute is not 
cleaned in first XSL example?

Or I'm in a wrong way here?


Thanx.
Yury.





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

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




Re: HSSFSerializer

2002-07-16 Thread Andrew C. Oliver

Yes...note HSSF logging decreases performance by at least 100x

[EMAIL PROTECTED] wrote:

>hallo sven,
>
>i tried it. works very well. thanks.
>just one more question: how can i deactivate
>the log-msgs?
>
>ciao robertj
>
>Robert Kuzelj
>Gaissacherstrasse 7   email: [EMAIL PROTECTED]
>81371 Muenchentel:   0177/5302230
>
>the trinity of desirables of (software) architecture:
>Firmitas, Utilitas, Venustas (marcus vitruvius 20 BC)
>strength, utility, beauty
>
>- Original Message -
>From: "Sven Kuenzler" <[EMAIL PROTECTED]>
>Newsgroups: gmane.text.xml.cocoon.user
>To: <[EMAIL PROTECTED]>
>Sent: Monday, July 15, 2002 5:00 PM
>Subject: Re: HSSFSerializer
>
>
>  
>
>>Sven Kuenzler schrieb:
>>
>>
>>
>>
>>>[EMAIL PROTECTED] wrote:
>>>
>>>  
>>>
i want to use the HSSFSerializer which if i have understood
correctly serializes an gnumeric (xml) - document into
a excel-file.

the problem is that i solely want to use this class without
all the other cocoon-stuff. is that possible?


>>>I have done this. If you can wait until tuesday, I could post a code
>>>snippet. Otherwise, search the dev-list for the "away mission" thread
>>>  
>>>
>;-)
>  
>
>>I have uploaded
>>
>>http://www.tzi.de/~svenk/poimorpher.zip
>>
>>The project structure was ripped of an old project of mine, so it may
>>need some adjustments.
>>
>>Normally, "build test" should generate a poimorpher.jar and  two test
>>Excel files in a "work" directory. If so, have a look at
>>morphos.poi.test.HSSF to learn how this can be deployed in your app.
>>
>>This package was done to prepare migration of the Gnumeric2Excel stuff
>>into a Jakarta commons project. As it stands, I only stripped off the
>>Cocoon interfaces and removed some of the Avalon contracts (which mostly
>>weren't executed anyway).
>>
>>Let me know if this works for you.
>>
>>Sven
>>
>>
>>
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. 
>>
>>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. 
>
>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. 

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




non standard input encoding

2002-07-16 Thread Jo Bourne

Hi,

We are trying to migrate to cocoon2 from 1.8x. Our app receives xml content which is 
MacRoman encoded and cocoon 1.8 has been conveniently converting this to utf8 on the 
way out. Cocoon 2 spits the dummy. I can see plenty of posts on specifying your output 
encoding in the sitemap, but how do we specify the input encoding in order for it to 
be converted as it is in c1.8?

and yes we do know it would be best if our content wasn't macroman encoded, but fixing 
that isn't a choice.

thanks in advance
Jo

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

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




Re: cannot get my parameter / value passed to transformer

2002-07-16 Thread Barbara Post

hello, I have the following now, but don't see anything else that "test1"
printed out :

   
   

   
   
   test1
   
.

and in the sitemap :
...
 
 
 
...

log says :
Current Sitemap Parameters:
PARAM: 'lang' VALUE: 'EN'
PARAM: '../1' VALUE: 'html'
PARAM: '../0' VALUE: 'index.html'

The match right before this ones does :








so "lang" is set by map:act. I can check that it's ok in menu.xsl. Thanks.
BP

- Original Message -


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

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




Re: HSSFSerializer

2002-07-16 Thread robert_kuzelj

hallo sven,

i tried it. works very well. thanks.
just one more question: how can i deactivate
the log-msgs?

ciao robertj

Robert Kuzelj
Gaissacherstrasse 7   email: [EMAIL PROTECTED]
81371 Muenchentel:   0177/5302230

the trinity of desirables of (software) architecture:
Firmitas, Utilitas, Venustas (marcus vitruvius 20 BC)
strength, utility, beauty

- Original Message -
From: "Sven Kuenzler" <[EMAIL PROTECTED]>
Newsgroups: gmane.text.xml.cocoon.user
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 5:00 PM
Subject: Re: HSSFSerializer


> Sven Kuenzler schrieb:
>
>
> > [EMAIL PROTECTED] wrote:
> >
> >> i want to use the HSSFSerializer which if i have understood
> >> correctly serializes an gnumeric (xml) - document into
> >> a excel-file.
> >>
> >> the problem is that i solely want to use this class without
> >> all the other cocoon-stuff. is that possible?
> >
> >
> > I have done this. If you can wait until tuesday, I could post a code
> > snippet. Otherwise, search the dev-list for the "away mission" thread
;-)
>
> I have uploaded
>
> http://www.tzi.de/~svenk/poimorpher.zip
>
> The project structure was ripped of an old project of mine, so it may
> need some adjustments.
>
> Normally, "build test" should generate a poimorpher.jar and  two test
> Excel files in a "work" directory. If so, have a look at
> morphos.poi.test.HSSF to learn how this can be deployed in your app.
>
> This package was done to prepare migration of the Gnumeric2Excel stuff
> into a Jakarta commons project. As it stands, I only stripped off the
> Cocoon interfaces and removed some of the Avalon contracts (which mostly
> weren't executed anyway).
>
> Let me know if this works for you.
>
> Sven
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: Depth in DirectoryGenerator

2002-07-16 Thread Сергей Чернокозинский

Thank you very much

- Original Message -
From: "ROSSEL Olivier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 1:41 PM
Subject: RE: Depth in DirectoryGenerator


>
>
> > -Message d'origine-
> > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Date: mardi 16 juillet 2002 06:21
> > À: [EMAIL PROTECTED]
> > Objet: Depth in DirectoryGenerator
> >
> >
> > Hi All,
> >
> > I try to use DirectoryGenerator to create dynamic directory list. In
> > documentation said,
> > it's possible to set arbitrary depth of directory recursion.
> > For example, I
> > have set depth to 5:
> >
> >  
> >
> >   
> >   
> >
> > 
> >
> > But it does not work, I always receive flat list, even if the
> > subdirectory
> > is not empty:
> >
> > 
> >   > date="30.06.02
> > 11:48" requested="true"
> > xmlns:dir="http://apache.org/cocoon/directory/2.0";>
> >> date="04.07.02
> > 18:01" />
> >> date="07.07.02
> > 11:48" />
> >   
> >   
> >
> > I will appreciate any help.
> >
> > Best Regards,
> > Serge Chernokozinsky
>
> I am not sure, but I think I use the depth parameter this way:
>   
> 
>
> 
>
>
> 
>  
>
> And it works.
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: cannot get my parameter / value passed to transformer

2002-07-16 Thread Joerg Heinicke

What are you doing in the stylesheet? You need a top-level :






   




Regards,

Joerg

Barbara Post wrote:
> Hello, I want the trail of the match to be passed to my stylesheet, and used
> there as a variable. the following does not work. thanks for any help.
> 
> 
> 
>  
>  
> 
>  
>  
>  
>  
>

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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

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




cannot get my parameter / value passed to transformer

2002-07-16 Thread Barbara Post

Hello, I want the trail of the match to be passed to my stylesheet, and used
there as a variable. the following does not work. thanks for any help.



 
 

 
 
 
 
   



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

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




using i18n in xsl

2002-07-16 Thread kavitha ramesh

Hi,

I would like to use the i18n tags inside an xsl file.Is it 
possible?If so how do I use it?
For example, I have the following content inside an xml file:


titletext


How do I use the same thing inside an xsl file?I dont want any 
contents inside my xml file.But everything should be inside an xsl 
file,,,Please help me,,,

Kavitha
_
Click below  to experience Aishwarya Rai's beauty secrets. New 
International Lux Skincare - It's not just soap, It's skincare.
http://www.luxskincare.com


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

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




How do i change the Encoding of the produced files by the TextSerializer

2002-07-16 Thread Christian SCHRÖTER

Hi,

i want to create csv-Files by using the TextSerializer. My problem 
is, that i have to encode the produzed csv-file in ISO-8859-1.

I am using:
* java 1.4.0_01
* tomcat 4.0.4
* xml-cocoon2_20020712041726.tar.gz

I tried to set in my main-sitemap the encoding:


ISO-8859-1


But it didnt help. The produced file is UTF-8 encoded.

So i tried to set in my subsitemap the encoding:


  ISO-8859-1


But it didnt help.

So i tried to set the encoding in my pipeline:


 
 
 
  ISO-8859-1
 


But it didnt help.

The file is alway in UTF-8 encoded.

Where must i change the encoding, so that i get ISO-8859-1 encoded 
files?


cu,
Christian




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

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




how to use jscript or vbscript or objectrexx with xslt

2002-07-16 Thread gerald . michalitz

> hallo
> 
> can someone please give me a hint how can i use jscript or vbscript or 
> objectrexx with
> xslt
> 
> i want to use the script code in the xsl-file
> put how does this work and how does the xml-file looks like
> 
i need this in a transformation into html and into pfd
> thanks for your help
> 
> gerald


---
Versendet durch AonWebmail (webmail.aon.at)

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

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




Protected area sample -> wml

2002-07-16 Thread zze-STIENNE Nicolas FTRD/DMI/CAE

Hi everybody !!

  I want to make a protected area on my Wap sites version. I looked at the Cocoon 
Webapps sample and the protected area one. Is that possible to translate it in wml ? 
Could it work with a wap terminal ? Is the session managed in the same way ? Is there 
another way to do it ?

Thanks for help...

Nicolas !!

Cocoon2.0.2 Tomcat4.0.4 JDK1.3.1_03 W2000

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

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




RE: Depth in DirectoryGenerator

2002-07-16 Thread ROSSEL Olivier



> -Message d'origine-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Date: mardi 16 juillet 2002 06:21
> À: [EMAIL PROTECTED]
> Objet: Depth in DirectoryGenerator
> 
> 
> Hi All,
> 
> I try to use DirectoryGenerator to create dynamic directory list. In
> documentation said,
> it's possible to set arbitrary depth of directory recursion. 
> For example, I
> have set depth to 5:
> 
>  
>
>   
>   
>
> 
> 
> But it does not work, I always receive flat list, even if the 
> subdirectory
> is not empty:
> 
> 
>   date="30.06.02
> 11:48" requested="true" 
> xmlns:dir="http://apache.org/cocoon/directory/2.0";>
>date="04.07.02
> 18:01" />
>date="07.07.02
> 11:48" />
>   
>   
> 
> I will appreciate any help.
> 
> Best Regards,
> Serge Chernokozinsky

I am not sure, but I think I use the depth parameter this way:
  

   

   
   

 

And it works.

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

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




RE: HTML tree from a Directory generator.

2002-07-16 Thread ROSSEL Olivier

> > What I want is to get a "Windows explorer like" view of a 
> directory tree :-)
> > Not a highlighted XML :-)
> 
> That's clear. You should merge them and not use them 
> consecutively. This 
> means for example to use the collapse/expand code from 
> simple-xml2html.xsl.
> 
> If you don't want to do it yourself, you must wait a week. I 
> will try to 
> create a "Windows explorer like"-stylesheet.

Ok. I get the idea now.
Sorry for being so dumb :-)

Well, I think a generic stylesheet could be nice.
And visually striking in the samples of (let's say) C2.0.4 :-)

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

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




cactus...

2002-07-16 Thread Othman Haddad








  hi,
  is there anybody who has already worked with Cactus to test Avalon 
  components inside of cocoon2 ?
  where can i find examples?
  thanks a lot..





	
	
	
	
	
	
	




  IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



Re: To Admin - Important/Urgent/Serious

2002-07-16 Thread Giacomo Pati


If you are shure you have subscribed using that mail address
try mailto:[EMAIL PROTECTED]

Giacomo

PS request for help is mailto:[EMAIL PROTECTED]

On Tue, 16 Jul 2002, Suchandra Nag wrote:

> same here .. Please someone help me to unsubscribe from the list ..
> My email_id is
> [EMAIL PROTECTED]
>
> Thanks in advance
> Suchandra
>
>
> SB wrote:
>
> > I unsubscribed from this mail list and still geting mails.
> > Again, I sent mail to [EMAIL PROTECTED]
> > didnt get any response, probably my email is not in their database.
> > So I subscribed again, and unsubscribed today. and I got mails
> > from cocoon-users today too. After I unsubscribe, my mails dont
> > seem to reach the list(as I didnt get my mail), but I *do* get
> > all your mails. *So* I subscribed again and writing this mail.
> >
> > Why isnt there an email list *[EMAIL PROTECTED] ?
> >
> > Can some kind soul help?
> > --st.
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 

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