RE: [xsl] Saxon and HashMap/Hashtable

Subject: RE: [xsl] Saxon and HashMap/Hashtable
From: William Lam <xeenman@xxxxxxxxx>
Date: Thu, 12 Jul 2001 15:17:48 -0700 (PDT)
Are there any other alternative so you can evaluate
the Java and not output it to the result document?

--- Michael Kay <mhkay@xxxxxxxxxxxx> wrote:
> > If I need to call an Java function that has no
> return
> > value of interest, would this be better?
> >
> > <xsl:if test="Hashtable:put('key', 'value')" />
> >
> > instead of storing the result in a variable?
> 
> Well, you're running the risk there that an XSLT
> processor will decide that
> it doesn't matter whether the test is true or false,
> it's not going to
> output anything anyway, so why bother evaluating it?
> And if it does evaluate
> it, it will probably fail trying to convert a void
> to a boolean...
> 
> The fact of the matter is, XSLT and side-effects
> don't mix very well.
> 
> Mike Kay
> Software AG
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread