Re: [xsl] When to use conditional constructions?

Subject: Re: [xsl] When to use conditional constructions?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 31 Mar 2014 10:04:14 -0700
On Mon, Mar 31, 2014 at 9:40 AM, Graydon <graydon@xxxxxxxxx> wrote:
> Does that give me a way to use the same definition in multiple XPath
> expressions with a definition in one place?  Inline functions are
> anonymous, and any "let $localFunction := function...." I'd expect to
> stay stuck in the context of that particular XPath expression --

 Yes, just have in a separate my.xpath file a map from the names of
the functions to their corresponding function items.

Then in XSLT read the my.xpath file and define a variable that gets
this evaluated, using the <xsl:evaluate> instruction.

Exactly as done in the Balisage paper I quated somewhere at the start
of this thread.

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
To avoid situations in which you might make mistakes may be the
biggest mistake of all
Quality means doing it right when no one is looking.
You've achieved success in your field when you don't know whether what
you're doing is work or play
To achieve the impossible dream, try going to sleep.
Facts do not cease to exist because they are ignored.
Typing monkeys will write all Shakespeare's works in 200yrs.Will they
write all patents, too? :)
I finally figured out the only reason to be alive is to enjoy it.

Current Thread