RE: Excluding cinclude namespace thru a stylesheet following a cinclude transformation

2002-09-20 Thread Reinhard Poetz

Daniel,

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

Regards,
Reinhard

> -Original Message-
> From: Daniel Fournier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 6:55 PM
> To: [EMAIL PROTECTED]
> Subject: Excluding cinclude namespace thru a stylesheet following a
> cinclude transformation
> 
> 
> Hello Carsten,
> 
> First, I'd like to congratulate you for the Cocoon book you co-wrote.
> It's a must have for any Cocoon developer. Reading it has cleared many 
> aspects of the Cocoon framework in my mind.
> 
> Second, as you're the author of the very usefull cinclude 
> transformer, could 
> you explain how to get rid of the cinclude namespace when 
> applying another 
> XSL transformation just after the cinclude transformation.
> Using the xsl:exclude-result-prefixes as no effect.
> 
> Thanks a lot,
> 
> Daniel Fournier
> 
> -
> 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: == Database driven website with Cocoon ==

2002-09-30 Thread Reinhard Poetz

Jerome,

Here a suggestion without knowing Leigh Dodds' tutorial ...

I would write an action that puts the path as a variable into the sitemap.





...





Your action has to return a map with the key "your-path" and the value.

Regards,
Reinhard

-Original Message-
From: Jerome Iffrig [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 12:24 PM
To: [EMAIL PROTECTED]
Subject: == Database driven website with Cocoon ==
Sensitivity: Personal


Hi all,

I went trough Leigh Dodds’ “Database driven website” tutorial (very
interesting) and I have now a question on a slightly different architecture:

My content is NOT stored within a database – Only the PATHs to the content
is stored therein –
I cannot figure out (and this for a couple of weeks now) how to build a
transformers chain for them to to lookup for the PATH of the XML docs
(document content) and of the XSL (styles to be applied to the different
contents) within the database and then fetch both files on the filesystem
for then generate the final HTML document from this.

Any opinion welcome !

Thanks


-
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: Can't display images

2002-10-07 Thread Reinhard Poetz

Make sure that the image is available at that link:

./test.html
./pics/test.jpg

Maybe you have to insert something like this:





Try to access your image directly (entering the URL into the adress bar)

Regards,
Reinhard

> -Original Message-
> From: Ganael LAPLANCHE [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: Can't display images
> 
> 
> Hi !
> 
> I've got a very stupid problem...
> If I insert an image link in an XML page, it isn't displayed at all...
> 
> Here is my sitemap code...
> 
> 
>   
> 
> 
> 
>   
> 
> 
> The image is inserted in the test.xml file with this link :  src="pics/test.jpg"/>
> How can I display it ?
> 
> Gan.
> 
> 
> -
> 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 access sub-sitemaps of Cocoon's doc

2002-10-07 Thread Reinhard Poetz

Barbara,

Maybe a typo of you but you need a slash at the end to reach the samples:

http://localhost:9090/cocoon/samples/

Regards,
Reinhard

> -Original Message-
> From: Barbara Post [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 12:41 PM
> To: [EMAIL PROTECTED]
> Subject: Cannot access sub-sitemaps of Cocoon's doc
> 
> 
> I've noticed this problem before.
> 
> Tomcat runs on port 9090, I can only browse links I have from 
> Cocoon's main
> page, I mean that direct typing of :
> http://localhost:9090/cocoon/samples/resources or even
> http://localhost:9090/cocoon/samples
> 
> leads to : resource not found.
> 
> CVS from 10/03. What is wrong ?
> 
> Barbara
> 
> 
> -
> 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: [Q] Pipeline best practices

2002-10-13 Thread Reinhard Poetz

Hi Ivelin,

> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 4:25 PM
> To: [EMAIL PROTECTED]
> Subject: [Q] Pipeline best practices
>

> For example how many pipelines in a sitemap are reasonable?
> How do one chooses when to put multiple matchers in one pipeline vs
> splitting them in separate pipelines.

Some of the reasons are:

 - different error handling
 - different types of pipelines (caching, profiling)
 - internal-only use
 - the use of different expires attribute

Does anybody know some other reasons? As far as I know there is no
difference in performance.

Regards,
Reinhard


-
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: [SUMMARY] Pipeline match optimization (Re: [Q] Pipeline best practices)

2002-10-14 Thread Reinhard Poetz


The results of this thread from my point of view can be found at
http://outerthought.net/wiki/Wiki.jsp?page=DesignPipelines.

Are there any other points?

Regards,
Reinhard

> -Original Message-
> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 14, 2002 8:57 AM
> To: [EMAIL PROTECTED]
> Subject: [SUMMARY] Pipeline match optimization (Re: [Q] Pipeline best
> practices)
>
>
>
> [EMAIL PROTECTED] wrote:
> > Another issue of having too  many pipelines.
>  > As i understand in the sitemap is generated into a java class.
>  > And the various matchers within a pipeline(s) are really a bunch
>  > of if-else if statements.
>  >
>  > So the more matchers you have (to match to a pipeline or
>  > various paths within a pipeline) your going to have a large
>  > series of if/else statements.  And... since this uses string
>  > compares and wildcards and... if there's alot of these if
>  > else if statements it will lead to performance issues.
> >
> > It may help to break things up with sub site maps to help
>  > limit the searching.
> >
> > Or put the most likely pipelines to get hit first and the least
> likely last...
>
> Yes, and make search hierarchical.
> Since you can match inside a match, you can also do this.
>
> To get to match2-3 you need 8 matches
>
>match1-1  |  1
>match1-2  |  .
>match1-3  |  .
>match1-4  |  .
>match1-5  |  .
>match2-1  |  .
>match2-2  |  .
>match2-3  v  8
>
> But you can do:
>
>match1  |  1
>  match1-1  !  x
>  match1-2  !  x
>  match1-3  !  x
>  match1-4  !  x
>  match1-5  !  x
>match2  |  .
>  match2-1  |  .
>  match2-2  |  .
>  match2-3  v  5
>
> And have 5 matches
>
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
>  - verba volant, scripta manent -
> (discussions get forgotten, just code remains)
> -
>
>
> -
> 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: iText vrs. fop.

2002-10-19 Thread Reinhard Poetz
> -Original Message-
> From: Antonio Gallardo Rivera [mailto:agallardo@;agsoftware.dnsalias.com]
> Sent: Friday, October 18, 2002 3:24 PM
> To: [EMAIL PROTECTED]
> Subject: iText vrs. fop.
> 
> 
> Hi, can someone advise me what is better to build PDF files?

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

Regards,
Reinhard

> 
> iText or fop.
> 
> Thanks,
> 
> Antonio Gallardo
> 
> -
> 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: Cocoon and EJB

2002-10-26 Thread Reinhard Poetz
Peter,

Would you mind integrating it into the CocoonWiki
(http://www.outerthought.net)? If no and it's easier for you I can do it for
you.

Regards,
Reinhard

> -Original Message-
> From: Hunsberger, Peter [mailto:Peter.Hunsberger@;stjude.org]
> Sent: Friday, October 25, 2002 4:59 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Cocoon and EJB
>
>
> > > I have a doubt whether it is possible (and easy :) to
> > > fetch data from EJB (connected to a DB) and produce
> > > HTML pages from both XML/XSL documents and these data.
> >
> > Despite Michael Homeijer interesting answers, there were not
> > many responses, and it seems to me there are never a lot when
> > it comes to EJB and Cocoon. As I am also interested, is
> > really nobody out there who knows much more about it...?
> >
> > Are there any resources available focusing on EJB and Cocoon?
>
> Don't know about resources, but I also don't really see what the issue is?
> In our case we use JBoss with Tomcat and Cocoon.  We define the EJB
> resources through JBoss and don't worry about them in Cocoon.  We then
> package up the Cocoon WAR with our EJB JAR into a EAR and deploy it under
> JBoss.  With the proper JNDI definitions in JBoss all is done; your Cocoon
> classes see the EJBs and away you go.  It took me perhaps a week
> of fiddling
> to get this going, but the magic trick is to make sure you've got all the
> classes in the proper places for the particular combination of Tomcat,
> JBoss, JDK and Cocoon.
>
> Following is a summary of various messages I've found that I used
> to create
> some basic instructions for our developers on how to get the
> whole thing up
> and running.  Some of this is out of date, since new binaries are now
> available that did not exist when I wrote this and life is now a bit
> simpler.
>
> How to deploy Cocoon on JBoss and Tomcat
> 
>
> 1. Deploy tomcat/jboss. Versions 4.0/2.4.3 are apparently known
> to work. We
> use 4.0.4 and 2.4.4.
>Note that according to the Cocoon2 homepage certain beta versions of
> Tomcat dows not work with Cocoon2.
>
>To deploy Tomcat 4.0.4 use the integrated 2.4.4/4.0.1 Tomcat/Jboss then
> copy a Tomcat 4.0.4 install over the
>"catalina" directory structure in the Jboss/Tomcat install. If you do
> this, I'd rename the base directory to
>help keep things straight as to what is installed.
>
> 2. Add environment variable CATALINA_OPTS=-Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7070.
>This is to be able to debug java run in Tomcat. For Netbeans 3.2.1 for
> programming/debugging (remember to add port 7070 to debugging
> environment).
>
> 3. Delete in "[your path]/JBoss-2.4.3_Tomcat-4.0/jboss/lib" following:
>   -crimson.jar
>   -jaxp.jar
>   -xml.jar
>   (xml.jar is not present in latest versions of JBoss.)
>
>   If Tomcat 3.x is used the following files must be also be deleted: from
> [your path]/JBoss-xxx_Tomcat-3.x/tomcat/lib:
>-parser.jar
>-jaxp.jar
>
>
> 4. new run.bat file in [your path]/JBoss-2.4.3_Tomcat-4.0/jboss/bin to:
>@echo off
>@if not "%ECHO%" == "" echo %ECHO%
>@if "%OS%" == "Windows_NT" setlocal
>
>set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;run.jar
>
>REM Add all login modules for JAAS-based security
>REM and all libraries that are used by them here
>
>REM need one of the two following lines for xerces support
>set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/xerces.jar
>REM set JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xml-apis.jar
>
>REM Add the XML parser jars and set the JAXP factory names
>REM Crimson parser JAXP setup(default)
>REM set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/crimson.jar
>REM set
> JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson
> .jaxp.Docu
> men tBuilderFactoryImpl
>REM set JAXP=%JAXP%
> -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXPa
> rserFactor
> yIm pl
>
>echo JBOSS_CLASSPATH=%JBOSS_CLASSPATH%
>java %JAXP% -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %1
> %2 %3 %4 %5
> %6 %7 %8 %9
>
>pause
>
> 5. If you want to be able to debug JBoss/Tomcat/Cocoon2 replace the last
> line (before pause) with:
>
>   java -Xint -Xdebug -Xnoagent -classpath "%JBOSS_CLASSPATH%"
> -Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n
> org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
>
>If you use Netbeans 3.2.1 for programming/debugging remember
> to add port
> 12999 to debugging environment.
>
> 6. copy xerces.jar to [your
> path]/JBoss-2.4.3_Tomcat-4.0/jboss/lib. We used
> versions 1.4.3.
>Download xerces binary and use .jar file in the downloaded
> xerces_xxx.zip
>The Apache site suggests that you should copy xml-apis.jar from
> cocoon/lib/core/ to jboss/lib.
>However, I did not have to do this.  If you think you need xml-apis.jar
> you may also want to uncomment the
>line in run.bat that refers to it and comme

RE: Cocoon and EJB

2002-10-30 Thread Reinhard Poetz
> > Would you mind integrating it into the CocoonWiki
> > (http://www.outerthought.net)? If no and it's easier for you I can do it
> > for you.
> >
> > Reinhard,

> go ahead and add it if you wish; everything in the document is based on
> stuff from the Cocoon-user archives, with some modifications.  As I said,
> it's a bit out of date, anyone who is currently attempting this might be
> able to bring it up to date as they work through it.  Also, I strongly
> suspect that the section on working with Oracle isn't 100% accurate, but I
> haven't spent anytime trying to determine if this is true.

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

Reinhard


-
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: jar files in cocoon/WEB-INF/lib

2002-10-30 Thread Reinhard Poetz
It should be enough to copy the jars in the lib directory.

Regards,
Reinhard

-Original Message-
From: Oskar Casquero [mailto:jtacaoio@;bi.ehu.es]
Sent: Wednesday, October 30, 2002 8:35 PM
To: [EMAIL PROTECTED]
Subject: jar files in cocoon/WEB-INF/lib


Hello,

When a jar file is saved in cocoon/WEB-INF/lib directory, does cocoon
configure it automatically, or do I have to do something else (in
cocoon.xconf, ...)? I've done a generator that needs some classes stored in
a jar file, but it seems like if it is not using them.

Oskar


-
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: jar files in cocoon/WEB-INF/lib

2002-10-30 Thread Reinhard Poetz
> -Original Message-
> From: Litrik De Roy [mailto:cocoon-users@;litrik.com]
> Sent: Wednesday, October 30, 2002 9:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: jar files in cocoon/WEB-INF/lib
>
>
> And I think you need to restart Cocoon before it notices the new jar...

Yes, of course.

Regards,
Reinhard

>
> Litrik De Roy
> www.litrik.com
>
>
> - Original Message -
> From: "Reinhard Poetz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 8:45 PM
> Subject: RE: jar files in cocoon/WEB-INF/lib
>
>
> > It should be enough to copy the jars in the lib directory.
> >
> > Regards,
> > Reinhard
> >
> > -Original Message-
> > From: Oskar Casquero [mailto:jtacaoio@;bi.ehu.es]
> > Sent: Wednesday, October 30, 2002 8:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: jar files in cocoon/WEB-INF/lib
> >
> >
> > Hello,
> >
> > When a jar file is saved in cocoon/WEB-INF/lib directory, does cocoon
> > configure it automatically, or do I have to do something else (in
> > cocoon.xconf, ...)? I've done a generator that needs some classes stored
> in
> > a jar file, but it seems like if it is not using them.
> >
> > Oskar
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




RE: authentication frustration

2002-10-31 Thread Reinhard Poetz
> I too will be very hard at work on a SAP project from November 18th till
> February 2003.  I will be developing iViews for the SAP Enterprise
> Portal.  One of the things I'll be testing is integrating Cocoon in an
> iView.  Should be interesting, specially with the web3 component (i got
> running BTW).

Hi Bert,

Nice to hear!
We will come up with a new version (bugfixes, move to the Apache namespace
and into a cocoon block) soon.

We would be pleased to hear about your experiences with Web3 and SAP
Portals.

Regards,
Reinhard



-
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: XMLForms vs Struts

2002-10-31 Thread Reinhard Poetz
Ivelin,

As this is an often discussed question: Do you mind adding it to the
CocoonWiki? If no I could do it for you ...

Regards,
Reinhard

> -Original Message-
> From: Ivelin Ivanov [mailto:ivelin@;apache.org]
> Sent: Thursday, October 31, 2002 2:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XMLForms vs Struts
>
>
>
> I hope this will not make things even more confusing for you,
> but here is my view:
>
> Struts is 3 parts:
> 1) An URL map, matching URLs to Actions.
> Everything you can do with struts-config.xml (Struts), you can do with
> sitemap.xmap (Cocoon).
>
> 2) Custom JSP tags for rendering HTML, like i18n, access to JavaBean
> properties and others. Cocoon's set of transformers is a superset
> of Strut's
> visual tags.
>
> 3) Form handling.
> Automated binding between HTML input fields and JavaBeans.
> Cocoon's XMLForm does that and much more. It not only provides
> the binding,
> but it does it in a browser independent way. Struts is only designed to
> handle automatically HTML input.
>
>
> For fairness sake, I will tell you that over the last 2 years I have used
> Struts successfully in big enterprise projects. It is a good and sound
> technology when you are only interested to support the major HTML browsers
> and you are not concerned with other interfaces to your application like
> WML, VXML, Web Services, etc.
>
>
> My recommendation is, if you are in a hurry and you don't want to invest
> time in learning a new technology, go Struts.
>
> If you plan to build a lot of web applications in the future, you
> must learn
> Cocoon. It will add a very powerful weapon to your software tools arsenal.
> You don't have to use it all the time, but when things start to look
> dangerously complex, you will find it to be a life saver.
>
>
>
> Best,
>
> Ivelin
>
>
> - Original Message -
> From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 31, 2002 3:48 AM
> Subject: Re: XMLForms vs Struts
>
>
> Hy;
>
> First let me tell you: I like the idea of merging cocoon and struts,
> because i see both technologies to be helpfull also in conjunction...
>
> Omar Tazi wrote:
> > If you like the MVC aspect in Struts and like the flexibility provided
> > by XML/XSLT, and don't like the limitations that come with JSPs, check
> > out our Framework. It's called OXF (Open XML Framework). OXF is the
> > result of our combined passion for Cocoon and Struts/J2EE and our
> > involvement in huge enterprise projects. It will dramatically help you
> > in your tasks (listed below). Good luck!
> >
>
> But i am also a bit confused. I'm following the discussons in this
> mailing list for about a week now and this is already the second
> mentioning of a product/component (whatever) that claims to be an
> on top of cocoon development. But when i enter the pages mentioned
> above, it is very hard to find the backpointers to cocoon as the
> base component...
>
> Despite that all this stuff sounds very interesting, but i get more
> and more unshure how to proceed. Some questions rise in my mind:
>
> 1.) Why are all such nice and nifty add ons developed all outside
> of cocoon ?
> 2.) When i move to such an add on component, how can i enshure
> to keep up with the releases of cocoon (taking adavantage
> of the enhancements done there)?
> 3.) Why can't i find pointers to these add ons from the cocoon pages ?
>
> There is sooo many good software around the world and cocoon for me is one
> of the finest. Why does not all this effort take place at the heart but
> is cluttered around in several loosely coupled or even uncoupled
> add on projects ???
>
> And now my final question (to come back to the technical part):
> Why is it so complicated to use struts and cocoon in parallel?
> As far as i understand the concepts of cocoon, i can embed JSP's
> in it's workflow, and if a jsp itself uses struts, why not???
> Although i haven't tried yet, for me these things seem to be
> coexisting without problems ...
>
> Any enlightments on these points are happily welcome...
> best regards, Hussayn
>
> --
> Dr. Hussayn Dabbous
> SAXESS Software Design GmbH
> Neuenhöfer Allee 125
> 50935 Köln
> Telefon: +49-221-56011-0
> Fax: +49-221-56011-20
> E-Mail:  [EMAIL PROTECTED]
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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: XMLForm and pop-up menu

