[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: When to use conditional constructions?

Subject: Re: When to use conditional constructions?
From: Graydon <graydon@xxxxxxxxx>
Date: Mon, 31 Mar 2014 23:03:20 -0400
Re:  When to use conditional constructions?
On Mon, Mar 31, 2014 at 10:04:14AM -0700, Dimitre Novatchev scripsit:
> 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.

And a great light dawns about why maps are worth another fundamental
type!  (Wasn't seeing what they did that you couldn't do with an XML
structure.)

Thank you; I shall have to try to comprehend that article.

-- Graydon

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.