Re: [Zorba-coders] [Merge] lp:~paul-lucas/zorba/bug-923015 into lp:zorba

2012-02-10 Thread William Candillon
Review: Approve


-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-923015/+merge/92398
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-02-10 Thread William Candillon
Zorba implements that proposed by John Snelson. - is that correct english? 
I'm not sure.
For John Snelson representation example, please add the corresponding JSON and 
XQuery function call above.
For the JSONML example, please add the corresponding JSON and XQuery function 
call above.

I think that this fix will dramatically improve the time needed for someone to 
get started with the module.

In parse#1, add a small example.
Returns: said XDM instance. is that correct?

In parse#2, add a small example.
Add a description of how to build element(json-options:options) 

In serialize#1, add a small example.

In serialize#2, add a small example.
Add a description of how to build element(json-options:options)
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/91959
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-02-10 Thread William Candillon
I have reopened bug #920717.
This merge is still pending on the resolution of this bug.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/91959
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 920717] Re: json 2.0 bug: json:serialize(json:parse(VALID_JSON))

2012-02-10 Thread William Candillon
The following query:
import module namespace json = 
http://www.zorba-xquery.com/modules/converters/json;;

let $json := doc(tweet.json)
return json:serialize($json)

Where tweet.json is the result from json:parse() (the file is attached).

Returns:
json.xq:196,3: JSON serialization error [zerr:ZJSE0007]: JSON type object 
can not have a child text node 
=
json:serialize#1 http://www.zorba-xquery.com/modules/converters/json 


** Attachment added: tweet.json
   
https://bugs.launchpad.net/zorba/+bug/920717/+attachment/2729288/+files/tweet.json

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/920717

Title:
  json 2.0 bug: json:serialize(json:parse(VALID_JSON))

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  Should be possible to call json:serialize(json:parse(VALID_JSON))
  where VALID_JSON is any valid JSON string
  see added failing test test/rbkt/zorba/json/json-snelson-serialize-parse:

  
  import module namespace 
json=http://www.zorba-xquery.com/modules/converters/json;;
  declare variable $json-value := '{html:bbold/b}';
  json:serialize(json:parse($json-value))

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/920717/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 920717] Re: json 2.0 bug: json:serialize(json:parse(VALID_JSON))

2012-02-10 Thread William Candillon
** Changed in: zorba
   Status: Fix Committed = In Progress

** Changed in: zorba
 Assignee: William Candillon (wcandillon) = Paul J. Lucas (paul-lucas)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/920717

Title:
  json 2.0 bug: json:serialize(json:parse(VALID_JSON))

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  Should be possible to call json:serialize(json:parse(VALID_JSON))
  where VALID_JSON is any valid JSON string
  see added failing test test/rbkt/zorba/json/json-snelson-serialize-parse:

  
  import module namespace 
json=http://www.zorba-xquery.com/modules/converters/json;;
  declare variable $json-value := '{html:bbold/b}';
  json:serialize(json:parse($json-value))

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/920717/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Markos Zaharioudakis
Markos Zaharioudakis has proposed merging lp:~zorba-coders/zorba/markos-scratch 
into lp:zorba.

Requested reviews:
  Markos Zaharioudakis (markos-za)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439

use SUBSEQUENCE_INT function, instead of SUBSEQUENCE_INT in partial_eval_eq 
rewrite rule
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/compiler/expression/flwor_expr.cpp'
--- src/compiler/expression/flwor_expr.cpp	2012-02-02 09:56:52 +
+++ src/compiler/expression/flwor_expr.cpp	2012-02-10 10:51:20 +
@@ -803,6 +803,12 @@
 
 flwor_clause_t materialize_clause::clone(expr::substitution_t subst) const
 {
+  // we will reach here under the following scenario:
+  // 1. We do plan seriazation
+  // 2. getPlan is called on udf A; this causes a mat clause to be created
+  //during the codegen on A's body
+  // 3. getPlan is called on udf B, which invokes A, and A's body is
+  //inlined (and as a result cloned) inside B's body.
   return new materialize_clause(theContext, get_loc());
 }
 

