AbstractTransformer or AbstractSAXTransformer?
I am writing a custom transformer that has to read all the XML into a data structure, manipulate the structure, then finally write everything in the structure back out. From where would I call my manipulation code? Looks like I need to use AbstractSAXTransformer, but can this be done with AbstractTransformer? Thanks, John __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I send XML as HTTP POST to a URL?
Hello, I need to have Cocoon send an XML structure as an HTTP POST request to a URL. Anyone know how to do this? Thank you, John __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
caching images, reloading XML/XSLT
Hello, Having a problem where every page request loads all images on the page every time, even if the images have been loaded before, and even if there are multiples of the same image on the same page. I am using Cocoon 2.0.3 with the default settings for resource reloading; using map:read in the sitemap to get the images and CSS files. Is there a way to allow some resources to be cached(images, css files), and still allow other resources reload (XML, XSLT)? Or is there another way to solve this image caching problem? Thank you, John __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible to override encoding of HTMLGenerator output?
Hi, I am bringing some legacy HTML content into a new site using HTMLGenerator and a transformation that alters the XHTML. The content has a bunch of ISO-encoded characters in it, which causes parse problems. After some testing on a static file, I found that when my source XHTML uses the iso-8859-1 encoding, everything works fine. Is there any way I can override the HTMLGenerator to output with 'iso-8859-1' encoding instead of the default UTF-8? Thanks, John __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
saxon as default transformer + xalan also available?
Hello, Because of some quirks in both Saxon Xalan, I would like to set Saxon to be my default XSLT transformer, then add Xalan to be available when I need it (in the sitemap: map:transformer type=xslt-xalan...) I have the first part working fine (Saxon as default). To get Xalan working too, I'm vaguely aware that I have to add another transformer to my sitemap, and maybe add a component into cocoon.xconf. Anyone know how to do this? I'm using Cocoon 2.0.3. Thanks, John __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I output ESQL value as CDATA?
Joerg Heinicke wrote: it's not possible as you find out, but why would you need it? I assume that the result of ESQL is escaped, otherwise there will be trouble to often. So why do you want to escape it one more often? I'd like to use CDATA because the particular ESQL result column that I want to insert in my XSP output contains an XML fragment. If I enclose it in CDATA, I can extract this fragment untouched in XSLT: fragment![CDATA[ this is the ifragment/i ]]/fragment I've read some of the other responses, and so far, it looks like there probably isn't an easy or standard way that this can be done. I think it'd be a useful addition to XSP/ESQL; seems to me that there should be a way to produce *any* kind of well-formed XML using a combination of XSP and ESQL tags. Thanks all, John __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I output ESQL value as CDATA?
Hi, Is there any way to put an ESQL result string into a CDATA section in the XSP output? I want to do something like the following, but (predictably) the ESQL tag itself is put into CDATA: mycol![CDATA[esql:get-string column=my_col /]]/mycol Also tried lt; and gt; entities for the braces surrounding the CDATA; didn't work (lt; and gt; stay as entities in the XSP output). Desired XSP output: mycol[CDATA[ result ]]/mycol Is there any way to do this? Thanks, John __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forward POST request data in a sitemap redirect?
Hello, I've been able to easily forward GET request data via sitemap redirect by using {requestQuery}, but I can't figure out how to redirect and forward POST data. The following is what I've tried, to no avail: (HTML form sends POST request to 'testfrom', below) !-- FROM -- map:match pattern=testfrom map:act type=request map:parameter name=parameters value=true/ map:redirect-to session=true uri=testto/ /map:act /map:match !-- TO -- map:match pattern=testto map:generate type=request/ map:serialize type=xml/ /map:match Is it possible to redirect via sitemap and forward POST data? Thanks in advance, John __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward POST request data in a sitemap redirect?
Vadim Gritsenko wrote: !-- FROM -- map:match pattern=testfrom map:act type=request map:parameter name=parameters value=true/ map:redirect-to session=true uri=testto/ This send respond to the browser with status 302 and *no* parameters. Browser then will request http:///testto with *no* parameters because *none* was given. Pls refer to http://www.ietf.org/rfc/rfc2616.txt for more information. PS You could decorate testto with request parameters you desire, but be aware that POST data could be bigger than GET (== browser performing GET) can handle. Vadim Thank you, Vadim. I was wondering if there is a way to forward the entire POST request data without decorating 'testto' with request parameters -- redirecting the entire request as-is to a different URL, regardless of what POST data parameters it contains and how large the POST data might be. The destination of the redirect would be responsible for dealing with the POST request. Is there any way to do this? Thanks, John /map:act /map:match !-- TO -- map:match pattern=testto map:generate type=request/ map:serialize type=xml/ /map:match Is it possible to redirect via sitemap and forward POST data? Thanks in advance, John __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need to build source to upgrade built-in logicsheet?
Hi, Do I need to download and build the entire Cocoon 2.0.4-dev from source to upgrade a built-in logicsheet? A newer version of util.xsl than in the 2.0.3 release would fix my problem. It'd be great if I could just download the newer util.xsl, put it somewhere, and have Cocoon recompile it. Since I don't see util.xsl anywhere in the binary distribution directories, I'm not sure if this is possible. Thanks, John __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSP output: disable-output-escaping?
Hi, From an XSP page, I am trying to output a Java variable that contains the XML result of an external script as XML, but my angle brackets are escaping to character entities. I have a Java String variable called 'scriptOutput'. It's filled with a string of XML that comes from an external script. My goal is have my XSP page output this String as XML. The results of my XSP looks something like this: page xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; lt;cargt; lt;doorgt; lt;handle/gt; lt;/doorgt; lt;cargt; /page This is the result I want: page xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; car door handle/ /door /car /page I tried fooling around with xsp:element, xsp:content, and xsp:expr with no luck. I guess I'm looking to do something similar to XSLT's 'disable-output-escaping'. Any ideas on if/how this can be done? Thanks, John __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logicsheets: location of xsp:structure, SiLLy
I'm trying to write a logicsheet (based on the logicsheet.greeting.xsl example from http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html) that needs to include a Java library. Where do I need to put the xsp:structure in the XSL file? It doesn't work when I put it next to xsp:logic. Any example I can look at? Also, wondering about the status of SiLLy (Simple Logicsheet Language). Is it usable now? Any more documentation available? Thank you, John __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
handle POST request, send to CGI script?
Is there a way to have Cocoon handle a POST request and send it to a Perl CGI script? The Perl script returns XML which I want to use in the pipeline. If there's no way to call the Perl CGI script (and I presumably have to rewrite it in XSP/Java) how can I get at the POST data and process it using XSP or a servlet? Thank you, John __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ScriptAction to run legacy Perl CGI scripts?
Hi, We have a bunch of old Perl CGI scripts that we would like to wrap Cocoon around. We plan to change the CGI output to XML, and have Cocoon XSLT-transform it on the way out of the pipeline, something like this: map:match pattern=app/* map:act type=request map:parameter name=parameters value=true / map:generate src=http://www.our-site.com/cgi-bin/{../1}{requestQuery}; / /map:act map:transform ... / map:serialize / /map:match However, we'd rather not use HTTP to get the script output, since the request would have to go through the web server again -- we'd rather run the script directly. I'm gathering that we may be able to use a ScriptAction and run the script using the BeanScriptingFramework. Can anyone please point me to more information or a sitemap example of such a ScriptAction? Or suggest a better way to do this? Thanks, John __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pulling content - reader vs. generator + serializer
I'm pulling some existing web page content into my Cocoon app by simply mapping a URI in Cocoon to an HTTP URI. I'm using a Reader with the mime-type set to text/html; works fine. I also tried a FileGenerator and Serializer, both type html, which also works. Which is the preferred way to handle this, and are there significant advantages/disadvantages to either approach? Thanks, John __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reader vs. Generator/Serializer?
I'm pulling content from some existing web pages into Cocoon, and found that using a Reader with mime-type text/html works, and so does a FileGenerator and Serializer of type html. Which is the better way -- any advantages or disadvantages to either? Thanks, John __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]