Re: [basex-talk] XSLT caching

2017-02-05 Thread Tom De Herdt
Hi Christian, I'm not a Java programmer, but Eric Burke: "Java and XSLT" (O'reilly, 2001) has a chapter on stylesheet compilation and caching using JAXP, with actual code: see section 5.4.2. "A Stylesheet Cache". (I found the text online. Not sure about the legal status, so I won't post links

Re: [basex-talk] Improper use? Potential bug?

2017-02-05 Thread Christian Grün
Hi Rob, Your queries are not equivalent. The hof:id function simply returns its argument (see [1]). In your example, it returns a function with two arguments ($v1,$2v), which is then passed on to local:exists and bound to $exec. Later on, $exec is evaluated with a single argument, so this cannot w

Re: [basex-talk] Suitability

2017-02-05 Thread Christian Grün
Hi Srirama, > 3. One more question, does Basex works well in Microsoft IIS server and dot > net environment? BaseX is a Java application. As such, it works on all platforms that provide a Java runtime environment. You could check out [1] to see how Java servlet apps can be deployed on IIS. Apart

Re: [basex-talk] Improper use? Potential bug?

2017-02-05 Thread Rob Stapper
a) I've reduced it to its essence. b) I would expect both versions behave the same. Thus: ( 1,2) as result -Oorspronkelijk bericht- Van: Christian Grün [mailto:christian.gr...@gmail.com] Verzonden: zondag 5 februari 2017 14:57 Aan: Rob Stapper CC: BaseX Onderwerp: Re: [basex-talk] Imprope

Re: [basex-talk] Suitability

2017-02-05 Thread Srirama V
Chris, Nice to hear from you. Here is my answer. 1. You indicated that the day’s work will be archived, so this means you don’t want to have terabytes of XML data available at the same time, right? We have not yet decided, we could use BaseX for archiving too. 2. There is no built-in “audit l

Re: [basex-talk] XSLT caching

2017-02-05 Thread Christian Grün
Hi Tom, You are right. xslt:transform() does nothing else than sending stylesheets to the registered XSLT processor (which is usually Xalan or Saxon). The XQFO 3.1 spec [1] will provide an fn:transform function that provides a "cache" option. As the definition of this function is very Saxon-speci

Re: [basex-talk] Improper use? Potential bug?

2017-02-05 Thread Christian Grün
> Shouldn't this work? I don’t think so. What result would you expect? Your query does quite a lot, and I can only guess what you think of it. Please reduce it further and tell us a) what you think goes wrong and b) which result you would expect. > -Oorspronkelijk bericht- > Van: Chris

Re: [basex-talk] Improper use? Potential bug?

2017-02-05 Thread Rob Stapper
Hi Christian, While stripping down my program I tumbled over an issue with the use hof:id-function. See attachment: "test hofID.xq". Shouldn't this work? I don't know if of how it is related to the error-message but it could has something to do with it. Rob -Oorspronkelijk bericht- Va