2002-11-04 Thread Reinhard Poetz
Sylvain,

As far as I know - no. What should be the content of the pop-up menu?

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz@;swisscom.com]
> Sent: Monday, November 04, 2002 2:19 PM
> To: [EMAIL PROTECTED]
> Subject: XMLForm and pop-up menu
> 
> 
> Hello,
> 
> I use XMLForm and I want to implement pop-up menu in a form.
> 
> Is there a solution?
> 
> Thank you
> Sylvain
> 
> -
> 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: XMLForm and pop-up menu

2002-11-04 Thread Reinhard Poetz
Do you mean a selection field:

Here an xml snippet from Ivelin's example:

  
OS

  Unix/Linux
  Unix


  Mac OS/X
  Mac OS/X


  Windows 95/98/NT/2000/XP
  Windows


  Other
  Other

  

Hope this helps.

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz@;swisscom.com]
> Sent: Monday, November 04, 2002 3:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: XMLForm and pop-up menu
>
>
> The content should be simply a list of word.
> The user should choose a word in the pop-up menu (and only these
> words) instead of enter a word.
>
> Sylvain
>
> -Message d'origine-
> De: Reinhard Poetz [mailto:reinhard_poetz@;gmx.net]
> Date: lundi, 4. novembre 2002 14:49
> À: [EMAIL PROTECTED]
> Objet: RE: XMLForm and pop-up menu
>
>
> Sylvain,
>
> As far as I know - no. What should be the content of the pop-up menu?
>
> Regards,
> Reinhard
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz@;swisscom.com]
> > Sent: Monday, November 04, 2002 2:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: XMLForm and pop-up menu
> >
> >
> > Hello,
> >
> > I use XMLForm and I want to implement pop-up menu in a form.
> >
> > Is there a solution?
> >
> > Thank you
> > Sylvain
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




