Altova Mailing List Archives

[xsl] Re: alternative for modes

From: "Dimitre Novatchev" <dnovatchev@--------->
Date: 2/12/2004 4:58:00 AM
"Peter Billen" <peter@xxxxxxxxxxx> wrote in message
> Indeed, that's what I wanted, something like 'function pointers' in C/C++
> programming.
> I might be looking into Dimitre's FXSL, but I can't use it in this
> situation, since it's a school exercise

What do you mean exactly here? I would not call "a school exercise" a tool
that gives much more power and makes possible and easy solutions to problems
that are considered difficult to implement without this tool. One such case,
where FXSL is especially appropriate is the problem described by you..

>  and I have to use standard XSLT
> specifications (no extensions allowed).

The only extension function used by FXSL (for XSLT 1.0) is exslt:node-set().

FXSL is portable across a multitude of XSLT processors as all they implement
EXSLT. On my computer I am running a multitude of single-version FXSL
applications with:


  Saxon 6.5.3

  Xalan 2.4.1

  XalanC 1.5




> So there is nothing else possible than some crap of if-conditions, to
> 'simulate' several modes in one template/function?

Everything is possible, even not to use the right tool that is there...


Dimitre Novatchev
FXSL developer, -- the home of FXSL

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.