|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Programmatically constructing sequences ("a", "b", "c") for XQueryVyacheslav Sedov vyacheslav.sedov at gmail.comMon Aug 10 19:40:08 PDT 2009
too much work to "marry white rose with black toad" :(
i guess exist-db.org is much better solution (xquery-centric) where we
need java only to run eXist and Saxon
for pessimists i can report that we already have working project in
Ministry of Public Utilities based only on eXist & Saxon, something
like Cybersyn-2 :) see http://en.wikipedia.org/wiki/Project_Cybersyn
yep - we fixed some bugs in eXist to reach some of our goals (: trunk
version of eXist was used - we like url rewrite feature :), so our
project able to consume and produce ODF & OOXML-based reports, perform
on-type validation of reports using injection of conditional
formatting rules into Spreadsheets and using Schematron validation on
server side (we use single XML source with our validation rules to
generate document-side and server-side validation logic, and even more
- we produce big amount of dynamic validation rules, based on
historical data for every reporter, and everything work fine. 99% of
problems was related only with OO 3.1 & MS Office 2007 bugs. But many
developers still can`t believe that in most cases here no need for
java or php at all.
XQuery-centric web applications sounds scary but it really better then
living in old-fashioned world of xml-unfriendly languages like java
and php, web *must* be xml - so why use java or php to build web? why
we need to produce street html?
with best wishes,
Slav
On Mon, Aug 10, 2009 at 5:43 PM, Andrew Welch<http://x-query.com/mailman/listinfo/talk> wrote:
> 2009/8/10 Michael Ludwig <http://x-query.com/mailman/listinfo/talk>:
>> I'm reposting a question that I already asked in a similar form on the
>> Berkeley DB XML forum [1].
>>
>> Let's say I have a prepared query like this:
>>
>> collection('import')[//File = $files]
>>
>> Now I would like to be $files a sequence of strings:
>>
>> ('eins','zwei','drei')
>>
>> Does anyone know of a way to achieve this? It might be at the XQuery
>> level or at the Java (or whatever) level.
>>
>> In Java, would you use java.lang.StringBuilder? And then append quotes
>> and commas? Or is there a better, safer way?
>>
>> [1] http://forums.oracle.com/forums/thread.jspa?threadID=940849
>
> Pass in a delimited string and tokenize it?
>
>
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/
>
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk
>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