RE: XMLForm and pop-up menu

2002-11-04 Thread Reinhard Poetz
I think you have to skip the attribute selectUIType="radio". Then a drop
down list should be created.

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz@;swisscom.com]
> Sent: Monday, November 04, 2002 4:20 PM
> To: [EMAIL PROTECTED]
> Subject: RE: XMLForm and pop-up menu
>
>
> yes, in the same way but instead of using a "radio" type where
> your choices are on the screen (and you put the "point" on your
> choice), I would like to use a pop-up list where the choices are
> hidden in a list (maybe the word "menu" is not very appropriate).
> This stuff is in all web forms.
>
> Sylvain
>
>
>
> -Message d'origine-
> De: Reinhard Poetz [mailto:reinhard_poetz@;gmx.net]
> Date: lundi, 4. novembre 2002 15:43
> À: [EMAIL PROTECTED]
> Objet: RE: XMLForm and pop-up menu
>
>
> Do you mean a selection field:
>
> Here an xml snippet from Ivelin's example:
>
>   
> OS
> 
>   Unix/Linux
>   Unix
> 
> 
>   Mac OS/X
>   Mac OS/X
> 
> 
>   Windows 95/98/NT/2000/XP
>   Windows
> 
> 
>   Other
>   Other
> 
>   
>
> Hope this helps.
>
> Regards,
> Reinhard
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz@;swisscom.com]
> > Sent: Monday, November 04, 2002 3:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: XMLForm and pop-up menu
> >
> >
> > The content should be simply a list of word.
> > The user should choose a word in the pop-up menu (and only these
> > words) instead of enter a word.
> >
> > Sylvain
> >
> > -Message d'origine-
> > De: Reinhard Poetz [mailto:reinhard_poetz@;gmx.net]
> > Date: lundi, 4. novembre 2002 14:49
> > À: [EMAIL PROTECTED]
> > Objet: RE: XMLForm and pop-up menu
> >
> >
> > Sylvain,
> >
> > As far as I know - no. What should be the content of the pop-up menu?
> >
> > Regards,
> > Reinhard
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz@;swisscom.com]
> > > Sent: Monday, November 04, 2002 2:19 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: XMLForm and pop-up menu
> > >
> > >
> > > Hello,
> > >
> > > I use XMLForm and I want to implement pop-up menu in a form.
> > >
> > > Is there a solution?
> > >
> > > Thank you
> > > Sylvain
> > >
> > > -
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




RE: XMLForms vs Struts

2002-11-05 Thread Reinhard Poetz
Ivelin,

I created a new main point in the left menu and called it "Cocoon compared".

Reinhard

> -Original Message-
> From: Ivelin Ivanov [mailto:ivelin@;apache.org]
> Sent: Saturday, November 02, 2002 5:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XMLForms vs Struts
>
>
> Please do.
> Wiki is great, but I am not sure in which section would this one
> article go.
> Please let me know where it went.
>
> Thank you,
>
> Ivelin
>
>
> - Original Message -
> From: "Reinhard Poetz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 31, 2002 8:02 AM
> Subject: RE: XMLForms vs Struts
>
>
> Ivelin,
>
> As this is an often discussed question: Do you mind adding it to the
> CocoonWiki? If no I could do it for you ...
>
> Regards,
> Reinhard
>
> > -Original Message-
> > From: Ivelin Ivanov [mailto:ivelin@;apache.org]
> > Sent: Thursday, October 31, 2002 2:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XMLForms vs Struts
> >
> >
> >
> > I hope this will not make things even more confusing for you,
> > but here is my view:
> >
> > Struts is 3 parts:
> > 1) An URL map, matching URLs to Actions.
> > Everything you can do with struts-config.xml (Struts), you can do with
> > sitemap.xmap (Cocoon).
> >
> > 2) Custom JSP tags for rendering HTML, like i18n, access to JavaBean
> > properties and others. Cocoon's set of transformers is a superset
> > of Strut's
> > visual tags.
> >
> > 3) Form handling.
> > Automated binding between HTML input fields and JavaBeans.
> > Cocoon's XMLForm does that and much more. It not only provides
> > the binding,
> > but it does it in a browser independent way. Struts is only designed to
> > handle automatically HTML input.
> >
> >
> > For fairness sake, I will tell you that over the last 2 years I
> have used
> > Struts successfully in big enterprise projects. It is a good and sound
> > technology when you are only interested to support the major
> HTML browsers
> > and you are not concerned with other interfaces to your application like
> > WML, VXML, Web Services, etc.
> >
> >
> > My recommendation is, if you are in a hurry and you don't want to invest
> > time in learning a new technology, go Struts.
> >
> > If you plan to build a lot of web applications in the future, you
> > must learn
> > Cocoon. It will add a very powerful weapon to your software
> tools arsenal.
>
> > You don't have to use it all the time, but when things start to look
> > dangerously complex, you will find it to be a life saver.
> >
> >
> >
> > Best,
> >
> > Ivelin
> >
> >
> > - Original Message -
> > From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, October 31, 2002 3:48 AM
> > Subject: Re: XMLForms vs Struts
> >
> >
> > Hy;
> >
> > First let me tell you: I like the idea of merging cocoon and struts,
> > because i see both technologies to be helpfull also in conjunction...
> >
> > Omar Tazi wrote:
> > > If you like the MVC aspect in Struts and like the flexibility provided
> > > by XML/XSLT, and don't like the limitations that come with JSPs, check
> > > out our Framework. It's called OXF (Open XML Framework). OXF is the
> > > result of our combined passion for Cocoon and Struts/J2EE and our
> > > involvement in huge enterprise projects. It will dramatically help you
> > > in your tasks (listed below). Good luck!
> > >
> >
> > But i am also a bit confused. I'm following the discussons in this
> > mailing list for about a week now and this is already the second
> > mentioning of a product/component (whatever) that claims to be an
> > on top of cocoon development. But when i enter the pages mentioned
> > above, it is very hard to find the backpointers to cocoon as the
> > base component...
> >
> > Despite that all this stuff sounds very interesting, but i get more
> > and more unshure how to proceed. Some questions rise in my mind:
> >
> > 1.) Why are all such nice and nifty add ons developed all outside
> > of cocoon ?
> > 2.) When i move to such an add on component, how can i enshure
> > to keep up with the releases of cocoon (taking adavantage
> > of the enhancements done there)?
> > 3.) Why can't i find pointers to these add ons from the cocoon

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

2002-11-14 Thread Reinhard Poetz
Piotr,

At http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html you should
find some answers to your questions.

Regards,
Reinhard

> -Original Message-
> From: Piotr Legiecki [mailto:piotrlg@;sci.pam.szczecin.pl]
> Sent: Thursday, November 14, 2002 1:53 PM
> To: [EMAIL PROTECTED]
> Subject: Difference between cocoon: and file:// in map:part
>
>
> Hi
> I'm new to cocoon and don't get the difference between map:part src
> arguments:
> 
> map:part src="cocoon:/somefile.xml"
> map:part src="cocoon:/anotherfile.xml"
> 
>
> means that cocoon should join two xml files (taken from some misterious
> place)
>
> But the same happens with this:
> 
> map:part src="somefile.xml"
> map:part src="anotherfile.xml"
> .
>
> which means take two files from filesystem which is clear to me.
>
> In my example:
> 
>   
>   
>  
>
>
>  
>  
>  
>   
>
> 
>
> It works ok, but using
> ...
> src="cocoon:content/menu.xml"
> ...
> instead doesn't (ie the rendered html page is empty). *Why*?
>
> BTW, where is map:aggregate component *fully* documented? In main user
> documentation there is only one example and not all of the attributes
> are explained (ie strip-root, ne etc).
>
> Regards
> Piotr Legiecki
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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: R: Difference between cocoon: and file:// in map:part

2002-11-14 Thread Reinhard Poetz
Piotr,

> -Original Message-
> From: Piotr Legiecki [mailto:piotrlg@;sci.pam.szczecin.pl]
> Sent: Thursday, November 14, 2002 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: R: Difference between cocoon: and file:// in map:part
>
>
> Luca Morandini wrote:
> > Piotr,
> >
> > the "cocoon:" pseudo-protocol doesn't search for files, but for
> pipelines.
> >
> > With this pseudo-protocol you can build pipelines and call them (more or
> > less as subroutines) from any aggregation.
> >
>
> I see. So when I want to separate navigation and content (having
> menu.xml and books.xml) and join them using aggregate, *but* use
> different xsl files for them I can write something like this:
>
>
>
>   
> 
> 
>   
>   
>   
>
>
>
>
>
>
>  
>  
>  
>
>
>
>
>
>  
>  
>  
>
>
>
> Right? Hm. I'm not sure about it. What happens when line
> 
> is executed?

XML which is produced by the pipelines (called by map:part) will be
integrated in your "main" pipeline.

> Cocoon jumps directly to pipeline which matches the
> pattern, makes something there (ie *map:read* (or should I use
> map:generate?)

You *must* use map:generate in this case. A reader is a generator and a
serializer in one and usally used for non-xml files like pictures. Therefore
it shouldn't be possible to call a pipeline with a reader from a aggregator
pipeline.

> source xml, *transform* using xsl, *serialize* (is this
> neccessery here?)) and returns to second map:part.

I think it's neccessary here because otherwise your pipeline is not valid.
As far as I know each pipeline needs one generator/aggregator and one
serializer. Between them you can place as many transformers as you need.

The serializer in this case will not be called - your pipelines called by
map:part retrun sax events and not serialized data.

>
> So the joined parts are not xml files anymore but html files?  So I
> can't use
>   
> on them anymore and I can't also use
>   

You have to possiblities:

1. Each of the map:part-pipelines returns the xml in the form you need it
for your client. But make sure to use the XML serializer and not the
html-serizalizer. (map:serialize type="xml"/>)

2.
 


 
 
 

In this case you read your books and your menu directly (without using
sub-pipelines) and you only have one stylesheets that transforms your xml in
html.

>
> Is it the right way to use aggregate or I have simply missused
> this feature?
>
> And when use separate  for matches and when to group this
> matches under one ? I know it looks like completely
> another question;-)

Have a look at http://outerthought.net/wiki/Wiki.jsp?page=DesignPipelines

Regards,
Reinhard

>
> Regards
> Piotr Legiecki
>
>
> -
> 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: R: Difference between cocoon: and file:// in map:part

2002-11-14 Thread Reinhard Poetz
Piotr,

> Here I don't need to transform one xml to another one. I need html as
> output.
>
> > 2.
> >  
> > 
> > 
> >  
> >  
> >  
> >
> > In this case you read your books and your menu directly (without using
> > sub-pipelines) and you only have one stylesheets that
> transforms your xml in
> > html.
>
> And this is what I don't want (ie one big xsl). I want one xsl for menu
> (and generally navigation) and one for content, so I will have a few
> small xsl files vs one big (easier to manage).
>
> So I think the second step is the way to go and manage xsl files using
> one 'main' (here menuandbook2html.xsl) xsl which includes the rest.

Yes, you can use includes within your stylesheet or you call in map:part
sub-pipelines which already return html (of course in xml).

I would prefer one stylesheet with includes.

Regards,
Reinhard

>
> Sounds reasonably?
>
> Thanx
> Piotr Legiecki



-
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: Coccoon 2.1 and XForms

