Re: how to hand over parameter to an url?

2002-08-22 Thread KOZLOV Roman
Am I in a time loop? It's the fifth copy of the same mail. Roman Jens Grote wrote: hi, i tried it, but it did not work. the prob is, i cannot find out where the parameters have a problem. it just happens nothing. searching for the key 'servlet' is no good idea. nearly every email

The Sitemap is null, this should never be!

2002-08-21 Thread KOZLOV Roman
Hi, There was a thread concerning the same problem but it was blocked. After some memory consuming work Cocoon crashes. To get it work again I have to restart Tomcat. Just after crash the java.exe process of Tomcat uses about 17 K of memory. JVM has the following setting: CATALINA_OPTS=

Re: AW: Xindice - Pipeline to db

2002-08-21 Thread KOZLOV Roman
Hi, praktikant wrote: how can I write for example this http://localhost:8080/cocoon/xmldb/dvd/mi2.xml http://localhost:8080/cocoon/xmldb/dvd/mi2.xml http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film

Re: AW: Xindice - Pipeline to db

2002-08-21 Thread KOZLOV Roman
Just one mistake: KOZLOV Roman wrote: Hi, praktikant wrote: how can I write for example this http://localhost:8080/cocoon/xmldb/dvd/mi2.xml http://localhost:8080/cocoon/xmldb/dvd/mi2.xml http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film http://localhost:8080/cocoon

Help, please

2002-08-21 Thread KOZLOV Roman
Please, help. Anybody knows what does the exception The Sitemap is null, this should never be! mean and what are reasons of it? Thank you in advance, Roman - Please check that your question has not already been answered in

Re: embedding image-stream in pdf

2002-08-20 Thread KOZLOV Roman
Hi Frank, There was a problem with images URL's in generated pdf. The matter is that relative URL's don't work. You have to put complete absolute URL's (like http://host... etc.). I've used host matcher in the following pipeline to get full path to images as a parameter in XSLT:

Re: embedding image-stream in pdf

2002-08-20 Thread KOZLOV Roman
/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:act /map:match map:serialize type=fo2pdf/ /map:match Roman KOZLOV Roman wrote: Hi Frank, There was a problem with images URL's in generated pdf

Re: AW: embedding image-stream in pdf

2002-08-20 Thread KOZLOV Roman
-servlet/, where the servlet is producing an image stream. I don't want to store the image as a file and then acess it. Frank -Ursprungliche Nachricht- Von: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 20. August 2002 09:03 An: [EMAIL PROTECTED] Betreff: Re

Re: xsl variable and sunshine getxml

2002-08-20 Thread KOZLOV Roman
Why not xsl:variable? Roman Barbara Post wrote: c2.0.3.. I am surprised that : sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ works while : variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable xsl:value-of select=$foo/ does not...

Re: Cocoon and Xindice

2002-08-19 Thread KOZLOV Roman
Hi, What source do you mean? The snippet you have sent is a result of xpath query on Xindice database (with xpath value //person[contains(fname,'John')] on the /db/addressbook collection). What do you mean by xml code to get xml data? Xindice data are retrieved by URL's with or without xpath

Re: AW: Cocoon and Xindice

2002-08-19 Thread KOZLOV Roman
There is no difference. You have to transform your xml source to what you want. Roman praktikant wrote: Hi, that's the point. I do not have the xml-data. I only get the uninterpreted xml source. -Ursprüngliche Nachricht- Von:kavitha ramesh [mailto:[EMAIL

Re: AW: AW: Cocoon and Xindice

2002-08-19 Thread KOZLOV Roman
to get data from the db. Do you use URL request or something else? What is your pipeline? Roman I hope these explain it. -Ursprüngliche Nachricht- Von:KOZLOV Roman [mailto:[EMAIL PROTECTED]] Gesendet am:Montag, 19. August 2002 14:38

Re: How to translate?

2002-08-15 Thread KOZLOV Roman
Hi Albert, Albert Cervera Areny wrote: Hi, the thread is quite old... but anyway, I've tried to make the stylesheet (please tell me if it is right, by the way how could I avoid that xmlns:i18n in each generated tag?). I don't understand some things. I create a messages.xml file which

i18n:attr processing problem (ArrayIndexOutOfBoundsException)

2002-08-14 Thread KOZLOV Roman
Hi, It seems that there is a bug in the i18n transformer. 1. Configuration: JDK1.4, Cocoon 2.0.3, Tomcat 4.0.4 2. Bug description: - I've pipeline like xml - i18n transformer - serializer; - XML source contains an element like input i18n:attr=value value=somekey type=reset/ Note: order of

Re: Could not read resource file

2002-08-12 Thread KOZLOV Roman
Hi Albert, Is it ok that in the first your mail some lines are cutted: map:parameter name=document value=cocoon:// . . . map:parameter name=instruccions value={../i By the way could you, please, explain me, where the parameters {../ID} and {../nom} are from, because I used Cocoon 2.0.1

Re: Could not read resource file

2002-08-12 Thread KOZLOV Roman
Hi Albert, In your argh.xml I can see the following values of some src attributes: src=marc! o_scroll_r2_c2.png src=marc! o_scroll_r6_c4.png src=t! it_clientes.jpg It seems that they could be a reason of the problem. Roman Albert Cervera Areny wrote: Albert, one at a time...

Re: UTF-8

2002-08-09 Thread KOZLOV Roman
Towers 'C' Diamond District Kodihally Banglore KOZLOV Roman r-kozlov@openca To: [EMAIL PROTECTED] scade.com cc: Subject: Re: UTF-8 08/08/2002 07

Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread KOZLOV Roman
Hi, Just a question, if XHTML is XML then is it possible to use XML serializer? If not, why? Roman Vadim Gritsenko wrote: From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]] Hi list, I have a page with a form generated by Cocoon. There's a textarea in the form where you can