=== modified file 'src/compiler/rewriter/rules/fold_rules.cpp'
--- src/compiler/rewriter/rules/fold_rules.cpp	2012-01-26 19:56:14 +
+++ src/compiler/rewriter/rules/fold_rules.cpp	2012-02-10 10:51:20 +
@@ -951,23 +951,16 @@
 }
 else
 {
-  store::Item_t pVal;
-  store::Item_t iVal = val;
-  GenericCast::promote(pVal, iVal, *rtm.DOUBLE_TYPE_ONE, tm, val_expr-get_loc());
-  expr_t dpos = new const_expr(val_expr-get_sctx(), LOC(val_expr), pVal);
-
   std::vectorexpr_t args(3);
   args[0] = count_expr-get_arg(0);
-  args[1] = dpos;
-  args[2] = new const_expr(val_expr-get_sctx(),
-   LOC(val_expr),
-   xs_double(2.0));
+  args[1] = val_expr;
+  args[2] = new const_expr(val_expr-get_sctx(), LOC(val_expr), xs_integer(2));
 
-  expr_t subseq_expr = 
-  expr_tools::fix_annotations(new fo_expr(count_expr-get_sctx(),
-  LOC(count_expr),
-  GET_BUILTIN_FUNCTION(FN_SUBSEQUENCE_3),
-  args));
+  expr_t subseq_expr = expr_tools::fix_annotations(
+  new fo_expr(count_expr-get_sctx(),
+  LOC(count_expr),
+  GET_BUILTIN_FUNCTION(OP_ZORBA_SUBSEQUENCE_INT_3),
+  args));
 
   return expr_tools::fix_annotations(
  new fo_expr(fo.get_sctx(),

=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp	2012-02-02 09:56:52 +
+++ src/compiler/translator/translator.cpp	2012-02-10 10:51:20 +
@@ -11945,11 +11945,8 @@
 theTypeStack.push(seqmatch);
   }
 #else /* ZORBA_NO_XMLSCHEMA */
-  throw XQUERY_EXCEPTION(
-zerr::ZXQP0005_NOT_ENABLED,
-ERROR_PARAMS( ZED( XMLSchema ) ),
-ERROR_LOC( loc )
-  );
+  RAISE_ERROR(zerr::ZXQP0005_NOT_ENABLED, loc,
+  ERROR_PARAMS(ZED(XMLSchema)));
 #endif /* ZORBA_NO_XMLSCHEMA */
   return no_state;
 }

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Markos Zaharioudakis
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 928631] Re: wrong static context in built-in function in full-text module

2012-02-10 Thread Markos Zaharioudakis
** Changed in: zorba
   Status: New = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/928631

Title:
  wrong static context in built-in function in full-text module

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  The error isn't raised if the schema is actually imported in the module that
  invokes the function which does the validation. This probably means that
  the static context of the function is the static context resulting from 
compiling
  the importing module (instead the static context of the full-text module 
itself).

  Alternatively, the in-scope element declarations could also become part
  of all the static contexts of the query. I think we have had this discussion
  a couple of times and I keep forgetting what we decided.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/928631/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
There are additional revisions which have not been approved in review. Please 
seek review and approval of these new revisions.
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/markos-scratch-2012-02-10T12-41-59.41Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930132] [NEW] General Flwor Optimizations

2012-02-10 Thread Carlos Manuel Lopez
Public bug reported:

The new kind of FLWOR expressions (Xquery 3.0) are treated diferently in
Zorba at the moment and do not have any optimizations done to them.
Since the old Flwor expressions are just a subset, all optimizations
should be able to be done to general flwor expressions as well.

** Affects: zorba
 Importance: Undecided
 Assignee: Carlos Manuel Lopez (charlie-lobo)
 Status: In Progress


** Tags: optimization

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930132

Title:
  General Flwor Optimizations

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The new kind of FLWOR expressions (Xquery 3.0) are treated diferently
  in Zorba at the moment and do not have any optimizations done to them.
  Since the old Flwor expressions are just a subset, all optimizations
  should be able to be done to general flwor expressions as well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930132/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
The attempt to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba 
failed. Below is the output from the failed tests.


CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:274 
(message):
  Validation queue job markos-scratch-2012-02-10T12-41-59.41Z is finished.
  The final status was:

  

  1 tests did not succeed - changes not commited.


Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930157] [NEW] fn:available-environment-variables Implementation

2012-02-10 Thread Juan Zacarias
Public bug reported:

Implementation of XQuery 3.0 function

