Ldap authentification
Hello, My LDAP server needs a user password identification. In the Ldap documentation I only saw the ldap:password tag, but not the user! And what are the other options for ldap:authentication (other than simple)? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon: presentation tier + J2EE EJB business tier --- a vali d performant architecture?
Steve Brackenbury wrote: Because the developers are inexperienced with XSL. I'd really like to establish some patterns-of'-usage up front before development starts. I'm hoping this will simplify things and as you pointed out in your post Bertrand, will help focus developers on using XSL in the way it was intended. Best pattern of usage: lock down your interfaces. Define the DTD/ schemas between each concern (you might have multiple transformations for example). These should be the equiv of API's - change only at risk and only after much team discussion (and switching validation on during development/testing)! You should also be then able to produce some 'prototype' XML which can be dummied up and fed to people working on that schema. This should make the development faster as it should be possible to develop in parrellel as opposed to having to wait until the folks who's output you require have finished. When they have, (assuming they've not broken their output schema) it should be a simple matter of replacing the dummy data with their output (this can be replicated down the system). This way, even if you change things (or even not use Cocoon) you should be able to at least reuse your XSL. J. === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon: presentation tier + J2EE EJB business tier --- a
I came across an article by Ovidiu Predescu (http://www.webweavertech.com/ovidiu/weblog/index.html) discussing a topic originated by Eric van der Vlist (http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html) which appears to address this design approach. Are you familiar with this pattern? What are your thoughts? Very interesting reading. And, this approach can be extended, to ease the lives of Dreamweaver-bound designers. Why use your own XML markup to add your XSLT elements? Why not use a combination of HTML and CSS? For example: div class=repeat-books tr td span id=book-titleBook Title/span /td td span id=book-authorBook Author/span /td td span id=book-priceBook Price/span /td /tr /div Then, your [EMAIL PROTECTED]'repeat-books'] node gets replaced with an xsl:for-each, and your [EMAIL PROTECTED]'book-title'] with an xsl:value-of, etc. The text within the spans will be discarded, and is provided simply for the designer's convenience. Then, you use an HTML generator followed by an XSLT transform to make your XSLT stylesheet ready for use. Now that strikes me as clever, and really useful. What do the rest of you think? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Portal LDAP Authentification
Hello, My portal actually use a simple XML file for identification. Is there an easy way to change it to an Ldap method (I know how to generate an xml file with all the users using ldap)? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod-db - Updating multiple rows
Hi again Christian Haul dijo: One thing is impossible, though: update may not affect key columns. This has been requested by Antonio but he didn't come up with a patch so far ;-) Yes, I read that on the mailing list archive last week :) Hi! I dont made the patch since it is posible to create and alias of the table and change the key values. I know this is a hack, but it works. :) I've tried all the solutions you suggested to me but it doesn't work and I can't find anything in the log files :( I may have badly explain my problem...because I don't want to update a key field. As my english is poor, I think that an example is better than a long explanation. In my table I've the following records : idA idB idC idD MyString 1 3 5 6 1 3 5 7 1 5 5 9 And after the update, I want something like that : idA idB idC idD MyString 1 3 5 6 hello 1 3 5 7 world 1 5 5 9 ! The four numbers of each rows are the key of the field and they are never modified during an update. Furthermore, during one update, only the idD key part varies and, of course, the attribute MyString... Here is a sample of code that I've tried. I've put idD either as a key or as a value but with no results. table name=mytable keys key name=idA type=int mode name=request-param type=request/ /key key name=idB type=int mode name=request-param type=request/ /key key name=idC type=int mode name=request-param type=request/ /key key name=idD type=int set=master mode name=request-param type=request/ /key /keys values value name=MyString type=string set=slave/ /values /table Once again, I'm lost Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Read XML document via http with variables
Hello Daniel, you probably must build the request string step by step, because the variable $cn would not get evaluated otherwise: xsl:variable name=xindiceRequestString xsl:texthttp://localhost:8080/cocoon1/mount/02288/xmldb2/02288//xsl:text xsl:text?xpath=course[contains(prerequisites/courseno, '/xsl:text xsl:value-of select=$cn/ xsl:text')]/xsl:text /xsl:variable xsl:for-each select=document($xindiceRequestString)//course ... /xsl:for-each 1. But be aware of a problem using document(): http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10203 Maybe it's better to use XInclude or CInclude or sitemap aggregation: http://cocoon.apache.org/2.0/userdocs/transformers/xinclude-transformer.html http://cocoon.apache.org/2.0/userdocs/transformers/cinclude-transformer.html http://cocoon.apache.org/2.0/userdocs/concepts/sitemap.html (If you use Cocooon 2.1 simply replace the 2.0 by 2.1.) 2. And is it really necessary to use //course. Double slashes are almost always very time-consuming. I would change it to a more exact XPath. 3. Is it possible to replace the server's root http://localhost:8080/cocoon1/ by cocoon:/ to access simply Cocoon without HTTP. It's only an inner request and much faster: http://cocoon.apache.org/2.0/userdocs/concepts/sitemap.html Regards, Joerg Daniel Graversen wrote: Hi, I'm trying to include information from an other document in an XSL. The document I'm trying to get is made with Xindice and Cocoon as described in tutorial about this, and the command work nicely in my browser. I have tried with the following command where I whould like to change XXX to anumber i have in the variable $cn. xsl:for-each select=document('http://localhost:8080/cocoon1/mount/02288/xmldb2/02288/?xpath=course[contains(prerequisites/courseno,)]')//course xsl:variable name=course select=@courseno/ ... Does any know how to do this. Regards, daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xml validation
hi people i want to make same sql queries using cocoon and get the result in XML. is it possible to make e validation of this xml output (using DTD). for example i want my pipeline return a XML stream when this stream is valid or another XML stream (just like error message) if the stream was in-valid. a first think is to make an action based aproach? is this the right way or not ? thnx for your comments -- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod-db - Updating multiple rows
Hi Amelie: Nice example! This way we better explain things. The words sometimes are not too clear. Here right now is 4:00 a.m. At 9:00 a.m. comes other people to the office. We had a similar problem, but to be honest, I dont resolved it. The guru is my coworker Carlos Chavez. When he comes I will ask him about this stuff. And I promise to post to the list what he told. Of course he is on the list too, but never sent a mail. I think he found another solution using ESQL on XSP. Our problem was more related to insertion of files than to the update. Anyway when he comes I will ask him about this stuff. Best Regards, Antonio Gallardo. Amelie Cordier dijo: Hi again Christian Haul dijo: One thing is impossible, though: update may not affect key columns. This has been requested by Antonio but he didn't come up with a patch so far ;-) Yes, I read that on the mailing list archive last week :) Hi! I dont made the patch since it is posible to create and alias of the table and change the key values. I know this is a hack, but it works. :) I've tried all the solutions you suggested to me but it doesn't work and I can't find anything in the log files :( I may have badly explain my problem...because I don't want to update a key field. As my english is poor, I think that an example is better than a long explanation. In my table I've the following records : idA idB idC idD MyString 1 3 5 6 1 3 5 7 1 5 5 9 And after the update, I want something like that : idA idB idC idD MyString 1 3 5 6 hello 1 3 5 7 world 1 5 5 9 ! The four numbers of each rows are the key of the field and they are never modified during an update. Furthermore, during one update, only the idD key part varies and, of course, the attribute MyString... Here is a sample of code that I've tried. I've put idD either as a key or as a value but with no results. table name=mytable keys key name=idA type=int mode name=request-param type=request/ /key key name=idB type=int mode name=request-param type=request/ /key key name=idC type=int mode name=request-param type=request/ /key key name=idD type=int set=master mode name=request-param type=request/ /key /keys values value name=MyString type=string set=slave/ /values /table Once again, I'm lost Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CVS livesites.xml - what is couldn't confirm
in livesites.xml are some site with the comments: couldn't confirm and no X-Cocoon header what does this comment mean ? -- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon2.1 causing ungraceful shutdown on Tomcat4.1.18 ?
e nio dijo: I have cocoon2.1dev and the newer cocoon2.1m2 which I observed when deployed on Tomcat 4.1.18, causes Tomcat not to shutdown gracefully. I get that status of Servlet did not call System.exit(). You can try and verify my observation if you have the Tomcat4.1.18 and start it with ./catalina.sh start command. fyi i have jdk1.4.0_01. There is also the J2SDK 1.4.1_03 it works a little more smooth. I use it every day and seems to be stable. The only way I can kill the process is via a kill -15 javathatstartedcocoonpid. Hey?! are you tried kill -9? This is THE real killer! lol. The effect may not be apparent but it was causing a major headache for me because I also have Jetspeed1.4-b4 that does not come up on subsequent restart of Tomcat due to Tomcat ungraceful exit. Anyone else experience this? Yes, everybody. This is a current bug. In Cocoon: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18131 A WORKAROUND is at the endo of the link. To developers, please confirm this bug. I also noted there is another bug in tomcat, but I am not sure if this is total related to the above. In Tomcat: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17193 I am not a guru to tell if this is the same error. Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CVS livesites.xml - what is couldn't confirm
On 9/06/2003 12:31 Stavros Kounis wrote: in livesites.xml are some site with the comments: couldn't confirm and no X-Cocoon header what does this comment mean ? I was checking whether the sites listed on that page still exist, and whether they are effectively 'powered by cocoon'. I only eradicated the host-not-founds so far, and I'm not yet halfway through the list. Some weeding once in a while shouldn't harm IMHO. /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serious Encoding Problems (Umlaute)
On Saturday 07 June 2003 03:17 am, Alexander Schatten wrote: Joerg Heinicke wrote: Alexander Schatten wrote: (1) UTF-8 practically only works for english texts, and does not work with ae oe ue and so on That's wrong. UTF-8 works for *every* character. You only must use it correctly - and that's not so easy :-) By default giving a browser an UTF-8 document, it will send forms encoded in UTF-8 too, but Cocoon expects ISO-8859-1. You can change his by setting the form encoding correctly. Well, I have mentioned it, I am definitily no encoding expert, but my practical know-how shows me with different tools(!) not only with cocoon, that UTF-8 does in praxis not work with, e.g., german umlauts. ISO-8859-1 does. Thats fact. Maybe, there are problems in implementations, I don't know, but this is what I experienced. Could it possibly be your encoding understanding that is a bit flawed? Unicode numbers are fixed in stone, and Java uses it internally for all String and Character. However, there is ALWAYS a Unicode to Encoding performed when outputting the characters to some other data medium. It is per definition necessary. ISO-8859-1 has a set of characters defined, and all other characters are encoded into numeric text. I believe all encoding standards have a method of representing characters that are not part of the encoding scope, such as chinese characters in ISO-8859-1. Now, to make matters worse, at least even more confusing, is that the characters is eventually displayed or printed to a human, in which case there must be a graphical representation available for the character in question, also called a font. Sad to say, today few tools and few fonts supports all character encodings. I believe that in this jungle of confusion, you have misunderstood how to use character encodings. It is easy to do, done it myself many times. For instance, MySQL requires to be setup to support UTF encodings, doesn't do that by default, and the JDBC driver must specify that it will use UTF in the connect string. You forget that, and everything seems like it doesn't work at all. I suggest that you slowly go through each part of your system, and verifies the use of character encoding. There should be no problem mixing them, e.g. having ISO-8859-1 documents which are easier to type, and serve UTF-8 to the web browsers. Niclas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lucene indexing / crawling problem
Conal Tuohy wrote: I'm creating a Lucene index using an XSP based on the sample, but I have a strange problem. Some of the pages are crawled, but some are not crawled, and I can't see why. I have DEBUG logging for the core.search components, so I can see the crawler crawling the site. I can see it read the links for each page, and I can see that it doesn't exclude any of the links. Yet it doesn't actually follow those links - the crawl simply comes to an end at some point, with some of the links uncrawled. Have you enabled the link view for all the pages you want to crawl? HTH Michael It seems to me that for every log entry from SimpleCocoonCrawlerImpl that says Add URL: http://blah...; I should also have an entry from SimpleLuceneXMLIndexerImpl that says Indexing http://blah...; The home page is crawled, and all of the pages off that page, and SOME of the pages off those pages, and SOME of the pages off THOSE pages. I can't see why some pages are crawled and others not. Perhaps the crawler simply stops at some point, and it hasn't finished its list of URLs. But why would it stop crawling without logging any error? BTW, the last entry in the log is always the SimpleLuceneXMLIndexerImpl reporting that it has indexed a page, e.g: DEBUG (2003-06-09) 17:32.05:388 [core.search.lucene] (/search/reindex.xml) HttpProcessor[80][4]/SimpleLuceneXMLIndexerImpl: Indexing http://localhost:80/etexts/JCB-016/full.html?cocoon-view=content (text/xml) Does anyone have any ideas where I could start looking? I'm using the version RELEASE_2_1_M_2 Thanks Con - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Document function
Hi all, I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try to transform an XML document with an XSLT which uses the Document function. XSLT (metaoutput.xsl): ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml indent=yes/ xsl:strip-space elements=*/ xsl:variable name='fileurl' select='mapping/vorm.xml'/ xsl:variable name='mapping' select='document($fileurl)/mapping'/ ... Error: XML Parsing Error: syntax error Location: http://localhost:/metaoutput Line Number 2, Column 1: There is no Error message logged. This is what I get on the browser. Does it have something to do with Xalan? Any ideas? Thanks, Ali -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem saving sunshine profiles in database
Hi Enrico, I have the same problem. I have tried using the similar approach that you have taken but seems something is wrong in copying into the database. The tags disappear in the database even if they are in the log file before sql transformer. Any help would be greatly appreciated. Best regards, Mustafa -Original Message- From: Enrico Ballarin Dolfin [mailto:[EMAIL PROTECTED] Date: 05 June 2003 Thursday 11:57 To: Cocoon Users Subject: problem saving sunshine profiles in database Hi I'm using Cocoon 2.0.4 with Tomcat 4.0.4, Apache 1.3.26 and Java 1.3.1. After having modified the sunspotdemoportal to perform authentication with a database instead of with files, I'm trying now to solve the next problem i.e. how to store user profile and status on the database instead to create a lot of files on the system. I added to my user table in mysql 1.3.23.52 the two fields profile and status of type TEXT (till max 65536 characters each). After this I added following resource in the sitemap: map:match pattern=vipresource-saveuserprofile map:generate src=vip/resources/saveuserprofile-db.xml/ map:transform type=sunShine/ map:transform src=vip/styles/saveuserprofile-db.xsl/ map:transform type=sql/ map:transform src=vip/styles/saveuserprofile-sql.xsl/ map:serialize type=xml/ /map:match This is the file saveuserprofile-db.xml: ?xml version=1.0? !-- saveuserprofile-db.xml -- userdelta xmlns:sunshine=http://cocoon.apache.org/sunshine/1.0; namesunshine:getxml context=request path=/parameter/ID//name fragmentsunshine:getxml context=request path=/parameter/content//fragment /userdelta After the generator and the sunShine transformer I get the name and fragment elements filled with the current values and I'm trying to put them in a SQL statement with following stylesheet: ?xml version=1.0? !-- saveuserprofile-db.xsl -- xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=userdelta userdelta sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:use-connectionvip_db/sql:use-connection sql:query update user_tb set profile = 'xsl:copy-of select=fragment/' where name = 'xsl:value-of select=name/' /sql:query /sql:execute-query /userdelta /xsl:template /xsl:stylesheet The file saveuserprofile-sql.xsl for postprocessing the results of the SQL query is not relevant and I have omitted it in this mail. Looking in the logfile I can see that there is an item with the sql update statement with substituted values for profile and name, where profile contains the xml tree in the desired form. The following item in the logfile shows the same statement where the profile content is no more the xml tree but only the text part of it with a lot of blank lines and without any element tags. If I look at the stored values in the database I see exactly this last content without element tags. Here a simplified test showing a similar extract from the logfile: 2003-06-04 16:51:44 DEBUG (2003-06-04) 16:51.44:156 [sitemap.] (/cocoon-min/test-saveuserprofile-db) HttpProcessor[8080][10]/AbstractSAXTransformer: END endRecording fragment=?xml version=1.0 encoding=ISO-8859-1? update user_tb set profile = 'fragment xmlns:sunshine=http://cocoon.apache.org/sunshine/1.0; mytest myelementThe value/myelement /mytest /fragment' where name = 'test' 2003-06-04 16:51:44 DEBUG (2003-06-04) 16:51.44:165 [sitemap.] (/cocoon-min/test-saveuserprofile-db) HttpProcessor[8080][10]/AbstractSAXTransformer: END endSerializedXMLRecording xml= update user_tb set profile = 'The value' where name = 'test' The other way would be to analyze which are the contents of status and profile and map them to database tables, what I think can be very complex and preferably to avoid. HERE ARE MY QUESTIONS: 1) How can I store an user profile and status on the database? 2) Is there an easier way to solve it and to avoid a large number of created files? 3) Beside this, there is the problem to escape characters like apostrophs or german umlauts. How can be done this? Thanks for your opinions and suggestions Enrico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CVS livesites.xml - what is couldn't confirm
On 9/06/2003 13:36 Stavros Kounis wrote: our site www.osmosis.gr is realy powered by cocoon and all others web site we have announce in cocon-users list you can test this here: http://www.osmosis.gr/xml/ all web sites under /xml/ are cocoon's sub sitemaps http://www.forestland.gr http://www.portovistonis.gr http://www.g-arseniou.gr Great. Please send in a comprehensive patch if you want them to be updated. /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CVS livesites.xml - what is couldn't confirm
steven sory for this question (...but) i have to send the patched file direct to your, to this list ore somewhere else? -- stavros On Mon, 9 Jun 2003, Steven Noels wrote: On 9/06/2003 13:36 Stavros Kounis wrote: our site www.osmosis.gr is realy powered by cocoon and all others web site we have announce in cocon-users list you can test this here: http://www.osmosis.gr/xml/ all web sites under /xml/ are cocoon's sub sitemaps http://www.forestland.gr http://www.portovistonis.gr http://www.g-arseniou.gr Great. Please send in a comprehensive patch if you want them to be updated. /Steven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CVS livesites.xml - what is couldn't confirm
On 9/06/2003 14:29 Stavros Kounis wrote: i have to send the patched file direct to your, to this list ore somewhere else? The list, please. Thanks! /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Document function
Ali Mesbah wrote: Hi all, I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try to transform an XML document with an XSLT which uses the Document function. I am not very sure about it, but as far as I remember: the document function does not work with Cocoon, and, btw, it is not necessary either. have a look at the XInclude and CInclude Trasformers for example alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Document function
Hello Ali, what Cocoon version do you use - or if you know, do you use XSLTC or Xalan? There seems to be a bug for top level xsl:variable and document() when using XSLTC: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381. XSLTC is the default processor in 2.1, while it is Xalan in 2.0. You can switch between both. Joerg Ali Mesbah wrote: Hi all, I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try to transform an XML document with an XSLT which uses the Document function. XSLT (metaoutput.xsl): ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml indent=yes/ xsl:strip-space elements=*/ xsl:variable name='fileurl' select='mapping/vorm.xml'/ xsl:variable name='mapping' select='document($fileurl)/mapping'/ ... Error: XML Parsing Error: syntax error Location: http://localhost:/metaoutput Line Number 2, Column 1: There is no Error message logged. This is what I get on the browser. Does it have something to do with Xalan? Any ideas? Thanks, Ali - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Document function
Hello Alexander, that's not /really/ true ;-) document() works, but there are some issues with it like the caching bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10203. Joerg Alexander Schatten wrote: Ali Mesbah wrote: Hi all, I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try to transform an XML document with an XSLT which uses the Document function. I am not very sure about it, but as far as I remember: the document function does not work with Cocoon, and, btw, it is not necessary either. have a look at the XInclude and CInclude Trasformers for example alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Xindice 1.0 and Cocoon 2.0.4
No my bad. Definitely works with 2.04 ;) On Monday, Jun 9, 2003, at 14:14 Europe/London, g4 wrote: On Monday, Jun 9, 2003, at 13:53 Europe/London, Patrão wrote: Hi, I have a simple question. Can I access Xindice 1.0 through the Cocoon 2.0.4? or I have to use the CVS version of Xindice? Cocoon 2.1 and CVS Xindice work well, Install Xindice as a webapp (war) and install command line tools under say /usr/local/Xindice. I can't say for sure that you'd not encounter problems under 2.0.4 though, http://nagoya.apache.org/wiki/apachewiki.cgi?HowToXindice1o1bCocoon2 May give you some insight. Thanks, Carlos Henrique - This mail sent through IMP: http://horde.org/imp/ Jason Lane Developer Root10 developments Jason Lane Developer Root10 developments - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod-db - Updating multiple rows
Amelie Cordier wrote: Christian Haul dijo: I've tried all the solutions you suggested to me but it doesn't work and I can't find anything in the log files :( Please change the log level for sitemap to debug and look again. Which version of Cocoon are you using? I may have badly explain my problem...because I don't want to update a key field. As my english is poor, I think that an example is better than a long explanation. In my table I've the following records : idA idB idC idD MyString 1 3 5 6 1 3 5 7 1 5 5 9 And after the update, I want something like that : idA idB idC idD MyString 1 3 5 6 hello 1 3 5 7 world 1 5 5 9 ! Right. I have made a small sample (although it uses only 2 keys) which does that. Please create a new table according to schema.sql and put the other files into e.g. $HOME/public_html and go to http://localhost:/~acordier/ (in case you are running 2.1-dev on unix) The sample uses the personnel connection. Here is a sample of code that I've tried. I've put idD either as a key or as a value but with no results. table name=mytable keys key name=idA type=int mode name=request-param type=request/ /key key name=idB type=int mode name=request-param type=request/ /key key name=idC type=int mode name=request-param type=request/ /key key name=idD type=int set=master mode name=request-param type=request/ /key /keys values value name=MyString type=string set=slave/ /values /table Once again, I'm lost This looks fine. The logs should shed some light on this. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 -- a simple table to test multiple updates create table foo ( a int, b int, c varchar, primary key (a,b) );?xml version=1.0? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:actions map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction descriptordatabase.xml/descriptor throw-exceptiontrue/throw-exception /map:action map:action name=mod-db-del src=org.apache.cocoon.acting.modular.DatabaseDeleteAction descriptordatabase.xml/descriptor throw-exceptionfalse/throw-exception /map:action map:action name=mod-db-upd src=org.apache.cocoon.acting.modular.DatabaseUpdateAction descriptordatabase.xml/descriptor throw-exceptionfalse/throw-exception /map:action map:action name=req-params src=org.apache.cocoon.acting.RequestParameterExistsAction/ /map:actions /map:components map:views map:view name=content from-label=content map:serialize type=xml mime-type=text/plain/ /map:view /map:views map:pipelines map:pipeline !-- == Modular DB = -- map:match pattern= map:redirect-to uri=foo/ /map:match map:match pattern=* map:act type=req-params map:parameter name=parameters value=add/ map:act type=mod-db-add map:parameter name=table-set value=add/ /map:act /map:act map:act type=req-params map:parameter name=parameters value=update/ map:act type=mod-db-upd map:parameter name=table-set value=update/ /map:act /map:act map:act type=req-params map:parameter name=parameters value=delete/ map:act type=mod-db-del map:parameter name=table-set value=delete/ /map:act /map:act map:generate type=serverpages src={1}.xsp/ map:transform src=context://samples/stylesheets/dynamic-page2html.xsl map:parameter name=servletPath value={request:servletPath}/ map:parameter name=sitemapURI value={request:sitemapURI}/ map:parameter name=contextPath value={request:contextPath}/ map:parameter name=file value=.xsp/ /map:transform map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap root connectionpersonnel/connection table name=foo keys key name=a type=int autoincrement=false mode name=request-param type=all/ /key key name=b type=int autoincrement=false set=master mode name=request-param type=all/ /key /keys values value name=c type=string set=slave mode name=request-param type=all/ /value /values /table table-set name=add table name=foo/ /table-set table-set name=update table name=foo/ /table-set table-set name=delete table
[patched livesites.xml] Re: CVS livesites.xml - what is couldn'tconfirm
steven this is the patched livesites.xml with 4 new entries ---stavros On Mon, 9 Jun 2003, Steven Noels wrote: On 9/06/2003 14:29 Stavros Kounis wrote: i have to send the patched file direct to your, to this list ore somewhere else? The list, please. Thanks! /Steven livesites.xml.gz Description: patched livesite.xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [patched livesites.xml] Re: CVS livesites.xml - what is couldn'tconfirm
On 9/06/2003 15:47 Stavros Kounis wrote: steven this is the patched livesites.xml with 4 new entries could you please prepare a proper patch (cvs diff -u) to take in account as little changes as possible? you reformatted the entire file... /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP problems with 2.1m2
Spectron International, Inc. wrote: I'm having some problems with FOP in Cocoon 2.1m2. I have a pipeline that creates the xsl-fo document and then I convert it to PDF. If I save the xsl-fo and run it directly through FOP it works ok. When run from Cocoon it gives me the following exception: 15:29:10.698 WARN!! Error for /msim/pdf/DiscrepancyAnalysis?batDate=2003-06-05endDate=2003-01-05 java.lang.NoSuchMethodError: org.apache.batik.bridge.UnitProcessor.createContext(Lorg/apache/batik/bridge /BridgeContext;Lorg/w3c/dom/Element;)Lorg/apache/batik/util/UnitProcessor$Co This typically happens if there is a mismatched version of Batik in the classpath. Unfortunately, some Cocoon distributions are distributed with a Batik jar which does not match the interfaces the FOP jar from the same distribution uses. You can fix this by grabbing a recfent FOP distribution and replace the fop and batik jars in the Cocoon lib by the FOP and Batik jars from the FOP distribution. This may have negative impacts on Cocoons SVG serializer though, so you should not use a PDF generating pipeline which uses embedded or referenced SVGs and a SVG generating pipeline at the same time. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How is rectangle interpreted in gnumeric style sheet??? Help Please!
Jody, Thank you very much for taking the time to explain it to me. The style color is working. However, I have a new problem I'm wondering whether you can help. I need to put a rectangle in one of the cells. In Excel, I add the rectangle to a cell by first clicking the rectangle of the drawing toolbar, and then clicking anywhere on the active spreadsheet, and then resizing it to fit into a cell. The following is the only infomation I found in the gnumeric file format specs that may match what I need to do. Here are my questions. Is rectangle considered as an object? If so, what is the syntax to put it in a cell? Any information is highly appreciated!!! 3.13 Objects This section records details about any objects that have been added to the worksheet. Cell comments are represented as objects: gmr:CellComment Author= Text= ObjectBound=D4 ObjectOffset=0 0 0 0 ObjectAnchorType=33 32 33 32/ Regards, Charlene -Original Message- From: Jody Goldberg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:56 PM To: Yan, Charlene Cc: [EMAIL PROTECTED] Subject: Re: style color does not show up in Excel, Is it working with Excel or the feature only in Gnumeric On Thu, Jun 05, 2003 at 01:47:08PM -0400, Yan, Charlene wrote: Jody, Thank you, thank you and thank you!!! Changing the shade value works. Do you know where I can find more documentation on gmr stylesheet specs? I only have The Gmumeric File Format from http://www.superlinksoftware.com/gnumeric-xml.pdf. Should I go ahead and download gnumeric to learn more? I'm sorry to say that we've never written any. The entire story is muddles somewhat in that you're writing xml in gnumeric format that is being interpretted by an application other than Gnumeric, which then stores the result in an obscure binary blob (aka xls). Reading our source code makes it trivially clear what the format is doing (gnumeric/src/xml-io.c). However, how that maps out to xls is over in an entirely different area. gnumeric/plugins/excel We've tried hard to make our lives easier by maintaining a fairly simple mapping between xls attributes and .gnumeric. However, as we delve deeper into the mysteries of MS Excel things get more obscure. This list is the right place to ask questions about our intent, but I may not be able to say much once things start depending on actual implementations. If you're operating in a unix environment you could probably use gnumeric to do the conversion directly. I could be alot more helpful there. Good Luck Jody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod-db - Updating multiple rows
Ok... it works perfectly thank to your sample Chris... thanks a lot. I don't know why but I've just changed 'name=request-param type=request' into 'name=request-param type=all'... Thanks again to Chris and Antonio... Amélie. Amelie Cordier wrote: Christian Haul dijo: I've tried all the solutions you suggested to me but it doesn't work and I can't find anything in the log files :( Please change the log level for sitemap to debug and look again. Which version of Cocoon are you using? I may have badly explain my problem...because I don't want to update a key field. As my english is poor, I think that an example is better than a long explanation. In my table I've the following records : idA idB idC idD MyString 1 3 5 6 1 3 5 7 1 5 5 9 And after the update, I want something like that : idA idB idC idD MyString 1 3 5 6 hello 1 3 5 7 world 1 5 5 9 ! Right. I have made a small sample (although it uses only 2 keys) which does that. Please create a new table according to schema.sql and put the other files into e.g. $HOME/public_html and go to http://localhost:/~acordier/ (in case you are running 2.1-dev on unix) The sample uses the personnel connection. Here is a sample of code that I've tried. I've put idD either as a key or as a value but with no results. table name=mytable keys key name=idA type=int mode name=request-param type=request/ /key key name=idB type=int mode name=request-param type=request/ /key key name=idC type=int mode name=request-param type=request/ /key key name=idD type=int set=master mode name=request-param type=request/ /key /keys values value name=MyString type=string set=slave/ /values /table Once again, I'm lost This looks fine. The logs should shed some light on this. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [patched livesites.xml] Re: CVS livesites.xml - what is couldn'tconfirm
steven i have a file (livesites.xml) marked with - or + the next step is to remove all (-) lines and send you the rest ? (sorry but its the first time i do something like this using cvs) ---stavros On Mon, 9 Jun 2003, Steven Noels wrote: On 9/06/2003 15:47 Stavros Kounis wrote: steven this is the patched livesites.xml with 4 new entries could you please prepare a proper patch (cvs diff -u) to take in account as little changes as possible? you reformatted the entire file... /Steven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [patched livesites.xml] Re: CVS livesites.xml - what is couldn't
i have a file (livesites.xml) marked with - or + the next step is to remove all (-) lines and send you the rest ? (sorry but its the first time i do something like this using cvs) Sounds like you have exactly what you want. Leave the file as is and send it. Don't remove anything. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New Sites
Hi, On Sunday 9th June, we put live Phase One of our migration of Standard Life Investment's sites... www.standardlifeinvestments.com canada.standardlifeinvestments.com us.standardlifeinvestments.com mutualfunds.standardlifeinvestments.com retail.standardlifeinvestments.com uk.standardlifeinvestments.com property.standardlifeinvestments.com ireland.standardlifeinvestments.com europe.standardlifeinvestments.com asia.standardlifeinvestments.com funds.standardlifeinvestments.com The box is an IBM RS6000 running AIX, and the software stack is Apache/Tomcat/Cocoon 2.0.4. The content is managed in Interwoven's Teamsite, with the XML documents that are transformed being generated from TeamSite's DCT (Data Capture Template) system, as DCRs (Data Capture Records). The Fund Prices data is provided by an internally available Servlet, which is aggregated into the pages. From go-ahead to go-live it took 7 weeks. Phase Two, which is scheduled to start almost immediately, involves moving more apps across to the server, and load-balancing another box in the setup, in addition to bringing back within scope, some items which were dropped to meet Phase One's go-live date. Phase Three, which is scheduled to go live in September, will involve migrating the remaining Standard Life sites across to the delivery mechanism along with any remaining Apps. So far, we've been very impressed by Cocoon, and hope to contribute some of the small modifications that we made, in order to integrate with Teamsite. Thanks Kevin McDermott --- Kevin McDermott Senior Technologist 0131 476 6000 Cert. TeamSite Consult www.realise.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
blank pattern values in sitemap_xmap.java with CVS rebuild
I have rebuilt cocoon from its CVS latest source distribution. I'm not sure exactly which version that is distributed but I believe it might be 2.0.4 due to the timestamp. After troubleshooting some pipeline and map:match pattern issues, I realized that the generated sitemap_xmap.java file that is created by cocoon (tomcat work folder) will properly set the pattern for my matches for the first sequential map:match tag. All subsequent matches will have the pattern of [code - sitemap_xmap.java] // Prepare the pattern for hello.html this.matcher_N1006B_expr = this.preparePattern(wildcard, hello.html); // Prepare the pattern for helloCustom.html this.matcher_N1007C_expr = this.preparePattern(wildcard, ); // Prepare the pattern for hellocustomgen.html this.matcher_N1008D_expr = this.preparePattern(wildcard, ); [/code] Notice the preparePattern is coming in blank. Here is my xmap file snippet... [code - sitemap.xmap] map:pipelines map:pipeline map:match pattern=hello.html type=wildcard map:generate src=test/hello.xml / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline map:pipeline map:match pattern=helloCustom.html type=wildcard map:generate type=myGenerator / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline map:pipeline map:match pattern=hellocustomgen.html type=wildcard map:generate type=myGenerator / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline /map:pipelines [/code] I've tried placing the map:match tags all inside one pipeline as well with the same results. If I switch them around, they will have their correct values for the first match only. Each one works properly by itself. I noticed something similar with session issues causing blank values from the CVS builds in earlier posts. Does anyone have insight into this? On Mon, 8 Apr 2002, James Harris wrote: After having numerous problems trying to get sessions to work, looking back through the mailing list I discovered the messages below... Am I to believe from this that sessions in cocoon 2.0.1 are problematic if not broken? This has perplexed me all day so I would appreciate a quick response from someone. Is it fixed in 2.0.2? Sessions work in c2.0.1, were broken in 2.0.2 and are fixed in current CVS. HTH, Andrew. -- Derek Guardiola Elsevier Sr. Software Engineer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: blank pattern values in sitemap_xmap.java with CVS rebuild
I'm working a little bit more. Thought I would share what I have foudn. sitemap.xls [lines 455] // Prepare the pattern for xsl:value-of select=@pattern/ this.xsl:value-of select=$matcher-name/_expr = this.preparePattern(xsl:value-of select=$matcher-type/, xsl:value-of select=XSLTFactoryLoader:escapeBraces($factory-loader, @pattern)/); The @pattern shows up properly, but the return value from the XSLTFactoryLoader:escapeBraces is . -- Derek Guardiola Elsevier Sr. Software Engineer -Original Message- From: Guardiola, Derek (ELS-STL)) [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:47 AM To: '[EMAIL PROTECTED]' Subject: blank pattern values in sitemap_xmap.java with CVS rebuild I have rebuilt cocoon from its CVS latest source distribution. I'm not sure exactly which version that is distributed but I believe it might be 2.0.4 due to the timestamp. After troubleshooting some pipeline and map:match pattern issues, I realized that the generated sitemap_xmap.java file that is created by cocoon (tomcat work folder) will properly set the pattern for my matches for the first sequential map:match tag. All subsequent matches will have the pattern of [code - sitemap_xmap.java] // Prepare the pattern for hello.html this.matcher_N1006B_expr = this.preparePattern(wildcard, hello.html); // Prepare the pattern for helloCustom.html this.matcher_N1007C_expr = this.preparePattern(wildcard, ); // Prepare the pattern for hellocustomgen.html this.matcher_N1008D_expr = this.preparePattern(wildcard, ); [/code] Notice the preparePattern is coming in blank. Here is my xmap file snippet... [code - sitemap.xmap] map:pipelines map:pipeline map:match pattern=hello.html type=wildcard map:generate src=test/hello.xml / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline map:pipeline map:match pattern=helloCustom.html type=wildcard map:generate type=myGenerator / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline map:pipeline map:match pattern=hellocustomgen.html type=wildcard map:generate type=myGenerator / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline /map:pipelines [/code] I've tried placing the map:match tags all inside one pipeline as well with the same results. If I switch them around, they will have their correct values for the first match only. Each one works properly by itself. I noticed something similar with session issues causing blank values from the CVS builds in earlier posts. Does anyone have insight into this? On Mon, 8 Apr 2002, James Harris wrote: After having numerous problems trying to get sessions to work, looking back through the mailing list I discovered the messages below... Am I to believe from this that sessions in cocoon 2.0.1 are problematic if not broken? This has perplexed me all day so I would appreciate a quick response from someone. Is it fixed in 2.0.2? Sessions work in c2.0.1, were broken in 2.0.2 and are fixed in current CVS. HTH, Andrew. -- Derek Guardiola Elsevier Sr. Software Engineer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Calling Actions from the Flow with Javascript
I have been able to call an action that has been declared in the root sitemap, but not from my sub-sitemap. Has this problem, http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105171947003418w=2, been looked at further? Bobby M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
is there any function like mysql_escape_string in esql?
Is there any way to tell the mysql driver escape strings passed with sql queries using ESQL logicsheet or mod db? __ Valentin. mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Document function
Hello Joerg, I am using 2.1 and indeed XSLTC is the default processor. I changed it to Xalan and it works great. Thanks alot. Ali what Cocoon version do you use - or if you know, do you use XSLTC or Xalan? There seems to be a bug for top level xsl:variable and document() when using XSLTC: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381. XSLTC is the default processor in 2.1, while it is Xalan in 2.0. You can switch between both. Joerg Ali Mesbah wrote: Hi all, I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try to transform an XML document with an XSLT which uses the Document function. XSLT (metaoutput.xsl): ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml indent=yes/ xsl:strip-space elements=*/ xsl:variable name='fileurl' select='mapping/vorm.xml'/ xsl:variable name='mapping' select='document($fileurl)/mapping'/ ... Error: XML Parsing Error: syntax error Location: http://localhost:/metaoutput Line Number 2, Column 1: There is no Error message logged. This is what I get on the browser. Does it have something to do with Xalan? Any ideas? Thanks, Ali - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [patched livesites.xml] Re: CVS livesites.xml - what is couldn't
On 9/06/2003 17:41 Upayavira wrote: Sounds like you have exactly what you want. Leave the file as is and send it. Don't remove anything. Yep! /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Calling Actions from the Flow with Javascript
Title: RE: Calling Actions from the Flow with Javascript I have experienced this, as well. Jon -Original Message- From: Bobby Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, June 09, 2003 12:49 PM To: [EMAIL PROTECTED] Subject: Calling Actions from the Flow with _javascript_ I have been able to call an action that has been declared in the root sitemap, but not from my sub-sitemap. Has this problem, http://marc.theaimsgroup.com/?l=xml-cocoon-users=105171947003418=2, been looked at further? Bobby M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there any function like mysql_escape_string in esql?
Valentine Z. wrote: Is there any way to tell the mysql driver escape strings passed with sql queries using ESQL logicsheet or mod db? mod db uses prepared statements thus the driver does the escaping automatically, ESQL can be told to use prepared statements as well by using esql:parameter, see the docs for details. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
blank patterns with CVS rebuild
I have rebuilt cocoon from its CVS latest source distribution. I'm not sure exactly which version that is distributed but I believe it might be 2.0.4 due to the timestamp. After troubleshooting some pipeline and map:match pattern issues, I realized that the generated sitemap_xmap.java file that is created by cocoon (tomcat work folder) will properly set the pattern for my matches for the first sequential map:match tag. All subsequent matches will have the pattern of [code] // Prepare the pattern for hello.html this.matcher_N1006B_expr = this.preparePattern(wildcard, hello.html); // Prepare the pattern for helloCustom.html this.matcher_N1007C_expr = this.preparePattern(wildcard, ); // Prepare the pattern for hellocustomgen.html this.matcher_N1008D_expr = this.preparePattern(wildcard, ); [/code] Notice the preparePattern is coming in blank. Here is my xmap file snippet... [code] map:pipelines map:pipeline map:match pattern=hello.html type=wildcard map:generate src=test/hello.xml / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline map:pipeline map:match pattern=helloCustom.html type=wildcard map:generate type=myGenerator / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline map:pipeline map:match pattern=hellocustomgen.html type=wildcard map:generate type=myGenerator / map:transform src=test/hello.xsl / map:serialize type=html / /map:match /map:pipeline /map:pipelines [/code] I've tried placing the map:match tags all inside one pipeline as well with the same results. If I switch them around, they will have their correct values for the first match only. Each one works properly by itself. I noticed something similar with session issues causing blank values from the CVS builds in earlier posts. Does anyone have insight into this? On Mon, 8 Apr 2002, James Harris wrote: After having numerous problems trying to get sessions to work, looking back through the mailing list I discovered the messages below... Am I to believe from this that sessions in cocoon 2.0.1 are problematic if not broken? This has perplexed me all day so I would appreciate a quick response from someone. Is it fixed in 2.0.2? Sessions work in c2.0.1, were broken in 2.0.2 and are fixed in current CVS. HTH, Andrew. -- Derek Guardiola Elsevier Sr. Software Engineer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CSS in Cocoon
I am trying to use a stylesheet in a xsl page and am getting a null pointer exception coming from my xsl page. My syntax is below, I am new to Cocoon so please excuse my mistakes. I appreciate the help. dialog.xsl xsl:param name=html.stylesheet select=global.css'/ xsl:param name=html.stylesheet.typetext/css/xsl:param sitemap map:match pattern=login map:generate type=serverpages src=xsp/login.xsp/ map:transform type=xslt src=style/dialog.xsl map:parameter name=css-stylesheet value=global.css/ /map:transform map:serialize type=html/ /map:match map:match pattern=global.css map:read src=global.css mime-type=text/css/ /map:match Thank you Tim B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Lucene indexing / crawling problem
Have you enabled the link view for all the pages you want to crawl? HTH Michael Yes I have ... and a content view ... but even pages from the same pipeline may be crawled or NOT crawled. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CSS in Cocoon
Tim, presumably dialog.xsl is supposed to insert a link element into the html, pointing at the stylesheet which is passed as a parameter? But the dialog.xsl appears to expect a parameter called html.stylesheet, whereas the parameter you are actually passing it (from the sitemap) is called css-stylesheet. Cheers! Con -Original Message- From: Tim Bachta [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 June 2003 08:19 To: [EMAIL PROTECTED] Subject: CSS in Cocoon I am trying to use a stylesheet in a xsl page and am getting a null pointer exception coming from my xsl page. My syntax is below, I am new to Cocoon so please excuse my mistakes. I appreciate the help. dialog.xsl xsl:param name=html.stylesheet select=global.css'/ xsl:param name=html.stylesheet.typetext/css/xsl:param sitemap map:match pattern=login map:generate type=serverpages src=xsp/login.xsp/ map:transform type=xslt src=style/dialog.xsl map:parameter name=css-stylesheet value=global.css/ /map:transform map:serialize type=html/ /map:match map:match pattern=global.css map:read src=global.css mime-type=text/css/ /map:match Thank you Tim B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] attachment: winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How is rectangle interpreted in gnumeric style sheet??? Help Please!
All, It is about poi for Excel spreadsheet generation. Basically my question is whether it is possible to put a rectangle shape into a cell using the gnumeric transformation sheet. If it is not doable, can I generate the same thing by directly using Java code to write a servlet? Please your thoughts are appreciated!! Charlene -Original Message- From: Yan, Charlene Sent: Monday, June 09, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: How is rectangle interpreted in gnumeric style sheet??? Help Please! Jody, Thank you very much for taking the time to explain it to me. The style color is working. However, I have a new problem I'm wondering whether you can help. I need to put a rectangle in one of the cells. In Excel, I add the rectangle to a cell by first clicking the rectangle of the drawing toolbar, and then clicking anywhere on the active spreadsheet, and then resizing it to fit into a cell. The following is the only infomation I found in the gnumeric file format specs that may match what I need to do. Here are my questions. Is rectangle considered as an object? If so, what is the syntax to put it in a cell? Any information is highly appreciated!!! 3.13 Objects This section records details about any objects that have been added to the worksheet. Cell comments are represented as objects: gmr:CellComment Author= Text= ObjectBound=D4 ObjectOffset=0 0 0 0 ObjectAnchorType=33 32 33 32/ Regards, Charlene -Original Message- From: Jody Goldberg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:56 PM To: Yan, Charlene Cc: [EMAIL PROTECTED] Subject: Re: style color does not show up in Excel, Is it working with Excel or the feature only in Gnumeric On Thu, Jun 05, 2003 at 01:47:08PM -0400, Yan, Charlene wrote: Jody, Thank you, thank you and thank you!!! Changing the shade value works. Do you know where I can find more documentation on gmr stylesheet specs? I only have The Gmumeric File Format from http://www.superlinksoftware.com/gnumeric-xml.pdf. Should I go ahead and download gnumeric to learn more? I'm sorry to say that we've never written any. The entire story is muddles somewhat in that you're writing xml in gnumeric format that is being interpretted by an application other than Gnumeric, which then stores the result in an obscure binary blob (aka xls). Reading our source code makes it trivially clear what the format is doing (gnumeric/src/xml-io.c). However, how that maps out to xls is over in an entirely different area. gnumeric/plugins/excel We've tried hard to make our lives easier by maintaining a fairly simple mapping between xls attributes and .gnumeric. However, as we delve deeper into the mysteries of MS Excel things get more obscure. This list is the right place to ask questions about our intent, but I may not be able to say much once things start depending on actual implementations. If you're operating in a unix environment you could probably use gnumeric to do the conversion directly. I could be alot more helpful there. Good Luck Jody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CSS in Cocoon
So if I replaced the dialog.xsl to read: headxsl:param name= css-stylesheet select=global.css'/ xsl:param name=css-stylesheettext/css/xsl:param Assuming the sitemap has not changed, it should work? It does not. ??? -Original Message- From: Conal Tuohy [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: RE: CSS in Cocoon Tim, presumably dialog.xsl is supposed to insert a link element into the html, pointing at the stylesheet which is passed as a parameter? But the dialog.xsl appears to expect a parameter called html.stylesheet, whereas the parameter you are actually passing it (from the sitemap) is called css-stylesheet. Cheers! Con -Original Message- From: Tim Bachta [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 June 2003 08:19 To: [EMAIL PROTECTED] Subject: CSS in Cocoon I am trying to use a stylesheet in a xsl page and am getting a null pointer exception coming from my xsl page. My syntax is below, I am new to Cocoon so please excuse my mistakes. I appreciate the help. dialog.xsl xsl:param name=html.stylesheet select=global.css'/ xsl:param name=html.stylesheet.typetext/css/xsl:param sitemap map:match pattern=login map:generate type=serverpages src=xsp/login.xsp/ map:transform type=xslt src=style/dialog.xsl map:parameter name=css-stylesheet value=global.css/ /map:transform map:serialize type=html/ /map:match map:match pattern=global.css map:read src=global.css mime-type=text/css/ /map:match Thank you Tim B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CSS in Cocoon
Hello Why using params in your xsl? Why don't you try something like that : In your xsl : link rel=stylesheet type=text/css href=style.css/ And in the sitemap : map:match pattern=style.css map:read mime-type=text/css src=stylesheets/style.css/ /map:match This is what I do and it works perfectly but I don't know if it'a a good solution :) Cheers ! Amelie So if I replaced the dialog.xsl to read: headxsl:param name= css-stylesheet select=global.css'/ xsl:param name=css-stylesheettext/css/xsl:param Assuming the sitemap has not changed, it should work? It does not. ??? -Original Message- From: Conal Tuohy [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: RE: CSS in Cocoon Tim, presumably dialog.xsl is supposed to insert a link element into the html, pointing at the stylesheet which is passed as a parameter? But the dialog.xsl appears to expect a parameter called html.stylesheet, whereas the parameter you are actually passing it (from the sitemap) is called css-stylesheet. Cheers! Con -Original Message- From: Tim Bachta [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 June 2003 08:19 To: [EMAIL PROTECTED] Subject: CSS in Cocoon I am trying to use a stylesheet in a xsl page and am getting a null pointer exception coming from my xsl page. My syntax is below, I am new to Cocoon so please excuse my mistakes. I appreciate the help. dialog.xsl xsl:param name=html.stylesheet select=global.css'/ xsl:param name=html.stylesheet.typetext/css/xsl:param sitemap map:match pattern=login map:generate type=serverpages src=xsp/login.xsp/ map:transform type=xslt src=style/dialog.xsl map:parameter name=css-stylesheet value=global.css/ /map:transform map:serialize type=html/ /map:match map:match pattern=global.css map:read src=global.css mime-type=text/css/ /map:match Thank you Tim B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CSS in Cocoon
Thanks, that worked. -Original Message- From: Amelie Cordier [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 4:52 PM To: [EMAIL PROTECTED] Subject: RE: CSS in Cocoon Hello Why using params in your xsl? Why don't you try something like that : In your xsl : link rel=stylesheet type=text/css href=style.css/ And in the sitemap : map:match pattern=style.css map:read mime-type=text/css src=stylesheets/style.css/ /map:match This is what I do and it works perfectly but I don't know if it'a a good solution :) Cheers ! Amelie So if I replaced the dialog.xsl to read: headxsl:param name= css-stylesheet select=global.css'/ xsl:param name=css-stylesheettext/css/xsl:param Assuming the sitemap has not changed, it should work? It does not. ??? -Original Message- From: Conal Tuohy [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: RE: CSS in Cocoon Tim, presumably dialog.xsl is supposed to insert a link element into the html, pointing at the stylesheet which is passed as a parameter? But the dialog.xsl appears to expect a parameter called html.stylesheet, whereas the parameter you are actually passing it (from the sitemap) is called css-stylesheet. Cheers! Con -Original Message- From: Tim Bachta [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 June 2003 08:19 To: [EMAIL PROTECTED] Subject: CSS in Cocoon I am trying to use a stylesheet in a xsl page and am getting a null pointer exception coming from my xsl page. My syntax is below, I am new to Cocoon so please excuse my mistakes. I appreciate the help. dialog.xsl xsl:param name=html.stylesheet select=global.css'/ xsl:param name=html.stylesheet.typetext/css/xsl:param sitemap map:match pattern=login map:generate type=serverpages src=xsp/login.xsp/ map:transform type=xslt src=style/dialog.xsl map:parameter name=css-stylesheet value=global.css/ /map:transform map:serialize type=html/ /map:match map:match pattern=global.css map:read src=global.css mime-type=text/css/ /map:match Thank you Tim B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing Cocoon on Solaris Sun One Application Server 7
Title: Installing Cocoon on Solaris Sun One Application Server 7 Howdy All, In relation to a previous post... Sitemap parsing error?... I'm posting about the installation and running of Cocoon 2.04 on a Solaris machine running SunONE application server 7. I have managed to install the application WAR file successfully. It appears as a separate web application. However... I am unable to invoke the servlet context /cocoon successfully. Here are the problems that I'm noticing and some approaches that I've taken (with limited effect). 1. On initial install, the cocoon servlet reports: description org.xml.sax.SAXParseException: Illegal character at end of document, u. 2. This turns out to be a character encoding problem. I've noticed that the default container-encoding was ISO-8859-1. Hence to fix this, I've included the following in the web.xml file: init-param param-namecontainer-encoding/param-name param-valueutf-8/param-value /init-param init-param param-nameform-encoding/param-name param-valueutf-8/param-value /init-param This has removed that exception but I now get the following error: message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 6271, column 12: '}' expected Line 5221, column 4: 'try' without 'catch' or 'finally' Line 3168, column 25: method error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector, org.apache.cocoon.environment.Environment, java.util.Map, java.lang.Exception, boolean) not found in class org.apache.cocoon.www.sitemap_xmap Line 3339, column 8: method matchN4005A9(org.apache.cocoon.sitemap.SitemapRedirector, org enormous stack dump It would seem that there is still some problems with the sitemap.xmap file. I've noticed when I've vi the file, it reports that the file is incomplete. Is there something i've missed? Perhaps the wrong distro of cocoon? Perhaps the sitemap.xmap file is encoded improperly for nix systems? Any suggestions welcomed Cheers, Jason
Re: New Sites
At 05:27 PM 6/9/2003 +0100, you wrote: Hi, On Sunday 9th June, we put live Phase One of our migration of Standard Life Investment's sites... The site looks great and the response appeared to be snappy. The box is an IBM RS6000 running AIX, and the software stack is Apache/Tomcat/Cocoon 2.0.4. ... Phase Two, which is scheduled to start almost immediately, involves moving more apps across to the server, and load-balancing another box in the setup, in addition to bringing back within scope, some items which were dropped to meet Phase One's go-live date. I'd be interested in learning more about your impressions of Cocoon's performance with apps involving dynamic content. Most of your site examples appear to be static content, so you can take advantage of Cocoon's caching mechanisms to boost performance. Have you migrated/tested apps that involve retrieving data from databases and rendering dynamic pages? Things like user portfolios/account details etc? I'm curious to see how Cocoon performs when serving up large volumes of dynamic content and how well it scales as request volume grows? Can you (or anyone else) share your experience with this? I'd like to consider Cocoon for the presentation tier of a large business application powered by J2EE on the back end. Almost all of the pages served would include some dynamic content, so I'm not sure how much if any of Cocoon's caching I could use to boost performance. I'm wondering if Cocoon is appropriate for such applications or whether a more traditional JSP based web app would perform and scale better. Perhaps Cocoon shines best when serving static content and is not appropriate for high volume dynamic content? What options are available for optimizing Cocoon performance when serving up dynamic content? What are the Cocoon best practices when dealing with dynamic content. Please share your views and experience on this. I'd really like to get a sense of the Cocoon community's thoughts on this. I posted a similar question a couple of days ago and so far I haven't received any feedback on this topic. Is no one using Cocoon with J2EE? Thanks in advance for your time. I'd be happy to take this off-line if this is not the appropriate forum for such discussions. ...Steve Steve Brackenbury Toronto, CANADA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: CSS in Cocoon
Hello, Monday, June 9, 2003, 11:46:57 PM, you wrote: TB So if I replaced the dialog.xsl to read: TB headxsl:param name= css-stylesheet select=global.css'/ TB xsl:param name=css-stylesheettext/css/xsl:param TB Assuming the sitemap has not changed, it should work? TB It does not. ??? You may try to use xsl:param name=html.stylesheet select='global.css'/ In your sample there is only closing quotation mark as a default value of the xsl:param / that is incorrect. TB -Original Message- TB From: Conal Tuohy [mailto:[EMAIL PROTECTED] TB Sent: Monday, June 09, 2003 3:41 PM TB To: [EMAIL PROTECTED] TB Subject: RE: CSS in Cocoon TB Tim, presumably dialog.xsl is supposed to insert a link element into TB the html, pointing at the stylesheet which is passed as a parameter? TB But the dialog.xsl appears to expect a parameter called TB html.stylesheet, whereas the parameter you are actually passing it TB (from the sitemap) is called css-stylesheet. TB Cheers! TB Con -Original Message- From: Tim Bachta [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 June 2003 08:19 To: [EMAIL PROTECTED] Subject: CSS in Cocoon I am trying to use a stylesheet in a xsl page and am getting a null pointer exception coming from my xsl page. My syntax is below, I am new to Cocoon so please excuse my mistakes. I appreciate the help. dialog.xsl xsl:param name=html.stylesheet select=global.css'/ xsl:param name=html.stylesheet.typetext/css/xsl:param sitemap map:match pattern=login map:generate type=serverpages src=xsp/login.xsp/ map:transform type=xslt src=style/dialog.xsl map:parameter name=css-stylesheet value=global.css/ /map:transform map:serialize type=html/ /map:match map:match pattern=global.css map:read src=global.css mime-type=text/css/ /map:match Thank you Tim B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] TB - TB To unsubscribe, e-mail: [EMAIL PROTECTED] TB For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Petermailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]