2002-11-14 Thread Reinhard Poetz
> -Original Message-
> From: Balint Halasz
> Sent: Thursday, November 14, 2002 3:55 PM
> To: '[EMAIL PROTECTED]'
> Subject: Coccoon 2.1 and XForms
>
> Hi,
>
> I am new in the list and cocoon as well. In my project XForms may be used.
I have read that Cocoon 2.1
> supports XForms, however this version only exists as pre-release. I have
the following questions:
>
> Q1: When the final release of the Cocoon 2.1 will be available?

There are plans for an alpha version in the near future but no date. At the
moment you have to use a nightly build or to checkout the CVS.

I'm developing using cocoon2.1dev without having problems - but of course it
depends on the components you use. XMLForms run pretty stable. (I haven't
had any problems yet ...).

> Q2: Does anyone have experience processing XForms withing Cocoon?

There is good documentation about XMLForms.

Regards,
Reinhard

>
> Thanx,
>
> Balint




-
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: developing/installing custom actions without restarting app server?

2002-11-14 Thread Reinhard Poetz
> I'm wondering, is being cached somewhere? Is there a way to install the
> action and make it work without restarting the server?

No, as far as I know there is no way

Regards,
Reinhard
 

-
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: R: Strings to SAX events

2002-11-14 Thread Reinhard Poetz


> -Original Message-
> From: Damian Chojna [mailto:d.chojna@;adv.pl]
> Sent: Thursday, November 14, 2002 6:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: R: Strings to SAX events
>
>
> Hi Reinhard,
>
> thanks for the last post. I also need to add a string as XML elements
> into an XSP generator and I used your suggestion (below). It seems
> to work well, but I have two questions:
>
> 1) I've noticed that the API states that the Parser is deprecated. I'm
> currently using 2.0.3, if I choose to use this method will it effect me
> being able to move to a newer version of cocoon at some time in
> the future?

Yep, you are right. I developed the component long time ago ... Please try
org.apache.avalon.excalibur.xml.JaxpParser.

>
> 2) When I generate my XML elements it seems that the parser is including
> the  header. Is there a way to get
> the parser not to include it, as it is causing me problems?

Currently there is a problem with the encoding (always UTF-8 encoding is
used) when you use Xalan. As far as I know those problem don't arise if you
use Saxon.

I don't know how you can remove the processing instruction.

Regards,
Reinhard

>
> Thanks in advance!
> Damian.
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
> > Luca,
> >
> > In a generator I use flowing code within the generate()-Method.
> Maybe this
> > helps:
> >
> > parser = (Parser)this.manager.lookup(Parser.ROLE);
> > parser.setConsumer(super.xmlConsumer);
> > parser.parse(new InputSource(new StringReader(sb.toString(;
> >
> > Regards,
> > Reinhard
>
>
>
>
> -
> 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: Coccoon 2.1 and XForms

2002-11-15 Thread Reinhard Poetz
>
> -Original Message-
> From: Balint Halasz [mailto:balint.halasz@;FATHOMTECHNOLOGY.com]
> Sent: Friday, November 15, 2002 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Coccoon 2.1 and XForms
>
>
> Thank u Michael. However I am not as lamer as I might look like.
> However I couldn’t found Cocoon 2.1 release and I wouldn’t like to use
nightly build as XForm processing will be critical > > part of my project
and nobody could expect that the client will be downloading cocoon every
night. Also I would not like to > brother fixing bugs in the Cocoon
framework.

It think it depends when you want to release your application. Within the
next months the cocoon2.1dev-final will (hopefully) be released. And as
mentioned in many mails, the xmlforms part is pretty stable.

Regards,
Reinhard

> Anyway thank u for ur help and really quick response. It was really
helpful ( I mean it)
>
> Balint







-
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: Sitemap help?

2002-11-15 Thread Reinhard Poetz
> -Original Message-
> From: Jeremy Quinn [mailto:jeremy@;media.demon.co.uk]
> Sent: Friday, November 15, 2002 6:39 PM
> To: [EMAIL PROTECTED]
> Subject: Sitemap help?
>
>
> I was trying to make a pipeline like the one below work, but could not.
> It never gets selected.
>
> I thought this kind of thing was allowed, in 2.1?
>
>
> 
>
>
>   
>   
>   
>
>
>   
>   
>   
>
> 


Are you sure you have a matcher of the type "request"? In cocoon2.1-dev the
name of the "org.apache.cocoon.matching.RequestParameterMatcher" is
"request-parameter".

Hope that helps

Regards,
Reinhard

>
>
> What am I doing wrong?
>
> thanks for any help
>
> regards Jeremy


-
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: pipeline result through SOAP?

2002-11-19 Thread Reinhard Poetz
In the scratchpad there are some examples with Axis. I have never looked
into them but maybe the can help you.

Regards,
Reinhard

> -Original Message-
> From: Josema Alonso [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 2:06 AM
> To: Cocoon-Users
> Subject: pipeline result through SOAP?
>
>
> Hi, all.
>
> I have a pippeline which produces XML. This is the result of a query. I
> would like to offer this result as a SOAP Service taking a parameter. Are
> there any how-tos or something I could read before starting? Maybe someone
> implemented something similar already...
>
> Thanks.
>
>
>
> -
> 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: Sitemap redirect with target _top ?

2002-11-19 Thread Reinhard Poetz
Hans,

I think there is no way because this can't be set in Cocoon (or any other
web middleware). I would include a javascript in the target page which will
make it to the top page.

Regards,
Reinhard

> -Original Message-
> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 12:18 PM
> To: Coocon-user Liste
> Subject: Sitemap redirect with target _top ?
>
>
> Hallo!
>
> I am sitting in a frameset (not my idea ;-). In a sitemap which handles
> one frame I need to redirect to a url for the whole frameset (target =
> "_top"). Unfortunately I cannot find a target attribute in the
> map:redirect element. Is there any way to do this?
>
> Many thanks,
>
> Hans
> 
> Dr. Hans M. Rupp
> danet Internet Solutions GmbH
> Waldburgstr. 17-19
> 70563 Stuttgart
> Germany
>
> Fon +49 711 133 53 50
> Fax +49 711 133 53 53
>
> --
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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: JDOM

2002-12-03 Thread Reinhard Poetz
Sylvain,

According to the lib/core and lib/optional directories JDOM is currently not
used. But if you need it (e.g. in a custom transformer) it's very easy to
use it.

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: JDOM
>
>
> Hello,
>
> Does Cocoon use JDOM?
>
> Tank you
> Sylvain
>
> -
> 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: JDOM

2002-12-03 Thread Reinhard Poetz
No, it was only a thought.

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: RE: JDOM
>
>
> OK, thank you Reinhard.
>
> I don't plan to use JDOM in a custom transformer but your remark
> is very interesting. What do you think about? Have you an example of use?
>
> Regards
> Sylvain
>
> -Message d'origine-
> De: Reinhard Poetz [mailto:[EMAIL PROTECTED]]
> Date: mardi, 3. décembre 2002 15:38
> À: [EMAIL PROTECTED]
> Objet: RE: JDOM
>
>
> Sylvain,
>
> According to the lib/core and lib/optional directories JDOM is
> currently not
> used. But if you need it (e.g. in a custom transformer) it's very easy to
> use it.
>
> Regards,
> Reinhard
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 03, 2002 3:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: JDOM
> >
> >
> > Hello,
> >
> > Does Cocoon use JDOM?
> >
> > Tank you
> > Sylvain
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




RE: JDOM

2002-12-03 Thread Reinhard Poetz
> -Original Message-
> From: Reinhard Poetz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 4:23 PM
> To: [EMAIL PROTECTED]
> Subject: RE: JDOM
> 
> 
> No, it was only a thought.

I meant you can "collect" the incoming data and store it in a JDom.

> 
> Regards,
> Reinhard
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 03, 2002 4:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: JDOM
> >
> >
> > OK, thank you Reinhard.
> >
> > I don't plan to use JDOM in a custom transformer but your remark
> > is very interesting. What do you think about? Have you an 
> example of use?
> >
> > Regards
> > Sylvain


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

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




RE: Display problem

2002-12-03 Thread Reinhard Poetz
Peter,

I don't understand your task completly but maybe this helps: If you have a
certain number of xml files in a directory you can use the directory
generator to produce a list of all files in it and if you like of it's
subdirectories.

Regards,
Reinhard

> -Original Message-
> From: Peter Bradburn [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 5:31 PM
> To: [EMAIL PROTECTED]
> Subject: Display problem
>
>
> Hi,
>   I am creating a simple system with the use of Cocoon which
> outputs several versions of the same file in different formats.
>
> I want to dynamically display a list of files in a web browser
> which Cocoon could produce given the input xml files available in
> a directory, and the potential transfomations which could be made
> according to the sitemap.
>
> Is the Cocoon portal a suitable solution for a task like this or
> should I be looking somewhere else. Does anyone know of any
> existing examples, that could point me in the right direction.
>
> I want to use Cocoon if at all possible to solve this problem.
>
> Thanks
> Peter Bradburn
>
> -
> 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: Viewing XML files through Cocoon

2002-12-03 Thread Reinhard Poetz
David,

Did you set up the necessary pipelines in the sitemap.xmap? Do you get the
cocoon examples or the cocoon docs?

Regards,
Reinhard

-Original Message-
From: David Cahill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 5:39 PM
To: Cocoon
Subject: Viewing XML files through Cocoon


Hi,
I'm attempting to view an xml/xsl page in a browser through Cocoon.  I have
Tomcat up and running and my browser pointing to the following URL:
http://localhost:8080/cocoon/mystuff/person.xml
However I encounter the following error: "Cocoon 2 - Resource not found"
I created the person subdirectory within cocoon to store all my xml/xsl
files.  Am I directing the browser to this file in the proper manner? Even
when I place my files within the welcome(default) subdirectory in cocoon and
enter:
http://localhost:8080/cocoon/person.xml
I still encounter the same error: "Cocoon 2 - Resource not found"
Does anyone know where I'm going wrong??
Many thanks,
David




With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs


-
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: RE: Changing Xalan XSL (WAS Re: SVG - java socket exception)

2002-12-03 Thread Reinhard Poetz
> -Original Message-
> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 7:20 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: RE: Changing Xalan XSL (WAS Re: SVG - java socket
> exception)
>
>
> Thanks for that - I did search the archives and found some
> messages with the same error message as I had but none that I saw
> had a follow-up. I really did search but until you understand the
> nature of the problem
> better, it is difficult to know what terms to search on.  I do
> apologise for wasting any of your time and thanks again.

The user-list is for questions like yours the best place. For me the only
rule is looking at http://xml.apache.org/cocoon/faq/index.html before
posting.


> I'll try Saxon. I'm not immediately certain how to install it
> with Cocoon but I'll find out !

It's quite easy - one of the links at
http://outerthought.net/wiki/Wiki.jsp?page=Saxon (I think it's the fourth
...) points out all necessary steps.

> The journey is part of the fun.

Yes, Cocoon makes a lot of fun !!! :-)

Regards,
Reinhard

>
> Chris
>
> >Chris,
> >
> >The problem you have is a well-known problem of Cocoon or more
> precicly of
> >Xalan. There are many mails in the archives about this topic (e.g.:
> >http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2).
> >
> >If you want to use Saxon have a look at
> >http://outerthought.net/wiki/Wiki.jsp?page=Saxon - it should help (and is
> >faster than Xalan).
> >
> >Regards,
> >Reinhard
> >
> >> -Original Message-
> >> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, December 03, 2002 6:26 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Changing Xalan XSL (WAS Re: SVG - java socket exception)
> >>
> >>
> >> HI
> >>
> >> More on this - a couple of others seem to have similar problems
> >> but nobody ever got a reply when they post the error  makes
> >> me think it  is a bug. Anyhow, if I change this parameter to
> >> false (it is true by default) in
> >> cocoon.xconf
> >>
> >> 
> >>
> >> I don't get the errors but the JSP is still being called 2 or 3
> >> times so it is much slower and I'd rather leave the
> >> incremental-processing  parameter at true. How can I change from
> >> xalan to another XSL engine ? There
> >> is
> >> a mention of this on the performance tips page but no
> >> instructions about how to do it.
> >>
> >> Chris
> >>
> >> >Hello
> >> >
> >> >I am getting on OK with Cocoon. I like it very much. I am using
> >> some JSP code as a generator. This creates some XML data which I
> >> apply xsl to transform to SVG. This is then serialised with
> >> >svgxml and returned to the client. It all works fine. Except
> >> that, looking at my logs, very often, the first execution of the
> >> JSP returns this to stdout/stderr.
> >> >
> >> >java.lang.RuntimeException: java.net.SocketException: Connection
> >> aborted by peer
> >> >: socket write error
> >> >at
> >> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
> >> >:3231)
> >> >at java.lang.Thread.run(Thread.java:479)
> >> >
> >> >I can see in the logs that Cocoon automatically seems to fire
> >> the same JSP again. It then works on the next shot, I get my SVG
> >> displayed in my SVG viewing app and it is just fine. This is
> >> >obviously slowing things up though.
> >> >
> >> >Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK
> 1.3.1_06 on W2K.
> >> >
> >> >Thanks
> >> >
> >> >Chris
> >> >
> >> >
> >> >
> >> >
> >> >-
> >> >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]>
> >
> >
>
>
>
>
> -
> 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: Changing Xalan XSL (WAS Re: SVG - java socket exception)

2002-12-03 Thread Reinhard Poetz
Chris,

The problem you have is a well-known problem of Cocoon or more precicly of
Xalan. There are many mails in the archives about this topic (e.g.:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2).

If you want to use Saxon have a look at
http://outerthought.net/wiki/Wiki.jsp?page=Saxon - it should help (and is
faster than Xalan).

Regards,
Reinhard

> -Original Message-
> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 6:26 PM
> To: [EMAIL PROTECTED]
> Subject: Changing Xalan XSL (WAS Re: SVG - java socket exception)
>
>
> HI
>
> More on this - a couple of others seem to have similar problems
> but nobody ever got a reply when they post the error  makes
> me think it  is a bug. Anyhow, if I change this parameter to
> false (it is true by default) in
> cocoon.xconf
>
> 
>
> I don't get the errors but the JSP is still being called 2 or 3
> times so it is much slower and I'd rather leave the
> incremental-processing  parameter at true. How can I change from
> xalan to another XSL engine ? There
> is
> a mention of this on the performance tips page but no
> instructions about how to do it.
>
> Chris
>
> >Hello
> >
> >I am getting on OK with Cocoon. I like it very much. I am using
> some JSP code as a generator. This creates some XML data which I
> apply xsl to transform to SVG. This is then serialised with
> >svgxml and returned to the client. It all works fine. Except
> that, looking at my logs, very often, the first execution of the
> JSP returns this to stdout/stderr.
> >
> >java.lang.RuntimeException: java.net.SocketException: Connection
> aborted by peer
> >: socket write error
> >at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
> >:3231)
> >at java.lang.Thread.run(Thread.java:479)
> >
> >I can see in the logs that Cocoon automatically seems to fire
> the same JSP again. It then works on the next shot, I get my SVG
> displayed in my SVG viewing app and it is just fine. This is
> >obviously slowing things up though.
> >
> >Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK 1.3.1_06 on W2K.
> >
> >Thanks
> >
> >Chris
> >
> >
> >
> >
> >-
> >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: Environment variable

2002-12-04 Thread Reinhard Poetz
Olivier,

As far as I know this won't work.


I suggest looking at input modules - there is an example in the samples
directory available. They enhance the sitemap by the possiblity of
integrating any variables before it is executed. And one of these variables
could be a constant string.

You should find them in the upcoming 2.0.4 release or in the current
development branch 2.1.

Regards,
Reinhard

