RE: Newbies: New Tutorial about Request Parameters

2002-02-26 Thread Stephen Ng
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

Validate xhtml

2002-02-28 Thread Stephen Ng
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

Latest Xalan

2002-03-15 Thread Stephen Ng
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

Extra namespace declarations in XML from XSP

2002-04-05 Thread Stephen Ng
, 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

Extra namespace declarations in XML from XSP

2002-04-05 Thread Stephen Ng
, 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

Cocoon cache hash clash

2002-04-19 Thread Stephen Ng
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

RE: Cocoon cache hash clash

2002-04-20 Thread Stephen Ng
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

RE: Serving static XML files a la Cocoon-1

2002-04-22 Thread Stephen Ng
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

Small annoyance with xslt transformer caching

2002-04-22 Thread Stephen Ng
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

RE: How to pass parameters to stylesheet from sitemap

2002-04-23 Thread Stephen Ng
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

Dynamic sql in xsp

2002-05-09 Thread Stephen Ng
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

RE: Dynamic sql in xsp

2002-05-09 Thread Stephen Ng
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

RE: Dynamic sql in xsp

2002-05-09 Thread Stephen Ng
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

RE: Dynamic sql in xsp

2002-05-09 Thread Stephen Ng
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

RE: Dynamic sql in xsp

2002-05-10 Thread Stephen Ng
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

RE: caching proposals: SQLTransformer and Request

2002-05-10 Thread Stephen Ng
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

RE: caching proposals: SQLTransformer and Request

2002-05-10 Thread Stephen Ng
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

RE: .htc how to

2002-05-14 Thread Stephen Ng
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

RE: XIndice and Caching

2002-05-17 Thread Stephen Ng
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

RE: XIndice and Caching

2002-05-17 Thread Stephen Ng
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. -

Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)

2002-05-21 Thread Stephen Ng
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

RE: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)

2002-05-21 Thread Stephen Ng
- 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

RE: XSLTC

2002-05-21 Thread Stephen Ng
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:

RE: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)

2002-05-21 Thread Stephen Ng
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

RE: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)

2002-05-21 Thread Stephen Ng
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

RE: I18n Performance

2002-05-21 Thread Stephen Ng
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

RE: How can I use a different XSLT Processor?

2002-05-24 Thread Stephen Ng
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.

RE: XHTML

2002-06-04 Thread Stephen Ng
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

toString in CacheValidity

2002-06-06 Thread Stephen Ng
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

RE: toString in CacheValidity

2002-06-06 Thread Stephen Ng
: 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

RE: 2.0.3 ?

2002-06-11 Thread Stephen Ng
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

RE: Please Wait Message

2002-06-11 Thread Stephen Ng
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

RE: JDBC for SQL Server 2000

2002-06-13 Thread Stephen Ng
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

RE: JDBC for SQL Server 2000

2002-06-13 Thread Stephen Ng
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

Database component help

2002-06-14 Thread Stephen Ng
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

RE: XSP with inner classes.

2002-06-18 Thread Stephen Ng
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

RE: Pass a xsl variable as a esql tag parameter?

2002-06-18 Thread Stephen Ng
(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

RE: Datasource pooling issue. Connections exceed limit.

2002-06-20 Thread Stephen Ng
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

RE: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Stephen Ng
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

nested elements in esql logicsheets

2002-07-10 Thread Stephen Ng
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

RE: Unit testing xslt

2002-08-29 Thread Stephen Ng
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:

Xsltc and 2.0.3

2002-09-05 Thread Stephen Ng
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

xsltc and 2.0.3

2002-09-05 Thread Stephen Ng
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

Fwd: tuning

2002-09-05 Thread Stephen Ng
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

RE: Xsltc and 2.0.3

2002-09-06 Thread Stephen Ng
, 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

RE: xsltc w/ 2.0.3

2002-10-23 Thread Stephen Ng
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

xsltc

2002-10-18 Thread Stephen Ng
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.

RE: xsltc

2002-10-18 Thread Stephen Ng
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,

NotSerializableException

2002-10-24 Thread Stephen Ng
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

RE: CaheValidity toString()

2002-10-28 Thread Stephen Ng
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

RE: CaheValidity toString()

2002-10-28 Thread Stephen Ng
} // ... 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

RE: Poor performance of document() in XSL [Was: Re: simpel cocoon question]

2002-11-06 Thread Stephen Ng
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,

RE: XSP create dynamic an element

2002-12-03 Thread Stephen Ng
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

XSP's don't use catalogs?

2003-02-07 Thread Stephen Ng
, 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

RE: Experiences with Cocoon Microsoft SQLServer?

2003-02-14 Thread Stephen Ng
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