Re: Problems with SQLTransformer

2002-08-09 Thread KOZLOV Roman
Hi, Could you try to add to your xsl a template for the root node like this: xsl:template match=/ xsl:apply-templates/ /xsl:template or just modify the template for rowset like this: xsl:template match=/rowset xsl:apply-templates/ /xsl:template Roman Albert Cervera Areny

Workaround against i18n(2.0.1) bug (divided buffered keys)

2002-07-02 Thread KOZLOV Roman
Hello, It's just concerning i18n transformer in Cocoon 2.0.1. There is known bug of i18n related to untranslated-text because of keys divided by parser. It seems that using concat function for concatenation of empty string and a key in construction like i18n:textxsl:value-of

SUMMARY: Re: Workaround against i18n(2.0.1) bug (divided buffered keys)

2002-07-02 Thread KOZLOV Roman
-of select=concat('',LABEL)//i18n:text helps to avoid such a key dividing. Solution: upgrade of Cocoon 2.0.1 up to fixed CVS version (see below). Piroumian Konstantin wrote: From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] ... Could

cocoon xternal parametrization

2002-07-01 Thread KOZLOV Roman
Hello, Is it possible to externally parametrize sitemap ? Problem is : there is external (to cocoon application) storage of xml and non-xml data located in same filesystem. Currently it's referenced in sitemap by specifying relative path (from sitemap.xmap file to storage) and the references

SUMMARY: Re: cocoon xternal parametrization

2002-07-01 Thread KOZLOV Roman
Unfortunately it's not applicable to c2.0.1 I am using (for stability reasons). Christian Haul wrote: On 01.Jul.2002 -- 02:16 PM, KOZLOV Roman wrote: Hello, Is it possible to externally parametrize sitemap ? Problem is : there is external (to cocoon application) storage of xml

Re: null pointer passed as base exception

2002-06-28 Thread KOZLOV Roman
Hello Leona, Where do you define {1}, {3} and {4} in your pipeline? IMO it should be like this: map:match pattern=matrix map:generate src=gs.xml/ map:transform src=gs.xsl map:parameter name=use-request-parameters value=true/ map:parameter name=pagename

Re: (possible context problem) after moving application out from Cocoon tree

2002-06-27 Thread KOZLOV Roman
Hi Andrei, Try cocoon:// (to get access via root sitemap) or cocoon:/ (for current sitemap) instead of context://. Roman Andrei Svirida wrote: Hello Cocooners, I have a following problem : i had a cocoon application running at Cocoon Deployment Root/testapp and everything worked fine.

Re: set up pipeline for pdf file

2002-06-25 Thread KOZLOV Roman
Hi, IMHO, this should work without serializer (for already prepared pdf). It is necessary just to check path to the source. What is appeared in a browser? What is in log files? Roman Abhishek Goel wrote: hi, i think for this you have to use FOPserializer and then you should define that

