RE: Complicated setup

2002-12-03 Thread Ryan Agler
No need to redirect, your problems can be solved with the AliasMatch
directive in httpd.conf:

AliasMatch ^(.*)/([^/]+\.gif)$ /path/to/images/$2
AliasMatch ^(.*)/([^/]+\.css)$ /path/to/css/$2

The above will match any .gif or .ccs, both legacy and cocoon, and serve
them from the same location.

HTH
+Ryan

-Original Message-
From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: Complicated setup

Hi All

Can anyone advise me on getting this complicated setup right?

We have a website that will have some stuff served by Cocoon and some 
served by Apache.

It is not easy to separate them out because we need to retain legacy 
URLs. Likewise, it is not possible to give Cocoon served material a URL 
prefix, primarily because we need Cocoon to serve the home page of the 
site.

 From Cocoon:

/
/index
/general/*
/archive/*
/x-space/*
etc. (about 10 items)

 From Apache:

/images/*
/movies/*
/audio/*
/x-spaceprojects/*
/harlem/*
etc. (also about 10 items)

And then we need Slide-based WebDAV access to the Cocoon based 
material, with Cocoon generating from the Slide repository . and 
this I have still never had working .

If necessary we /could/:
a) place all static content in a single directory and redirect (legacy 
URLs) into it from Cocoon.
b) use virtual-hosts, one for Cocoon and one for the static stuff and 
redirect from Cocoon. But redirecting to images etc. is not that great 
;)

I am getting confused with all the options .. virtual-hosts, 
web-app, JK, JK2 connectors and all the options in them!

Have any of you lot tried any of this before?
How did you approach it?

Many 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: JavaScript problems in XSP

2002-11-21 Thread Ryan Agler
Hi Anna,
Client-side (in your web browser) JavaScript is a completely different
beast than server-side (on your web server) JavaScript.  In server-side
JavaScript, there are no windows, DHTML, or much any other properties or
methods you would use to manipulate a browser for dynamic content.  

To use Cocoon to achieve your task, the first step would to define
"given-file.html" in your sitemap, and make sure its serialized in
well-formed XHTML.  Then you could use the Cinclude transformer to
import given-file.html, kind of like this (myfile.xsp):


http://apache.org/xsp>
  http://apache.org/cocoon/include/1.0";>

  

  


and in your sitemap.xmap:


  
  
  



  
  
  
  


HTH

+Ryan

-Original Message-
From: Anna Afonchenko [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 21, 2002 7:43 AM
To: [EMAIL PROTECTED]
Subject: Javascript problems in XSP

Hi All.
This is my first post, so don't be angry with me if I do something
wrong.
I am using XSP on Cocoon 2.0.3, and I want to do the following:
given a name of the html file that contains javascript, I want to get
the result of this javascript and
put it inside some element in XSP. But when I write the following code
in XSP using javascript:

    
        var js = window.open("given-file.html");
        var result = js.document.body.innerHTML;
    
    result

 
nothing happens (even doesn't give any error).
If I am using this code inside an html file's script tag, it works fine.
If I am trying some simple Javascript functions in XSP (e.g. Date()), it
works.
Maybe there is some problem with opening files in XSP?
 
Can somebody please tell me what am I doing wrong and how can I get the
result of javascript code executed in some given file?
 
Thank you very much in advance.
 
Anna

-
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: "xml version" procesing instruction and text serializer?

2002-11-05 Thread Ryan Agler
In your XSLT file, right under xsl:stylesheet, include:



-Original Message-
From: Oskar Casquero [mailto:jtacaoio@;bi.ehu.es] 
Sent: Tuesday, November 05, 2002 11:31 AM
To: [EMAIL PROTECTED]
Subject: "xml version" procesing instruction and text serializer?

I want to obtain a text file (not xml) from an XSLT transformation. The
problem is that after doing the transformation and serializing the
result with a text serializer, the  processing
instruction appears at the beginning of the text file, so I have to
delete it manually. Do I have to modify text serializer or is there
another way to delete the  processing instruction?
 
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: Mixed XSL performance under Windows/UNIX?

2002-10-29 Thread Ryan Agler
One thing that comes to mind is the different ways Unix and Windows
insert line breaks.  I sometimes author XSLT text files in Windows, and
after opening them in Linux (X-Emacs) there are a bunch of ^M characters
at the end of each line.  I replace them just because they are annoying
and make the XSLT hard to read -- never considered them to cause
problems, but worth looking into if nothing else works.

-Original Message-
From: Derek Hohls [mailto:DHohls@;csir.co.za] 
Sent: Tuesday, October 29, 2002 9:58 AM
To: [EMAIL PROTECTED]
Subject: Mixed XSL performance under Windows/UNIX?

Does anyone know of a reason why an XSL stylesheet would exhibit 
different behaviour under Windows (test machine) and Unix (server).
 
Could it be related to the fact that when I try and generate the XML
input
to the stylesheet on the server, the brower returns an error:
 
The XML page cannot be displayed Cannot view XML input using XSL style
sheet. 
Please correct the error and then click the Refresh button, or try
again later. 
The namespace prefix is not allowed to start with the reserved string
"xml". Line 2, Position 7 

http://www.w3.org/XML/1998/namespace";
xmlns:xsp="http://apache.org/xsp";
xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>


I have also tried running a "static" file through the same stylesheet
and it seems to work OK - of course, as I cannot see the generated
XML there may be problems with it.

Does anyone know how to overcome either (ot both!) of these
problems.

Thanks
Derek


-
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: XML to Excel file

2002-10-28 Thread Ryan Agler
Not a full-blown solution, but you can encode a web page with tags in
the Excel namespace xmlns:x="urn:schemas-microsoft-com:office:excel"
and, use formulas etc in html table cells:


   

 
Try saving an .xls file to .html, and you will get the jist of the
format.  Then, you can transform your XML data to an Excel-marked-up
.html page using XSLT.  Just a thought.


-Original Message-
From: [EMAIL PROTECTED] [mailto:Markdelanoy@;aol.com] 
Sent: Monday, October 28, 2002 11:31 AM
To: [EMAIL PROTECTED]
Subject: Re: XML to Excel file

Look at the POI project on jakarta.apache.org specifically HSSF.

You'd need to parse the XML yourself but POI allows you to read/write
Excel files.

MD

-
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: [Off-topic:XSLT] Passing an XML fragment via a HTML form.

2002-10-24 Thread Ryan Agler
Yes, I use that exact same technique (hidden textareas).  To get the
parameter back as XML, I wrote an XSP that grabs the request parameter
XML string, turns it into a DOM document, and then iterates through the
DOM nodes to emit corresponding SAX events.  Now my Java isn't the best
in the world, there is probably a better way, but it works for me.  

-Original Message-
From: ROSSEL Olivier [mailto:olivier.rossel@;airbus.com] 
Sent: Thursday, October 24, 2002 4:06 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form.

> It will work for a textarea if that is an option, but for an 
> input, all the tags get stripped out and just the content 
> gets included.

This is a very interesting thread.
So with hidden textareas or you custom class, I can pass the XML
fragment.
But when receiving the request parameter in my XSL, how can I transform
it
into a XML fragment again and out put it of the transformation?
Is the noddeset() function useful in that case?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

-
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 PDF with graphics

2002-10-24 Thread Ryan Agler
If you set up your sitemap right, you can pull this off (well, most of
it, not sure how you would do borders). First, you want to create
pipelines for the images you want to create:


   
   
   


Then, in your fo: stylesheet --

http://www.mysite.com/pic1.dynamic.jpeg"/>
http://www.mysite.com/pic2.dynamic.jpeg"/>


-Original Message-
From: [EMAIL PROTECTED]
[mailto:michael.fridrich@;everymail.net] 
Sent: Thursday, October 24, 2002 10:34 AM
To: [EMAIL PROTECTED]
Subject: Re: Creating PDF with graphics

Bert, a good idea, using graphics from an external source. 
I think, I will use it too. But what I need is a way to 
draw graphics (like the SVG-sample) inside my text 
document, to draw fancy borders or other layout elements.

SVG seems to be good for this, the SVG sample is 
impressive! I found some good looking SVG samples in the 
net. But I don't know, how to include the SVG elements into 
my stylesheet or whereever, to make them appear in the PDF 
result.

Are there any samples for Cocoon where I can learn how to 
do this? I'm almost new to Cocoon, so I think, sample files 
or applications will be the best to learn how this 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: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer

2002-10-24 Thread Ryan Agler
I played around with fo for the first time yesterday and ran into the
same thing.  Turns out if I enclosed everything after  with an , and then also enclosed
anything within an fo:cell with  things worked out fine.  





-Original Message-
From: James Ashton [mailto:jamesashton@;yahoo.com] 
Sent: Thursday, October 24, 2002 7:42 AM
To: [EMAIL PROTECTED]
Subject: Problems rendering PDF dynamically, but identical fop xml works
fine when sent straight to serializer

Been doing some fairly sophisticated XML > FO
transformations.

However,  when I try to view the finished PDF, The Acrobat
reader reports this error in the status bar:

"An error has occurred while trying to use this document."

What is interesting is that if I serialize FO to xml rather
than using fo2pdf, then the FO works fine.  If I save the
XML and create a new pipeline entry to render that saved
xml as a pdf using fo2pdf then it works.
So the transformation seems to be OK, and rendering static
XML as PDFs is OK.

Has anyone experienced similar problems - and if so how did
you resolve it ??

Please Help Me ,

James


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.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]>

-
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: [Off-topic:XSLT] Passing an XML fragment via a HTML form.

2002-10-23 Thread Ryan Agler
It will work for a textarea if that is an option, but for an input, all
the tags get stripped out and just the content gets included.

-Original Message-
From: Robert Koberg [mailto:rob@;koberg.com] 
Sent: Wednesday, October 23, 2002 1:41 PM
To: [EMAIL PROTECTED]
Subject: RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form.

Hi,

Can you simply do:







or perhaps:





best,
-Rob

> -Original Message-
> From: Ryan Agler [mailto:ryanagler@;hotmail.com]
> Sent: Wednesday, October 23, 2002 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
> 
> 
> I had this problem too, and had to write a custom java class to do
this
> inside XSLT, but it works.  
> 
> 
> http://www.w3.org/1999/XSL/Transform";
> version="1.0" xmlns:java="http://xml.apache.org/xslt/java";
> exclude-result-prefixes="java">
> 
> 
> 
> 
> 
> 
> 
> 
select="java:agler.SerializeXml.serializeXml($convertThisNode)"/> ttribute>
> 
> 
> 
> 
> 
> 
> Not sure if you are familiar with making your own Jars (took me awhile
> to figure out), but if you are, create you own jar and make it
available
> to Cocoon by putting it in Tomcat's common/lib and reference it in
> web.xml's extra-classpath.  Here is the source for SerializeXml:
> 
> package agler;
> import org.w3c.dom.Node;
> import org.apache.xalan.serialize.SerializerToXML;
> import java.io.StringWriter;
> public class SerializeXml
> {
>public static String serializeXml(Node node)
>{
>   String ret = "";
>   try 
>   {
> StringWriter sw = new StringWriter();
> SerializerToXML serxml = new SerializerToXML();
> serxml.setWriter(sw);
> serxml.serialize(node);
> ret = sw.toString();
>   }
>   catch (Exception e){}
>   return ret;
>}
> }
> 
> Hope this helps, good luck.
> +Ryan
> 
> 
> 
> 
> -Original Message-
> From: ROSSEL Olivier [mailto:olivier.rossel@;airbus.com] 
> Sent: Wednesday, October 23, 2002 5:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
> 
> I have a HTML form, created from a XML file and a XSL Treansformation.
> 
> I need to pass a subtree of that XML as a parameter, via that form.
> 
> Is there a way, in XSLT, to transform a XML fragment into a string?
> So I can have an  in my form that contains the text of this XML
> fragment.
> 
> Corrolair when processing parameters sent by the form: 
> is there a way, in XSLT, to transform as string into a XML fragment?
> 
> 
> 
> 
> ---cut here---
> 
> 
> This e-mail is intended only for the above addressee. It may contain
> privileged information. If you are not the addressee you must not
copy,
> distribute, disclose or use any of the information in it. If you have
> received it in error please delete it and immediately notify the
sender.
> Security Notice: all e-mail, sent to or from this address, may be
> accessed by someone other than the recipient, for system management
and
> security reasons. This access is controlled under Regulation of
> Investigatory Powers Act 2000, Lawful Business Practises.
> 
> -
> 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: [Off-topic:XSLT] Passing an XML fragment via a HTML form.

2002-10-23 Thread Ryan Agler
I had this problem too, and had to write a custom java class to do this
inside XSLT, but it works.  


http://www.w3.org/1999/XSL/Transform";
version="1.0" xmlns:java="http://xml.apache.org/xslt/java";
exclude-result-prefixes="java">














Not sure if you are familiar with making your own Jars (took me awhile
to figure out), but if you are, create you own jar and make it available
to Cocoon by putting it in Tomcat's common/lib and reference it in
web.xml's extra-classpath.  Here is the source for SerializeXml:

package agler;
import org.w3c.dom.Node;
import org.apache.xalan.serialize.SerializerToXML;
import java.io.StringWriter;
public class SerializeXml
{
   public static String serializeXml(Node node)
   {
  String ret = "";
  try 
  {
StringWriter sw = new StringWriter();
SerializerToXML serxml = new SerializerToXML();
serxml.setWriter(sw);
serxml.serialize(node);
  ret = sw.toString();
  }
  catch (Exception e){}
  return ret;
   }
}

Hope this helps, good luck.
+Ryan




-Original Message-
From: ROSSEL Olivier [mailto:olivier.rossel@;airbus.com] 
Sent: Wednesday, October 23, 2002 5:05 AM
To: '[EMAIL PROTECTED]'
Subject: [Off-topic:XSLT] Passing an XML fragment via a HTML form.

I have a HTML form, created from a XML file and a XSL Treansformation.

I need to pass a subtree of that XML as a parameter, via that form.

Is there a way, in XSLT, to transform a XML fragment into a string?
So I can have an  in my form that contains the text of this XML
fragment.

Corrolair when processing parameters sent by the form: 
is there a way, in XSLT, to transform as string into a XML fragment?




---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

-
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: SessionTransformer: multiple select

2002-10-21 Thread Ryan Agler
Something like this should do the trick inside of an xsp.  Be sure to
declare the xsp-request logicsheet.



String[] selectItems = ;
for(int i=0; i  selectItems.length; i++)
{

selectItems[i]

}



-Original Message-
From: Alex Romayev [mailto:aromay@;sapient.com] 
Sent: Monday, October 21, 2002 5:57 AM
To: [EMAIL PROTECTED]
Subject: SessionTransformer: multiple select

Hello,
I have a "multiple" select, which is being submitted by a form, so that
my request string looks like:
my-action?selectItem=1&selectItem=2&selectItem=3...
 
Does anyone know how I could retrieve all of the "selectItem" request
paramters?  I've tried (just to see what happens):
 
, and
this just gets the first selectItem parameter (id=1).
 
What I would like to get is:

 
 
 

 
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: [Fwd: [Juglist] Monday night - Introduction to Cocoon 2.0]

2002-10-21 Thread Ryan Agler
Awesome, right down the street.  I'll be there :)

-Original Message-
From: Andrew C. Oliver [mailto:acoliver@;apache.org] 
Sent: Sunday, October 20, 2002 11:40 PM
To: cocoon users; [EMAIL PROTECTED]
Cc: poi users
Subject: [Fwd: [Juglist] Monday night - Introduction to Cocoon 2.0]

(forwarding to POI only because I'll briefly cover the HSSF Serializer
[XLS/Excel] and be glad to answer any questions)
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java
http://krysalis.sourceforge.net/centipede - the best build/project
structure
a guy/gal could have! - Make Ant simple on complex
Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh

-
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 return last-modified

2002-10-18 Thread Ryan Agler
Anyone know how to make Cocoon return a last-modified header when
reading xml files from disk?  I found some mention of adding an
"expires" attribute to , but what I really need is to
return last-modified for the files I'm reading.  Any Ideas?

Thanks,
Ryan Agler   

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

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




RE: Request parameters in a cocoon:/

2002-10-16 Thread Ryan Agler

Good question -- I have not tried that scenario.  As a workaround,
instead of extracting request parameters from a stylesheet, you could
something like this in the xsp

request.getParameter("foo")
request.getParameter("bar")

and use XSLT to get the params during transformation.

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 16, 2002 11:26 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Request parameters in a cocoon:/

My quiestion is that if I send this URl to Cocoon:
http://.../bigPage?foo=1&bar=0

Will I be able to retrieve those data in the copySelf.xsl?
(defining "use-stylesheet-parameters" for it, of course)


-
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: Request parameters in a cocoon:/

2002-10-16 Thread Ryan Agler

In my experience the request parameters seem to be preserved.  I am
using the interpreted sitemap (not sure if that makes a difference) and
have several places in my sitemap where I am certain they are working.
For example:


   
   
   


   
  
  
  
   
   
   




-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 16, 2002 5:43 AM
To: '[EMAIL PROTECTED]'
Subject: Request parameters in a cocoon:/

When you call a cocoon:/ from your pipeline, the sitemap "calls itself".
But inside this new call, you lose the initial request parameters.

Is there a way to set new request-parameters for the cocoon:/ call?
Or keep the intial request parameters when the sitemap "calls itself"?
This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

-
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: Special characters in JavaScript Strings

2002-10-10 Thread Ryan Agler

I haven't tried this, but its worth a shot:

"Ihre Login-Angaben waren
zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten
Fehleintrag  gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben,
können Sie es sich per E-Mail zuschicken lassen. Mchten Sie Ihr
Passwort beantragen?"


-Original Message-
From: Hans-Michael Rupp [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 10, 2002 9:50 AM
To: Coocon-user Liste
Cc: Black Hole
Subject: Special characters in JavaScript Strings

Hallo!

I have to use a JavaScript confirm-box on one of my pages.
Unfortunately I have to use special characters - German Umlaute -
The problem is that at some point the umlaute get Transformed into
entities, and the confirm-box text is not treated like HTML, so I get
können instead of können displayed.

>From the xsl:



   
.

RE: Cocoon FAILS in transforming XML

2002-10-09 Thread Ryan Agler

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

Make sure you have include type="serverpages" when generating the xsp
().  

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

   
  
 
  
   

Good Luck

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


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

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


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

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




RE: ESQL and JDBC on JDK1.4.1

2002-10-09 Thread Ryan Agler

I am successfully using JDK1.4.0 with the recent
mysql-connector-j-3.0.0-bin.jar.  Visit
http://www.mysql.com/downloads/api-jdbc-dev.html  According to that page
it works "with JDK-1.2 or newer".

-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 3:10 AM
To: [EMAIL PROTECTED]
Subject: Re: ESQL and JDBC on JDK1.4.1

Is there a JDK1.4.1 compatible JDBC driver available for mySQL?
I can't seem to find any me,ntion of the supported JDKs on the mysQL
sites. :-(

Bert


-
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: Passing parameters to action-set

2002-10-08 Thread Ryan Agler

Try {../process} instead of {process}

-Original Message-
From: Robin Wyles [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 3:04 AM
To: [EMAIL PROTECTED]
Subject: Passing parameters to action-set

Hi All,

Apologies if this has been answered before, I can't find it in the
archives...

I am trying to pass a parameter to an action set, but I cannot seem to
get
this to work. Should this be possible at all?

Here are some snippets from my sitemap:

[...]

   
  
  
  
   

[...]












[...]

Thanks in advance,

Robin Wyles


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

2002-10-08 Thread Ryan Agler

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

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

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

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

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

Any idea?

Thx


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

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




Sitemap relaod breaks w/ inputmodule and param

2002-10-08 Thread Ryan Agler

Is anyone aware of this as a bug, or am I doing something improperly?
Whenever I have an instance in my sitemap where I use both an input
module and a sitemap parameter, cocoon breaks if I subsequently modify
the sitemap.  For example, I have the following in my sitemap:


   


If I modify and save the sitemap, cocoon will throw:

java.lang.ClassCastException: java.lang.String
at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableRes
olver.dispose(PreparedVariableResolver.java:284)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.disposeTree(Tre
eProcessor.java:434)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(T
reeProcessor.java:384)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:320)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:308)
at org.apache.cocoon.Cocoon.process(Cocoon.java:595)


Note this happens only if BOTH an input module and sitemap parameter are
being used.  For example, the following do NOT cause problems:


   



   





-
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: Why is my cocoon app an IE6 killer?

2002-10-07 Thread Ryan Agler

I have not upgraded to SP1 yet, but Microsoft probably did fix the
problem if yours works.  However, my main concern is that most users out
there will not have SP1.  For me, the solution was using the test
HTTP/1.1 connector instead of Coyote.  The test connector seems to do
something differently, and at this point I really don't have a
compelling reason for using Coyote instead.


-Original Message-
From: Els Stevens [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 07, 2002 5:04 AM
To: [EMAIL PROTECTED]
Subject: RE: Why is my cocoon app an IE6 killer?

I'm using IE6SP1 and loaded the site WITH images without any problem.
I'm using a fully updated Win2K server version.

Did you solve the problem in the mean time?

Bert


At 11:20 5/10/2002 +0200, you wrote:
>Ryan,
>
>I can confirm your findings, with IE 5.5 and IE 6.0 I've experienced
this 
>anomaly even when not using coyote. Actually, I used the
>ISAPI filter, since my front-end is IIS.
>
>BTW, back then (a year ago) I've contacted the Microsoft tech support: 
>they recognized the existence of a problem and were very
>collaborative, but, in the end, nothing came out of it.
>
>Best regards,
>
>-
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
>http://utenti.tripod.it/lmorandini/index.html
>-----
>
>
> > -Original Message-
> > From: Ryan Agler [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, October 05, 2002 9:29 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Why is my cocoon app an IE6 killer?
> >
> >
> > That could be a clue.  However, from testing, I don't think it's
limited
> > to the use of HTTP/1.0. I experience the same thing even though I am
> > positive  IE6 is using HTTP/1.1 -- both when I visit
> > http://www.helnwein.com/werke/theater/tafel_1.html , and when I
enable
> > Coyote and visit my own webapp's pages (and I can even see in the
logs
> > that IE6 is using HTTP/1.1)
> >
> > -Original Message-
> > From: Antonio Gallardo Rivera
[mailto:[EMAIL PROTECTED]]
> >
> > Sent: Saturday, October 05, 2002 2:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Why is my cocoon app an IE6 killer?
> >
> > I posted this today:
> >
> > I think I found where the problem is:
> >
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12783
> >
> > It looks like is a Tomcat.
> >
> > Antonio Gallardo.
> >
> >
> >
-
> > Please check that your question  has not already been answered in
the
> > FAQ before posting.
<http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:
<[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<[EMAIL PROTECTED]>
> >
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>


-
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: Changing parameters of request inside Action

2002-10-06 Thread Ryan Agler

I am not sure how to alter request parameters, but I do know you can
set/change request attributes.  So, If you had an action with a
statement like request.setAttribute("myAtt","10"), and then you could
call request.getAttribute("myAtt") from subsequent actions or xsp.

-Original Message-
From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]]

Sent: Sunday, October 06, 2002 8:48 PM
To: [EMAIL PROTECTED]
Subject: Changing paramaters of request inside Action

Is posible to change parameters request inside an Action?

I need to set some parameters before insert into the database.

For example:
1-generate a random key
2-Create a timestamp
3-Validate a code numer based on the category of the selected product
after 
the user select a product and write a number.

Thanks in advance, :)

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: Why is my cocoon app an IE6 killer?

2002-10-05 Thread Ryan Agler

That could be a clue.  However, from testing, I don't think it's limited
to the use of HTTP/1.0. I experience the same thing even though I am
positive  IE6 is using HTTP/1.1 -- both when I visit
http://www.helnwein.com/werke/theater/tafel_1.html , and when I enable
Coyote and visit my own webapp's pages (and I can even see in the logs
that IE6 is using HTTP/1.1) 

-Original Message-
From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]]

Sent: Saturday, October 05, 2002 2:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Why is my cocoon app an IE6 killer?

I posted this today:

I think I found where the problem is:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12783

It looks like is a Tomcat.

Antonio Gallardo.


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

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




RE: Why is my cocoon app an IE6 killer?

2002-10-04 Thread Ryan Agler

I experienced similar behavior awhile back.  I did some fiddling, and
finally came to the conclusion that it had something to do with Tomcat's
Coyote connector.  I commented out the Coyote connector in server.xml,
and used the old HTTP/1.1 test connector, and the problem went away.  I
went so far as to submit a bug report (see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6 ), however I
havnt  yet taken the time to do the HTTP traffic capture he recommended.


-Original Message-
From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, October 05, 2002 12:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Why is my cocoon app an IE6 killer?


I just tried the URL. My IE also stops loading images even if I go to
msn.com after that.



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




multiple webapps sharing XSPs

2002-10-04 Thread Ryan Agler

Can a guru out there give me a hand?

I recently installed Tomcat 4.1.12 with the latest Cocoon CVS.  I have 4
Cocoon webapps which share the cocoon jars, are all in
$TOMCAT_HOME/shared/lib.  When I fire up Tomcat, the webapps get
initialized and the normal log files appear under each one's
WEB-INF/logs.  

It starts getting crazy here -- All 4 webapps seem to write their logs
to ONE of the webpps' WEB-INF/logs when I start accessing pages.  On top
of that, say webapp1 has a page called "test.xsp". I access "test.xsp",
it compiles just fine and the .class file appears in $TOMCAT_HOME/work,
etc.  However, if the sitemap for webapp2 matches "test.xsp", the page
from webapp1 gets pulled from webapp1's cache and used!?  No .class file
gets compiled for webapp2, unless I explicitly go in and "touch"
webapp2's test.xsp so cocoon thinks it has been modified.

I found that this only happens if the cocoon jars are shared (i.e. in
$TOMCAT_HOME/shared/lib), as opposed to each webapp having copies of the
jars in WEB-INF/lib.  I have made the usual precautions of deleting the
work directory before starting Tomcat each time.

I suspect this has something to do with contexts?  I say that because
the log files for all 4 webapps are all being written to a single
${context-root} (from logkit.xconf).  Here is a snippet from my
server.xml if you can see anything wrong:


   
   



   
   


Thanks much,
Ryan Agler

-
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: tool xml/xsl ???

2002-10-01 Thread Ryan Agler

X-Emacs has some great XML editing modes.  It's free.

-Original Message-
From: Jessica Niewint [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 5:04 AM
To: [EMAIL PROTECTED]
Subject: tool xml/xsl ???

Could someone give an advice for a xml-tool ? Or a xsl wysiwyg 
(what-you-see-is-what-you-get) design-tool ?


-
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: XML include

2002-09-18 Thread Ryan Agler

Something like that would work -- or, you could also transform it
further if you needed to embed one of the xml files inside the other,
rather than them both being children of 


   


   


  

  




-Original Message-
From: Andrés Tobelem [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 8:57 AM
To: [EMAIL PROTECTED]
Subject: Re: XML include

So you think that is a good idea to do something like this?

 
  
   
   
  

  




Thank you very much
- Original Message -
From: "Ryan Agler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 11:46 AM
Subject: RE: XML include


There are lots of different ways to achieve that effect with
 and im sure some tag libraries I have yet to explore :)
Or you can do this in an XML file:


]>

&theInc;


-Original Message-
From: Andrés Tobelem [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 8:39 AM
To: [EMAIL PROTECTED]
Subject: XML include

Hi

How can i include one xml in another.


Tobe

-
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: XML include

2002-09-18 Thread Ryan Agler

There are lots of different ways to achieve that effect with
 and im sure some tag libraries I have yet to explore :)
Or you can do this in an XML file:


]>

&theInc;


-Original Message-
From: Andrés Tobelem [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 8:39 AM
To: [EMAIL PROTECTED]
Subject: XML include

Hi
 
How can i include one xml in another.
 
 
Tobe

-
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 write data to the XML file which the data is read from ?

2002-09-18 Thread Ryan Agler

If you're using Xalan, there is an XSLT extension that will let you do
this.  You could embed the code to save changes in the same XSL file you
use for presentation, depending on a request parameter.


   

   



xalanStylesheet.xsl would look something like this:


http://www.w3.org/1999/XSL/Transform";
xmlns:xalan="org.apache.xalan.xslt.extensions.Redirect"
extension-element-prefixes="xalan" version="1.0">
   
   http://xml.apache.org/xslt"; />
   
   
   
  
 

   
   

 

   
   


   

 
  
   



good luck


-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 6:46 AM
To: [EMAIL PROTECTED]
Subject: Re: how to write data to the XML file which the data is read
from ?

funing wrote:

>Hi! all:
>  I am a newbie on cocoon and xsp. I want to know if it is possible 
>to  write data to the XML file which the data is read from. That means,
>I can get some data from a xml file, and transform it to a html and
>present it to a user. The user may change the data. How can I save the 
>changes to the VERY xml which the data comes from?
>
>  I think serializer may be the answer. But I don't know how to
generate
>a xml file dynamically without http response.
>

See  demo. It's under mount/edit in the scratchpad/webapp.

Vadim


>best regards
>  
>




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




handle-errors skipped after first transformation

2002-09-11 Thread Ryan Agler

Hello,
Just wondering if this is a bug or I'm just missing something obvious:  

I have several places in my sitemap where there are multiple
transformations taking place
(generate-->transform-->transform-->serialize), and have experienced
random map:handle-errors behavior when exceptions would occur during the
transformation process.

I decided to do an experiment by modifying startElement in the
LogTransformer to throw a SAXException after it was called a few times,
and here is what I found:

If a SAXException occurs in a transformer that is located DIRECTLY AFTER
the generator
(generate-->transformThatThrowsException-->transform-->serialize),
map:handle-errors works properly.  However, if an exception occurs in a
transformer that comes AFTER THE FIRST transformer in the sitemap
(generate-->transform-->transformThatThrowsException-->serialize),
map:handle-errors doesn't seem to be getting called at all:  only a
blank html page gets returned to the client, even if I specify
map:handle-errors to serialize the error as xml.  This would also
explain why map:handle-errors works properly for all of the
single-transformation parts of my sitemap.

I am using the interpreted sitemap with Cocoon 2.1-dev.

Any thoughts?




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




Livesites

2002-04-22 Thread Ryan Agler

Hello,
Id just like to submit my sites powered entirely by Cocoon 2.1.  For the 
last 3 years I have developed a Web Application for a couple small 
food-delivery companies, and growing.  I've spent the last year converting 
my sites from Microsoft ASP/MSSQL to Cocoon XSP/MySQL, and not only is it 
nice to be Microsoft-free, but Cocoon's framework is unparalleled in it's 
power and manageability.  Here they are, check them out:

http://www.boonetakeout.com
http://www.orderupdelivery.com
http://www.datadreamers.com

Thanks,
Ryan Agler

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

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




prevent cocoon:/xxx caching

2001-11-14 Thread Ryan Agler

Hello~!  I have a small problem that's driving me nuts Im wondering if 
anyone knows the answer to.  In my sitemap, I have a pipeline (let's call it 
pipeline REF) with a serverpages generator that uses the "cocoon:" src 
attribute to reference  a different pipeline (let's call it pipeline SRC)  
for its input source.  Here's an example:















parseParameters.xsp is a page I wrote that takes an XML document in a  
request parameter and converts it into contenthandler elements.  This whole 
setup works PERFECTLY just ONE time, but then a file called SRC.java gets 
created in "work" in a directory called "http_" instead of "file_".  Every 
request after the first one yields the exact same response -- i.e. cocoon 
doesn't know that the request parameters are different.  How can I turn it 
off so that when I use cocoon:/SRC, that it won't get cached?  Any ideas, or 
completely different workaround to achieve the same result would be 
appreciated 8-)

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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