fn:available-environment-variables

** Affects: zorba
 Importance: Undecided
 Assignee: Juan Zacarias (juan457)
 Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930157

Title:
  fn:available-environment-variables Implementation

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Implementation of XQuery 3.0 function

  fn:available-environment-variables

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930157/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930162] [NEW] fn:unparsed-text-available Implementation

2012-02-10 Thread Juan Zacarias
Public bug reported:

Implementation of XQuery 3.0 function

fn:unparsed-text-available

** Affects: zorba
 Importance: Undecided
 Assignee: Juan Zacarias (juan457)
 Status: In Progress

** Branch linked: lp:~zorba-coders/zorba/fn_envvars

** Changed in: zorba
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930162

Title:
  fn:unparsed-text-available Implementation

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  Implementation of XQuery 3.0 function

  fn:unparsed-text-available

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930162/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930161] [NEW] fn:unparsed-text Implementation

2012-02-10 Thread Juan Zacarias
Public bug reported:

Implementation of XQuery 3.0 function

fn:unparsed-text

** Affects: zorba
 Importance: Undecided
 Assignee: Juan Zacarias (juan457)
 Status: In Progress

** Branch linked: lp:~zorba-coders/zorba/fn_envvars

** Changed in: zorba
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930161

Title:
  fn:unparsed-text Implementation

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  Implementation of XQuery 3.0 function

  fn:unparsed-text

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930161/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930157] Re: fn:available-environment-variables Implementation

2012-02-10 Thread Juan Zacarias
** Branch linked: lp:~zorba-coders/zorba/fn_envvars

** Branch unlinked: lp:~zorba-coders/zorba/fn_envvars

** Branch linked: lp:~zorba-coders/zorba/fn_envvars

** Changed in: zorba
   Status: New = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930157

Title:
  fn:available-environment-variables Implementation

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  Implementation of XQuery 3.0 function

  fn:available-environment-variables

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930157/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930158] [NEW] fn:environment-variables Implementation

2012-02-10 Thread Juan Zacarias
Public bug reported:

Implementation of XQuery 3.0 function

fn:environment-variables

** Affects: zorba
 Importance: Undecided
 Status: Fix Committed

** Branch linked: lp:~zorba-coders/zorba/fn_envvars

** Changed in: zorba
   Status: New = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930158

Title:
  fn:environment-variables Implementation

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  Implementation of XQuery 3.0 function

  fn:environment-variables

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930158/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930160] [NEW] fn:uri-collection Implementation

2012-02-10 Thread Juan Zacarias
Public bug reported:

Implementation of XQuery 3.0 function

fn:uri-collection

** Affects: zorba
 Importance: Undecided
 Assignee: Juan Zacarias (juan457)
 Status: Fix Committed

** Branch linked: lp:~zorba-coders/zorba/fn_envvars

** Changed in: zorba
   Status: New = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930160

Title:
  fn:uri-collection Implementation

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  Implementation of XQuery 3.0 function

  fn:uri-collection

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930160/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/doxygen into lp:zorba

2012-02-10 Thread Cezar Andrei
Review: Approve

Approved for typos, please see Dana's comments on structure.
-- 
https://code.launchpad.net/~zorba-coders/zorba/doxygen/+merge/90249
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/markos-scratch-2012-02-10T15-21-08.615Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
The attempt to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba 
failed. Below is the output from the failed tests.


CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:274 
(message):
  Validation queue job markos-scratch-2012-02-10T15-21-08.615Z is finished.
  The final status was:

  

  1 tests did not succeed - changes not commited.


Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~paul-lucas/zorba/bug-923015 into lp:zorba

2012-02-10 Thread Matthias Brantner
Review: Approve


-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-923015/+merge/92398
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~paul-lucas/zorba/bug-923015 into lp:zorba

2012-02-10 Thread Matthias Brantner
The proposal to merge lp:~paul-lucas/zorba/bug-923015 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-923015/+merge/92398
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-923015/+merge/92398
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread Zorba Build Bot
Validation queue job markos-scratch-2012-02-10T16-07-00.94Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-10 Thread noreply
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Approved = Merged

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92439
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-02-10 Thread Paul J. Lucas
 Zorba implements that proposed by John Snelson. - is that correct english?
 I'm not sure.