XMLizable from DOM example needed

2002-06-21 Thread KOZLOV Roman
Hi, Could somebody share an example of XMLizable object implementation initialized by org.w3c.dom.Document for xsp. Thank you in advance. Roman - Please check that your question has not already been answered in the FAQ

Re: Parameters, their stack and cocoon: protocol....

2002-06-18 Thread KOZLOV Roman
Hi, What is {2} in this case? It seems that you can use {1} because there is one * only. Roman Per Kreipke wrote: This is a two part question. - If I call another pipeline with an XSP file using the cocoon: protocol, it doesn't seem as if the caller's sitemap parameters are available to

Re: Character encoding problems with XSP/ESQL

2002-06-13 Thread KOZLOV Roman
Hi Andrew, Did you set encodingiso-8859-1/encoding for serverpages generator also? Do you also use some transformers? Roman Andrew Savory wrote: Hi, I'm having problems convincing Cocoon to display unusual characters (such as smart quotes, apostrophes) properly, despite having tried

Re: Tomcat/cocoon encoding problem

2002-06-10 Thread KOZLOV Roman
Hi Michael, Did you set the proper encoding for used cocoon's components (generator, transformer and so on)? I imagine that serializer has it because you wrote that the result XML encoding is ok. What about other components? Roman Michael Mangeng wrote: That didn´t do it ;-(

Re: Global variables

2002-06-10 Thread KOZLOV Roman
Hi, Does the following example help? map:match pattern=myprint.pdf map:match type=host pattern=* map:act type=request map:generate src=mydata.xml/ map:transform src=myxsl.xsl map:parameter name=filePath value=http://{../1}{context}/img/ /map:transform

Re: Tomcat/cocoon encoding problem

2002-06-10 Thread KOZLOV Roman
? -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- greetings mike - Original Message - From: KOZLOV Roman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:17 AM Subject: Re: Tomcat/cocoon encoding problem Hi Michael, Did you set the proper encoding

Re: Passing xmap parameters to xsp

2002-06-07 Thread KOZLOV Roman
Hi Daniel, As well as there is predefined parameters variable try in your xsp: xsp:exprparameters.getParameter(my-param)/xsp:expr Roman Vadim Gritsenko wrote: Daniel: Please remove line map:parameter name=use-request-parameters value=true/ from the snippet below. Naquin:

Re: slow xalan transformation

2002-06-07 Thread KOZLOV Roman
having trouble with XIndice in what concerns the specific ISO-8859-2 characters. apparently, importing such a latin2 document into XIndice makes me lose those characters... On Monday 03 June 2002 15:47, KOZLOV Roman wrote: Unfortunatelly, Xindice has a very hard restriction on queries: xpath

Re: XPath and Xalan

2002-06-07 Thread KOZLOV Roman
David, It seems that Judith meant misspelling with items.../item tags (the closing one is incorrect) and /rowset tag (it has no closing bracket ). After fixing this I was able to apply the following XSL by means of default cocoon's transformer: . . . xsl:template match=search html

Re: change from UTF-8 to iso-8859-1

2002-06-04 Thread KOZLOV Roman
Hi Christoph, Set encodingISO-8859-1/encoding for serialiser in sitemap. By the way, you can use such characters with UTF-8 also. It's just necessary to store the XML document as Unicode. Best regards Roman Christoph Stocker wrote: hi! i use cocoon2.0.2 with weblogic6.0sp2 on win2000 i

Re: CDATA output / Server Upgrage

2002-06-03 Thread KOZLOV Roman
You could try xsl:text with disable-output-escaping attribute: xsl:text disable-output-escaping=yes![CDATA[ some characters like ...]]/xsl:text Roman George Pieri wrote: In alot of our xsl stylesheets we wrap xml and javascrip within !CDATA[ ]] tags so that it is not parsed. This

Re: slow xalan transformation

2002-06-03 Thread KOZLOV Roman
Unfortunatelly, Xindice has a very hard restriction on queries: xpath expression cann't contain non-ASCII characters. Roman Adrian Petru Dimulescu wrote: I installed today a cvs cocoon on a Tomcat 4.0.3 / jdk 1.3.1_01 and it works fine if it weren't for the slow xslt transformation. A

Re: cocoon://file.xsl as a src attribute for xsl transformer throwseception :(

