You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(31) |
Nov
(25) |
Dec
(33) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(48) |
Feb
(62) |
Mar
(22) |
Apr
(29) |
May
(9) |
Jun
(45) |
Jul
(28) |
Aug
(41) |
Sep
(60) |
Oct
(96) |
Nov
(99) |
Dec
(70) |
2003 |
Jan
(98) |
Feb
(159) |
Mar
(164) |
Apr
(150) |
May
(143) |
Jun
(97) |
Jul
(184) |
Aug
(143) |
Sep
(207) |
Oct
(126) |
Nov
(159) |
Dec
(165) |
2004 |
Jan
(131) |
Feb
(229) |
Mar
(220) |
Apr
(212) |
May
(320) |
Jun
(223) |
Jul
(191) |
Aug
(390) |
Sep
(261) |
Oct
(229) |
Nov
(215) |
Dec
(184) |
2005 |
Jan
(221) |
Feb
(312) |
Mar
(336) |
Apr
(273) |
May
(359) |
Jun
(277) |
Jul
(303) |
Aug
(321) |
Sep
(256) |
Oct
(415) |
Nov
(428) |
Dec
(508) |
2006 |
Jan
(585) |
Feb
(419) |
Mar
(496) |
Apr
(296) |
May
(403) |
Jun
(404) |
Jul
(553) |
Aug
(296) |
Sep
(252) |
Oct
(416) |
Nov
(414) |
Dec
(245) |
2007 |
Jan
(354) |
Feb
(422) |
Mar
(389) |
Apr
(298) |
May
(397) |
Jun
(318) |
Jul
(315) |
Aug
(339) |
Sep
(253) |
Oct
(317) |
Nov
(350) |
Dec
(264) |
2008 |
Jan
(353) |
Feb
(313) |
Mar
(433) |
Apr
(383) |
May
(343) |
Jun
(355) |
Jul
(321) |
Aug
(338) |
Sep
(242) |
Oct
(206) |
Nov
(199) |
Dec
(279) |
2009 |
Jan
(327) |
Feb
(221) |
Mar
(280) |
Apr
(278) |
May
(237) |
Jun
(345) |
Jul
(322) |
Aug
(324) |
Sep
(676) |
Oct
(586) |
Nov
(735) |
Dec
(329) |
2010 |
Jan
(619) |
Feb
(424) |
Mar
(529) |
Apr
(241) |
May
(312) |
Jun
(554) |
Jul
(698) |
Aug
(576) |
Sep
(408) |
Oct
(268) |
Nov
(391) |
Dec
(426) |
2011 |
Jan
(629) |
Feb
(512) |
Mar
(465) |
Apr
(467) |
May
(475) |
Jun
(403) |
Jul
(426) |
Aug
(542) |
Sep
(418) |
Oct
(620) |
Nov
(614) |
Dec
(358) |
2012 |
Jan
(357) |
Feb
(466) |
Mar
(344) |
Apr
(215) |
May
(408) |
Jun
(375) |
Jul
(241) |
Aug
(260) |
Sep
(401) |
Oct
(461) |
Nov
(498) |
Dec
(294) |
2013 |
Jan
(453) |
Feb
(447) |
Mar
(434) |
Apr
(326) |
May
(295) |
Jun
(471) |
Jul
(463) |
Aug
(278) |
Sep
(525) |
Oct
(343) |
Nov
(389) |
Dec
(405) |
2014 |
Jan
(564) |
Feb
(324) |
Mar
(319) |
Apr
(319) |
May
(384) |
Jun
(259) |
Jul
(210) |
Aug
(219) |
Sep
(315) |
Oct
(478) |
Nov
(207) |
Dec
(316) |
2015 |
Jan
(222) |
Feb
(234) |
Mar
(201) |
Apr
(145) |
May
(367) |
Jun
(318) |
Jul
(195) |
Aug
(210) |
Sep
(234) |
Oct
(248) |
Nov
(217) |
Dec
(189) |
2016 |
Jan
(219) |
Feb
(177) |
Mar
(110) |
Apr
(91) |
May
(159) |
Jun
(124) |
Jul
(192) |
Aug
(119) |
Sep
(125) |
Oct
(64) |
Nov
(80) |
Dec
(68) |
2017 |
Jan
(156) |
Feb
(312) |
Mar
(386) |
Apr
(217) |
May
(89) |
Jun
(115) |
Jul
(79) |
Aug
(122) |
Sep
(100) |
Oct
(99) |
Nov
(129) |
Dec
(77) |
2018 |
Jan
(106) |
Feb
(78) |
Mar
(160) |
Apr
(73) |
May
(110) |
Jun
(160) |
Jul
(93) |
Aug
(92) |
Sep
(75) |
Oct
(147) |
Nov
(114) |
Dec
(97) |
2019 |
Jan
(141) |
Feb
(78) |
Mar
(158) |
Apr
(60) |
May
(123) |
Jun
(54) |
Jul
(44) |
Aug
(147) |
Sep
(117) |
Oct
(54) |
Nov
(74) |
Dec
(96) |
2020 |
Jan
(113) |
Feb
(125) |
Mar
(142) |
Apr
(57) |
May
(71) |
Jun
(99) |
Jul
(58) |
Aug
(81) |
Sep
(49) |
Oct
(50) |
Nov
(63) |
Dec
(37) |
2021 |
Jan
(37) |
Feb
(45) |
Mar
(39) |
Apr
(18) |
May
(14) |
Jun
(9) |
Jul
(44) |
Aug
(23) |
Sep
(13) |
Oct
(31) |
Nov
(13) |
Dec
(33) |
2022 |
Jan
(17) |
Feb
(8) |
Mar
(32) |
Apr
(7) |
May
(17) |
Jun
(7) |
Jul
(36) |
Aug
(29) |
Sep
(9) |
Oct
(20) |
Nov
(10) |
Dec
(1) |
2023 |
Jan
(30) |
Feb
(37) |
Mar
(23) |
Apr
(1) |
May
(14) |
Jun
(5) |
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
(48) |
Nov
(4) |
Dec
(29) |
2024 |
Jan
(1) |
Feb
|
Mar
(21) |
Apr
(6) |
May
(16) |
Jun
(41) |
Jul
(11) |
Aug
(17) |
Sep
(16) |
Oct
(11) |
Nov
(3) |
Dec
(9) |
2025 |
Jan
(7) |
Feb
(7) |
Mar
(6) |
Apr
(6) |
May
(30) |
Jun
(8) |
Jul
(10) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Christian A. <chr...@ge...> - 2021-02-18 17:13:06
|
Dear all, sorry to disturb you with this question, but I couldn't find anything about this: What XSLT version ist running with eXist-db 5.2.0? We are currently running scripts of XSLT 2.0 which work fine but need to switch to scripts of XSLT 3.0. Will that be possible with eXist 5.2? Kind regards Christian Achter |
From: Alasdair D. <ala...@gm...> - 2021-02-17 21:38:48
|
Hi Andreas, As Wolfgang said, range:match will work.I use them in one of my functions, and it works really well and it is quick. Alasdair On Wed, Feb 17, 2021 at 9:35 PM Wolfgang Meier <wol...@ex...> wrote: > Dear Andreas, > > > Now, reading up on the ("new") range index, the page > https://exist-db.org/exist/apps/doc/newrangeindex says "fn:matches is > currently not supported due to limitations in Lucene's regular expression > handling. If you require fn:matches a lot, consider using the old range > index." Is this still the case? > > Yes, but you could try the special function range:matches instead of > fn:matches and see if it works for you. It supports only a subset, but in > your case, this might be sufficient? > > Best, > > Wolfgang > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Wolfgang M. <wol...@ex...> - 2021-02-17 10:34:25
|
Dear Andreas, > Now, reading up on the ("new") range index, the page https://exist-db.org/exist/apps/doc/newrangeindex says "fn:matches is currently not supported due to limitations in Lucene's regular expression handling. If you require fn:matches a lot, consider using the old range index." Is this still the case? Yes, but you could try the special function range:matches instead of fn:matches and see if it works for you. It supports only a subset, but in your case, this might be sufficient? Best, Wolfgang |
From: Andreas W. <And...@em...> - 2021-02-17 09:02:33
|
Dear all, Is it still the case that the new range index is not recommended to be used with matches() queries? I am currently in the process of speeding up various xquery modules in my database. I have found one function that, according to monex profiling, is not using any index: ```xquery matches(@n, '^[A-Za-z0-9\[\]]+$')) ``` It is meant to check if the @n attribute contains alphanumeric characters only, eventually combined with square brackets. Now, reading up on the ("new") range index, the page https://exist-db.org/exist/apps/doc/newrangeindex says "fn:matches is currently not supported due to limitations in Lucene's regular expression handling. If you require fn:matches a lot, consider using the old range index." Is this still the case? If so, would defining an old range index on the @n attribute mess with more specific new range index definitions that I need in other places, like ```xml <range> <create qname="tei:div"> <field name="tei.div.n" match="@n" type="xs:string"/> <field name="tei.div.type" match="@type" type="xs:string"/> </create> </range> ``` Also, if you suggest defining an old range index, am I right that it would look like this (without being wrapped inside a range element): ```xml <create qname="@n" type="xs:string"/> ``` Thank you for any suggestions, Andreas -- Dr. Andreas Wagner twitter: @anwagnerdreas Project "The School of Salamanca" web: http://salamanca.adwmainz.de Academy of Sciences and Literature, Mainz fon: +49 (0)69/798-32774 and Institute of Philosophy fax: +49 (0)69/798-32794 Goethe University Frankfurt IGF HP 25 / R 2.455 Norbert-Wollheim-Platz 1 60629 Frankfurt am Main |
From: Loren C. <lor...@gm...> - 2021-02-17 00:14:17
|
I am not using CQL. I am trying to comment out it in conf.xml > On Feb 16, 2021, at 6:11 PM, Joe Wicentowski <jo...@gm...> wrote: > > Hi Loren, > > Are you using the CQL module? If not, you can uncomment it from your conf.xml: > > https://github.com/eXist-db/exist/blob/5b4692692ab0bf3642c0b0eb0a07024ec9e5f4df/exist-distribution/src/main/config/conf.xml#L995 <https://github.com/eXist-db/exist/blob/5b4692692ab0bf3642c0b0eb0a07024ec9e5f4df/exist-distribution/src/main/config/conf.xml#L995> > > If you're using it, I notice that there aren't any tests for it in the eXist codebase. Perhaps you would be willing to contribute some tests to prevent regressions? > > https://github.com/eXist-db/exist/search?q=cqlparser <https://github.com/eXist-db/exist/search?q=cqlparser> > > Joe > > > On Tue, Feb 16, 2021 at 3:17 PM Loren Cahlander <lor...@gm... <mailto:lor...@gm...>> wrote: > My client is trying to run exist in a stage environment that is in a Kubernetes image. I do not think that the problem is exist, because it was working before. It is, however giving the following error. > > Exist version 5.2 > > 16 Feb 2021 18:33:16,441 [main] ERROR (Configuration.java [lookupModuleClass]:504) - Module http://exist-db.org/xquery/cqlparser <http://exist-db.org/xquery/cqlparser> could not be initialized due to a missing dependancy (NoClassDefFoundError): org/z3950/zing/cql/CQLParseException > java.lang.NoClassDefFoundError: org/z3950/zing/cql/CQLParseException > at org.exist.xquery.modules.cqlparser.CQLParserModule.<clinit>(CQLParserModule.java:46) ~[exist.uber.jar:5.2.0] > at java.lang.Class.forName0(Native Method) ~[?:?] > at java.lang.Class.forName(Class.java:315) ~[?:?] > at org.exist.util.Configuration.lookupModuleClass(Configuration.java:488) [exist.uber.jar:5.2.0] > at org.exist.util.Configuration.loadModuleClasses(Configuration.java:454) [exist.uber.jar:5.2.0] > at org.exist.util.Configuration.configureXQuery(Configuration.java:390) [exist.uber.jar:5.2.0] > at org.exist.util.Configuration.<init>(Configuration.java:275) [exist.uber.jar:5.2.0] > at org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:56) [exist.uber.jar:5.2.0] > at org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:48) [exist.uber.jar:5.2.0] > at org.exist.jetty.JettyStart.run(JettyStart.java:198) [exist.uber.jar:5.2.0] > at org.exist.jetty.JettyStart.main(JettyStart.java:95) [exist.uber.jar:5.2.0] > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] > at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] > at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] > at org.exist.start.Main.invokeMain(Main.java:118) [exist.uber.jar:5.2.0] > at org.exist.start.Main.runEx(Main.java:248) [exist.uber.jar:5.2.0] > at org.exist.start.Main.run(Main.java:123) [exist.uber.jar:5.2.0] > at org.exist.start.Main.main(Main.java:60) [exist.uber.jar:5.2.0] > Caused by: java.lang.ClassNotFoundException: org.z3950.zing.cql.CQLParseException > at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[?:?] > at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?] > at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?] > ... 19 more > 16 Feb 2021 18:33:16,512 [main] INFO (Configuration.java [configureValidation]:1485) - Add catalog uri file:///exist/etc/webapp//WEB-INF/catalog.xml <> > 16 Feb 2021 18:33:16,513 [main] INFO (GrammarPool.java [<init>]:54) - Initializing GrammarPool. > 16 Feb 2021 18:33:16,515 [main] INFO (JettyStart.java [run]:2 > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... <mailto:Exi...@li...> > https://lists.sourceforge.net/lists/listinfo/exist-open <https://lists.sourceforge.net/lists/listinfo/exist-open> |
From: Joe W. <jo...@gm...> - 2021-02-16 23:12:09
|
Hi Loren, Are you using the CQL module? If not, you can uncomment it from your conf.xml: https://github.com/eXist-db/exist/blob/5b4692692ab0bf3642c0b0eb0a07024ec9e5f4df/exist-distribution/src/main/config/conf.xml#L995 If you're using it, I notice that there aren't any tests for it in the eXist codebase. Perhaps you would be willing to contribute some tests to prevent regressions? https://github.com/eXist-db/exist/search?q=cqlparser Joe On Tue, Feb 16, 2021 at 3:17 PM Loren Cahlander <lor...@gm...> wrote: > My client is trying to run exist in a stage environment that is in a > Kubernetes image. I do not think that the problem is exist, because it was > working before. It is, however giving the following error. > > Exist version 5.2 > > 16 Feb 2021 18:33:16,441 [main] ERROR (Configuration.java > [lookupModuleClass]:504) - Module http://exist-db.org/xquery/cqlparser could > not be initialized due to a missing dependancy (NoClassDefFoundError): > org/z3950/zing/cql/CQLParseException > java.lang.NoClassDefFoundError: org/z3950/zing/cql/CQLParseException > at > org.exist.xquery.modules.cqlparser.CQLParserModule.<clinit>(CQLParserModule.java:46) > ~[exist.uber.jar:5.2.0] > at java.lang.Class.forName0(Native Method) ~[?:?] > at java.lang.Class.forName(Class.java:315) ~[?:?] > at org.exist.util.Configuration.lookupModuleClass(Configuration.java:488) > [exist.uber.jar:5.2.0] > at org.exist.util.Configuration.loadModuleClasses(Configuration.java:454) > [exist.uber.jar:5.2.0] > at org.exist.util.Configuration.configureXQuery(Configuration.java:390) > [exist.uber.jar:5.2.0] > at org.exist.util.Configuration.<init>(Configuration.java:275) > [exist.uber.jar:5.2.0] > at > org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:56) > [exist.uber.jar:5.2.0] > at > org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:48) > [exist.uber.jar:5.2.0] > at org.exist.jetty.JettyStart.run(JettyStart.java:198) > [exist.uber.jar:5.2.0] > at org.exist.jetty.JettyStart.main(JettyStart.java:95) > [exist.uber.jar:5.2.0] > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[?:?] > at > jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[?:?] > at > jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:?] > at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] > at org.exist.start.Main.invokeMain(Main.java:118) [exist.uber.jar:5.2.0] > at org.exist.start.Main.runEx(Main.java:248) [exist.uber.jar:5.2.0] > at org.exist.start.Main.run(Main.java:123) [exist.uber.jar:5.2.0] > at org.exist.start.Main.main(Main.java:60) [exist.uber.jar:5.2.0] > Caused by: java.lang.ClassNotFoundException: > org.z3950.zing.cql.CQLParseException > at > jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > ~[?:?] > at > jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > ~[?:?] > at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?] > ... 19 more > 16 Feb 2021 18:33:16,512 [main] INFO (Configuration.java > [configureValidation]:1485) - Add catalog uri > file:///exist/etc/webapp//WEB-INF/catalog.xml > 16 Feb 2021 18:33:16,513 [main] INFO (GrammarPool.java [<init>]:54) - > Initializing GrammarPool. > 16 Feb 2021 18:33:16,515 [main] INFO (JettyStart.java [run]:2 > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Loren C. <lor...@gm...> - 2021-02-16 20:17:01
|
My client is trying to run exist in a stage environment that is in a Kubernetes image. I do not think that the problem is exist, because it was working before. It is, however giving the following error. Exist version 5.2 16 Feb 2021 18:33:16,441 [main] ERROR (Configuration.java [lookupModuleClass]:504) - Module http://exist-db.org/xquery/cqlparser <http://exist-db.org/xquery/cqlparser> could not be initialized due to a missing dependancy (NoClassDefFoundError): org/z3950/zing/cql/CQLParseException java.lang.NoClassDefFoundError: org/z3950/zing/cql/CQLParseException at org.exist.xquery.modules.cqlparser.CQLParserModule.<clinit>(CQLParserModule.java:46) ~[exist.uber.jar:5.2.0] at java.lang.Class.forName0(Native Method) ~[?:?] at java.lang.Class.forName(Class.java:315) ~[?:?] at org.exist.util.Configuration.lookupModuleClass(Configuration.java:488) [exist.uber.jar:5.2.0] at org.exist.util.Configuration.loadModuleClasses(Configuration.java:454) [exist.uber.jar:5.2.0] at org.exist.util.Configuration.configureXQuery(Configuration.java:390) [exist.uber.jar:5.2.0] at org.exist.util.Configuration.<init>(Configuration.java:275) [exist.uber.jar:5.2.0] at org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:56) [exist.uber.jar:5.2.0] at org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:48) [exist.uber.jar:5.2.0] at org.exist.jetty.JettyStart.run(JettyStart.java:198) [exist.uber.jar:5.2.0] at org.exist.jetty.JettyStart.main(JettyStart.java:95) [exist.uber.jar:5.2.0] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.exist.start.Main.invokeMain(Main.java:118) [exist.uber.jar:5.2.0] at org.exist.start.Main.runEx(Main.java:248) [exist.uber.jar:5.2.0] at org.exist.start.Main.run(Main.java:123) [exist.uber.jar:5.2.0] at org.exist.start.Main.main(Main.java:60) [exist.uber.jar:5.2.0] Caused by: java.lang.ClassNotFoundException: org.z3950.zing.cql.CQLParseException at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[?:?] at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?] ... 19 more 16 Feb 2021 18:33:16,512 [main] INFO (Configuration.java [configureValidation]:1485) - Add catalog uri file:///exist/etc/webapp//WEB-INF/catalog.xml <file:///exist/etc/webapp//WEB-INF/catalog.xml> 16 Feb 2021 18:33:16,513 [main] INFO (GrammarPool.java [<init>]:54) - Initializing GrammarPool. 16 Feb 2021 18:33:16,515 [main] INFO (JettyStart.java [run]:2 |
From: Roy W. <gar...@ya...> - 2021-02-16 15:19:12
|
Hi, How about creating an empty file, copying the contents of one of the problem files to it and then deleting the donor file. Regards,Roy On Tuesday, 16 February 2021, 14:56:01 GMT, Kuukka-Härmä Riina <rii...@fi...> wrote: Hello, Thank you for an answer. I tested the query setting let $id := 11240 And it returned the path to same two XML files as using search with xs:string. BR, Riina From: Michael Westbay <wes...@ja...> Sent: tiistai 16. helmikuuta 2021 14.52 To: Kuukka-Härmä Riina <Rii...@fi...> Cc: Exi...@li... Subject: Re: [Exist-open] Issue with 4.7.1 eXist DB - file Id points to two different collection files Hi Riina, You are setting you $id to an xs:string, not an xs:integer. Comparing strings of integers to integers often causes strange results. Hope this helps. Take care. 2021年2月16日(火) 19:35 Kuukka-Härmä Riina <Rii...@fi...>: Hello, Any ideas that what could be gone wrong are welcomed. We have an issue in eXist 4.7.1 db-installation . Backup is failing for some files, and after investigating, we found that there is Document ID that is pointing two different files in separate collections. Failed to access document data Document ID: 11240 Investigating which file this is with query: xquery version "3.1"; declare function local:find($path, $document-id as xs:integer) as xs:string* { local:find-in-collection($path, (), $document-id) }; declare function local:resource ($collection as xs:string, $resource as xs:string, $document-id as xs:integer) as xs:string? { let $path := $collection || '/' || $resource let $id := util:document-id($path) return if ($id eq $document-id) then ($path) else () }; declare function local:find-in-collection ($collection as xs:string, $sub-collection as xs:string?, $document-id as xs:integer) as xs:string* { let $path := string-join(($collection, $sub-collection), '/') return if (xmldb:collection-available($path)) then ( for-each( xmldb:get-child-collections($path), local:find-in-collection($path, ?, $document-id) ), for-each( xmldb:get-child-resources($path), local:resource($path, ?, $document-id) ) ) else ($path || " not found or insufficient permissions to read") }; let $id := '11240' return local:find('/db/APP', $id) This returns two files: "/db/APP/ORGANIZATION.A/CODE/INTERNAL/PUBLISHED/1603458557855/TOSELEMENTS/customFields.xml" "/db/APP/ORGANIZATION.B/CODE/INTERNAL/PUBLISHED/1611822097512/TOSELEMENTS/strongEsignatureText.xml" Howcome there can be returned two files with same id? How this can be fixed, is there any options than reinstall the database and return the content from backup? Should that fix the fileId:s eventually? What I know, for some problematic files there is used eXist dashboard copy/paste functionality - but not all copy pasted files are having this issue. Best Regards, Riina Kuukka-Härmä _______________________________________________ Exist-open mailing list Exi...@li... https://lists.sourceforge.net/lists/listinfo/exist-open -- Michael Westbay Writer/System Administrator http://www.japanesebaseball.com/ _______________________________________________ Exist-open mailing list Exi...@li... https://lists.sourceforge.net/lists/listinfo/exist-open |
From: Kuukka-Härmä R. <Rii...@fi...> - 2021-02-16 14:54:59
|
Hello, Thank you for an answer. I tested the query setting let $id := 11240 And it returned the path to same two XML files as using search with xs:string. BR, Riina From: Michael Westbay <wes...@ja...> Sent: tiistai 16. helmikuuta 2021 14.52 To: Kuukka-Härmä Riina <Rii...@fi...> Cc: Exi...@li... Subject: Re: [Exist-open] Issue with 4.7.1 eXist DB - file Id points to two different collection files Hi Riina, You are setting you $id to an xs:string, not an xs:integer. Comparing strings of integers to integers often causes strange results. Hope this helps. Take care. 2021年2月16日(火) 19:35 Kuukka-Härmä Riina <Rii...@fi...<mailto:Rii...@fi...>>: Hello, Any ideas that what could be gone wrong are welcomed. We have an issue in eXist 4.7.1 db-installation . Backup is failing for some files, and after investigating, we found that there is Document ID that is pointing two different files in separate collections. Failed to access document data Document ID: 11240 Investigating which file this is with query: xquery version "3.1"; declare function local:find($path, $document-id as xs:integer) as xs:string* { local:find-in-collection($path, (), $document-id) }; declare function local:resource ($collection as xs:string, $resource as xs:string, $document-id as xs:integer) as xs:string? { let $path := $collection || '/' || $resource let $id := util:document-id($path) return if ($id eq $document-id) then ($path) else () }; declare function local:find-in-collection ($collection as xs:string, $sub-collection as xs:string?, $document-id as xs:integer) as xs:string* { let $path := string-join(($collection, $sub-collection), '/') return if (xmldb:collection-available($path)) then ( for-each( xmldb:get-child-collections($path), local:find-in-collection($path, ?, $document-id) ), for-each( xmldb:get-child-resources($path), local:resource($path, ?, $document-id) ) ) else ($path || " not found or insufficient permissions to read") }; let $id := '11240' return local:find('/db/APP', $id) This returns two files: "/db/APP/ORGANIZATION.A/CODE/INTERNAL/PUBLISHED/1603458557855/TOSELEMENTS/customFields.xml" "/db/APP/ORGANIZATION.B/CODE/INTERNAL/PUBLISHED/1611822097512/TOSELEMENTS/strongEsignatureText.xml" Howcome there can be returned two files with same id? How this can be fixed, is there any options than reinstall the database and return the content from backup? Should that fix the fileId:s eventually? What I know, for some problematic files there is used eXist dashboard copy/paste functionality - but not all copy pasted files are having this issue. Best Regards, Riina Kuukka-Härmä _______________________________________________ Exist-open mailing list Exi...@li...<mailto:Exi...@li...> https://lists.sourceforge.net/lists/listinfo/exist-open -- Michael Westbay Writer/System Administrator http://www.japanesebaseball.com/ |
From: Michael W. <wes...@ja...> - 2021-02-16 12:53:02
|
Hi Riina, You are setting you $id to an xs:string, not an xs:integer. Comparing strings of integers to integers often causes strange results. Hope this helps. Take care. 2021年2月16日(火) 19:35 Kuukka-Härmä Riina <Rii...@fi...>: > Hello, > > > > > > Any ideas that what could be gone wrong are welcomed. > > > > We have an issue in eXist 4.7.1 db-installation . Backup is failing for > some files, and after investigating, we found that there is Document ID > that is pointing two different files in separate collections. > > > > Failed to access document data > > Document ID: 11240 > > > > Investigating which file this is with query: > > > > xquery version "3.1"; > > > > declare > > function local:find($path, $document-id as xs:integer) as xs:string* { > > local:find-in-collection($path, (), $document-id) > > }; > > declare > > function local:resource ($collection as xs:string, $resource as xs:string, > $document-id as xs:integer) as xs:string? { > > let $path := $collection || '/' || $resource > > let $id := util:document-id($path) > > return > > if ($id eq $document-id) > > then ($path) > > else () > > }; > > declare > > function local:find-in-collection ($collection as xs:string, > $sub-collection as xs:string?, $document-id as xs:integer) as xs:string* { > > let $path := string-join(($collection, $sub-collection), '/') > > return > > if (xmldb:collection-available($path)) > > then ( > > for-each( > > xmldb:get-child-collections($path), > > local:find-in-collection($path, ?, $document-id) > > ), > > for-each( > > xmldb:get-child-resources($path), > > local:resource($path, ?, $document-id) > > ) > > ) > > else ($path || " not found or insufficient permissions to read") > > }; > > let $id := '11240' > > return local:find('/db/APP', $id) > > > > This returns two files: > > > > > "/db/APP/ORGANIZATION.A/CODE/INTERNAL/PUBLISHED/1603458557855/TOSELEMENTS/customFields.xml" > > > "/db/APP/ORGANIZATION.B/CODE/INTERNAL/PUBLISHED/1611822097512/TOSELEMENTS/strongEsignatureText.xml" > > > > Howcome there can be returned two files with same id? How this can be > fixed, is there any options than reinstall the database and return the > content from backup? Should that fix the fileId:s eventually? > > > > What I know, for some problematic files there is used eXist dashboard > copy/paste functionality - but not all copy pasted files are having this > issue. > > > > Best Regards, Riina Kuukka-Härmä > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Michael Westbay Writer/System Administrator http://www.japanesebaseball.com/ |
From: Kuukka-Härmä R. <Rii...@fi...> - 2021-02-16 10:34:17
|
Hello, Any ideas that what could be gone wrong are welcomed. We have an issue in eXist 4.7.1 db-installation . Backup is failing for some files, and after investigating, we found that there is Document ID that is pointing two different files in separate collections. Failed to access document data Document ID: 11240 Investigating which file this is with query: xquery version "3.1"; declare function local:find($path, $document-id as xs:integer) as xs:string* { local:find-in-collection($path, (), $document-id) }; declare function local:resource ($collection as xs:string, $resource as xs:string, $document-id as xs:integer) as xs:string? { let $path := $collection || '/' || $resource let $id := util:document-id($path) return if ($id eq $document-id) then ($path) else () }; declare function local:find-in-collection ($collection as xs:string, $sub-collection as xs:string?, $document-id as xs:integer) as xs:string* { let $path := string-join(($collection, $sub-collection), '/') return if (xmldb:collection-available($path)) then ( for-each( xmldb:get-child-collections($path), local:find-in-collection($path, ?, $document-id) ), for-each( xmldb:get-child-resources($path), local:resource($path, ?, $document-id) ) ) else ($path || " not found or insufficient permissions to read") }; let $id := '11240' return local:find('/db/APP', $id) This returns two files: "/db/APP/ORGANIZATION.A/CODE/INTERNAL/PUBLISHED/1603458557855/TOSELEMENTS/customFields.xml" "/db/APP/ORGANIZATION.B/CODE/INTERNAL/PUBLISHED/1611822097512/TOSELEMENTS/strongEsignatureText.xml" Howcome there can be returned two files with same id? How this can be fixed, is there any options than reinstall the database and return the content from backup? Should that fix the fileId:s eventually? What I know, for some problematic files there is used eXist dashboard copy/paste functionality - but not all copy pasted files are having this issue. Best Regards, Riina Kuukka-Härmä |
From: Jo C. <Jo....@ha...> - 2021-02-15 14:21:17
|
Hi all, I don't know if others have encountered this problem. I have a minor patch to a package to take it from, say, version 1.7 to version 1.8, stored in XAR files such as package_1.8.xar. If I do, for example, import module namespace repo="http://exist-db.org/xquery/repo" <http://exist-db.org/xquery/repo>; repo:install-and-deploy-from-db("/db/install/package_1.8.xar") the files stored at data/expathrepo/package_1.7 are not removed. I tried undeploying both packages, removing the hierarchies under data/expathrepo/package_1.* and redeploying package_1.8. eXist then fails to restart with an error that the relevant packages cannot be found under data/expathrepo/package_1.7 (i.e. the old version). I located references to the old version in data/expathrepo/.expath-pkg/packages.{txt,xml}. If I delete the reference to the older package from those two files, I can get a clean start of eXist. Is that a safe workaround? System details eXist Version: 5.0.0 eXist Build: 20190902160649 Operating System: Linux 3.10.0-1062.12.1.el7.x86_64 amd64 (Red Hat) Java Version: 1.8.0_242 Default Encoding: UTF8 Best regards, -- Jo |
From: Ihe O. <ihe...@gm...> - 2021-02-13 16:53:29
|
Caused by running virus software so can't pin this one on JSON. On Sat, Feb 13, 2021 at 8:35 AM Ihe Onwuka <ihe...@gm...> wrote: > [image: image.png] > |
From: Ihe O. <ihe...@gm...> - 2021-02-13 13:35:33
|
[image: image.png] |
From: Dale P. <ldp...@gm...> - 2021-02-10 02:40:16
|
Thank you very much, Joe. I was sure I had missed that somewhere. And thanks for the reference to Craig Berry's Perl script. Thanks again. Dale On 2/9/21 9:30 PM, Joe Wicentowski wrote: > Hi Dale, > > The release notes for 5.0.0 list a number of functions that were > removed and replaced, including: > > * |xmldb:get-current-user|, use > |sm:id()//sm:real/sm:username/string()|instead. > > And: > > Craig Berry has kindly provided a Perl script > <https://github.com/craigberry/audit_exist_5x_removals> which you can > run against your XQuery code to audit for most of these changes. > > See > https://exist-db.org/exist/apps/wiki/blogs/eXist/eXistdb500. > > Joe > > > On Tue, Feb 9, 2021 at 8:52 PM Dale Patterson <ldp...@gm... > <mailto:ldp...@gm...>> wrote: > > Within the past two weeks to perhaps a month xmldb:get-current-user() > has stopped working. > > I'm using eXist-db 5.2.0 > OS: Ubuntu 18.04 > 2 TB drive. > > I use the output to appear in a <footer> on the page a staff > person is > working on and in some cases it is used to give a name to a temporary > file. Now, whenever I try to access a page which displays the > current > user's id I get the following error. I am doing this all through > the web > interface. > > +++++++++++++++++++ > > <exception> > <path>/db/apps/archives3/A-File-Name.xql</path> > <message> > err:XPST0017 error found while loading module conf: Error while > loading > module view/catalog-config.xqm: Function xmldb:get-current-user() > is not > defined in module namespace: http://exist-db.org/xquery/xmldb [at > line > 178, column 96] > </message> > </exception> > > +++++++++++++++++++++++++ > > I just installed 5.2.0 and backuped my app from the old 2.2, moved > the > data to a new folder and then reloaded the data into the 5.2.0. That > was about the end of January. I have looked the the list of > functions > for xmldb and for sm, but could not find the function. I'm sure I'm > missing the obvious; but I've been using this function for the > past ten > years. Would like to continue using it. > > Thanks. > > Dale Patterson > > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > <mailto:Exi...@li...> > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- > Sent from my iPhone |
From: Dale P. <ldp...@gm...> - 2021-02-10 02:38:16
|
Thank you very much, Joe. I was sure I had missed that somewhere. And thanks for the reference to Craig Berry's Perl script. Thanks again. Dale On 2/9/21 9:30 PM, Joe Wicentowski wrote: > Hi Dale, > > The release notes for 5.0.0 list a number of functions that were > removed and replaced, including: > > * |xmldb:get-current-user|, use > |sm:id()//sm:real/sm:username/string()|instead. > > And: > > Craig Berry has kindly provided a Perl script > <https://github.com/craigberry/audit_exist_5x_removals> which you can > run against your XQuery code to audit for most of these changes. > > See > https://exist-db.org/exist/apps/wiki/blogs/eXist/eXistdb500. > > Joe > > > On Tue, Feb 9, 2021 at 8:52 PM Dale Patterson <ldp...@gm... > <mailto:ldp...@gm...>> wrote: > > Within the past two weeks to perhaps a month xmldb:get-current-user() > has stopped working. > > I'm using eXist-db 5.2.0 > OS: Ubuntu 18.04 > 2 TB drive. > > I use the output to appear in a <footer> on the page a staff > person is > working on and in some cases it is used to give a name to a temporary > file. Now, whenever I try to access a page which displays the > current > user's id I get the following error. I am doing this all through > the web > interface. > > +++++++++++++++++++ > > <exception> > <path>/db/apps/archives3/A-File-Name.xql</path> > <message> > err:XPST0017 error found while loading module conf: Error while > loading > module view/catalog-config.xqm: Function xmldb:get-current-user() > is not > defined in module namespace: http://exist-db.org/xquery/xmldb [at > line > 178, column 96] > </message> > </exception> > > +++++++++++++++++++++++++ > > I just installed 5.2.0 and backuped my app from the old 2.2, moved > the > data to a new folder and then reloaded the data into the 5.2.0. That > was about the end of January. I have looked the the list of > functions > for xmldb and for sm, but could not find the function. I'm sure I'm > missing the obvious; but I've been using this function for the > past ten > years. Would like to continue using it. > > Thanks. > > Dale Patterson > > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > <mailto:Exi...@li...> > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- > Sent from my iPhone |
From: Joe W. <jo...@gm...> - 2021-02-10 02:31:22
|
Hi Dale, The release notes for 5.0.0 list a number of functions that were removed and replaced, including: - xmldb:get-current-user, use sm:id()//sm:real/sm:username/string() instead. And: Craig Berry has kindly provided a Perl script <https://github.com/craigberry/audit_exist_5x_removals> which you can run against your XQuery code to audit for most of these changes. See https://exist-db.org/exist/apps/wiki/blogs/eXist/eXistdb500. Joe On Tue, Feb 9, 2021 at 8:52 PM Dale Patterson <ldp...@gm...> wrote: > Within the past two weeks to perhaps a month xmldb:get-current-user() > has stopped working. > > I'm using eXist-db 5.2.0 > OS: Ubuntu 18.04 > 2 TB drive. > > I use the output to appear in a <footer> on the page a staff person is > working on and in some cases it is used to give a name to a temporary > file. Now, whenever I try to access a page which displays the current > user's id I get the following error. I am doing this all through the web > interface. > > +++++++++++++++++++ > > <exception> > <path>/db/apps/archives3/A-File-Name.xql</path> > <message> > err:XPST0017 error found while loading module conf: Error while loading > module view/catalog-config.xqm: Function xmldb:get-current-user() is not > defined in module namespace: http://exist-db.org/xquery/xmldb [at line > 178, column 96] > </message> > </exception> > > +++++++++++++++++++++++++ > > I just installed 5.2.0 and backuped my app from the old 2.2, moved the > data to a new folder and then reloaded the data into the 5.2.0. That > was about the end of January. I have looked the the list of functions > for xmldb and for sm, but could not find the function. I'm sure I'm > missing the obvious; but I've been using this function for the past ten > years. Would like to continue using it. > > Thanks. > > Dale Patterson > > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Sent from my iPhone |
From: Dale P. <ldp...@gm...> - 2021-02-10 01:51:24
|
Within the past two weeks to perhaps a month xmldb:get-current-user() has stopped working. I'm using eXist-db 5.2.0 OS: Ubuntu 18.04 2 TB drive. I use the output to appear in a <footer> on the page a staff person is working on and in some cases it is used to give a name to a temporary file. Now, whenever I try to access a page which displays the current user's id I get the following error. I am doing this all through the web interface. +++++++++++++++++++ <exception> <path>/db/apps/archives3/A-File-Name.xql</path> <message> err:XPST0017 error found while loading module conf: Error while loading module view/catalog-config.xqm: Function xmldb:get-current-user() is not defined in module namespace: http://exist-db.org/xquery/xmldb [at line 178, column 96] </message> </exception> +++++++++++++++++++++++++ I just installed 5.2.0 and backuped my app from the old 2.2, moved the data to a new folder and then reloaded the data into the 5.2.0. That was about the end of January. I have looked the the list of functions for xmldb and for sm, but could not find the function. I'm sure I'm missing the obvious; but I've been using this function for the past ten years. Would like to continue using it. Thanks. Dale Patterson |
From: Dai, T. <td...@lo...> - 2021-02-09 15:25:22
|
Hi Everybody, I had asked this question https://sourceforge.net/p/exist/mailman/message/37177206/ and then the holidays happened. I went and looked at my question and didn't fully explain what I'm trying to do. We are are having a searching diacritics issue that I would like wrapped up in automated backup and restore solution. What we are doing currently: On our dev server, we are using the StandardAnalyzer and a homegrown analyzer to index the fields so that we can search with and with out the diacritics for various fields. The content is dumped and restored onto our staging server BUT we lose the ability to search with diacritics. What we would like to happen: We would be able to restore in an automated fashion to the staging server so that the searching can be done with and with the diacritics. What I have thought of: - Can we dump the dev index as part of the backup and restore onto stage? - Can we modify the collections.xconf files so that the content is indexed with both the StandardAnalyzer and the homegrown analyzer during the restore. Doing a google search says no, but maybe you guys have a way around that. - Jean-Paul had recommended just a reindex using xmldb:reindex() but I don't have access to the dashboard due to security reasons, so unless there is an api somewhere in 4.1.0 that is a no-go. - Dannes had eluded to checking the WEB-INF/data for the indexes but I never followed up. What do you think is my best course of action here. Thanks, Tino |
From: Eduard D. <ed...@fr...> - 2021-02-06 08:06:26
|
Well, actually I don't pass a collection, I pass the full xmldb path to a collection as a string. Then I expect the xslt processor to be able to resolve this path when I call collection($path). Could it be that the problem lies with the URIResolver used? Multiple calls to transform looping over the documents in xquery will be too slow. By the way, this is not a big issue for me, but it would be very nice if this works. Perhaps I'll have a look at the transformer code in exist to see why this doesn't work. Thanks for thinking along, Eduard -----Original Message----- From: Jean-Paul Rehr <re...@gm...<mailto:Jean-Paul%20Rehr%20%3cr...@gm...%3e>> To: Joe Wicentowski <jo...@gm...<mailto:Joe%20Wicentowski%20%3cj...@gm...%3e>> Cc: Eduard Drenth <ed...@fr...<mailto:Eduard%20Drenth%20%3ce...@fr...%3e>>, exi...@li... <exi...@li...<mailto:%22e...@li...%22%20%3ce...@li...%3e>> Subject: Re: [Exist-open] transform: Resource ... is a collection Date: Fri, 05 Feb 2021 23:10:45 +0100 Dear Eduard, I use XSL in eXist all the time, but I don't think I've ever tried passing a collection via the transform:transform parameter - only a single document URL. I've since decided against passing them through a URL in the 3rd argument and instead write the XSL inside Xquery and inject the nodes directly into the XSL through a constructor - ie not a parameter argument in transform:transform. To state my process more clearly (I hope!), I use for-loop which calls transform:transform, and passing in the individual document from the collection each iteration of the loop into the XSL. I find it to be much faster than passing an eXist document URL to the parameter and then having Saxon go back into eXist to access the documents. Best, JPR On Fri, Feb 5, 2021 at 8:40 PM Joe Wicentowski <jo...@gm...<mailto:jo...@gm...>> wrote: Hi Eduard, I haven't used XSLT in eXist in ages, but I recall seeing questions about that here on the mailing list and stackoverflow before. See Jean-Paul's answer to a question, along with the link therein to the eXist documentation: https://stackoverflow.com/questions/62023540/document-uri-not-working-in-xslt-when-transform-is-called-from-exist-db I hope this helps. Joe On Fri, Feb 5, 2021 at 2:20 PM Eduard Drenth <ed...@fr...<mailto:ed...@fr...>> wrote: Hi Joe, java -Xmx4096m -cp ~/saxonica10/saxon-he-10.2.jar net.sf.saxon.Transform -xsl:online-dictionaries/jsonDictionary/teiToParallel.xslt -s:test.xml dir=/home/eduard/fhwb/data/ > fhwbparallel.txt 2> fhwbparallel.log I am using exist 5.2 with no chenges at all To me it looks like the collection url xmldb:exist:// cannot be handled.... Bye, Eduard -----Original Message----- From: Joe Wicentowski <jo...@gm...<mailto:Joe%20Wicentowski%20%3cj...@gm...%3e>> To: Eduard Drenth <ed...@fr...<mailto:Eduard%20Drenth%20%3ce...@fr...%3e>> Cc: exi...@li...<mailto:exi...@li...> <exi...@li...<mailto:%22e...@li...%22%20%3ce...@li...%3e>> Subject: Re: [Exist-open] transform: Resource ... is a collection Date: Thu, 04 Feb 2021 14:49:50 -0500 Hi Eduard, When you say the XSLT "works via the command line", which command is it that you use? For the XQuery call to transform:transform, which version of eXist are you using? And I assume you're using the stock version of Saxon included with eXist and haven't replaced it with your own - but if I'm wrong, please specify. Joe On Mon, Feb 1, 2021 at 5:38 AM Eduard Drenth <ed...@fr...<mailto:ed...@fr...>> wrote: Dear all, I have I xslt that works fine from the command line, it processes files in a directory: < xsl:for-each select ="collection($dir)/*" > Now I want to call it from xquery like this: transform : stream-transform ((),$ teidictjson : parallelxslt , < parameters > < param name= "dir" value= "xmldb:exist:// {$ config : data-root } " /> </ parameters >) This however produces an error: Exception while transforming node: I/O error reported by XML parser processing null: Resource /db/apps/teidictjson/data is a collection Tried a lot of things, no luck yet. Any idea's? Greetings, Eduard -- Eduard Drenth, Software Architekt ed...@fr...<mailto:ed...@fr...> Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu<http://frisian.eu> gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder _______________________________________________ Exist-open mailing list Exi...@li...<mailto:Exi...@li...> https://lists.sourceforge.net/lists/listinfo/exist-open -- Eduard Drenth, Software Architekt ed...@fr...<mailto:ed...@fr...> Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu<http://frisian.eu> gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder _______________________________________________ Exist-open mailing list Exi...@li...<mailto:Exi...@li...> https://lists.sourceforge.net/lists/listinfo/exist-open -- Eduard Drenth, Software Architekt ed...@fr...<mailto:ed...@fr...> Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder |
From: Jean-Paul R. <re...@gm...> - 2021-02-05 22:11:14
|
Dear Eduard, I use XSL in eXist all the time, but I don't think I've ever tried passing a collection via the transform:transform parameter - only a single document URL. I've since decided against passing them through a URL in the 3rd argument and instead write the XSL inside Xquery and inject the nodes directly into the XSL through a constructor - ie not a parameter argument in transform:transform. To state my process more clearly (I hope!), I use for-loop which calls transform:transform, and passing in the individual document from the collection each iteration of the loop into the XSL. I find it to be much faster than passing an eXist document URL to the parameter and then having Saxon go back into eXist to access the documents. Best, JPR On Fri, Feb 5, 2021 at 8:40 PM Joe Wicentowski <jo...@gm...> wrote: > Hi Eduard, > > I haven't used XSLT in eXist in ages, but I recall seeing questions about > that here on the mailing list and stackoverflow before. See Jean-Paul's > answer to a question, along with the link therein to the eXist > documentation: > > > https://stackoverflow.com/questions/62023540/document-uri-not-working-in-xslt-when-transform-is-called-from-exist-db > > I hope this helps. > > Joe > > On Fri, Feb 5, 2021 at 2:20 PM Eduard Drenth <ed...@fr...> > wrote: > >> Hi Joe, >> >> java -Xmx4096m -cp ~/saxonica10/saxon-he-10.2.jar >> net.sf.saxon.Transform -xsl:online-dictionaries/jsonDictionary/teiToParallel.xslt >> -s:test.xml dir=/home/eduard/fhwb/data/ > fhwbparallel.txt 2> >> fhwbparallel.log >> >> I am using exist 5.2 with no chenges at all >> >> To me it looks like the collection url xmldb:exist:// cannot be >> handled.... >> >> Bye, Eduard >> >> -----Original Message----- >> *From*: Joe Wicentowski <jo...@gm... >> <Joe%20Wicentowski%20%3cj...@gm...%3e>> >> *To*: Eduard Drenth <ed...@fr... >> <Eduard%20Drenth%20%3ce...@fr...%3e>> >> *Cc*: exi...@li... <exi...@li... >> <%22e...@li...%22%20%3ce...@li...%3e> >> > >> *Subject*: Re: [Exist-open] transform: Resource ... is a collection >> *Date*: Thu, 04 Feb 2021 14:49:50 -0500 >> >> Hi Eduard, >> >> When you say the XSLT "works via the command line", which command is it >> that you use? >> >> For the XQuery call to transform:transform, which version of eXist are >> you using? And I assume you're using the stock version of Saxon included >> with eXist and haven't replaced it with your own - but if I'm wrong, please >> specify. >> >> Joe >> >> On Mon, Feb 1, 2021 at 5:38 AM Eduard Drenth <ed...@fr...> >> wrote: >> >> Dear all, >> >> I have I xslt that works fine from the command line, it processes files >> in a directory: >> >> < >> >> xsl:for-each >> >> select >> >> ="collection($dir)/*" >> >> > >> >> >> >> Now I want to call it from xquery like this: >> >> >> transform >> >> : >> >> stream-transform >> >> ((),$ >> >> teidictjson >> >> : >> >> parallelxslt >> >> , >> >> >> < >> >> parameters >> >> > >> >> >> < >> >> param >> >> name= >> >> "dir" >> >> value= >> >> "xmldb:exist:// >> >> {$ >> >> config >> >> : >> >> data-root >> >> } >> >> " >> >> /> >> >> >> >> </ >> >> parameters >> >> >) >> >> >> >> This however produces an error: >> >> >> Exception while transforming node: I/O error reported by XML parser processing null: Resource /db/apps/teidictjson/data is a collection >> >> >> Tried a lot of things, no luck yet. >> >> >> Any idea's? >> >> >> Greetings, Eduard >> >> >> -- >> >> >> Eduard Drenth, Software Architekt >> >> ed...@fr... >> >> Doelestrjitte 8 >> 8911 DX Ljouwert >> +31 58 234 30 47 >> +31 62 094 34 28 (privé) >> >> skype: eduarddrenth >> https://github.com/eduarddrenth >> frisian.eu >> gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth >> >> >> Op freed bin ik thús/wurkje ik minder >> >> >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> >> -- >> >> Eduard Drenth, Software Architekt >> >> ed...@fr... >> >> Doelestrjitte 8 >> 8911 DX Ljouwert >> +31 58 234 30 47 >> +31 62 094 34 28 (privé) >> >> skype: eduarddrenth >> https://github.com/eduarddrenth >> frisian.eu >> gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth >> >> >> Op freed bin ik thús/wurkje ik minder >> >> >> >> _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Joe W. <jo...@gm...> - 2021-02-05 19:39:39
|
Hi Eduard, I haven't used XSLT in eXist in ages, but I recall seeing questions about that here on the mailing list and stackoverflow before. See Jean-Paul's answer to a question, along with the link therein to the eXist documentation: https://stackoverflow.com/questions/62023540/document-uri-not-working-in-xslt-when-transform-is-called-from-exist-db I hope this helps. Joe On Fri, Feb 5, 2021 at 2:20 PM Eduard Drenth <ed...@fr...> wrote: > Hi Joe, > > java -Xmx4096m -cp ~/saxonica10/saxon-he-10.2.jar > net.sf.saxon.Transform -xsl:online-dictionaries/jsonDictionary/teiToParallel.xslt > -s:test.xml dir=/home/eduard/fhwb/data/ > fhwbparallel.txt 2> > fhwbparallel.log > > I am using exist 5.2 with no chenges at all > > To me it looks like the collection url xmldb:exist:// cannot be handled.... > > Bye, Eduard > > -----Original Message----- > *From*: Joe Wicentowski <jo...@gm... > <Joe%20Wicentowski%20%3cj...@gm...%3e>> > *To*: Eduard Drenth <ed...@fr... > <Eduard%20Drenth%20%3ce...@fr...%3e>> > *Cc*: exi...@li... <exi...@li... > <%22e...@li...%22%20%3ce...@li...%3e> > > > *Subject*: Re: [Exist-open] transform: Resource ... is a collection > *Date*: Thu, 04 Feb 2021 14:49:50 -0500 > > Hi Eduard, > > When you say the XSLT "works via the command line", which command is it > that you use? > > For the XQuery call to transform:transform, which version of eXist are you > using? And I assume you're using the stock version of Saxon included with > eXist and haven't replaced it with your own - but if I'm wrong, please > specify. > > Joe > > On Mon, Feb 1, 2021 at 5:38 AM Eduard Drenth <ed...@fr...> > wrote: > > Dear all, > > I have I xslt that works fine from the command line, it processes files in > a directory: > > < > > xsl:for-each > > select > > ="collection($dir)/*" > > > > > > > Now I want to call it from xquery like this: > > > transform > > : > > stream-transform > > ((),$ > > teidictjson > > : > > parallelxslt > > , > > > < > > parameters > > > > > > < > > param > > name= > > "dir" > > value= > > "xmldb:exist:// > > {$ > > config > > : > > data-root > > } > > " > > /> > > > > </ > > parameters > > >) > > > > This however produces an error: > > > Exception while transforming node: I/O error reported by XML parser processing null: Resource /db/apps/teidictjson/data is a collection > > > Tried a lot of things, no luck yet. > > > Any idea's? > > > Greetings, Eduard > > > -- > > > Eduard Drenth, Software Architekt > > ed...@fr... > > Doelestrjitte 8 > 8911 DX Ljouwert > +31 58 234 30 47 > +31 62 094 34 28 (privé) > > skype: eduarddrenth > https://github.com/eduarddrenth > frisian.eu > gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth > > > Op freed bin ik thús/wurkje ik minder > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- > > Eduard Drenth, Software Architekt > > ed...@fr... > > Doelestrjitte 8 > 8911 DX Ljouwert > +31 58 234 30 47 > +31 62 094 34 28 (privé) > > skype: eduarddrenth > https://github.com/eduarddrenth > frisian.eu > gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth > > > Op freed bin ik thús/wurkje ik minder > > > > |
From: Eduard D. <ed...@fr...> - 2021-02-05 19:20:29
|
Hi Joe, java -Xmx4096m -cp ~/saxonica10/saxon-he-10.2.jar net.sf.saxon.Transform -xsl:online-dictionaries/jsonDictionary/teiToParallel.xslt -s:test.xml dir=/home/eduard/fhwb/data/ > fhwbparallel.txt 2> fhwbparallel.log I am using exist 5.2 with no chenges at all To me it looks like the collection url xmldb:exist:// cannot be handled.... Bye, Eduard -----Original Message----- From: Joe Wicentowski <jo...@gm...<mailto:Joe%20Wicentowski%20%3cj...@gm...%3e>> To: Eduard Drenth <ed...@fr...<mailto:Eduard%20Drenth%20%3ce...@fr...%3e>> Cc: exi...@li... <exi...@li...<mailto:%22e...@li...%22%20%3ce...@li...%3e>> Subject: Re: [Exist-open] transform: Resource ... is a collection Date: Thu, 04 Feb 2021 14:49:50 -0500 Hi Eduard, When you say the XSLT "works via the command line", which command is it that you use? For the XQuery call to transform:transform, which version of eXist are you using? And I assume you're using the stock version of Saxon included with eXist and haven't replaced it with your own - but if I'm wrong, please specify. Joe On Mon, Feb 1, 2021 at 5:38 AM Eduard Drenth <ed...@fr...<mailto:ed...@fr...>> wrote: Dear all, I have I xslt that works fine from the command line, it processes files in a directory: < xsl:for-each select ="collection($dir)/*" > Now I want to call it from xquery like this: transform : stream-transform ((),$ teidictjson : parallelxslt , < parameters > < param name= "dir" value= "xmldb:exist:// {$ config : data-root } " /> </ parameters >) This however produces an error: Exception while transforming node: I/O error reported by XML parser processing null: Resource /db/apps/teidictjson/data is a collection Tried a lot of things, no luck yet. Any idea's? Greetings, Eduard -- Eduard Drenth, Software Architekt ed...@fr...<mailto:ed...@fr...> Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu<http://frisian.eu> gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder _______________________________________________ Exist-open mailing list Exi...@li...<mailto:Exi...@li...> https://lists.sourceforge.net/lists/listinfo/exist-open -- Eduard Drenth, Software Architekt ed...@fr...<mailto:ed...@fr...> Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder |
From: Guillaume M. <gui...@un...> - 2021-02-05 07:06:10
|
Thank you for your responses! In the mean time I restart my jmeter testplan using wildcard. I saw no impact on performance. The code is less expressive but do not require multiple branches or modules to do its job. I should do have a look on facets (and fields!) especially if it works on in memory documents. Best regards, -- Guillaume |
From: Loren C. <lor...@gm...> - 2021-02-04 20:55:54
|
I use the call: let $is-foo := (functx:namespaces-in-use($xml-doc/node()) = "http://www.foo.com/bar") I have a conditional and use a different function module based on one of the namespaces of the document. > On Feb 4, 2021, at 12:08 PM, Joe Wicentowski <jo...@gm...> wrote: > > Hi Guillaume, > > Short of normalizing the data, namespace wildcards are the most general purpose solution for path expressions. > > You can also use the local-name() function, e.g., > > /*[local-name() eq "table"]/*[local-name() eq "tr"]/*[local-name() eq "td"] > > To really be sure you're not inadvertently including other namespaces, you could declare all of the namespaces and explicitly select these in your node tests with the union operator: > > /(v12:table|v13:table|v14:table)/(v12:tr|v13:tr|v14:tr)/(v12:td/v13:td/v14:td) > > It's hard to comment on performance concerns without knowing what kinds of queries you need to run, but you might consider eXist 5's fields and facets as part of your arsenal: you could construct a field with an expression that selects the content you need, and then you could query the field without worrying about which namespace the source came from. (I think.) > > Joe > > On Thu, Feb 4, 2021 at 11:26 AM Guillaume Mella <gui...@un... <mailto:gui...@un...>> wrote: > Hello, > > I have a module which consumes VOTable (table/tr/td with meta data for Astronomy) using a standardised TableAccesProtocol. But depending on the data provider the returned document may get multiple namespaces depending on the version they implement, eg.: > > declare namespace votable="http://www.ivoa.net/xml/VOTable/v1.2" <http://www.ivoa.net/xml/VOTable/v1.2>; (: could be v1.3 v1.4 :) > > Most data part are the same in the various versions and I would like to support it dynamically without branching/duplication/copy. > > I tried with the wildcard namespace using *:tag but didn't investigate to know more about performance issues. > > Is there any best practices, hints or documentation pointers for such use case ? > > > > Cheers, > > -- > Guillaume Mella - Ingénieur CNRS > OSUG UMS832 : http://www.osug.fr <http://www.osug.fr/> - JMMC : http://www.jmmc.fr/~mellag <http://www.jmmc.fr/~mellag> > OSUG-D, 122 rue de la piscine, 38 400 Saint Martin d’Hères, France > ☎ +33 (0)4 76 63 58 22 > _______________________________________________ > Exist-open mailing list > Exi...@li... <mailto:Exi...@li...> > https://lists.sourceforge.net/lists/listinfo/exist-open <https://lists.sourceforge.net/lists/listinfo/exist-open> > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |