[xslt] dilemma
- From: Dan Allen <dallen bsiweb com>
- To: xslt gnome org
- Subject: [xslt] dilemma
- Date: Sun, 28 Apr 2002 13:58:03 -0700
While writing a PHP class for PEAR, a situation arose where I had to
make a cross-parser xsl stylesheet so that people who are using
the sablotron extension could run the stylesheet as well as those
using the domxml xslt functions (libxslt).
In my stylesheet, I use some custom functions. Since sabltron only
supports javascript functions, I had to write functions using the
exslt extension for libxslt and another set for the javascript
extension of sablotron, which worked fine...until...
I tried to combine them. Normally I could so something like this
<func:script implements-prefix="my" language="javascript"><![CDATA[
function foo()
{
}
]]>
<xsl:fallback></xsl:fallback>
</func:script>
<func:function name="my:foo">
<func:result></func:result>
<xsl:fallback></xsl:fallback>
</func:function>
Except one major problem. The namespace for functions in sablotron
is
http://www.exslt.org/functions
and the one for libxslt is
http://exslt.org/functions
Hence, if I have the first, libxslt doesn't recognize the fallback
where it is, and if I have the second vice-versa.
So, I am going to make a statement that could be wrong, but should
sablotron change the namespace to not-include the 'www' or is there
a way around this problem?
Dan
--
It is not enough to succeed.
Others must fail.
-- Gore Vidal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]