> -Original Message-
> From: Olivier GUCKERT [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 04, 2002 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: Environment variable
>
>
> Hello all !
>
> The home of my webapp will soon move, and i want to declare it with an
> environment variable.
>
> So i define an environment variable and replace the path to the
> directory of my website sitemap.xmap with this variable :
>
> so : before :
> 
>   
> src="file:/users/sys/guckert/dossiers/cocoon/referentiels/sitemap.xmap"
>   reload-method="synchron"
>   check-reload="yes"/>
> 
>
> and after :
> 
>  src="file:$REFERENTIEL_HOME/sitemap.xmap"
>   reload-method="synchron"
>   check-reload="yes"/>
> 
>
> But, when i try to reload the index.html with Cocoon, i get the folowing
> :
>  Failed to load sitemap from file:$REFERENTIEL_HOME/sitemap.xmap
>
> Is it not possible to do this with cocoon or what did i wrong ?
>
> Thanks
>
> -
> 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: Problems resolving internal paths

2003-01-01 Thread Reinhard Poetz
Hi Alexander,

Try to use relative paths in your src attributes (your base directory is
always the current sitemap) - this should solve your resource not found
problems.

Regards,
Reinhard

> -Original Message-
> From: Alexander Czernay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 01, 2003 7:21 PM
> To: [EMAIL PROTECTED]
> Subject: Problems resolving internal paths
>
>
> I have a file structure serving two sites with the same XML data, but
> with different XSLTs for layout:
>
> /cocoon/<-- Tomcat's application path
> /cocoon/k8<--- the main site
> /cocoon/k8/xml<--- XML files
> /cocoon/k8/alexander<--- first site's XSLTs and CSSs etc...
> /cocoon/k8/moritz<--- second site's XSLTs and CSSs etc...
>
> Now I just modified the sample sitemap to mount the new sitemap in
> /cocoon/k8:
>
> 
>
>  
>
> 
>
> Inside the k8/sitemap.xmap I mount the two other sitemaps for the two
> sites (why do I have to use k8/moritz/sitemap.xmap instead of just
> moritz/sitemap.xmap here?):
>
> 
> uri-prefix="moritz"/>
> 
>
> 
> uri-prefix="alexander"/>
> 
>
> And finally I construct my HTML pages this way:
>
> 
>   
>   <-- menu.xml is in /cocoon/k8/alexander
> <-- .xml is in /cocoon/k8/xml
>   
><-- project.xsl is in
> /cocoon/k8/alexander
>
>
>
>   
>   
> 
>
> I always get a resource not found (so I think my paths are wrong). I
> also have to always refresh the sitemap in /cocoon/k8 to get Cocoon to
> reload the sitemaps in /cocoon/k8/alexander (at least it seems to me).
>
> What am I doing wrong? How do I get some root-relative paths? I tried
> cocoon:// and context:// and also /...
>
>
>
>
> -
> 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: file generator error

2003-01-09 Thread Reinhard Poetz
> 
>   src="http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings"/>
>   
>   
> 

> Anybody has an idea?




Regards,
Reinhard


-
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: XMLForm & Control of flow

2002-06-14 Thread Reinhard Poetz

There is am Mail from Konstantin -->
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102380667528528&w=2

Regards,
Reinhard

> -Original Message-
> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 14, 2002 10:15 AM
> To: Cocoon-Users (E-mail)
> Subject: XMLForm & Control of flow
>
>
> People,
>
> I was experimenting with XMLForm and the Howto example. It works,
> but I have
> some question. I am hoping someone can answer them.
>
> 1. Why is the flow controled with HowtoWizardAction? And not with
> help of a
> xml like struts-config?
> 2. When I repeated the steps and unchecked the boxes. Then when I
> arrive at
> confirm input everthing is still true. Do I have to invalidate the session
> or something? Shouldn't that happen the moment you push finish?
>
> Thanks,
>
> Edgar
>
> -
> 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]>




How to remove namespace declarations and prefixes?

2002-07-01 Thread Reinhard Poetz

I have to use a lot of namespaces and I want to remove them at the last
transformation step. I found several solutions but none of them works for
me:

exclude-result-prefixes (in the stylesheet)
[http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100101165325379&w=2]

 (in the sitemap)
[http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100084611731795&w=2]

exclude-prefixes (in the stylesheet)
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101912408904652&w=2


I use Cocoon2.1dev from last week, JDK_1.3.03 and Tomcat_4.01.


Regards,
Reinhard



-
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 remove namespace declarations and prefixes?

2002-07-01 Thread Reinhard Poetz

Thank you for this solution.

- Do you know if this influences the performance?
- Is there a special reason why "exclude-result-prefixes" 
  doesn't work or is it a bug?

Regards,
Reinhard

> -Original Message-
> From: Manos Batsis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 12:45 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: How to remove namespace declarations and prefixes?
> 
> 
> Piece of cake. A stylesheet which does exactly that would is
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>   
> 
>   
>   
> 
> 
>   
>   
> 
>   
> 
> 
>   
>   
> 
> 
> However, adding another step in your pipeline may not be the best
> solution. You might want to modify your existing last stylesheet to
> remove prefixes using the local-name() function as above.
> 
> Hope this helps,
> 
> Manos

-
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 remove namespace declarations and prefixes?

2002-07-01 Thread Reinhard Poetz

> -Original Message-
> From: Manos Batsis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 1:21 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: How to remove namespace declarations and prefixes?


> > - Do you know if this influences the performance?
>
> Reinhard, *anything* influences performance. The professor at the course
> I follow, presented this issue very simply as "In software design, you
> always give some to take some".


That's absoluty clear - may I have to pose the question more correctly:
Is there a difference in performance - your solution compared to a working
"exclude-result-prefixes"-attribute?


> > - Is there a special reason why "exclude-result-prefixes"
> >   doesn't work or is it a bug?
>
> Are you using it correctly?
> For example, if you know your XSLT will *only* process either XSD or
> XHTML documents, you can do the same with
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>xmlns:xs="http://www.w3.org/2001/XMLSchema";
>xmlns:xht="http://www.w3.org/1999/xhtml";
>exclude-result-prefixes="xs xht">
>   
> 
>   
> 
>   
> 
> 
>
> Note that you have to declare ALL the namespaces you wish to filter out
> by associate them with a namespace prefix(duh); then put a space
> separated list of ALL prefixes as the value of the
> exclude-result-prefixes attribute.
> The only case this doesn't work is when you don't know the namespaces
> you may encounter.

Did you try it with Cocoon? If yes, which version do you use?

My stylesheet:

http://www.w3.org/1999/XSL/Transform";
   xmlns:f="http://www.poetz.cc/forms";
   xmlns:l="http://www.poetz.cc/linking";
   xmlns:cinclude="http://apache.org/cocoon/include/1.0";
   xmlns:dc="http://purl.org/dc/elements/1.1/";
   xmlns:rss="http://purl.org/rss/1.0/";
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
exclude-result-prefixes="f">

...

Regards,
Reinhard


-
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 remove namespace declarations and prefixes?

2002-07-01 Thread Reinhard Poetz

> From: Manos Batsis [mailto:[EMAIL PROTECTED]]

> > From: Reinhard Poetz [mailto:[EMAIL PROTECTED]] 

> > Is there a difference in performance - your solution compared 
> > to a working
> > "exclude-result-prefixes"-attribute?
> 
> Depends on whether you want to add a new stylesheet or modify the
> existing one (if any). While on the second choice (using xsl:element
> with local-name() in all templates that handle elements and attributes)
> performance should not change notisably; essentially this and
> exclude-result-prefixes do the same thing.
> 
> 
> > Did you try it with Cocoon? If yes, which version do you use?
> 
> Nope I haven't.

It seems to me that this is a bug in cocoon.

> 
> > 
> > My stylesheet:
> > 
> >  > version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> >xmlns:f="http://www.poetz.cc/forms";
> >xmlns:l="http://www.poetz.cc/linking";
> >xmlns:cinclude="http://apache.org/cocoon/include/1.0";
> >xmlns:dc="http://purl.org/dc/elements/1.1/";
> >xmlns:rss="http://purl.org/rss/1.0/";
> >xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
> > exclude-result-prefixes="f">
> 
> Yes, the above will only remove namespace prefixes bound to
> http://www.poetz.cc/forms
> To filter all prefixes out modify the exclude-result-prefixes attribute
> to 

ATM it doesn't remove the namespace. I'll report the bug to bugzilla.

Thanks for your help.

Reinhard


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

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




