Thomas Popp | 2 Jul 14:25 2015
Picon

eXist breaks line in mixed content nodes

Hi.

eXist seems to add linebreaks between following xml-tags in 
mixed-content-nodes, I assume for pretty printing and indentation.
For example when I save:
...
<node>
Lorem ipsum dolor sit amet, consectetur adipisici 
<highlighted>elit</highlighted><delection>, sed eiusmod tempor incidunt ut 
labore</deletion> et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi 
consequat. Quis aute iure reprehenderit in
<node>
...
in eXide and then reopen the file, I get:
...
<node>
Lorem ipsum dolor sit amet, consectetur adipisici 
<highlighted>elit</highlighted>

         <delection>, sed eiusmod tempor incidunt ut labore<deletion> et 
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure 
reprehenderit in
<node>
...
This is a problem since the new linebreak is considered a whitespace, for 
example in oXygenXML.
I already changed in the conf.xml:
   for indexer: preserve-whitespace-mixed-content="yes"
(Continue reading)

Adam Law | 28 Jun 06:54 2015

Re: PDFBox Merge

Hi Adam,
I bought the book a while ago - it's very good thanks.  
Many thanks too for the guidance - I have a think about the best way to go about writing an extension. 
Cheers
Adam

-----Original Message-----
From: Adam Retter [mailto:adam <at> exist-db.org] 
Sent: Sunday, 28 June 2015 5:33 AM
To: adamlaw <at> adamlaw.email
Cc: exist-open <at> lists.sourceforge.net
Subject: Re: [Exist-open] [DELIVER]PDFBox Merge

Hi Adam,

I think it would be perfectly reasonable to contribute a PDFBox module. We already have modules for working
with Apache Tika for example which will do content extraction from PDF and also Apache FOP which allows you
to create PDFs.

I am afraid that I don't have the time to do this on your behalf as it would most likely be a few days work,
however if you are interested you could look at two places for further information:

1) The eXist book from O'Reilly has a section that tells you how to write your own extension modules for eXist
in Java. These modules expose themselves as a set of XQuery functions, see the sub-section "Internal
XQuery Library Modules" in Chapter 16: "Advanced Topics".

2) There are many extension modules that ship with eXist, you can find the source code to study in the
extensions/modules folder of your eXist installation.

On 26 June 2015 at 15:14, Adam Law <adamlaw <at> adamlaw.email> wrote:
(Continue reading)

peter winstanley | 30 Jun 16:26 2015

Re: stanford ner 0.4

I needed to download and install externally rather than use the package manager ...

> -----Original Message-----
> From: wolfgang <at> exist-db.org
> Sent: Tue, 30 Jun 2015 16:02:55 +0200
> To: p.w <at> inbox.com
> Subject: Re: [Exist-open] stanford ner 0.4
> 
>> I have installed version 0.4 of the Stanford ner and when running the
>> first example on the home page get:
>> 
>> org.exist.xquery.XQueryContext.getDocumentBuilder()Lorg/exist/dom/memtree/MemTreeBuilder;
> 
> If you are running eXist 2.2, you should install version 0.3 of the
> stanford ner library. Version 0.4 has been compiled for eXist develop and
> is not compatible with 2.2.
> 
> I wonder why you did get version 0.4? You should only see 0.3 on 2.2.
> Have you updated the dashboard recently?
> 
> Wolfgang

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
(Continue reading)

peter winstanley | 30 Jun 15:57 2015

stanford ner 0.4

hi list
I have installed version 0.4 of the Stanford ner and when running the first example on the home page get:

org.exist.xquery.XQueryContext.getDocumentBuilder()Lorg/exist/dom/memtree/MemTreeBuilder;

Ideas?

Peter

____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/password-manager

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
Christophe Geiser | 30 Jun 14:58 2015

getting function name and arity of current function

Hi all,

I am wondering if there is a way to get the function name, arity, signature or function item of the function being currently executed?

something like :

declare function local:signature($arg) { let $name := inspect:function-name() (: would return "local:signature" as xs:string :) let $arity := inspect:function-arity() (: would return 1 as xs:integer :) let $signature :=inspect:function-signature() (: would return "local:signature#1" as xs:string :) let $function := inspect:function-item() (: would return local:signature#1 as function :) return () };

Thanks and wishing the best to the list,
C.

--



Christophe Geiser
Founder of e-smile

e-smile.org

Never give up on a dream just because of the time it will take to accomplish it. The time will pass anyway.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Roy Walter | 30 Jun 10:05 2015
Picon

Wildcard searching

What's the best way to handle this.

let $department := xs:string(request:get-parameter('organisation', '.', false()))

return collection("/db/slackwire")//content[ft:query(., $qor)][root(.)//data[ <at> sortdate gt $datefrom]][root(.)//data[ <at> sortdate lt $dateto]][//department[matches(., $department)]]

I'm building a query string from a request and $department could be a string value or it could be 'anything', i.e., a wildcard. I could have multiple variants of the query string, e.g., omitting the department element if no value is supplied. To me, though, it is cleaner to have a single query string and manipulate the elements.

Using matches() works, i.e., if no value is supplied use regex '.'.

Is there a better/quicker way?

Thanks,
Roy



------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Christian Schwaderer | 30 Jun 09:18 2015
Picon

kwic: matches for truncated search terms

Dear all,

in Lucene, it's possible to truncate/do wildcard search with ? and *.

However, I expierence problems with wildcard searches in kwic. While 

 let $results := $search_document//xhtml:div[ft:query(.,$search_term)]
 for $current_result in $results
 return kwic:expand($current_result)

works perfectly fine for "normal" search terms without * or ?, it doesn't work anymore if wildcard search
termes are used. The divs in question are found, but the matches inside are not wrapped in
exist:match-tags. Accordingly, kwic:get-matches doesn't get any match if a search term with ? or * is used.

Perhaps kwic:truncate-following and kwic:truncate-previous would help here. But honestly, I don't get
from the docs what these functions do and what parameters they expect.

Thanks for any help and best regards,
Christian
 		 	   		  
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
Chris Tomlinson | 29 Jun 20:15 2015
Picon

(Remote)UserManagementService addAccount vs getAccount

FWIW,

I’ve checked Javadocs and don’t see any mention that on the one hand addAccount() is not
case-sensitive while on the other getAccount() is case-sensitive. 

This means that if one uses getAccount() to determine if there is already an account with a given userName
and there is an account differing only in case - sam vs Sam, e.g. - then an exception is thrown during
addAccount() even though getAccount() suggests that addAccount() should be able to succeed.

Chris

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
W.S. Hager | 29 Jun 14:39 2015
Picon

sudden error when opening apps collection

Hi,

Since a restart I get an error when I try to open the apps collection. This log I get from the java client:
Failed to invoke method getSubCollectionPermissions in class org.exist.xmlrpc.RpcConnection: null

I don't know what could have caused this. I do know that I set a setGID flag on a xquery module.

Thanks.
Wouter

--

W.S. Hager
Lagua Web Solutions
http://lagua.nl

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
W.S. Hager | 29 Jun 14:31 2015
Picon

configuring SSL

Hi,

What's the up-to-date documentation on how to configure SSL?

Thanks.
Wouter

--

W.S. Hager
Lagua Web Solutions
http://lagua.nl

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
John Preimonas | 29 Jun 09:11 2015
Picon

Template usage/syntax

Hi,
I am now delving into the realms of Tempting. So, can you please help me to understand the syntax for templates?

I am trying to put in a condition so that I get either a no results message or results from a query, e.g. 

<table class="app:unions">
<thead>
		<td>Spouse </td>
		<td>Partner </td>
		<td>When </td>
		<td>Where </td>
		<td>Offspring </td>
</thead>
<tbody>
    <tr class="templates:if-parameter-unset?param=unions" >
        <td>No Marriage data available</td>
    </tr>
	<tr class="templates:each?from=unions&amp;to=union">
		<td class="app:print-maleCode"></td>
		<td class="app:print-femaleCode"></td>
		<td class="app:print-marriageDate"></td>
		<td class="app:print-marriagePlace"></td>
		<td class="app:print-offspring"></td>
	</tr>
</tbody>

</table>

where: app:unions =

declare
	%templates:wrap
	%templates:default("idCode", "BURTONJF")
function app:unions($node as node(), $model as map(*), $idCode as xs:string) as map(*) {
map { "unions" := collection('/db/apps/sandpit' || "/data/unions")/marriage[maleCode = $idCode or
femaleCode = $idCode] }
};

Unfortunately, I get both the No Marriage message as well as the results of the Unions search. From my
reading of the documentation, if “unions” is not set or empty that I would get the No Marriage message,
and if there were results in “unions” that this template condition would not be activated.
What am I missing?

As a suggestion, perhaps you could provide some further examples in Templates documentation to make the
usage and syntax a bit clearer (for us newbies to eXist)

Cheers,
John
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane