Re: Update probleme with component instance and XMLFileModule package

2012-11-18 Thread mdia
On Sat, 17 Nov 2012 23:00:34 +0100, Thorsten Scherler wrote: > On 11/15/2012 11:45 AM, DIA Modou wrote: >> hi, >> >> I'm working with coocon 2.1 and tomcat 6.0.32. >> >> I have a code which permit to use an xml file as a global variable. I >> build that with a "component instance" and the package

Re: Update probleme with component instance and XMLFileModule package

2012-11-17 Thread Thorsten Scherler
On 11/15/2012 11:45 AM, DIA Modou wrote: > hi, > > I'm working with coocon 2.1 and tomcat 6.0.32. > > I have a code which permit to use an xml file as a global variable. I > build that with a "component instance" and the package > "org.apache.cocoon.components.modules.input.XMLFileModule" like this

Update probleme with component instance and XMLFileModule package

2012-11-15 Thread DIA Modou
hi, I'm working with coocon 2.1 and tomcat 6.0.32. I have a code which permit to use an xml file as a global variable. I build that with a "component instance" and the package "org.apache.cocoon.components.modules.input.XMLFileModule" like this: In my "pipelines", i use "userinfos-xml

Re: Dynamic configuration of input modules, and the XMLFileModule

2006-05-06 Thread Antonio Gallardo
Andrew Stevens escribió: From: "Ard Schrijvers" <[EMAIL PROTECTED]> Date: Tue, 2 May 2006 22:34:50 +0200 Think you can very easily solve your problems with a LocationMapModule (and have the locationmap created dynamically from the number of XML files you need). Look at forrest. Is that Locat

Re: Dynamic configuration of input modules, and the XMLFileModule

2006-05-05 Thread Ellis Pritchard
Hi Andrew, Very nice, the use of the XPathDirectoryGenerator works well in your case. I was really talking about if you wanted to dynamically configure the XMLFileModule *outside* of something like the LinkRewriter, so you could use it directly in the variable expressions in the sitemap, just

Re: Dynamic configuration of input modules, and the XMLFileModule

2006-05-05 Thread Andrew Stevens
From: Ellis Pritchard <[EMAIL PROTECTED]> Date: Fri, 5 May 2006 08:20:46 +0100 Hi, The LinkRewritingTransformer might be your thing, but given that you are using map:redirect, I suspect that it isn't. You could sub-class XMLFileModule to dynamically provide the configuration y

Re: Dynamic configuration of input modules, and the XMLFileModule

2006-05-05 Thread Ellis Pritchard
Hi, The LinkRewritingTransformer might be your thing, but given that you are using map:redirect, I suspect that it isn't. You could sub-class XMLFileModule to dynamically provide the configuration you need via modeConf (LinkRewritingTransformer provides the configuration this way).

RE: Dynamic configuration of input modules, and the XMLFileModule

2006-05-03 Thread Ard Schrijvers
atter, is > > > it possible to include these within a pipeline matcher, > and use any > > > available sitemap variables in the configured values? > > > > > > My suspicion is the "dynamic" configuration isn't as dynamic > > > as I ne

RE: Dynamic configuration of input modules, and the XMLFileModule

2006-05-03 Thread Andrew Stevens
suspicion is the "dynamic" configuration isn't as dynamic > as I need. I > have a number of XML files (using the same DTD) and need to > extract a value > from one of them to pass into a map:redirect-to (which file > to use being > supplied as part of the request).

RE: Dynamic configuration of input modules, and the XMLFileModule