Yes.

 In parse#1, add a small example.
 Returns: said XDM instance. is that correct?

Yes.

 In parse#2, add a small example.
 Add a description of how to build element(json-options:options)

I would except XQDoc is broken and renders it very badly.

 In serialize#1, add a small example.
 In serialize#2, add a small example.

It's just the reverse of what's above!
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/91959
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 920717] Re: json 2.0 bug: json:serialize(json:parse(VALID_JSON))

2012-02-10 Thread Paul J. Lucas
I'm closing this bug for hopefully the last time. As we discussed, your
recent bugs are UNRELATED to this bug. When you get another JSON
example, open a NEW bug. Thanks.

** Changed in: zorba
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/920717

Title:
  json 2.0 bug: json:serialize(json:parse(VALID_JSON))

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  Should be possible to call json:serialize(json:parse(VALID_JSON))
  where VALID_JSON is any valid JSON string
  see added failing test test/rbkt/zorba/json/json-snelson-serialize-parse:

  
  import module namespace 
json=http://www.zorba-xquery.com/modules/converters/json;;
  declare variable $json-value := '{html:bbold/b}';
  json:serialize(json:parse($json-value))

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/920717/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~paul-lucas/zorba/bug-923015 into lp:zorba

2012-02-10 Thread Zorba Build Bot
Validation queue job bug-923015-2012-02-10T16-36-19.836Z is finished. The final 
status was:

All tests succeeded!
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-923015/+merge/92398
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~paul-lucas/zorba/bug-923015 into lp:zorba

2012-02-10 Thread noreply
The proposal to merge lp:~paul-lucas/zorba/bug-923015 into lp:zorba has been 
updated.

Status: Approved = Merged

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-923015/+merge/92398
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-923015/+merge/92398
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 928631] Re: wrong static context in built-in function in full-text module

2012-02-10 Thread Paul J. Lucas
When I run the test ft-module-tokenize-1.xq, it dumps core:


#0  0x00011163b356 in 
zorba::store::ItemHandlezorba::store::Item::operator=zorba::simplestore::TokenItem
 (this=0x0, rhs=0x7fe7e868d290) at item_handle.h:127
#1  0x00011162d13e in zorba::simplestore::BasicItemFactory::createToken 
(this=0x7fe7e8407060, result=@0x0, value=@0x7fff6f7eba08) at 
simple_item_factory.cpp:169
#2  0x0001113a0c6e in zorba::Validator::realValidationValue 
(result=@0x7fff6f7ec2a8, sourceNode=@0x7fff6f7eba40, typeName=@0x7fff6f7eba08, 
typeManager=0x7fe7e8407060, validationMode=zorba::ParseConstants::val_strict, 
sctx=0x7fff6f7ebe90, loc=@0x7fff6f7eb9e0) at validate.cpp:141
#3  0x00011139b6e2 in zorba::Validator::effectiveValidationValue 
(result=@0x7fff6f7ec2a8, sourceNode=@0x7fff6f7eba40, typeName=@0x7fff6f7eba08, 
typeManager=0x7fe7e8407060, validationMode=zorba::ParseConstants::val_strict, 
sctx=0x7fff6f7ebe90, loc=@0x7fff6f7eb9e0) at validate.cpp:77
#4  0x0001103611a2 in zorba::static_context::validate (this=0x7fff6f7ebe90, 
rootElement=0x7fe7e8691450, validatedResult=@0x7fff6f7ec2a8, 
targetNamespace=@0x7fff6f7ebaf8, 
validationMode=zorba::StaticContextConsts::strict_validation) at 
static_context.cpp:1749
#5  0x000110361553 in zorba::static_context::validate (this=0x7fff6f7ebe90, 
rootElement=0x7fe7e8691450, validatedResult=@0x7fff6f7ec2a8, 
validationMode=zorba::StaticContextConsts::strict_validation) at 
static_context.cpp:1705
#6  0x000110ac3a80 in zorba::TokenizeIterator::nextImpl 
(this=0x7fe7e86ac730, result=@0x7fff6f7ec2a8, plan_state=@0x7fe7e8696590) at 
ft_module_impl.cpp:361
#7  0x0001105098f4 in zorba::Batcherzorba::TokenizeIterator::produceNext 
(this=0x7fe7e86ac730, result=@0x7fff6f7ec2a8, planState=@0x7fe7e8696590) at 
plan_iterator.h:531
#8  0x000110e3c135 in zorba::PlanIterator::consumeNext 
(result=@0x7fff6f7ec2a8, iter=0x7fe7e86ac730, planState=@0x7fe7e8696590) at 
plan_iterator.cpp:124
#9  0x000110e3a7b1 in zorba::PlanWrapper::next (this=0x7fe7e868d190, 
result=@0x7fff6f7ec2a8) at plan_wrapper.cpp:149
#10 0x00010fd1ad86 in zorba::serializer::serialize (this=0x7fff6f7ec638, 
aObject=@0x7fff6f7ec560, aOStream=@0x7fff71e75f70, aHandler=0x0) at 
serializer.cpp:2257
#11 0x00010fd1b055 in zorba::serializer::serialize (this=0x7fff6f7ec638, 
aObject=@0x7fff6f7ec708, aOStream=@0x7fff71e75f70) at serializer.cpp:2215
#12 0x00010fc4c82f in zorba::XQueryImpl::serialize (this=0x7fe7e86843b0, 
os=@0x7fff71e75f70, aWrapper=@0x7fff6f7ec7c8, opt=0x7fff6f7eca90) at 
xqueryimpl.cpp:1291
#13 0x00010fc4dba3 in zorba::XQueryImpl::execute (this=0x7fe7e86843b0, 
os=@0x7fff71e75f70, opt=0x7fff6f7eca90) at xqueryimpl.cpp:1117
#14 0x00010fbf48d4 in compileAndExecute (zorbaInstance=0x111f20840, 
properties=@0x7fff6f7ed990, staticContext=@0x7fff6f7ed6e8, 
qfilepath=@0x7fff6f7ed700, qfile=@0x7fe7e8683c40, outputStream=@0x7fff71e75f70, 
timing=@0x7fff6f7ed2d8) at zorbacmd.cpp:634
#15 0x00010fbf898b in main (argc=7, argv=0x7fff6f7ee150) at zorbacmd.cpp:906


** Changed in: zorba
   Status: Fix Committed = In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/928631

Title:
  wrong static context in built-in function in full-text module

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The error isn't raised if the schema is actually imported in the module that
  invokes the function which does the validation. This probably means that
  the static context of the function is the static context resulting from 
compiling
  the importing module (instead the static context of the full-text module 
itself).

  Alternatively, the in-scope element declarations could also become part
  of all the static contexts of the query. I think we have had this discussion
  a couple of times and I keep forgetting what we decided.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/928631/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-02-10 Thread William Candillon
If the documentation is correct in the source, I will fix everything else.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/91959
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930497] [NEW] Doxygen formatting escapes not supported in XQDoc

2012-02-10 Thread Paul J. Lucas
Public bug reported:

The Doxygen formatting escapes @a and @c (and their \a and \c
equivalents) are not supported in XQDoc but should be to make writing
XQDoc easier and more familiar to someone familiar with Doxygen.

** Affects: zorba
 Importance: Low
 Assignee: William Candillon (wcandillon)
 Status: New


** Tags: xqdoc

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930497

Title:
  Doxygen formatting escapes not supported in XQDoc

Status in Zorba - The XQuery Processor:
  New

Bug description:
  The Doxygen formatting escapes @a and @c (and their \a and \c
  equivalents) are not supported in XQDoc but should be to make writing
  XQDoc easier and more familiar to someone familiar with Doxygen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930497/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930500] [NEW] @error XQDoc should use monospaced font for error code

2012-02-10 Thread Paul J. Lucas
Public bug reported:

When using @error, the resulting HTML should render the error code in a
monospaced font, e.g.:

 @error err:XQDY0027 if $options can not be validated against the json-
options schema.

The err:XQDY0027 should be monospaced to look better.

** Affects: zorba
 Importance: Low
 Assignee: William Candillon (wcandillon)
 Status: New


** Tags: xqdoc

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930500

Title:
  @error XQDoc should use monospaced font for error code

Status in Zorba - The XQuery Processor:
  New

Bug description:
  When using @error, the resulting HTML should render the error code in
  a monospaced font, e.g.:

   @error err:XQDY0027 if $options can not be validated against the
  json-options schema.

  The err:XQDY0027 should be monospaced to look better.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930500/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp