Re: [basex-talk] BaseX-standard-installation-with-embedded-jetty-- how to deploy other webapp

2018-10-27 Thread Maximilian Gärber
Hello Dieter,

I've just tested 9.1 - and sockets (started with mvn jetty:run),
worked without issues.

All you need is the jetty maven plugin, configured like
https://github.com/BaseXdb/basex/blob/master/basex-api/pom.xml#L107

If you start the BaseXHTTP class, it starts Jetty from code but also
tries to load the WEB-INF/web.xml file.
For example, to add the SparkJava filters, I've just added the
 and it was picked up correclty at /spark/*

  
SparkFilter
spark.servlet.SparkFilter

  applicationClass
   com.example.spark.MySparkApplication

  
  
SparkFilter
/spark/*
  

Br,
Max
Am Sa., 27. Okt. 2018 um 16:09 Uhr schrieb Dieter Zanzinger
:
>
> Dear BaseX-fellows,
>
> the websocket-feature in 9.1 is great. Now- to use ist, I need the 
> BaseX-Version with embedded Jetty.
> My problem is, that I need another web app, too. Up to now, I used Tomcat as 
> container for BaseX and the other webapp.
> Is it possible, to deploy another app in the embedded Jetty ? Any hints, how 
> to do that?
> In Tomcat and - as far as I know in a standard Jetty installation - I just 
> copy the .war into the webapps-Folder. That doesn´t work in the embedded 
> Jetty.
>
> I would be glad for hints.
>
> Sincerely
> Dieter Zanzinger


[basex-talk] BaseX-standard-installation-with-embedded-jetty-- how to deploy other webapp

2018-10-27 Thread Dieter Zanzinger
Dear BaseX-fellows,

the websocket-feature in 9.1 is great. Now- to use ist, I need the 
BaseX-Version with embedded Jetty.
My problem is, that I need another web app, too. Up to now, I used Tomcat as 
container for BaseX and the other webapp.
Is it possible, to deploy another app in the embedded Jetty ? Any hints, how to 
do that?
In Tomcat and - as far as I know in a standard Jetty installation - I just copy 
the .war into the webapps-Folder. That doesn´t work in the embedded Jetty.

I would be glad for hints.

Sincerely
Dieter Zanzinger

Re: [basex-talk] fn:format-number() for german style numbers

2018-10-27 Thread Martin Honnen

Am 27.10.2018 um 08:39 schrieb Wiemer, Sebastian:



How do I format german style numbers e.g.: 1.000.00,99€ (for one 
million € and 99cents) ?

The following approach:

format-number(26825.8, '#.###,00')

yielded an error: [FODF1310] Invalid picture string: '#.###,00'.



See https://www.w3.org/TR/xquery-31/#id-decimal-format-decl

declare decimal-format local:de
  decimal-separator = "," grouping-separator = ".";
format-number(26825.8, '#.###,00', 'local:de')




[basex-talk] fn:format-number() for german style numbers

2018-10-27 Thread Wiemer, Sebastian



Hello everyone!


How do I format german style numbers e.g.: 1.000.00,99€ (for one million € and 99cents) ?
The following approach:


format-number(26825.8, '#.###,00')


yielded an error: [FODF1310] Invalid picture string: '#.###,00'.


Anyone an idea what is going wrong here?




Best regards, 
 Sebastian


 












--- >>> business. people. technology. <<<---adesso AG mit Sitz in DortmundVorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Dirk Pothen, Andreas PrenneisVorsitzender des Aufsichtsrates: Prof. Dr. Volker GruhnAmtsgericht Dortmund HRB 20663