[Summary] How to remove namespace declarations and prefixes?

2002-07-01 Thread Reinhard Poetz

Thank you Harry and Manos!

I want to provide a summary of this thread - maybe this could be included
into some docs.

Problem:


 ... I use namespaces and I want to remove them in my result xml ...

(original mail:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102551958020786&w=2)


Solutions, which NOT work:
**
exclude-result-prefixes (in the stylesheet)
[http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100101165325379&w=2]

 (in the sitemap)
[http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100084611731795&w=2]

exclude-prefixes (in the stylesheet)
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101912408904652&w=2



Solutions, which WORK:
**

1.)
Harry Lai:
--
Kay's XSLT Programmer's Reference:
"The xsl:exclude-result-prefixes and exclude-result-prefixes attributes
apply only to namespace nodes copied from the stylesheet using literal
result elements.  They do not affect namespace nodes copied from
the source document using  or : there is no way
of suppressing these."

Unfortunately, since xslt's will often have a catch-all template
matcher to copy elements it doesn't transform, this comes up quite a bit.

So... what I ended up doing was extending the HTMLSerializer (or whatever
serializer you're using for your pipelines), and overriding the
startPrefixMapping and endPrefixMapping methods to do nothing, effectively
removing all namespaces from my HTML.  This also had the added benefit of
having no performance penalties (and theoretically, a
ever-so-slight speedup since we no longer process namespaces in our
serializer).

You could make this more general, and use the serializer's
configuration to declare which namespaces you want to exclude, but excluding
all
worked well for us, especially since we were outputting HTML.

(complete mail:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102553525402606&w=2)

2.)
Manos Batsis:
-

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

  
  


  
  

  


  
  


(complete mail:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102552029221254&w=2)

Regards,
Reinhard


-
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: sitemap.xmap could not be found. (possible context problem)

2002-07-01 Thread Reinhard Poetz

Make sure that you don't have two excalibur-jars in your lib-directory.

Regards,
Reinhard

> -Original Message-
> From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 5:54 PM
> To: Cocoon-Users (E-Mail)
> Subject: sitemap.xmap could not be found. (possible context problem)
> 
> 
> Hi list,
> 
> I updated my Cocoon Installation to a fresh cvs checkout (1.7.2002) and
> now I get the following error:
> 
> sitemap.xmap could not be found. (possible context problem)
> 
> I deleted all temporary container files, I used cocoon.xconf and the
> sitemap.xmap from the cvs version, I just put my pipelines in the
> sitemap. I run this with Websphere 3.5.5.
> 
> What's wrong?
> 
> Cheers, Michael
> 
> Full stack:
> 
> org.apache.excalibur.source.SourceNotFoundException: sitemap.xmap could
> not be found. (possible context problem)
>   at
> org.apache.avalon.framework.CascadingException.(CascadingException
> .java:43)
>   at
> org.apache.excalibur.source.SourceException.(SourceException.java:
> 44)
>   at
> org.apache.excalibur.source.SourceNotFoundException.(SourceNotFoun
> dException.java:28)
>   at
> org.apache.cocoon.components.source.impl.ContextSourceFactory.getSource(
> ContextSourceFactory.java:147)
>   at
> org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceRes
> olverImpl.java:270)
>   at
> org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonCom
> ponentManager.java:403)
>   at
> org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnv
> ironment.java:431)
>   at
> org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnv
> ironment.java:421)
>   at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(T
> reeProcessor.java:399)
>   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.Cocoon.process(Cocoon.java:585)
>   at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
> ager.java:626)
>   at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
> cycleServlet.java:160)
>   at
> com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
> rvlet.java:287)
>   at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
> ycleServlet.java:105)
>   at
> com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
> a:360)
>   at
> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
> tManager.java:775)
>   at
> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
> anager.java:701)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
> ch(WebAppRequestDispatcher.java:478)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
> uestDispatcher.java:234)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
> estDispatcher.java:138)
>   at
> com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvo
> ker.java:77)
>   at
> com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cach
> edInvocation.java:67)
>   at
> com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Servlet
> RequestProcessor.java:155)
>   at
> com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEList
> ener.java:300)
>   at
> com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.ru
> n(SQEventListenerImp.java:230)
>   at
> com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEv
> entListenerImp.java:104)
>   at
> com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent
> (SQEventSource.java:212)
>   at
> com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$Sele
> ctRunnable.notifyService(SQWrapperEventSource.java:353)
>   at
> com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$Sele
> ctRunnable.run(SQWrapperEventSource.java:220)
>   at
> com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable
> .run(OutOfProcThread.java:248)
>   at java.lang.Thread.run(Thread.java:481)
> 
> 
> 
> -
> 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 

RE: How to Obtain HttpRequest interface in 2.0.2 ?

2002-07-02 Thread Reinhard Poetz

Hi Jason,

> public void setup(SourceResolver resolver, Map objectModel, String src,
> Parameters par)
>   throws SAXException, ProcessingException, IOException
> {
> Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
>
> // This line here gets a ClassCastException.
> HttpRequest hreq = (HttpRequest)request;

 --> skip the last line

>
> Session session = hreq.getSession();

  Session session = request.getSession();

>
> Context context = (Context)objectModel.get(Constants.CONTEXT_OBJECT);
>
> handler.setInputs(session, request, context);
> }

Hope that helps

Regards,
Reinhard


-
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: dynamic pipelines?

2002-07-02 Thread Reinhard Poetz

> From: Othman Haddad [mailto:[EMAIL PROTECTED]]
>
> i choose an XML file from a location and an XSLT to apply
> on it from another location, directly with some clicks on
> the >>browser!

Enter in an inputfield of your form the name of the stylesheet and use the
request-matcher to get value of the parameter in order to use it in the
pipeline.

hope that helps,

Regards,
Reinhard


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




[Summary] Profiling with Cocoon 2.1

2002-07-10 Thread Reinhard Poetz

Hi Michael,

I use Cocoon2.1dev (I checked it out last week). As it works successfully
for me I wrote a summary using my notes I was taking during activating
profiling - please try it. If you have problems please respond to
[EMAIL PROTECTED] too)

   - o -

Summary: Profiling with Cocoon 2.1
--

- make sure you use a current Cocoon 2.1 (CVS or nightly build)

- uncommented  (cocoon.xconf)

- add the necessary pipeline *components* (sitemap.xmap)
  




  

  (the last two pipline-elements activate profiling)

- set the right type at the pipline you want to watch (sitemap.xmap)
  e.g. 

- add the profiler generator (sitemap.xmap)
  

- sitemap.xmap (add a pipeline using the ProfilerGenerator)
  


  

- call
http://://profiler


Regards,
Reinhard





> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 6:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Profiling
>
>
> > From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> >
> > Hi Vadim,
> >
> > It's 2.1, I configured cocoon.xconf (ucommented ) and
> > activated the Profiling pipelines in sitemap.xmap.
> >
> > Then I constructed a generator that should show me the results, but
> all
> > I get is:
> >
> >   
> >   http://apache.org/cocoon/profiler/1.0";
> > date="04.07.2002 15:24:51" />
> >
> > I think there's something wrong with my generator/pipeline for
> > profiling, can you give me an example?
>
> No, I can't. I don't work with 2.1 ATM.
>
> Vadim
>
> >
> >
> > Thanks, Michael
> >
> > -Ursprüngliche Nachricht-
> > Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 3. Juli 2002 18:08
> > An: [EMAIL PROTECTED]
> > Betreff: RE: Profiling
> >
> >
> > > From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> > >
> > > Hi list,
> > >
> > > what do I have to do to turn on profiling in the actual cvs version?
> > How
> >
> > 2.1 or 2.0.3? 2.1 has one component less configured in the
> cocoon.xconf.
> >
> >
> > > ist profiling implemented in general?
> >
> > Read cocoon.xconf first, it outlines components used. Then modify
> > sitemap.xmap to include pipeline which will render results of
> profiling.
> >
> >
> > Regards,
> > Vadim
> >
> >
> > > Cheers, Michael
> > >
> >
> >
> > -
> > 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]>
>


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