Re: [basex-talk] Use xquery:eval or not?

2014-11-15 Thread Marc van Grootel
Thanks Marco and Andy.

I will go with XPath selectors and eval for now. John Snelson's
library is indeed interesting and a while ago I tried the parser part
for parsing XQuery into XML. I don't either understand it fully but it
seems to do it's job.

--Marc


Re: [basex-talk] CSV : escape character feature

2014-11-15 Thread Fabrice Etanchaud
Thank you so much Christian !

-Message d'origine-
De : Christian Grün [mailto:christian.gr...@gmail.com] 
Envoyé : vendredi 14 novembre 2014 20:56
À : Fabrice Etanchaud
Cc : basex-talk@mailman.uni-konstanz.de
Objet : Re: [basex-talk] CSV : escape character feature

Hi Fabrice,

I decided to change the default behavior of the BaseX CSV parser:
backslashes will now always be treated as esape characters. \r, \n and \t will 
be encoded as CR, NL, and TAB, and other characters will be returned literally. 
A new snapshot is online.

Everyone: please report if this new default causes surprises in your setting.

Best,
Christian


On Thu, Nov 13, 2014 at 10:34 AM, Fabrice Etanchaud fetanch...@questel.com 
wrote:
 Dear all,

 I did not find a way to specify how to escape quotes when importing a 
 csv file with quotes=yes.

 Here is an example :

 12345|TOTO LE HERO|Toto le héro 3 \A''
 LP|67|8051|4000|XX||LU|||ITE|||GB||20.10

 where quotes are escaped with a leading \ (the '' after the A are two 
 single quotes).

 But it seems BaseX detects quote quote (“”) as escaped quote.

 Could it be possible to have in the future an option to override the 
 default behavior ?

 Best regards,
 Fabrice Etanchaud
 Questel/Orbit