How does one go about switching XSLT processors? Is there any good resources that describe the best way to do this?
-----Original Message----- From: Lars Huttar [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 3:20 PM To: users@cocoon.apache.org Subject: Re: Accessing value of contextPath On 8/25/2006 2:16 PM, Schultz, Gary - COMM wrote: > I running Cocoon 2.1.8. > > I'm building a custom 404 page in Cocoon. What I want is for the error > page to display the Request URI to the user. At the moment I can only > access the value of the contextPath when it is used as the value of > the href attribute in a link <a> element. Whenever I try to access the > contextPath in any other way I get nothing. > > Here is code that works, I get the request URI from the contextPath: > > <a href="{$contextPath}">link</a> > > The following does not work, I would get an empty p element: > > <p><xsl:value-of select="$contextPath"/></p> > > So I just have a general question, Can the contextPath value be used > in any way other than the href attribute, and if so, how? > > Gary T. Schultz > IT Administrator > Wisconsin Dept. of Commerce > 608-266-1283 > [EMAIL PROTECTED] That's strange. Any variable, regardless of where its value came from, should be just as accessible via <xsl:value-of select="$contextPath"/> as via href="{$contextPath}". Can you show us more of your stylesheet? Presumably you're getting the context path from the request input module in the sitemap and passing it in to the stylesheet as a parameter? You might also try switching XSLT processors (e.g. from Xalan to Saxon) and see if you get an illuminating error message or if the problem goes away. Lars --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]