2006-05-02 Thread Ard Schrijvers
t of the request). If I was using a single > file, I think I > could handle it with the XMLFileModule; judging from the > URLEncode & decode > input modules' docs, it's okay to nest input module attributes (e.g. > src="http://remote/page?param1={url-encode:

Dynamic configuration of input modules, and the XMLFileModule

2006-05-02 Thread Andrew Stevens
upplied as part of the request). If I was using a single file, I think I could handle it with the XMLFileModule; judging from the URLEncode & decode input modules' docs, it's okay to nest input module attributes (e.g. src="http://remote/page?param1={url-encode:{request-param:p

RE: XMLFileModule reload bug?

2006-04-26 Thread Baller, Heiko
, but I guess you can't have everything... Heiko -Original Message- From: Ralph Goers [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 27. April 2006 05:52 To: users@cocoon.apache.org Subject: Re: XMLFileModule reload bug? I'm in the process of (slowly) creating an alternate

Re: XMLFileModule reload bug?

2006-04-26 Thread Ralph Goers
I'm in the process of (slowly) creating an alternate version of XMLFileModule. Unfortunately, I can't promise a delivery date at this time. See http://issues.apache.org/jira/browse/COCOON-1574 Ralph Baller, Heiko wrote: Hello, I'm having difficulties to get the XMLFil

XMLFileModule reload bug?

2006-04-26 Thread Baller, Heiko
Hello, I'm having difficulties to get the XMLFileModule to work properly. cocoon.xconf : Sitemap.xmap : Just simple reading of a XML File w/o any transformers. So, when "&HTDOCS;/dd/it/admin/ud-browser/servicecatalogue.xml" changes, cocoon://intranet

Re: XMLFileModule

2006-03-24 Thread Jean-Claude Moissinac
t; > Now, I've tried 2 configurations: > > - the first was the cocoon directory pointed by a Tomcat 5 > > configuration; XMLFileModule doesn't work > > - the second was cocoon with jetty and it works. > > > > So, I think I have to find what is missing

Re: XMLFileModule

2006-03-24 Thread Daniele Madama
Hola, you can try to copy all the cocoon's lib/endorsed jar into $TOMCAT_HOME/common/endorsed and restart it. Bye > Thank's > Now, I've tried 2 configurations: > - the first was the cocoon directory pointed by a Tomcat 5 > configuration; XMLFileModule doesn't wor

Re: XMLFileModule

2006-03-24 Thread Jean-Claude Moissinac
Thank's Now, I've tried 2 configurations: - the first was the cocoon directory pointed by a Tomcat 5 configuration; XMLFileModule doesn't work - the second was cocoon with jetty and it works. So, I think I have to find what is missing with Tomcat but I'm not very confort

Re: XMLFileModule

2006-03-24 Thread Daniele Madama
Hola, seems that some libs are missing, are you using embedded jetty in cocoon release? > Hello > > With Cocoon 2.1.8, when I try the XMLFileModule in the page > http://localhost:8282/samples/modules/index.html > I get: > ==Etat HTTP 500

XMLFileModule

2006-03-24 Thread Jean-Claude Moissinac
Hello With Cocoon 2.1.8, when I try the XMLFileModule in the page http://localhost:8282/samples/modules/index.html I get: === Etat HTTP 500 - type Rapport d'exception message description Le serveur a rencontré une erreur interne () qui l'a

Re: XMLFileModule

2005-11-22 Thread Upayavira
Geert Josten wrote: > You will most likely find it in cocoon.xconf, though it might have been > better to put the definition of the myxml input module into the > appropriate sitemap file. > > About choosing the XML file: > What I did just the other day was, make the input module point to > somethi

Re: XMLFileModule

2005-11-22 Thread Geert Josten
the XMLFileModule we find value="{myxml:/forrestconf/@version}"/> which, as stated in the comment, is supposed to be read in the file context://samples/modules/forrestconf.xml But I'm unable to find where is defined the file used by the sitemap and the XMLFileModule module (fo

XMLFileModule

2005-11-22 Thread Jean-Claude Moissinac
In the sample /samples/modules/xml.html about the XMLFileModule we find which, as stated in the comment, is supposed to be read in the file context://samples/modules/forrestconf.xml But I'm unable to find where is defined the file used by the sitemap and the XMLFileModule module (forrescon

RE: XMLFileModule for a dynamic file.

2005-07-07 Thread Martijn C. Vos
[mailto:[EMAIL PROTECTED] wrote: > I want to extract data with XPath from an XML file whoes > name depends on > request parameters. > The XMLFileModule is statically configured, so the file name > is fixed. > > Please, is it possible without writing my own mo

Re: XMLFileModule for a dynamic file.

2005-06-02 Thread Alexander Berezhnoy
Hi! I've resolved the problem in the following manner: http://mynamespaceuri"/> <... using the {xpathResult} variable ... > The "xpath" action is written by myself. It applies the XPath expression to a file and returns the result into its object model. I think this can

Re: XMLFileModule for a dynamic file.

2005-06-01 Thread Jorg Heymans
Alexander Berezhnoy wrote: > Well, here is the usecase. > The mobile portal supports downloading binary resources for the various > handsets (that's implemented via the reader). > > The resources to be downloaded depend of the handsets' parameterers, which > are stored in xml-file. > To pass the

Re: XMLFileModule for a dynamic file.

2005-06-01 Thread Upayavira
So that's all. Just now I've invented a solution: I can write a serializer instead of a reader and extract all data in xslt's. But that's more ugly, and very sad if the same is impossible with XMLFileModule. Well, all I'd say is, if you can write yourself a serialize

Re: XMLFileModule for a dynamic file.

2005-06-01 Thread Alexander Berezhnoy
I've invented a solution: I can write a serializer instead of a reader and extract all data in xslt's. But that's more ugly, and very sad if the same is impossible with XMLFileModule. Alexander. // - Original Message - From: "Jorg Heymans" <[EMAI

Re: XMLFileModule for a dynamic file.

2005-06-01 Thread Jorg Heymans
Alexander Berezhnoy wrote: > Plain XSLT won't help here. > I need to extract the string and pass it as a param, say, to a reader. > Well, TIMTOWTDI ! Explain your usecase, maybe there is another way to achieve the same result. Jorg

Re: XMLFileModule for a dynamic file.

2005-06-01 Thread Gerald Aichholzer
Hello Alexander, Alexander Berezhnoy wrote: Dear friends, I've been looking for this feature for a week already, nobody and nowhere can't give me a definite answer. I want to extract data with XPath from an XML file whoes name depends on request parameters. The XMLFileModule is

Re: XMLFileModule for a dynamic file.

2005-06-01 Thread Alexander Berezhnoy
t; can't give me a definite answer. > > > > I want to extract data with XPath from an XML file whoes name depends on > > request parameters. > > The XMLFileModule is statically configured, so the file name is fixed. > > > > Why not plain xslt ? > > > >

Re: XMLFileModule for a dynamic file.

2005-06-01 Thread Jorg Heymans
Alexander Berezhnoy wrote: > Dear friends, > I've been looking for this feature for a week already, nobody and nowhere > can't give me a definite answer. > > I want to extract data with XPath from an XML file whoes name depends on > request parameters. >

XMLFileModule for a dynamic file.

2005-06-01 Thread Alexander Berezhnoy
Dear friends, I've been looking for this feature for a week already, nobody and nowhere can't give me a definite answer. I want to extract data with XPath from an XML file whoes name depends on request parameters. The XMLFileModule is statically configured, so the file name is fixed.

Re: XMLFileModule problem [SOLVED]

2004-07-06 Thread Joose Vettenranta
It was a bug and is fixed in CVS. - Joose 6.7.2004 kello 13:39, Stephan Coboos kirjoitti: Seems like that it does not read new settings.. Hmm, seems to be a bug. Please ask this question in the dev group [EMAIL PROTECTED] -- "Always remember that you are unique, just like everyone else!" * http://

Re: XMLFileModule problem

2004-07-06 Thread Stephan Coboos
Joose Vettenranta wrote: Seems like that it does not read new settings.. I changed file line to: then changed content of the config.xml reloaded many times.. -> still reading old values How to refresh those values? Hmm, seems to be a bug. Please ask this question in the dev group [EMAIL PROTECTE

XMLFileModule problem

2004-07-06 Thread Joose Vettenranta
. I put in cocoon.xconf like this: and in sitemap and it's working well =) Thanks, Joose 5.7.2004 kello 19:55, Stephan Coboos kirjoitti: I don't know wether it is what you want, but you can use the PropertiesFileModule or the XMLFileModule to access config datas coming from a

Does the XMLFileModule input module support namespaces?

2004-03-23 Thread Roth, Scott
Does anyone know if the XMLFileModule supports retrieving values from a namespaced XML file? Off of some basic testing that I have done, it doesn't appear to. Perhaps there is a way to configure prefix to namespace mappings in the cocoon.xconf input module definition, so that those prefixe