Title: Message
Andreas,
This is great stuff!!! Thank
you!
Stephen Ng
Lumigent
-Original Message-From: Andreas Hartmann
[mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 1:05
PMTo: [EMAIL PROTECTED]Subject: Newbies: New
Tutorial about Request Parameters
Right now Cocoon takes (possibly malformed?) html, and runs it through a
program to tidy up the html before shooting it to the browser.
I would like to do something like the opposite of that. I believe my
code already generates valid xhtml, and don't need to take the extra
processing time to
I think I've found a bug in the xalan (v. 2.2?) that comes with 2.01.
Has anyone had any luck using Cocoon 2.0.1 with the latest Xalan
(2.3.1)?
Steve
-
Please check that your question has not already been answered in the
FAQ
, such as cinclude, esql, etc.
I went into esql.xsl and threw in exclude-result-prefixes=esql on
xsl:stylesheet, but it didn't make a difference.
So now I'm stumped.
Anyone out there know how to fix this?
Thanks,
Stephen Ng
Lumigent
,
Stephen Ng
Lumigent
-
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
I'm confused by coocoon caching--what if I have use HashUtil in my
generateKey, and two different pages/request happen to generate the same
hash key? Won't cocoon erroneously return the same page from the cache?
Steve Ng
Lumigent
PROTECTED]]
Sent: Friday, April 19, 2002 2:05 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Cocoon cache hash clash
From: Stephen Ng [mailto:[EMAIL PROTECTED]]
I'm confused by coocoon caching--what if I have use HashUtil in my
generateKey, and two different pages/request
Must admit I am not familiar with Cocoon-1, but you can setup wildcards
in the sitemap so that all documents in a particular location are
automatically displayed; you don't have to explicitly give the filename.
Users *can* add their own files, with arbitrary names, without involving
an
to explicitly
specify that foo.xslt depends on bar.xslt?
Stephen Ng
Lumigent
-
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
Sorry; you are right, it works fine, this looks like a bug in my
stylesheet somewhere.
Thanks,
Steve
-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:04 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: How to pass
I need some advice.
I have an xsp which is using esql. The query in the esql is dynamically
generated (based upon the request string). I use cinclude to inject the
dynamic sql into the esql element. Something like this:
esql:execute-query
esql:query
cinclude:include
Why not generate SQL string *in* this XSP? That's would give
the best performance.
Or, other way is to obtain this SQL string into String
programmatically, without using include.
Okay I understand the suggestion but it doesn't work that well in my
case. The reason is that the sql
Vadim,
Here I mean do not use include to include your XSLT generated
SQL, but access cocoon programmatically and get this SQL into
String. Then, you will have static XSP source.
Sounds good to me but I have absolutely no idea how to do this :-(. Can
you give me a pointer?
Have you
Maybe the SQL-Transformer can help you.
Reinhard
No doubt I should move to this eventually (I was just getting to like
esql!)--as I understand it this would clearly eliminate the java
compilation step since there is no xsp involved. Nevertheless I think
short term I should be able to get a
Vadim,
And so I plug in:
map:generate type=serverpages
src=FileWithCIncludedXspRightNow.xsp
map:parameter name=GeneratedSQL
value=cocoon:/generatedSQL.sql/
/map:generate
But all I get on the console is:
param is: cocoon:/generatedSQL.sql
Yes sure, what you put
May be you should consider different design, which is suited
better for
the problem? XSP pages with ESQL provide easy ability to program any
caching behavior.
What?!? You just convinced me to go from XSP/ESQL to SQLTransformer! The
problem with ESQL is the Java recompilation, which is
RequestGenerator *should* cache. Give me a good reason why it shouldn't
have caching!
--Steve
-Original Message-
From: Stephen Ng [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 7:23 PM
To: 'Vadim Gritsenko'; [EMAIL PROTECTED]
Subject: RE: caching proposals: SQLTransformer
You must serve the .htc from Cocoon--do you have a rule for it in your
sitemap?
-Original Message-
From: Cocoon User [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 8:07 PM
To: [EMAIL PROTECTED]
Subject: .htc how to
i have a behavor (microsoft .htc)
attached in a
on getting them to work together?
--Stephen Ng
-Original Message-
From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 9:27 AM
To: [EMAIL PROTECTED]
Subject: Re: XIndice and Caching
- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED
Never mind, I a couple of emails from cocoon-dev which answer my
questions:
- How much faster (roughly) is xsltc?
People keep discussing benchmarks for various XSLT interpreters, trying
to make the best choice. I think we've already agreed that nothing beats
XSLTC .. that is when it works.
-
I've been struggling with getting Saxon 6.5.2 and Cocoon 2.0.2 working
together for a couple of days now
Here's what I did and what I found:
1. I replaced xalan-2.3.1 with saxon.jar.
2. I grabbed v1.9 of xsp.xsl
(http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoo
-
From: Stephen Ng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 10:32 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)
I've been struggling with getting Saxon 6.5.2 and Cocoon
2.0.2 working together for a couple of days now
XSLTC is not ready for general use yet--there are bugs which are being
worked out. There are a few messages on this topic floating around the
cocoon-dev list.
Steve
-Original Message-
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 10:04 AM
To:
Frank Ridderbusch [[EMAIL PROTECTED]] writes:
- Starting the servlet-engine with the additional switch
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SA
XParserFactoryImpl
Oops, I forgot to mention that I had seen this on the mailing list and
am doing this already.
I'm not
2.1-dev this should also work for 2.0.2. At least it
works with
2.0.3-dev for me.
Perhaps, this helps.
On Tue, 21 May 2002 10:32:04 -0400
Stephen Ng [EMAIL PROTECTED] wrote:
I've been struggling with getting Saxon 6.5.2 and Cocoon 2.0.2
working together for a couple of days
I think it would be swell if any transformer was cacheable, and the
cache was controllable from the sitemap; e.g. SQLTransformer.
-Original Message-
From: Peter Royal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 3:15 PM
To: [EMAIL PROTECTED]
Subject: Re: I18n Performance
Although I was never totally successful with this, AFAIK this is what
you need to do for Saxon in Cocoon 2.0.2:
1. Replace xalan-2.3.1 with saxon.jar.
2. Use v1.9 of xsp.xsl
(http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoo
n/components/language/markup/xsp/java/xsp.xsl)
3.
You can just use the XML serializer.
-Original Message-
From: Istvan Beszteri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: XHTML
Hi All,
What is the easiest way to generate XHTML output?
I have an XSL which transforms XML
Can someone point to some document that explains what toString() is used
for in the CacheValidity object? I've found explanations for (and
pretty sure I understand) generateKey, isValid, etc, but haven't found
any explanation for the (important) toString() function.
Thanks,
Steve
: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 7:41 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: toString in CacheValidity
From: Stephen Ng [mailto:[EMAIL PROTECTED]]
Can someone point to some document that explains what toString() is
used
i have the same question
Since 2.1 is branched, is 2.0.3 in bugfix mode now...?
-Original Message-
From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 6:58 AM
To: [EMAIL PROTECTED]
Subject: 2.0.3 ?
is there a date for the 2.0.3 release ?
I
Another (microsoft-only) possibility would be to use an XMLHTTP object to
grab status dynamically and display progress.
-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 12:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Please Wait Message
Title: JDBC for SQL Server 7
Why
not the free one from Microsoft?
-Original Message-From: Parrott Geoff
[mailto:[EMAIL PROTECTED]]Sent: Thursday, June 13,
2002 6:30 AMTo: Cocoon-Users (E-mail)Subject: JDBC for
SQL Server 2000
Hi
Slight amendment
I now find out it is
Server.
--Steve
-Original Message-
From: telmo sa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 6:53 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: JDBC for SQL Server 2000
Can you give the url?
Thank you.
Telmo
From: Stephen Ng [EMAIL PROTECTED]
Reply
I need to be able to connect to multiple databases on the fly in my app.
I'm using esql. I'd also like to use connection pooling.
I tried creating a new Component on the fly (DynamicJdbcDataSource which
extends JdbcDataSource), thinking that I could grab the
ComponentManager, and add my new
I haven't seen any examples; but I have been able to use inner classes
within XSP's with no problem.
-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 5:08 AM
To: '[EMAIL PROTECTED]'
Subject: XSP with inner classes.
Are there examples
(Correct me if I'm wrong...) An xsp file is not an xslt stylesheet; xsl
commands won't work in an xsp.
Steve
-Original Message-
From: System Administrator [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: Pass a xsl variable as a esql
Aaron,
I have an app that does quite a bit of data access and haven't noticed
this at all. BTW, are you using SQLTransformer or esql to get the data?
Steve
-Original Message-
From: SANSONE, AARON M [AG-Contractor/1000]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002
After flirting briefly with SQLTransformer, I'm using XSP/ESQL--they
work great.
A couple alternatives might be to create separate pipelines with
SQLTransformer and aggregate them in your sitemap, or to build a single
large union query.
-Original Message-
From: Argyn Kuketayev
After bashing my head a little trying to figure out how to use dynamic
tag parameters in esql, I finally figured it out and have a few
(constructive, I hope) suggestions.
Documentation:
1. http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html
contains a lot of information which is
I have unit tests for all my xslt.
I'm not using XSLTUnit (which is a fine program)--in my case, for each
xslt file, I have a one or more test input files and corresponding
reference files which are the expected result when I run the transform.
I use file names/extensions to group them:
Is it possible to plug xsltc into 2.0.3?
I tried substituting in sitemap.xmap:
map:transformer name=xslt
src=org.apache.cocoon.transformation.TraxTransformer
logger=sitemap.transformer.xsltc
pool-max=32 pool-min=8 pool-grow=2
Is it possible to plug xsltc into 2.0.3?
I tried substituting in sitemap.xmap:
map:transformer name=xslt
src=org.apache.cocoon.transformation.TraxTransformer
logger=sitemap.transformer.xsltc
pool-max=32 pool-min=8 pool-grow=2
connector.
Date: Thu, 05 Sep 2002 22:23:04 -0400
To: [EMAIL PROTECTED]
From: Stephen Ng [EMAIL PROTECTED]
Subject: tuning
I've been reading through the performance tuning tips and have a couple of
questions and comments.
- For optimum performance with Tomcat 4 and Cocoon 2, use the HTTP/1.0
,
Steve
-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Xsltc and 2.0.3
Stephen Ng wrote:
Is it possible to plug xsltc into 2.0.3?
Try following this:
http://xml.apache.org
I (religiously) use the stock 2.0.3 jars.
I definitely had to make some changes in my xslt, because of bugs in my
code that xsltc uncovered, but also (I think) because of bugs in xsltc.
(Actually, even though I got my app to run under xsltc, I'm considering
switching to Saxon because of the
Title: Message
I got
xsltc working with 2.0.3 (thanks Vadim...), and even wrote a short how-to on it:
http://outerthought.net/wiki/Wiki.jsp?page=XSLTC.
On my app I get about a 2x speedup over Xalan.
But
I'm confused about something. xsltc generates java code which does the
transformation.
I got a few of these when I started out. Make sure you clear out your
work directory, and then try to debug the transforms one by one,
starting with the lowest-level transform.
Steve
-Original Message-
From: Kevin O'Neill [mailto:kevin;rocketred.com.au]
Sent: Friday, October 18,
My app runs fine for a while, then starts to cough up
NotSerializableException's like crazy. I don't see any visible
problems, but throwing and logging all these exceptions can't be good
for my performance.
Has anyone seen this before or has some idea what this might be? It
looks like an error
I am running into this same problem (I think) but I'm confused as to what to do about
it.
I have xsp's with generateKey() and generateValidity()methods, and when I put the xsp
in an aggregate, cocoon re-aggregates every time, instead of used the cached
aggregated value. The symptom is that it
}
// ...
Does the problem solution make sense? If so, should I submit a patch?
Thanks,
Steve
-Original Message-
From: Stephen Ng
Sent: Monday, October 28, 2002 10:42 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: CaheValidity toString()
I am
I say,
document() is good for rapid prototyping, but is a poor choice for
final deployment for performance reasons. Use aggregation instead.
The Cocoon developers recommend to use aggregation or
xinclude because of SoC (XSLT is for transforming, not for
aggregating content).
Sure,
Try something like:
img
xsp:attribute
name=srcxsp:exprimageDisplay/xsp:expr/xsp:attribute
/img
--Steve
-Original Message-
From: Cocoon User [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 6:42 AM
To: [EMAIL PROTECTED]
Subject: XSP create dynamic an element
i call
, sample-apps.xml.
How can I define and reference external entities in an XSP?
Thanks,
Steve
Stephen Ng
Software Engineer
Lumigent Technologies, Inc
-
Please check that your question has not already been answered in the
FAQ
Actually I've been using Cocoon with MS SQL Server with no problems
(I've done quite complicated queries, including updates, inserts, and
stored procedures). Microsoft has a free JDBC driver on their web site
which works fine.
--Steve
-Original Message-
From: Geoff Howard
55 matches
Mail list logo