RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Sonny Sukumar
PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Pass sitemap params to xslt transformer? Date: Sat, 11 Oct 2003 12:55:20 -0700 Ok, I can't get the map:parameter value to work in the XSL. I keep getting a ResourceNotFoundException. I even tried hardcoding the map:parameter value

RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Sonny Sukumar
PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Pass sitemap params to xslt transformer? Date: Sun, 12 Oct 2003 14:42:36 +1300 Sonny, you need: cinclude:include src={$centerPage}/ Note the curly brackets! This is an Attribute Value Template. If you miss the { } then $centerPage

RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Conal Tuohy
To: [EMAIL PROTECTED] Subject: RE: Pass sitemap params to xslt transformer? Hi Con, Thank you very much for your suggestions. I implemented both suggestions and now I get: cinclude:include xmlns:cinclude=http://apache.org/cocoon/include/1.0; src=/ Here's my stylesheet: ?xml

RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Sonny Sukumar
From: Conal Tuohy [EMAIL PROTECTED] Sonny Sukumar wrote: Now here's the more general thing I'd like to do... The XML doc I'm transforming has a tag like this: rp:content replace-with=navigationMenu/ and, using my XSL stylesheet, I want to transform it to this: cinclude:include

RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Conal Tuohy
You can't do nested attribute values in XSLT. It seems to me you should just use: xsl:template match=rp:[EMAIL PROTECTED]'navigationMenu'] cinclude:include src={$navigationMenu}/ /xsl:template Ahh darn. It seems ironic that a recursive language like XSLT doesn't support nesting

RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Sonny Sukumar
From: Conal Tuohy [EMAIL PROTECTED] You can't do nested attribute values in XSLT. It seems to me you should just use: xsl:template match=rp:[EMAIL PROTECTED]'navigationMenu'] cinclude:include src={$navigationMenu}/ /xsl:template Ahh darn. It seems ironic that a recursive

RE: Pass sitemap params to xslt transformer?

2003-10-08 Thread Sonny Sukumar
From: Horsfield, Peter A. [EMAIL PROTECTED] Absolutely: map:transform type=xslt map:parameter name=paramName value={1} / /map:transform Then, in your XSLT file at the top level (under stylesheet) xsl:param name=paramName value=defaultvalue / I've had problems

Re: Pass sitemap params to xslt transformer?

2003-10-08 Thread Sonny Sukumar
From: Tony Collen [EMAIL PROTECTED] Sonny Sukumar wrote: Is there any way to pass *sitemap* parameters to the xslt transformer (TraxTransformer)? I know there's a use-request-parameters option to use request parameters, but that's not what I want to do. I want to at least be able to pass in

Re: Pass sitemap params to xslt transformer?

2003-10-08 Thread Tony Collen
Sonny Sukumar wrote: snip; Hmm, did you mean {request:requestURI} ? I did a quick Google search and that's all I found. I know some of these input modules were renamed within the past few months. Well, I was specifically looking at this:

Re: Pass sitemap params to xslt transformer?

2003-10-08 Thread Sonny Sukumar
From: Tony Collen [EMAIL PROTECTED] Sonny Sukumar wrote: Interestingit's not defined in my cocoon.xconf file, and I just upgraded to Cocoon 2.1.2 a couple of days ago when it came out. I know I excluded unstable blocks, etcis it considered unstable? Nope, I don't think so, you'll

RE: Pass sitemap params to xslt transformer?

2003-10-08 Thread Horsfield, Peter A.
/RequestParameterModule.html module, which allows access to the request parameters specifically. -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 4:01 PM To: [EMAIL PROTECTED] Subject: Re: Pass sitemap params to xslt transformer? From: Tony Collen

Re: Pass sitemap params to xslt transformer?

2003-10-08 Thread Tony Collen
Sonny Sukumar wrote: From: Horsfield, Peter A. [EMAIL PROTECTED] Ok you're right; and Tony picked up on the right solution as far as I can see, because you need to target the URI as a whole and embed it inside a document. Thats just the way cinclude works. Yeah, so maybe the requestURI input

RE: Pass sitemap params to xslt transformer?

2003-10-08 Thread Horsfield, Peter A.
, October 08, 2003 5:21 PM To: [EMAIL PROTECTED] Subject: RE: Pass sitemap params to xslt transformer? From: Horsfield, Peter A. [EMAIL PROTECTED] The general technique with Cocoon is to use a matcher to pick up on the URI, and to use wildcards in the matcher to pick up on a range of URIs. You can