2002-05-30 Thread KOZLOV Roman
Hello Fabien, Why do you miss xsl/ in the second example? Roman TREGAN Fabien wrote: Hi. I've got twoo cocoon app : Cocoon +-SDNGUI +-CAW -SDNGUI is a general UI app, that will mainly serv XSL, JS and CSS for every other apps. -CAW is an app wich wants to use SDNGUI -When I

Re: Include external javascript file

2002-05-29 Thread KOZLOV Roman
Hi, XSL transformer should not of course show the code from .js file in the result html. Moreover it usually transforms element with empty content to one tag. For example, in your case the script .../script should be transformed to one tag script .../. So there is could be the problem because

Re: relative path

2002-05-28 Thread KOZLOV Roman
Hi Chris, The following is working for me: xsl:include href=show_includes.xsl/ So you could try: xsl:import href=elements.xsl/ Best regards Roman Christoph Stocker wrote: hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets

Re: relative path

2002-05-28 Thread KOZLOV Roman
Chris, Do you have a pipeline matching to css in your sitemap? It should be like this: map:match pattern=*.css map:read src={1}.css mime-type=text/css/ /map:match Roman Christoph Stocker wrote: i already tried this. it doesn't work - and i don't know why?? mfg,

Re: XML in actions

2002-05-24 Thread KOZLOV Roman
Hello Chitharanjan, Could you, please, tell why you don't advise here to store data in session? What problems do you see? Thank you. Roman Chitharanjan Das wrote: These are the following options 1. Store the XML in the request object (request.setAttribute(“xml”, xmlStr); 2.

Re: ResourceExistsAction problem

2002-05-20 Thread KOZLOV Roman
Hi Ivan, Use {../1}, because you need the match's level sitemap and not action's one. Roman Ivan Luzyanin wrote: Hello all! I've got problem using ResourceExistsAction with context path $COCOON/site/sitemap.xmap map:match pattern=content-**.xsp map:act type=resource-exists

Re: sitemap modifications go unnoticed

2002-05-20 Thread KOZLOV Roman
Hello Hans, To ensure the sitemape has been recompiled remove the folder D:\jakarta\jakarta-tomcat-4.0.4-b3\work\Standalone\localhost\cocoon-exp1. Indeed, the modified sitemap.xmap will not be used if its file modification time is earlier then for the previous sitemap.xmap (it could be in

Re: upgrading to Cocoon2 and debugging

2002-05-17 Thread KOZLOV Roman
Hello Edgar, Did you write map prefix, like map:generate ? Roman Graaf, Edgar de (fin) wrote: Now I know, I things have changed. My sitemap doesn't work... first XMLDBCollection goes wrong, but that one is deprecated. Then when I comment that one out I get a message: No default type

Re: XSP Function to get URL

2002-05-17 Thread KOZLOV Roman
What about xsp-request:get-uri/ (its from cocoon's samples, there it's used with as=xml and it's working at least in v2.0.1). Roman Graaf, Edgar de (fin) wrote: I also tried this and could not get the right function (get-request-url or something). Try

Re: How to write '' in a Cocoon query

2002-05-14 Thread KOZLOV Roman
Hi Kurt, Have you put semicolon (;) after lt? Roman Hahn Kurt (CHA) wrote: I'm trying to add this condition to a query(already functional): and OBJET.OBJ_SUPPRIME 'O' I couldn't even write a simple (according to my book: lt), IE 5 won't open the file as soon as I insert the line...

Re: Problem with SQLTransformer and Encoding

2002-05-07 Thread KOZLOV Roman
Hi Frank, Did you check the result you get before transformation by sql.xsl? Perhaps it is necessary to use attribute disable-output-escaping=yes in its elements. Roman Frank Ridderbusch wrote: Hi Cocooners, I'm having a problem with the encoding of a sql query from the SQLTransformer.

Re: xsp logicsheet

2002-05-06 Thread KOZLOV Roman
Hi, Did you try to use apostrophs inside quotes? Something like this: String temp = xsl:value-of select='name'/; Best regards. Roman Bert Van Kets wrote: At 10:38 30/04/2002 -0300, you wrote: I guess it's String temp = xsl:value-of select=name/; or String temp

Re: i18n transformer problem

2002-04-26 Thread KOZLOV Roman
Hello Konstantin, Thank you for your reply. My configuration is Tomcat 4.0.1, Cocoon 2.0.1 with its default parsers. Roman Konstantin Piroumian wrote: Hi Hello, Can someone help me to understand why i18n transformer divides key? This is the behavior of SAX parser. But I thought that

Re: PERSONAL JAVA CLASSES

2002-04-26 Thread KOZLOV Roman
Hello Fabien, Jar's should be in WEB-INF/lib folder. Sources are not necessary at runtime. Classes should be put like WEB-INF/classes/path_to_package/class_name.class It seems that it works for me. Roman TREGAN Fabien wrote: mmm, I tryed to put my sources and classes in WEB-INF/classes/,

Re: Memory leaks(?)

2002-04-26 Thread KOZLOV Roman
Hello, I have the same problem for Tomcat 4.0.1 + Cocoon 2.0.1 + Xindice 1.0rc2 on NT for one client. To avoid it I have to set CATALINA_OPTS to ' -Xms64M -Xmx256M '. For the moment it works without problems. Roman Vadim Gritsenko wrote: From: Rogier Peters [mailto:[EMAIL PROTECTED]]

Re: Memory leaks(?)

2002-04-26 Thread KOZLOV Roman
Diana, For the moment I'm not sure, but it seems that the problem is due to a big amount of data processed in a pipeline. It's because Xindice supports only ASCII for xpath queries and I have to filter some big amount of data got from a generator (file generator with dbxml protocol) by means of

Re: special characters for i18n

2002-04-25 Thread KOZLOV Roman
Hi Konstantin, I just have to say, that I've used all your stuff (merge.xsl, convert.xsl, simple_dict.xml) and now I'm using convert.xsl in my *.cmd when I update a dictionary. Thank you. Roman Konstantin Piroumian wrote: From: Horst Rutter [EMAIL PROTECTED] Sorry for not mentioning..

Re: image problem

2002-04-25 Thread KOZLOV Roman
And it's not clear, do you finally use absolute or relative path, i.e. /src/... or src/ Roman Paul Pattison wrote: Do you have a '**.gif' matcher in your sitemap? I'm still a bit of a newbie, but I'm pretty sure you need this in your sitemap. It would look something like this:

Re: more HSSFSerializer experience

2002-04-25 Thread KOZLOV Roman
Just a guess. Try to remove cocoon's working directory and restart the server. May be the problem concerns cache. Roman Seth Ladd wrote: Hello again, I've been playing around trying to isolate the cause of those NPEs. I shortened the pipeline to test the XSLT sheet and the serializer.

Re: special characters for i18n

2002-04-25 Thread KOZLOV Roman
Ok, I use NT station so my scripts examples are for windows. There are two general types of a dictionary changes: 1) It is necessary to add translations for a new language lng to my dictionary, i.e. to create a new messages_lng.xml file. 2) It is necessary to change/add some translations for

Re: Returning result from two select statements in one file

2002-04-25 Thread KOZLOV Roman
Hi, what about such XSLT: xsl:template match=/ rowset xsl:apply-templates select=//name/ /rowset /xsl:template xsl:template match=name xsl:variable name=namexsl:value-of select=.//xsl:variable xsl:variable name=firstNamexsl:value-of select=../firstName//xsl:variable

Re: i18n in xslt

2002-04-23 Thread KOZLOV Roman
Hello, Do you specify request parameter locale with value for which messages_lng.xml exists? Roman Jerzy Kut wrote: Sorry - of course. But it don't helps. I paste only abbrewiated snippets into post. But thank You. Trouble is located somewhere in component.xslt i think, but i don't

Re: Aggregation sample

2002-04-19 Thread KOZLOV Roman
Hi Volker, It's actually easy: map:match pattern=get_something map:aggregate element=root_of_result map:part element=root_of_part1 src=some_url.html/ map:part element=root_of_part2 src=cocoon:/some_pipeline/ /map:aggregate map:transform

How to use writeDOMsession with specific namespaces

2002-04-19 Thread KOZLOV Roman
Hello all, Does anybody know how to use writeDOMsession transformer for XML containing specific namespaces without excluding them, for example: ?xml version=1.0 encoding=iso-8859-1 ? collection:results xmlns:collection=http://apache.org/cocoon/xmldb/1.0; resources=13

Re: Getting rid of namespaces in result

