4 Aug 2010 19:07
"argument type mismatch" when using fn:replace
Christopher Schultz <chris <at> christopherschultz.net>
2010-08-04 17:07:45 GMT
2010-08-04 17:07:45 GMT
All,
I've been using Cocoon 2.1.11 successfully for quite some time, and I'm
trying to add new capabilities to our product. I'm tripping-up when
trying to use fn:replace with a regular expression.
I'm on Debian Lenny with Debian's package-managed version of Sun JRE
1.6.0_20. I'm pretty sure I haven't messed with any of the libraries
that ship with Cocoon (such as Xalan, etc.), so it should be a pretty
stock install. I've packaged my own webapp rather than using the one
that Cocoon can build for you. I can give details of that process if
necessary.
I tried to use <xsl:analyze-string> which gave me a "cannot use
<xsl:analyze-string> here" error, so I tried changing my <xsl:stylesheet
version="1.0"> to <xsl:stylesheet version="2.0"> which fixed that error,
but didn't give me any output.
At any rate, my current stylesheet header looks like this (with
product-specific xmlns declarations removed for brevity:
<?xml version="1.0" ?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/xpath-functions">
Specifically, my original function call attempt is this (trying to
remove a query parameter form a query string):
(Continue reading)
RSS Feed