Resolving sources relative to webapp context

2003-07-08 Thread Andreas Hartmann
Hi Cocoon users, I'm instantiating a custom component inside an action. In this component, I want to resolve a path to a source: resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE); source = resolver.resolveURI(configurationDirectoryPath); This way, the source is resolved

Re: Resolving sources relative to webapp context

2003-07-08 Thread Andreas Hartmann
Andreas Hartmann wrote: Is it possible to get the source relative to the webapp context? I found out that I can use the context:// protocol in cocoon.xconf. This solves my problem. Andreas - To unsubscribe, e-mail: [EMAIL

Re: SourceResolver in Serializer

2003-07-16 Thread Andreas Hartmann
Irving Salisbury III wrote: Any chance I can get a handle to a SourceResolver from inside a Serializer? I am using cocoon-2.0.4. Implementing Serviceable and asking the ServiceManager for a SourceResolver should probably work (I don't know if it has to be Composable/ComponentManager in 2.0.4).

Re: Matching cocoon protocol requests

2003-07-17 Thread Andreas Hartmann
Geoff Howard wrote: Andreas Hartmann wrote: Hi list, is there a matcher that matches only cocoon:// requests or can be configured to do so? Or is there a reliable way to distinguish internal from external requests when implementing such a matcher? That's what Internal Only pipelines

Re: Matching cocoon protocol requests

2003-07-17 Thread Andreas Hartmann
Geoff Howard wrote: Andreas Hartmann wrote: Hi list, is there a matcher that matches only cocoon:// requests or can be configured to do so? Or is there a reliable way to distinguish internal from external requests when implementing such a matcher? That's what Internal Only pipelines

Re: html templates - best practise

2003-10-03 Thread Andreas Hartmann
Andreas Bohnert wrote: Hi, i read a lot of tutorials and docs about cocoon and i really like it, but I still don't know, what's the best practise to handle html templates. [...] Maybe these pages could be interesting for you: http://www.cocooncenter.org/articles/stylefree.html

Re: html templates - best practise

2003-10-03 Thread Andreas Hartmann
Derek Hohls wrote: This is all true; but a stylesheet is still a stylesheet, and it seems that the original poster wanted to be able to use something very close to template-type HTML so that the page desigers would not have to do anything related to XML and XSL... maybe XHTML and include

Re: [HELP]Could not setup pipeline in subsitemap

2003-10-05 Thread Andreas Hartmann
Marc Fasel wrote: [...] map:generate source=content/hello.xml/ map:transform source=style/page2html.xsl/ The attribute name should be src. I guess the SourceResolver tries to resolve an empty URL string and produces the error. Andreas

JenaException (encountered EOF)

2003-10-10 Thread Andreas Hartmann
Hi Cocoon users, since we upgraded Lenya to Cocoon 2.1.2, during Tomcat startup a lot of the JenaExceptions are thrown (you find a part of the stack trace below). What could this mean? Thanks, Andreas -

Re: multiple XML file input

2003-10-10 Thread Andreas Hartmann
Horsfield, Peter A. wrote: I didn't actually convert XML into SVG but we did this: Pipeline 1Pipeline 2 ==== SVG Drawing Good/Bad XML Data | |

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Bertrand Delacretaz wrote: Le Mardi, 14 oct 2003, à 13:34 Europe/Zurich, Jon Evans a écrit : ...I can use a directory generator to give me a list of images, but I don't know how to transform that list in order to select one of them at random. The easiest thing that comes to mind is an XSLT

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Andreas Hartmann wrote: Bertrand Delacretaz wrote: Le Mardi, 14 oct 2003, à 13:34 Europe/Zurich, Jon Evans a écrit : ...I can use a directory generator to give me a list of images, but I don't know how to transform that list in order to select one of them at random. [...] What about

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Upayavira wrote: Andreas Hartmann wrote: The min and max random number values would be configured in cocoon.xconf. That's the problem then, how do you keep track of a variable number of images? OK, this is a problem. No it's not. You just define the input module as many times as you need

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Upayavira wrote: Andreas Hartmann wrote: [...] Yes, but I think it should be possible to select the max number dynamically, depending on the number of images that are located in the directory. Fair enough. Surely it shouldn't be hard to extend the random input module to be able to handle

FileGenerator adds XHTML namespace?

2003-10-15 Thread Andreas Hartmann
Hi Cocoon users, I just noticed an interesting behaviour of the FileGenerator: It transforms the source file ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; html ... /html into

ExceptionSelector Problem: class hides its subclass

2003-10-21 Thread Andreas Hartmann
Hi Cocoon users, I have the following problem when configuring the ExceptionSelector: Class 'org.apache.cocoon.ProcessingException' hides its subclass 'org.apache.cocoon.ResourceNotFoundException' The declaration looks like: map:selector logger=sitemap.selector.exception name=exception

[Solution] Re: ExceptionSelector Problem: class hides its subclass

2003-10-22 Thread Andreas Hartmann
Andreas Hartmann wrote: Hi Cocoon users, I have the following problem when configuring the ExceptionSelector: [...] The DocumentDoesNotExistException can appear as the cause of either the ProcessingException or the ResourceNotFoundException. How can I change the configuration so that both

Using the context:// protocol in ExcaliburTest

2003-11-04 Thread Andreas Hartmann
Hi Cocoon community, I want to test some components with an ExcaliburTest subclass. Resolving a source using the context:// protocol does not work - the returned source is not valid. What can I do to solve this problem? Thanks in advance! -- Andreas

Re: Homepage-Devlopment

2003-11-06 Thread Andreas Hartmann
Dr. med. Elieser Rosenberg wrote: Do You now some Cocoon-users in Switzerland or near regions? In Zurich, there are Giacomo Pati and Massimo Sonego from Otego (http://www.otego.com) and some people from Wyona (http://www.wyona.com) including Michael Wechner (the founder of the Lenya Project) and

Re: trying to generate the SRC attribute of map:transform element b ased on XML returned by generator.

2003-11-06 Thread Andreas Hartmann
Igor Galperin wrote: Hi! I am trying to dynamically create the URL which will be set as a value of SRC attribute of map:transform element. The dynamic parts of the URL are some of the elements of XML returned by generator. May be somebody knows the way how to retrieve the elements of XML

Re: trying to generate the SRC attribute of map:transform element b ased on XML returned by generator.

2003-11-07 Thread Andreas Hartmann
Justin Fagnani-Bell wrote: Only actions can set sitemap parameters, which is how you would set the src attribute. If you can write a simple action that will create your URL and place it in the sitemap parameters then you should try that. I don't know another way to do it. I've never used

Re: Insert an image

2003-12-01 Thread Andreas Hartmann
Josep Riudavets wrote: Hi all ... How can I do for inserting an image into an XSL stylesheet??? Could you be more specific here? Inserting the img element is one of the most basic XSLT tasks ... What is the problem? -- Andreas

Re: Relative Path Grist (An FAQ I'm sure.)

2003-12-08 Thread Andreas Hartmann
Alain Javier Guarnieri del Gesu wrote: Sorry to bother you with this but... Is there an InputModule that will give me the path I need to to find the root of the cocoon context? (If BaseLink is what I need, then the documentation for BaseLink is not very helpful.) I've got a site map that has a

[Flowscript] Obtaining servlet context directory

2003-12-10 Thread Andreas Hartmann
Hi Cocoon users, I'm looking for an easy way to obtain the directory of the servlet context in a flowscript. Is there any reason why context.getRealPath() in FOM_Cocoon is not (yet?) implemented? By now I'm doing var sourceResolver = cocoon.getComponent(

Re: [Flowscript] Obtaining servlet context directory

2003-12-10 Thread Andreas Hartmann
directory. -- Andreas - Original Message - From: Peter Velychko [EMAIL PROTECTED] To: Andreas Hartmann [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 11:49 PM Subject: Re: [Flowscript] Obtaining servlet context directory Hi, Excuse me I don't know about better way. But my question

Re: Question about my Transformer

2004-01-29 Thread Andreas Hartmann
Jorg Heymans wrote: Is there any particular reason why you want to implement this as a transformer? A stylesheet seems to be easier in this case IMHO. I talked to Han some days ago, this transformer is just an example to get started. If you extend abstractdomtransformer you have access to the

Re: Question about my Transformer

2004-01-30 Thread Andreas Hartmann
Bruno Dumon wrote: [...] If you extend abstractdomtransformer you have access to the Document instance, but i don't know if that makes your problem any easier. This is a good idea. It would make it easier, Actually, I think it would make it a lot harder. Yes, as far as this example is

Re: A notebook for Cocoon development

2004-02-03 Thread Andreas Hartmann
mirko wrote: Hi, I just need a notebook that will be sufficient to make my work in Cocoon (besides of my primary desktop computer) when I'm outside (spring is comming :) ). Will a PIII 500, 128MB notebook be OK for this? If you don't persist on a PC - here are some Cocoon-Devs discussing their

Re: Using different transformers

2004-02-06 Thread Andreas Hartmann
Polymorphic wrote: Hi all, I am a new user of Cocoon and planning to migrate a couple of sites. I read the book Cocoon Developers handbook, look through the wiki and mailing list archives but was unable to find a solution to what I am attempting - sorry if it's something that I have missed. I

[Flow] Releasing components

2004-02-21 Thread Andreas Hartmann
Hi Cocoon community, I just took a look at the cron block sample. It obtains a component: cocoon.getComponent(Packages.org.apache.cocoon.components.cron.JobScheduler.ROLE); but I can't find the place where it is released. Is this done automatically now? Thanks in advance! -- Andreas

Re: Map return type in action

2004-02-21 Thread Andreas Hartmann
Anna Bikkina wrote: Hi, I just a need a gory detail I am not able to find. When I write my own action file and its returns a map. How can I use the map in my xsp which gets executed when my action is succesful. Something like getParamter etc... can someone please write the syntax to get the

build.webapp.loglevel does not affect block categories

2004-02-24 Thread Andreas Hartmann
Hi Cocoon community, it seems that the log level set in build.webapp.loglevel does not apply to custom block categories. E.g., in the cron block, the log level is hard-coded: ?xml version=1.0? xlog xpath=/logkit/categories unless=[EMAIL PROTECTED]'cron'] category log-level=INFO

Re: build.webapp.loglevel does not affect block categories

2004-02-25 Thread Andreas Hartmann
Joerg Heinicke wrote: [...] Have you tried replacing INFO with @loglevel@ as in main logkit.xconf. Does this work or is the value not replaced? I just tried it, it is not replaced. The filter seems to be applied before logkit.xconf is patched. I think this an enhancement bug, isn't it? --

Re: [Flow] How to know the called uri in flow?

2004-02-27 Thread Andreas Hartmann
Antonio Gallardo wrote: Hi: Is this a way to retrieve the called URI in Flowscript? If yes, how? :-D AFAIK this is not possible. You can use a helper class to get the request object from the FOM_Cocoon object and ask it for its URL. But this is not enabled in FOM intentionally. -- Andreas

[Flow] Input modules in view pipeline

2004-04-08 Thread Andreas Hartmann
Hi Cocoon users, [Setup: Cocoon 2.1.5-dev from CVS] I'm using an input module (page-envelope) in a pipeline of a flowscript view: map:match pattern=form-select.xml ... map:transform src=lenya/xslt/common/submit-select.xsl map:parameter name=use-request-parameters value=true/

Re: Select with xPath Expression

2004-04-14 Thread Andreas Hartmann
Nils Köster wrote: How could it spell in other ways??? lt; -- Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: XSP: cinclude and map:parameters problem

2004-04-21 Thread Andreas Hartmann
olivier demah wrote: [...] So i thought ; i had to do something to pass parameters from xsp to xsp because i call news.xsp with cinclude. This does not work. Your compiled XSP is executed _before_ the CInclude transformation, so including another XSP is not possible this way. -- Andreas

Re: OutOfMemoryError

2004-04-30 Thread Andreas Hartmann
Johnson wrote: Hi! I'm trying to build the latest cocoon (cocoon-2.1_20040428041256.tar.gz), my computer has 756MB RAM,and the system is winXP,j2sdk1.4.2-04 when the build go to cocoon-block-serializers-compile,after prompt compiling 95 source files to dest the error happended The

Re: OutOfMemoryError

2004-04-30 Thread Andreas Hartmann
Andreas Hartmann wrote: Johnson wrote: Hi! I'm trying to build the latest cocoon (cocoon-2.1_20040428041256.tar.gz), my computer has 756MB RAM,and the system is winXP,j2sdk1.4.2-04 when the build go to cocoon-block-serializers-compile,after prompt compiling 95 source files to dest

Re: IE does not reload updated javascript

2004-05-19 Thread Andreas Hartmann
Johannes Textor wrote: Hi Andreas, I guess you can enforce script reloading by appending a random get parameter to the script URL, i.e. script src=myscript.js?p={timestamp}/ or something like that. (I know that's ugly brute force ...) Thanks! But I noticed that the actual problem was that IE

Re: [Flowscript] Obtaining servlet context directory

2004-05-21 Thread Andreas Hartmann
David Leangen wrote: Is anybody able to tell me how to get the context path from flowscript? I noticed some threads on the subject, but wasn't able to find any answers... For example: http://marc.theaimsgroup.com/?t=10710482681r=1w=2 I'd like to be able to access a file from within my webapp,

Re: [GetTogether] Madrid, 21/22.06.04, Spain

2004-06-07 Thread Andreas Hartmann
Thorsten Scherler wrote: Hello everyone, we finally have a room for the GetTogether. We will have a Meeting about cocoon and lenya in Madrid, Spain. It will last 2 days: 21/22.06.04. We have 15 places with computer in total. 6 places are already taken so 9 are still aviable. Note: We are trying to

input:param causes exception

2004-06-18 Thread Andreas Hartmann
Hi Cocoon community, what's wrong with this XSP snippet? input:get-attribute input:param name=namefoo/input:param input:param name=modulelist/input:param /input:get-attribute It causes a ProcessingException in ServerPagesGenerator.setup(). - It seems like the stylesheet

Re: input:param causes exception

2004-06-18 Thread Andreas Hartmann
Andreas Hartmann wrote: Hi Cocoon community, what's wrong with this XSP snippet? input:get-attribute input:param name=namefoo/input:param input:param name=modulelist/input:param /input:get-attribute It causes a ProcessingException in ServerPagesGenerator.setup(). BTW, applying the input.xsl

Re: input:param causes exception

2004-06-18 Thread Andreas Hartmann
Klaus Bertram wrote: Hi Andreas, is the namespace for input: at the xsp:page ? xmlns:input=http://whatever; This would have pointed me to the solution (duplicate namespace declaration). But I already found it (see my other reply). Thanks a lot! -- Andreas

[Solution] Re: input:param causes exception

2004-06-18 Thread Andreas Hartmann
Andreas Hartmann wrote: Hi Cocoon community, what's wrong with this XSP snippet? input:get-attribute input:param name=namefoo/input:param input:param name=modulelist/input:param /input:get-attribute It causes a ProcessingException in ServerPagesGenerator.setup(). The logicsheet contained

Re: [Solution] Re: input:param causes exception

2004-06-18 Thread Andreas Hartmann
Klaus Bertram wrote: Ups, I thought that the declaration for a logic sheet must only match to the cocoon.xconf could it be that xsp-input was in ver 2.04 and now only input is valid If this is true, it is very strange ... IMO there shouldn't be any restrictions/rules regarding the namespace

Re: cocooncenter.org problem?

2004-07-12 Thread Andreas Hartmann
Brent Johnson wrote: I was browsing around looking into Lenya a little and they list a site cocooncenter.org in the live sites. When I visit that site I get the following error: Unfortunately I had to delete a lot of files (quota exceeded) and accidentially some importent ones were among them :(

Re: Parameters between Action and XSP

2004-07-20 Thread Andreas Hartmann
Carlos Duque wrote: Hello, I'm developing a application under cocoon. My question is to mark a best practices in my work. How I pass parameters between Action and XSP? Which are the best option? I know: -session -request.setParameter It's possible with Map returned? with response? I would

Re: Parameters between Action and XSP

2004-07-20 Thread Andreas Hartmann
!! Carles -Mensaje original- *De:* news en nombre de Andreas Hartmann *Enviado el:* mar 20/07/2004 15:56 *Para:* [EMAIL PROTECTED] *CC:* *Asunto:* Re: Parameters between Action and XSP Carlos Duque wrote: Hello, I'm developing a application under cocoon. My

Re: Returned action map in XSP

2004-07-20 Thread Andreas Hartmann
Oscar Picasso wrote: Hi, Is there a way to get, inside an XSP page, the returned map from an action ? I know that we can pass the individual map elements as parameters, but I would like to have a more generic XSP page that would process the entire map, no matter what are its actual elements. I

Re: Parameters between Action and XSP

2004-07-20 Thread Andreas Hartmann
dynamically from the database ... -- Andreas Thanks... -Mensaje original- *De:* news en nombre de Andreas Hartmann *Enviado el:* mar 20/07/2004 16:52 *Para:* [EMAIL PROTECTED] *CC:* *Asunto:* Re: Parameters between Action and XSP Carlos Duque wrote

Re: Returned action map in XSP

2004-07-20 Thread Andreas Hartmann
Oscar Picasso wrote: Hi, Is there a way to get, inside an XSP page, the returned map from an action ? I know that we can pass the individual map elements as parameters, but I would like to have a more generic XSP page that would process the entire map, no matter what are its actual elements. I

Re: forward to another servlet (on another machine)

2004-07-23 Thread Andreas Hartmann
Gunter D'Hondt wrote: Hi, I've got the following situation: if the user requests http://webserver/getpdf/1 then I need to call a webservice on http://appserver/pdfServlet?id=1. This webservice doesn't send XML back but directly the PDF-document. I can ofcoz easily do this: map:match

Re: JSR 170

2004-08-24 Thread Andreas Hartmann
Ralph Goers wrote: I need to support basic retrieval (and I suppose possibly update) from content management systems into web pages. It looks like JSR 170 is the obvious way to implement this. As of yet, I don't see anything in Cocoon to support this. I'm just getting started in looking at

Re: SourceWritingTransformer Problem

2004-08-25 Thread Andreas Hartmann
JACOB, ERIC wrote: Hi, It seems that I cannot use the SourceWritingTransformer to write document that is in use by the pipeline. I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Could

Re: DateInputModule, multiple formats

2004-09-03 Thread Andreas Hartmann
Huber, Daniel wrote: Hi there, I'd like to use different date formats with the org.apache.cocoon.components.modules.inputDateInputModule. There have been some requests on this topic in this list, but no real answers. As i saw in the source code, the name of the parameter is hard-coded. It must be

Re: Link: Project: CocoonGallery

2004-09-25 Thread Andreas Hartmann
Peter Gerstbach wrote: Hi, CocoonGallery is a Cocoon based photogallery mainly written in XSLT. It makes it possible to publish images easily by just dropping them in a folder, thumbnails are generated on the fly. The software is still beta, but it produces quite usefull results. I would

Re: Problems with xsl:document()-function

2004-09-26 Thread Andreas Hartmann
Katrin Schoenherr wrote: Hi, i tried to get the document()-function to work. Here is a sample: xsl:value-of select=document('grundlagen.xml') / I tried everything The path is correct. Is the grundlagen.xml in the same path as the XSLT stylesheet? The XML-File too. Does Cocoon support this

Re: Problems with xsl:document()-function

2004-09-26 Thread Andreas Hartmann
Katrin Schoenherr wrote: Hi, i tried to get the document()-function to work. Here is a sample: xsl:value-of select=document('grundlagen.xml') / I tried everything The path is correct. The XML-File too. Does Cocoon support this function? There is no error-message. But the file isn't

Re: Problems with xsl:document()-function

2004-09-26 Thread Andreas Hartmann
Jean-Claude Moissinac wrote: Question: is the XSLT engine used by Cocoon supporting the documentt() function? Yes, Cocoon's default XSLT processor (Xalan's XSLTC) supports it. -- Andreas - To unsubscribe, e-mail: [EMAIL

Re: Problems with xsl:document()-function

2004-09-26 Thread Andreas Hartmann
Joerg Heinicke wrote: On 26.09.2004 09:14, Andreas Hartmann wrote: Are you aware that xsl:value-of returns the string-value of the specified node? I'm not sure if the string-value of a document node is defined. It is. You might try xsl:value-of select=document('grundlagen.xml

Re: Problems with xsl:document()-function

2004-09-26 Thread Andreas Hartmann
Katrin Schoenherr wrote: hi, thanks for your answers. Unfortunality nothing has changed. No errors in the log-Files. I tried a other file, but the same problem. snip comment=looks good/ Maybe you'd like to put the files (sitemap, xml, xsl) online as a zip to download? Then I'll give it a try on my

Re: SVG serializer problem

2004-10-11 Thread Andreas Hartmann
- Original Message - From: Andreas Hartmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 10, 2004 17:34 Subject: Re: SVG serializer problem Anna Afonchenko wrote: I use IE6. Do you think that might be the problem? Maybe ... :) I can just give you these hints: - make sure the **.htm

Re: xsp: defining a recursive methode which produces xml elements in

2004-10-15 Thread Andreas Hartmann
Andreas Doms wrote: I need to define a recursive methode which produces nested xml tags. xsp:logic private void produced(...){ a produced(...); /a } /xsp:logic this gives the error xspAttr cannot be resolved because the xspAttr is not known the gerated methode. Any concept to solve

Re: Xalan behaviour in cocoon

2004-10-01 Thread Andreas Hartmann
David Verdin wrote: Hi, I stayed silent some time because I just found something usable for my purpose. Wanted to wait until it work to inform you. Unfortunately, I'm confronted to a strange problem. I use an XSLT transformation. Whan I run this transformation in Xalan, It produce a document

Re: How to write request parameter into session attribute in sitemap ?

2004-10-01 Thread Andreas Hartmann
Willy Reinhardt wrote: Hi, I get a request with a parameter like ../visu?valdoc=100.01 I would copy the value into a session attribute this during sitemap proccess. I am looking for something like: map:match pattern=visu map:match type=request-parameter pattern=valdoc map:act type=session

XHTML and Entities: apos; fails in IE

2004-10-05 Thread Andreas Hartmann
Hi Cocoon community, I wonder if there is a solution for this problem by now - searching the list only revealed questions, no solutions :( I'm using UTF-8 encoding with the o.a.c.components.serializers.XHTMLSerializer. Special characters seem to be encoded as entity references by default (e.g., '

Re: XHTML and Entities: apos; fails in IE

2004-10-05 Thread Andreas Hartmann
[EMAIL PROTECTED] wrote: Andreas Hartmann wrote: [...] Just type ' instead of apos; and save using utf-8. Thanks, but the source XML already contains a '. If I use the XMLSerializer, it is displayed as '. Only the XHTMLSerializer changes it to apos; -- Andreas

Re: XHTML and Entities: apos; fails in IE

2004-10-05 Thread Andreas Hartmann
[EMAIL PROTECTED] wrote: Andreas Hartmann wrote: [...] Andreas, I can't reproduce your problem. Strange ... seems to be a known issue. Regardless if I have apos; or ' both XHTML serializer and HTML serializer produce ' as output. What is your pipeline's configuration of both serializers? I'm

Re: XHTML and Entities: apos; fails in IE

2004-10-05 Thread Andreas Hartmann
Colin Paul Adams wrote: Andreas == Andreas Hartmann [EMAIL PROTECTED] writes: Andreas [EMAIL PROTECTED] wrote: Andreas Hartmann wrote: Andreas [...] Just type ' instead of apos; and save using utf-8. Andreas Thanks, but the source XML already contains a '. Andreas If I

Re: XHTML and Entities: apos; fails in IE

2004-10-05 Thread Andreas Hartmann
[EMAIL PROTECTED] wrote: Andreas Hartmann wrote: I'm using only the XHTML serializer: Andreas, you didn't check the http response headers' charset value, did you? I'm sure you have a charset mismatch. To ensure that the page is sent with the correct charset=utf-8 header, you'd better fix

Re: XHTML and Entities: apos; fails in IE

2004-10-05 Thread Andreas Hartmann
[EMAIL PROTECTED] wrote: Andreas Hartmann wrote: The encoding is recognized as UTF-8, so this is not the problem. This works fine with the new Serializer. Sorry for misunderstanding. No problem :) The problem is that IE doesn't expand the apos; entity (all UTF-8 characters and other entites

Re: XHTML and Entities: apos; fails in IE

2004-10-05 Thread Andreas Hartmann
[EMAIL PROTECTED] wrote: Andreas Hartmann wrote: [...] Did you try numerical entities like #39;? That would actually help. The problem is that everything is converted by the XHTMLSerializer: apos; - apos; #39; - apos; ' - apos; I guess it really requires a patch to make it configurable

Re: empty attribute string using xslt with request parameters

2004-10-06 Thread Andreas Hartmann
John Small Berries wrote: Having a problem getting this to work. This works and my output document has a form with action=blah. To get this, in xslt I have a template like so: xsl:template match=[EMAIL PROTECTED]'redisplay'] form method=post name=theform action=blah xsl:apply-templates/

Re: empty attribute string using xslt with request parameters

2004-10-06 Thread Andreas Hartmann
John Small Berries wrote: On Wed, 06 Oct 2004 11:42:00 +0200, Andreas Hartmann [EMAIL PROTECTED] wrote: John Small Berries wrote: [...] xsl:param name=contId select='blah'/ to see if the error happens on passing the parameter? When I try to do what you suggest above, the output is still form

[Forms, JDO, PostgreSQL] Saving to bean requires transaction

2004-11-26 Thread Andreas Hartmann
Hi Cocooners, I'm using the Forms with JDO and a PostgreSQL database. Basically I'm doing the same stuff like in the JDO example (at least I think so ...) Problem: When the binding tries to set a field of the bean, the JDO- enhanced bean object complains that no transaction is active

[Solved ]Re: [Forms, JDO, PostgreSQL] Saving to bean requires transaction

2004-11-26 Thread Andreas Hartmann
Andreas Hartmann wrote: Hi Cocooners, I'm using the Forms with JDO and a PostgreSQL database. Basically I'm doing the same stuff like in the JDO example (at least I think so ...) Problem: When the binding tries to set a field of the bean, the JDO- enhanced bean object complains that no transaction

CForms: Validate fd:datatype base=date

2005-01-26 Thread Andreas Hartmann
Hi Cocooners, I would like to validate date fields in a Cocoon form. My field definition looks as follows: fd:field id=von fd:labelVon/fd:label fd:datatype base=date fd:convertor type=formatting fd:patterns

Re: loops in XSP

2005-02-01 Thread Andreas Hartmann
[EMAIL PROTECTED] wrote: Well, you maybe right... Sometimes i get confused of when i should use the xsp:content tag... I think only when you want to write a tag with a xsp:expr in between, is that right? You use it to denote that you want a text snippet to be generated as XML, not compiled as

TextSerializer and UTF-8

2005-03-10 Thread Andreas Hartmann
Hi Cocoon community, when I use the text serializer with UTF-8 encoding, Internet Explorer does not recognize the encoding and screws up the umlauts. With the XML serializers from the serializers block, the problem does not appear. Is there any workaround for the text serializer? Setting the

Re: TextSerializer and UTF-8

2005-03-11 Thread Andreas Hartmann
=utf8-text src=org.apache.cocoon.serialization.TextSerializer encodingUTF-8/encoding /map:serializer Yes, I'm using this configuration, but unfortunately it doesn't change anything. Thanks for your help! -- Andreas Cheers, Geert Andreas Hartmann wrote: Hi Cocoon community, when I use

Re: TextSerializer and UTF-8

2005-03-11 Thread Andreas Hartmann
Gregor J. Rothfuss wrote: Andreas Hartmann wrote: Hi Cocoon community, when I use the text serializer with UTF-8 encoding, Internet Explorer does not recognize the encoding and screws up the umlauts. With the XML serializers from the serializers block, the problem does not appear. Is there any

Re: TextSerializer and UTF-8

2005-03-11 Thread Andreas Hartmann
Geert Josten wrote: map:serializer logger=sitemap.serializer.utf8-text mime-type=text/plain name=utf8-text src=org.apache.cocoon.serialization.TextSerializer encodingUTF-8/encoding /map:serializer Yes, I'm using this configuration, but unfortunately it doesn't change

Re: TextSerializer and UTF-8

2005-03-11 Thread Andreas Hartmann
Andreas Hartmann wrote: Geert Josten wrote: [...] I guess I'd need a TextSerializer based on the EncodingSerializer. I implemented it, seems to work fine. -- Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Cron + HSQLDB: Unexpected token: in statement [SELECT 1]

2005-03-15 Thread Andreas Hartmann
Hi all, I'm trying to run the cron block with the TX job store and the built-in HSQL DB. My configurations: store delegate=org.quartz.impl.jdbcjobstore.HSQLDBDelegate type=tx datasource provider=excaliburLenyaScheduler/datasource /store datasources jdbc logger=core.datasources.lenya.scheduler

[Solved] Re: Cron + HSQLDB: Unexpected token: in statement [SELECT 1]

2005-03-15 Thread Andreas Hartmann
Andreas Hartmann wrote: Hi all, I'm trying to run the cron block with the TX job store and the built-in HSQL DB. My configurations: store delegate=org.quartz.impl.jdbcjobstore.HSQLDBDelegate type=tx datasource provider=excaliburLenyaScheduler/datasource /store datasources jdbc logger

Order of declarations in cocoon.xconf important?

2005-03-15 Thread Andreas Hartmann
Hi all, I noticed that the order of component declarations in cocoon.xconf affects the startup behaviour. When I use a JDBC job store for the scheduler, the datasource has to be declared before the scheduler component, otherwise I end up with a connection refused error. Is this by design, i.e. is

cocoon-ehcache-1.data becomes very large

2006-07-13 Thread Andreas Hartmann
? Thanks in advance! -- Andreas -- Andreas Hartmann Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED] [EMAIL PROTECTED

Re: cocoon-ehcache-1.data becomes very large

2006-07-13 Thread Andreas Hartmann
Bertrand Delacretaz wrote: On 7/13/06, Andreas Hartmann [EMAIL PROTECTED] wrote: ...Can we configure a maximum cache file size?... I don't have a precise reply to your questions, but here's the config that I use to limit the number of cached entries, it might help. Thanks a lot

Re: cocoon-ehcache-1.data becomes very large

2006-07-13 Thread Andreas Hartmann
Ard Schrijvers wrote: On 7/13/06, Andreas Hartmann [EMAIL PROTECTED] wrote: ...parameter name=overflow-to-disk value=false/ Is there a special reason why this is set to false?... It's because in that case we only want a short-term cache. There are more parameters which might help

Un-Escaping XML in transformer

2007-05-10 Thread Andreas Hartmann
the resulting string and generate SAX events without too much effort. I tried StringXMLizable and XMLByteStreamInterpreter, but ran into problems because contentHandler.startElement() is called or the prolog is not correct. What's the best way to do this? TIA for any pointers! -- Andreas -- Andreas

Re: Un-Escaping XML in transformer

2007-05-10 Thread Andreas Hartmann
Grzegorz Kossakowski schrieb: Andreas Hartmann pisze: Hi Cocooners, I have a SAX stream containing fragments of escaped XML, e.g. p this is a lt;a href=...gt;linklt;/agt; /p and want to convert the characters into SAX events: p this is a a href=...link/a /p I collect and assemble

[Announce] Apache Lenya 2.0 released

2008-01-09 Thread Andreas Hartmann
Apache Lenya 2.0 released = The Apache Lenya development community is very proud to announce the 2.0 release of Apache Lenya. Apache Lenya is an Open Source Java/XML Content Management System and comes with revision control, site management, scheduling, search,

Re: problem with document() function

2008-06-11 Thread Andreas Hartmann
the tree in memory. Heather -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tags in the value of an XSLT variable?

2008-06-30 Thread Andreas Hartmann
. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41

Problems with mod_cache + ResourceReader + status code 304

2008-08-12 Thread Andreas Hartmann
that the problem is the 304 response which lacks the Content-Length header (which is correct wrt the spec IIRC). Do I have to modify the pipeline implementation to avoid sending a 304 response? Any hints how to solve this issue would be greatly appreciated! TIA, -- Andreas -- Andreas Hartmann

[SOLVED] Problems with mod_cache + ResourceReader + status code 304

2008-08-12 Thread Andreas Hartmann
Andreas Hartmann schrieb: Hi Cocooners, I'm trying to get mod_cache to work with Cocoon 2.1.6. Serving HTML files works fine (after overriding the Serializer to set the Content-Length header). There's a problem with Readers, though. All requests are passed through to Cocoon and not cached

Re: esql:get-string bug?

2008-08-18 Thread Andreas Hartmann
/ and it works when i use esql:get-ascii column=doc_typ /. when i check with esql:get-column-type-name column=1 / it says it's of type VARCHAR2. so my question is .. VARCHAR2 is not of type string? kind regards, sascha -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818

Re: [Announce] Apache Lenya 2.0.2 released

2008-09-01 Thread Andreas Hartmann
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

  1   2   >