Re: Determining the host OS

2009-01-20 Thread Stephen Winnall
There is a module called SystemPropertyModule which appears to do what you want. Just ask it for os.name. Steve On 20 Jan 2009, at 01:09, Martin Holmes wrote: HI folks, I'm trying to write a Cocoon-2.1-based application which I want to be completely portable between Tomcats running on

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
HI Steve, Do you know how to call this in a sitemap? If I pass this into an XSLT transformation: map:parameter name=osName value={system-property:os.name} / the parameter is empty. Cheers, Martin Stephen Winnall wrote: There is a module called SystemPropertyModule which appears to do what

Re: Determining the host OS

2009-01-20 Thread Andy Stevens
2009/1/20 Martin Holmes mhol...@uvic.ca: HI Steve, Do you know how to call this in a sitemap? If I pass this into an XSLT transformation: map:parameter name=osName value={system-property:os.name} / the parameter is empty. That looks reasonable to me. I assume you've got the input module

RE: Determining the host OS

2009-01-20 Thread Robin Rigby
...@ger.gmane.org] On Behalf Of Martin Holmes Sent: 20 January 2009 16:49 To: users@cocoon.apache.org Subject: Re: Determining the host OS HI Steve, Do you know how to call this in a sitemap? If I pass this into an XSLT transformation: map:parameter name=osName value={system-property:os.name

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
My mistake here: I'd added it to one matcher, but I was looking for it in the output of another one. It works just fine! Thanks indeed. Cheers, Martin Andy Stevens wrote: 2009/1/20 Martin Holmes mhol...@uvic.ca: HI Steve, Do you know how to call this in a sitemap? If I pass this into an

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
] On Behalf Of Martin Holmes Sent: 20 January 2009 16:49 To: users@cocoon.apache.org Subject: Re: Determining the host OS HI Steve, Do you know how to call this in a sitemap? If I pass this into an XSLT transformation: map:parameter name=osName value={system-property:os.name} / the parameter is empty