2002-04-18 Thread KOZLOV Roman
Hey, it's very strange but it's working! I've just found out by chance: try exclude-prefixes instead of exclude-result-prefixes to remove them in the output sub-elements. Roman Arjé Cahn wrote: Ed, This is my (dirty?) solution to removing prefixes. It is an extra XSL I put into the

ResourceReader crash

2002-04-17 Thread KOZLOV Roman
Hello all, Can somebody answer is it a bug of Cocoon (v 2.0.1, server Tomcat 4.01) or not? When browser, in particular IE 5.0 or 5.5, reads some data, in particular css file, several times it sometimes severs the connection if the data are old and cashed (IE does it even reread page

Re: Session attribute change within aggregation

2002-04-12 Thread KOZLOV Roman
in the second part's XSP (if it is not cached) XSPs are not cacheable by default. PS Use System.outs or log/ to see how it (doesn't) works. Vadim From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hi, Is it possible in Cocoon 2.01 to set session attribute within aggregation so

Re: Session attribute change within aggregation

2002-04-12 Thread KOZLOV Roman
Thank you very much for the lesson. I'll try another way. Roman Vadim Gritsenko wrote: From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hello, Vadim thank you for your advice. It helped me. I was busy some time and had postponed this problem. Unfortunatelly it still remains

Re: reader mime problem - please help

