This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Saxon and HashMap/Hashtable


Are there any other alternative so you can evaluate
the Java and not output it to the result document?

--- Michael Kay <mhkay@iclway.co.uk> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]