Re: [basex-talk] Extracting a single attributes value

2019-07-03 Thread Hans-Juergen Rennau
Hi Jordan, without looking more closely, I suppose the problem is that you incidentally put a slash in front of predicates, e.g.    packagedElement/[@xmi:id=$currID]/ownedAttribute... while you probably wanted to say    packagedElement[@xmi:id=$currID]/ownedAttribute... Apart from not expressin

[basex-talk] Extracting a single attributes value

2019-07-03 Thread Jordan Castillo
Hello BaseX Staff, I am trying to finish building a map of data I have been working on and am nearly complete, but am stuck on trying to retrieve an elements value, which should just be a single integer in string format. The function doing the work: declare function local:propGenerator($propList,

Re: [basex-talk] Adding a file to DB with automatically updated index disables attribute index

2019-07-03 Thread France Baril
Yes, we do. On Mon, Jul 1, 2019 at 5:13 PM Christian Grün wrote: > Do you have UPDINDEX enabled in your project? See [1] for more information. > > Best, > Christian > > [1] http://docs.basex.org/wiki/Options#UPDINDEX > > > > On Mon, Jul 1, 2019 at 4:52 PM France Baril > wrote: > > > > Hi, > > >

Re: [basex-talk] XQuery: Subsequence of a sequence

2019-07-03 Thread Christian Grün
Hi Jordan, I’m glad to hear you solved the problem. Just a minor observation: > let $attributes := $begin//*[@xmi:id=$id]/ownedAttribute/[@name | > @xmi:type | @xmi:id] This query will create an XQuery array for each ownedAttribute element (with 3 attributes inside). You could additionally