Cache Key
Hello. I'm doing an extensive use of cache and I'd like to be sure that every key is unique. Can the Hash algorithm provided with Cocoon (buzhash) generate two identical keys ? If so, what will happen ? Thanks in advance David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange transform behavior
Are you sure that your DB element templates in your stylesheet match elements with the sql namespace prefix ? --- Markus Blasl [EMAIL PROTECTED] a écrit : Hi all, i get values from a postgres database and i want to show them in a html-table view. everything gets touched and transformed by my xsl-file, except for the data from the database. Maybe someone can help solve this problem. Here is what i have in my sitemap: map:match pattern=dbtest2.html map:generate src=mount/postgres/dbtest2.xml/ map:transform type=sql map:parameter name=use-connection value=films/ /map:transform !--map:transform type=xslt src=mount/postgres/db_form.xsl/-- map:serialize type=xml/ /map:match As soon as I put the comment back in, my values from the DB dissappears completly, but everything else gets transformed. Thanks, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange transform behavior
Try : xsl:template match=sql:rowset table tbody xsl:apply-templates / /tbody /table /xsl:template xsl:template match=sql:row tr xsl:apply-templates / /tr /xsl:template --- Markus Blasl [EMAIL PROTECTED] a écrit : Markus Blasl wrote: I tried it with copy and paste for the generated xml-file and my xsl-file. And there it works, everything is put in a table. The values now show up, but they are left untouched, or better they are lined up, without any spaces at all. I meant it works local, outside cocoon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange transform behavior
Yes, this is because you haven't declared the prefix in your stylesheet tag (I advise to write it here so that it can be recognized anywhere in your XSL). Rewrite your xsl:stylesheet opening tag like this : xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:sql=http://apache.org/cocoon/SQL/2.0; --- Markus Blasl [EMAIL PROTECTED] a écrit : David LAGARDERE wrote: Try : xsl:template match=sql:rowset table tbody xsl:apply-templates / /tbody /table /xsl:template xsl:template match=sql:row tr xsl:apply-templates / /tr /xsl:template Then I get an error and it says something like, Prefix needs to get solved in namespace. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cache Key Uniqueness
Hello. I have read that BuzHash algorithm is more efficient for keys whose length is lower than 64 bytes. Do I have a strong probability of collision if my key is greater than 64 bytes ? What about using String as cache key ? Thanks in advance. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Caching Questions
Hello. I have two questions dealing with the caching process in Cocoon. 1. I want to refer to an internal Pipeline as the XML source of other pipelines without aggregating it or calling it as a resource (because it would never return). The only trick I know is to make the internal Pipeline the source of a File Generator. Let's say my internal Pipeline is matching any URI ending with data.xml. What I want to do in my external pipelines is : map:pipeline !-- Internal Pipeline -- map:match pattern=data.xml map:generate src=dummy.xml/ map:serialize/ /map:match !-- First external Pipeline -- map:match pattern=External1.xml map:generate type=file src=cocoon:/data.xml/ map:transform src=external1.xsl/ map:serialize/ /map:match !-- Second external Pipeline -- map:match pattern=External2.xml map:generate type=file src=cocoon:/data.xml/ map:transform src=external2.xsl/ map:serialize/ /map:match /map:pipeline This works fine : I have the content of data.xml displayed with two different stylesheets depending on the URI I've sent(External1.xml or External2.xml). Some problems appear when caching content. If my internal Pipeline is cacheable, its content is generated two times : one time per external URI. The reason is that the SystemID created for the internal Pipeline depends on the RequestURI, which is effectively different, not the protocol URI (cocoon:/data.xml) which is the same. Is there another way to achieve this without aggregating or using the FileGenerator ? 2. My second question deals with Hashing algorithm provided in HashUtils class. I have read that it was efficient when key length was lower than 64 bytes. So if a String key exceeding 64 bytes is hashed, how can I be sure that it won't be the same as another one representing another request ? How could I know that the key will be trully unique ? Thanks for advance. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jisp FileSystem and memory
Hello. I would like to know what memory considerations have to be taken into account with Jisp. What are the equivalent heapsize and freememory of StoreJanitor in Jisp ? Finally, I think I have quite a lot of java.io.EOFException when JVM max heap is reached. Does anybody have experienced that ? Thanks in advance. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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]
Using Servlet Filters
Hello. Does anybody know how to configure a filter for Cocoon servlet ? My goal is to zip the output with a CompressionFilter, as documented in Tomcat 4.0 examples. I'm trying to put this code in mu web.xml descriptor but it does nothing at all... filter filter-nameCompression Filter/filter-name filter-classcompressionFilters.CompressionFilter/filter-class init-param param-namecompressionThreshold/param-name param-value10/param-value /init-param /filter filter-mapping filter-nameCompression Filter/filter-name url-pattern/*.txt/url-pattern /filter-mapping Any help would be more than welcome ! Thanks. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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: Cocoon 2.0 and Content Aggregator Cacheability Troubles
Yes, everything is cacheable. When I test parts one by one, it works fine and content is served from the cache. Any idea ? Thanks. DAvid ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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: Connecting to MS SQL Server
You first have to add your JDBC driver class in the load-class section of your cocoon web.xml. After that, add your JDBC source in cocoon.xconf like the personnel datasource example which is given as an example. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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]
Pipelineand matchers
Hello. Is it better to have as many pipelines as matchers or is it recommended having one pipeline including all matchers ? What are the technical differences ? What are the consequences in terms of performances ? Thanks in advance. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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]
Object instanciation at cocoon startup
Hello. Sorry if this question does not deal directly with cocoon. I would like to know if it is possible to instanciate some objects at startup and to store them in the Cocoon Servlet context (like I would have done within the init() method) so they can be available to all sessions. Thanks. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
XPath and Xalan
Hello. It seems that the XPath syntax is not fully supported in the select attribute of apply-templates element : xsl:apply-templates select=parent_node/child_node doesn't work for me ! The template matching the parent_node/child_node is never applied. Do I have to use another syntax ? Thanks in advance. David Lagardere ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
RE: XPath and Xalan
-My XML code skeleton is : search items rowset Some data /rowset /item /search -My XSL code is xsl:template match=search !-- Some HMTL code -- xsl:apply-templates select=items/rowset / !-- Some HMTL code -- /xsl:template xsl:template name=items-list match=items/rowset !-- Some HMTL code -- /xsl:template That's all. Do you see any mistakes ? It works when validated with XML Spy. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
RE: XPath and Xalan
For Judith : I have the xml xsl prefix, so it doesn't come from here. Thanks for your test. For Luca : I don't use any namespace name. But I didn't precised that my XSL stylesheet is applied by Cocoon default XSLT Transformer. Could it help ? Regards, David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
CIncludeT-SQLT- XSLT
Hello. I got more details about what I thought being an error with Xalan and XPath. What I'm doing is getting data from a main XML file including other XML files containg SQL requests with the cinclude::include. These requests are processed in another pipeline and SQL data is retrieved thanks to the SQL Transformer and xml serialized. I finally get the resulting data from the SQL pipeline in the first pipeline (thanks to the CInclude transformer) which is passed to an XSLT transformer and html serialized. My problem is that the resulting XML is not processed by XSLT as expected : == Main XML page == ?xml version=1.0 encoding=UTF-8? search xmlns:ci=http://apache.org/cocoon/include/1.0; ci:include src=cocoon:/sql/table.xml/ /search == Resulting XML == search table rowset !-- Some data fetched by the SQL transformer -- /rowset /table /search == XSL applied == xsl:template match=search !-- Some HTML -- xsl:apply-templates select=table/rowset !-- Some HTML -- /xsl:template xsl:template match=table/rowset !-- Some HTML -- /xsl:template The (bad) result I get is that the table/rowset template is never reached ! Here is the sitemap : map:pipelines map:pipeline map:match pattern=sql/**.xml map:generate src=xml/sql/{1}.xml/ map:transform type=sql map:parameter name=use-connection value=personnel/ map:parameter name=show-nr-of-rows value=false/ /map:transform map:serialize type=xml/ /map:match /map:pipeline map:pipeline map:match pattern=**.xml map:generate src=xml/{1}.xml/ map:transform type=cinclude/ map:transform src=xsl/{1}.xsl type=xslt/ map:serialize type=xml/ /map:match /map:pipeline /map:pipelines NB:the same happens if I use one pipeline and three matchers I really some help to get around this... Thanks in advance David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
RE: CIncludeT-SQLT- XSLT
--- Luca Morandini [EMAIL PROTECTED] a écrit : David, may you try prefixing the elements produced by SQLTransformer with the sql: namespace in your XSL (like in: xsl:template match=table/sql:rowset) ? Best regards, Many thanks, Luca. It was the problem ! But I really don't understand why the sql namespace declaration and the namespace prefix don't appear in the resulting XML code (I mean, if I take a snapshot before the XSLT transformation). Does Cocoon hide it ? ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
Generator type matching
Hello. I would like to use a generator depending on my request without having to write a matcher for each : map:pipeline map:match pattern=dynamic/** map:generate type={1}/ map:serialize type=xml/ /map:match /map:pipeline Of course, the generator mathing {1} is declared in the generators section. This doesn't work and I get the exception org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: {1} Any Idea ? Thanks in advance. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
Technical Doc
Hello. I'd like to get some technical documentation about Cocoon way of loading elements of pipeline, caching and objects persistence. Does anybody know if I can find something which goes deeper than the web site documentation ? Thanks. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]
Pipeline Usage
Hello. I'm new on this list, so I hope you will pardon this question if it has already been asked. My question is : Without using XSP, I would like to introduce dynamic XML depending on each document of my site. Is it better using a pipeline for each page with an appropriate transformer adding my dynamic content at the right place or should I use only one pipeline for all pages with one transformer managing all dynamic generation depending on the SAX events it receives ? Thanks in advance. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.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]