2002-04-11 Thread KOZLOV Roman
Hi Dean, Try src=downloads/{1}.exe Roman Dean McGowan wrote: Cannot get the reader to recognize the application/octet-stream when I am attempting to Download a file. map:match pattern=downloads/*.exe map:readsrc=downloads/*.exe mime-type=application/octet-stream/ /map:match can

Re: XSLT named teplates and xsl:param (is it a BUG?)

2002-04-11 Thread KOZLOV Roman
Indeed, it seems that error message says that you needn't curved brackets in test attribute. Try this xsl:if test=($dayofweek=1) or ($dayofweek=7) or even something like this xsl:if test=/[($dayofweek=1) or ($dayofweek=7)] And, of course, you have to use xsl:value-of whithin xsl:attribute

Re: Sessions and session ids

2002-04-08 Thread KOZLOV Roman
Hi James, James Harris wrote: Hi I am trying to figure sessions out and the site docs seem contradictory. For example, does it matter whether I use the namespace xmlns:xsp-session or xmlns:session in my xsps as these are both given in examples. No, it doesn't, if you declare that

Re: Dynamically transform a generators output

2002-04-05 Thread KOZLOV Roman
Hi Chris, Look at request selector usage in cocoon's default sitemap. Also, have a look at the very good tutorial http://www.cocooncenter.de/cc/documents/resources/request-params/requestselector.html Best regards Roman Shaw, Chris wrote: Hi I have the following scenario... The user

Re: rdf from Slashdot and Freshmeat

2002-04-04 Thread KOZLOV Roman
Hi Michael, Try to put the rdf namespace declaration in stylesheet tag like this: xsl:stylesheet . . . xmlns:rdf=http://my.netscape.com/rdf/simple/0.9/; and then in your xsl templates refer to elements from this namespace with rdf: prefix: xsl:template match=rdf:some_element PS: Of course, you

Re: Transformation comma-point

2002-04-02 Thread KOZLOV Roman
Hello, It is also possible to use translate function like this: xsl:value-of select=translate($strToFormat, ',', '.')/ Best regards Roman Luca Morandini wrote: Ferran, one elegant way could be: 1) Define your format for numbers xsl:decimal-format name=italy

Session attribute change within aggregation

2002-04-02 Thread KOZLOV Roman
Hi, Is it possible in Cocoon 2.01 to set session attribute within aggregation so that the change would be in a first part (xsp) and next part could use the new value of the changed attribute. It seems that the new value is not available for the rest parts of aggregation within the same request.

Is it possible to process multiple value parameter in XSL?

2002-04-01 Thread KOZLOV Roman
Hi, Is it possible to process multiple value parameter in XSL under Cocoon 2.01? For example, how to get all values of the tst parameter from the following request in xsl: http://localhost:8080/cocoon/test?tst=002tst=004tst=005 Thank you. Roman

Re: newbie: convert http POST to XML

2002-04-01 Thread KOZLOV Roman
Hi Charles, You can use request generator: map:generate type=request/ Best regards Roman charles gebhard wrote: greetings, i would like to convert a bunch of http POST params into an XML document (or stream) and pass the XML on to another server. is this something that cocoon can

Re: Simple XSL problem, but NEED HELP!

2002-03-28 Thread KOZLOV Roman
Hi, To copy all types of all level sub-nodes you can use copy-of tag: xsl:copy-of select=some_element/ In this case you need not special template with for-each processing. Best regards. Roman Hahn Kurt (CHA) wrote: Actually, the problem was something else, somebody else just pointed me

Re: URGENT!!! :RE: XML namespaces and result of RequestGenerator

2002-03-27 Thread KOZLOV Roman
Hi Volker, Declare in your xsl file the request's namespace for example: xsl:stylesheet ... xmlns:req=http://xml.apache.org/cocoon/requestgenerator/2.0; ... and then refer to request's elements with defined prefix, ex: req:requestParameters Best regards Roman Volker Schneider

Re: XSL-question: sort with parameter

2002-03-26 Thread KOZLOV Roman
Hi Axel, You can use something like following: xsl:sort select=child::node()[name()=$order]/ Best regards Roman Axel Honfi wrote: Hi! I passed a parameter to a stylesheet and I can get the value with xsl:value-of select=$order-by/. But I need to sort data by the value of the

Re: Where is META tag coming from?

2002-03-25 Thread KOZLOV Roman
Take into account that for XSL transformation you always have to put something inside script element because HTML will be incorrect if there will be script .../ tag after XSL transformation (if it is your case). Such a script tag will be treated as unclosed in HTML. So you have to put at least

Re: Include Pipeline output in XSP.

2002-03-25 Thread KOZLOV Roman
Hi Sandhu, As it was already described in the list, you can generate in separate pipeline (or match) your XSP as XML first, aggregating with or transforming from your Xindice query results. Then you can refer to this pipeline as to a source for XSP generator in other pipeline. Best regards

Problem with linking to CSS via Cocoon

2002-03-22 Thread KOZLOV Roman
Hello, I've faced with more then mysterious problem: Cocoon (under Apache Tomcat/4.0) generates error message in server console and in logs if my css file is more then 2KB (2048b). I have default sitemap where I just removed all the pipeline and inserted the following: map:pipelines

Getting response by servlet

2002-03-21 Thread KOZLOV Roman
Hello, Is somebody able to explain why a servlet becomes in clinch waiting for a response from cocoon? In sitemap.log I can see at the end of the file: . . . DEBUG (2002-03-21) 14:58.34:460 [sitemap.generator.stream] (/bdl/testXML) HttpProcessor[8080][3]/StreamGenerator: processing

Re: sessionstate matcher usage: What's wrong?

2002-03-21 Thread KOZLOV Roman
(Thread.java:484) Looking forward to your help. Thank you in advance. Roman Christian Haul wrote: On 21.Mar.2002 -- 12:07 PM, KOZLOV Roman wrote: processed, so that writeDOMsession is called always. Could you please point to errors? map:match pattern=get_lub map:match

Re: sessionstate matcher usage: What's wrong?

2002-03-21 Thread KOZLOV Roman
needs. KOZLOV Roman wrote: Hello Christian, Thank you very much for response. I've not found any designations substring in core.log. For the moment I've divided the match on two matches - one for read and one for write (just for tests). The match for write is: map:match pattern=get_lub

Re: HELP PLEASE, HELP with Piece of code.

2002-03-21 Thread KOZLOV Roman
Hi, It seems that the reason of the error is that as a result of transformation you get several root elements like HTML.../HTML HTML.../HTML ... - one HTML element per Seleccion/Texto element in source xml. I don't know what for you need it, but I think that the root element should be single

Re: How to use the pattern

2002-03-21 Thread KOZLOV Roman
Sorry, my mistake: in the first example {1} is hello. KOZLOV Roman wrote: Hello, If you use wildcard matcher then you have to know that its pattern is matched to URL WITHOUT query string, i.e. URL part before ? sign. Query string is passed in request object to your generator's src. So

Re: How to use the pattern

2002-03-21 Thread KOZLOV Roman
Hello, If you use wildcard matcher then you have to know that its pattern is matched to URL WITHOUT query string, i.e. URL part before ? sign. Query string is passed in request object to your generator's src. So in your first example {1} is jsp/hello.htm and {2} is EMPTY. Your second

Re: error-compling sitemap_xmap

2002-03-19 Thread KOZLOV Roman
Hi Cyril, I've got the same error message sometimes and when I've tryed to find the mentioned line I've found out that the java file was corrupted and cutted up to this line so that method definition (which was started in this line) was cutted. I've need to restart the server after this.

Re: sitemap_xmap.java cut!

2002-03-19 Thread KOZLOV Roman
Cyril, I've found the reason - error in your sitemap: map:tranform src=transforms/tri.xsl/ - tranform instead of transform. Best regards Roman cyril vidal wrote: Hi, Some of you would know why my file sitemap_xmap.java is cut up (after generator method instruction) and so why I

Re: sitemap_xmap.java cut!

2002-03-19 Thread KOZLOV Roman
/tri.xsl/ Is this instruction not correct? Best, Cyril. - Original Message - From: KOZLOV Roman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 1:42 PM Subject: Re: sitemap_xmap.java cut! Cyril, I've found the reason - error in your sitemap

Re: Different behaviours of HTMLSerializer, in attributes and elements.

2002-03-18 Thread KOZLOV Roman
Hello, IMHO, in the script line you have to put the character itself and not eacute; because such an entity will not be substituted. So try the following: parent.centerFrame.location.hash='#puissance réelle'; PS: I've not checked if the %C3%A9 in an element's name will be translated by script

Re: xsp-session:isNew question

2002-03-18 Thread KOZLOV Roman
Hi, It's just a guess, but could you try the following syntax: xsp-session:is-new ... something what is treated when a session is new ... /xsp-session:is-new Best regards Roman Stefano Bonnin wrote: ok, I tried this: xsp:logic boolean isNew = xsp-session:is-new/;

java.net.SocketException: Connection aborted by peer: socket write error

2002-03-15 Thread KOZLOV Roman
Hi all, Could you please help. How I can eliminate the following exception (copied from console) ? . . . Starting service Tomcat-Apache Apache Tomcat/4.0 java.lang.RuntimeException: java.net.SocketException: Connection aborted by peer : socket write error at

Re: Aggregation problem

2002-03-13 Thread KOZLOV Roman
Hi Arnaud, It is necessary to define element for each map:part also: map:part src=cocoon:/autolayout.xml element=uuu/ map:part src=cocoon:/coco.xml element=ooo/ Best regards. Roman Arnaud Vandyck wrote: Hi all, I have these entries in a sub-sitemap:

Re: Help on sitemap

2002-03-13 Thread KOZLOV Roman
Hi, You can try this map:match pattern="text.xml"> map:match type="request-parameter" pattern="style"> map:generate src="text.xml"/> map:transform src="{1}"/> map:serialize type="xml"/> /map:match> map:generate src="text.xml"/> map:serialize type="xml"/> /map:match> or map:match

Re: CInclude Question

2002-03-06 Thread KOZLOV Roman
Hello Sreedhar, Your problem is in your xsl. Just try to comment cinclude:include element in your including.xml and you'll get doubled text as a result of request. So it is necessary to fix xsl first without cinclude:include. By the way, for me your example doesn't work at all until commenting

Re: Desperately need help: Running Java code with XML values as input

2002-03-06 Thread KOZLOV Roman
Hello Noah, Excuse me, please, if I'm too pedantic, but did you mean test=write instead of write=test? Best regards Roman Noah Mittman wrote: Well, that's it. I'm almost ready to scrap Cocoon. All I want to do is generate a simple HTML page that when requested does a little Java code

Local characters in request params

2002-03-05 Thread KOZLOV Roman
Hello, Still need of your help. Any advice would be gratefully appreciated. Thank you. == Could you, please, help me? Is it possible to perform a request via Cocoon 2.01 using xmldb protocol if xpath contains local characters, for example 'é' (or %E9 or

Re: image internationalization

2002-03-04 Thread KOZLOV Roman
Try {../2} instead of {2} because you have to refer to a sitemap of a pattern and not to a sitemap of an action. Best regards. Niket Anand wrote: Hi All,I want to configure pipeline such that in case of any locale language it will find the image from corresponding language mapped image

Local characters in request params

2002-03-04 Thread KOZLOV Roman
Hi all, Could you, please, help me? Is it possible to perform a request via Cocoon 2.01 using xmldb protocol if xpath contains local characters, for example 'é' (or %E9 or eacute;). It seems that such characters are translated to escaped codes (like eacute;) and dbXML (I use dbXML

  1   2   >