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

2012-07-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/jsoniq-2012-07-10T06-01-46.65Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/jsoniq/+merge/92171
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/jsoniq into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue job jsoniq-2012-07-10T06-01-46.65Z is finished. The final 
status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/jsoniq/+merge/92171
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 1022557] Re: tumbling window query returns wrong result

2012-07-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/1022557

Title:
  tumbling window query returns wrong result

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  Here is the query:

  for tumbling window $w in (1,1,1,1,1,4,2,2,2,2,2,2,4,3,3,3,3,3,4) 
  
  start $s when true()  
 
  end $e when $e = 4   
  return window{fn:subsequence($w, 1, 3)}/window

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1022557/+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 1021492] Re: bool zorba::user_function::isRecursive() const: Assertion `isOptimized()' failed

2012-07-10 Thread Markos Zaharioudakis
The file /home/dagraf/sausalito/build/install_dir/portal/test.xq must
be checked in the branch.

** Changed in: zorba
   Status: New = Incomplete

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

Title:
  bool zorba::user_function::isRecursive() const: Assertion
  `isOptimized()' failed

Status in Zorba - The XQuery Processor:
  Incomplete

Bug description:
  Assertion can be reproduced by compiling the branch lp:~zorba-
  coders/zorba/reproduce_is_optimized_assertion and executing the test
  'ctest -R optimized_assertion -V'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1021492/+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 1020588] Re: Illegal updating expressions

2012-07-10 Thread Markos Zaharioudakis
If scripting is disabled, the query does throe XUST0001. But with
scripting enabled, an expr is allowed to return both PULs and XDM items.


 

** Changed in: zorba
   Status: Confirmed = Invalid

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

Title:
  Illegal updating expressions

Status in Zorba - The XQuery Processor:
  Invalid

Bug description:
  a/, delete node a/

  Expected: XUST0001
  Returned: a/

  Hope this helps,
  Christian

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1020588/+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/matthias-disallow-mixed-tests into lp:zorba

2012-07-10 Thread Ghislain Fourny
Ghislain Fourny has proposed merging 
lp:~zorba-coders/zorba/matthias-disallow-mixed-tests into lp:zorba.

Requested reviews:
  Till Westmann (tillw)
  Matthias Brantner (matthias-brantner)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/matthias-disallow-mixed-tests/+merge/114176

Adding two tests for allowing two errors upon sequence of several JSON items 
and an XML node.
-- 
https://code.launchpad.net/~zorba-coders/zorba/matthias-disallow-mixed-tests/+merge/114176
Your team Zorba Coders is subscribed to branch lp:zorba.
=== added file 'test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-3.spec'
--- test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-3.spec	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-3.spec	2012-07-10 12:03:34 +
@@ -0,0 +1,2 @@
+Error: http://www.zorba-xquery.com/errors:ZAPI0045
+Error: http://www.jsoniq.org/errors:JNSE0012

=== added file 'test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-3.xq'
--- test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-3.xq	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-3.xq	2012-07-10 12:03:34 +
@@ -0,0 +1,4 @@
+{
+  for $i in 1 to 10
+  return { concat(o, $i) : $i }
+}, a/
\ No newline at end of file

=== added file 'test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-4.spec'
--- test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-4.spec	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-4.spec	2012-07-10 12:03:34 +
@@ -0,0 +1,2 @@
+Error: http://www.zorba-xquery.com/errors:ZAPI0045
+Error: http://www.jsoniq.org/errors:JNSE0012

=== added file 'test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-4.xq'
--- test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-4.xq	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/serializer-jsoniq-disallow-mixed-4.xq	2012-07-10 12:03:34 +
@@ -0,0 +1,4 @@
+a/, {
+  for $i in 1 to 10
+  return { concat(o, $i) : $i }
+}
\ No newline at end of file

-- 
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 1021492] Re: bool zorba::user_function::isRecursive() const: Assertion `isOptimized()' failed

2012-07-10 Thread David Graf
Sorry. Does it work now?

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

Title:
  bool zorba::user_function::isRecursive() const: Assertion
  `isOptimized()' failed

Status in Zorba - The XQuery Processor:
  Incomplete

Bug description:
  Assertion can be reproduced by compiling the branch lp:~zorba-
  coders/zorba/reproduce_is_optimized_assertion and executing the test
  'ctest -R optimized_assertion -V'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1021492/+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/jsoniq-multiple-updates-fix into lp:zorba

2012-07-10 Thread Ghislain Fourny
Ghislain Fourny has proposed merging 
lp:~zorba-coders/zorba/jsoniq-multiple-updates-fix into lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Markos Zaharioudakis (markos-za)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/jsoniq-multiple-updates-fix/+merge/114183

Fix that gives precedence to an array replacement over an array deletion, and 
tests about multiple updates with same selector on arrays and on objects.
-- 
https://code.launchpad.net/~zorba-coders/zorba/jsoniq-multiple-updates-fix/+merge/114183
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/store/naive/simple_pul.cpp'
--- src/store/naive/simple_pul.cpp	2012-07-04 12:56:09 +
+++ src/store/naive/simple_pul.cpp	2012-07-10 13:06:20 +
@@ -1531,7 +1531,8 @@
 
 for (; ite != end; ++ite)
 {
-  if ((*ite)-getKind() != store::UpdateConsts::UP_JSON_ARRAY_DELETE)
+  if ((*ite)-getKind() != store::UpdateConsts::UP_JSON_ARRAY_DELETE 
+  (*ite)-getKind() != store::UpdateConsts::UP_JSON_ARRAY_REPLACE_VALUE)
 continue;
 
   UpdJSONArrayUpdate* upd = static_castUpdJSONArrayUpdate*(*ite);
@@ -1611,7 +1612,7 @@
 
 if (upd-thePosition == pos)
 {
-  return;
+  ite = updates-erase(ite);
 }
   }
 }
@@ -2094,7 +2095,8 @@
 
 for (; ite != end; ++ite)
 {
-  if ((*ite)-getKind() != otherUpdKind)
+  if ((*ite)-getKind() != store::UpdateConsts::UP_JSON_ARRAY_DELETE 
+  (*ite)-getKind() != store::UpdateConsts::UP_JSON_ARRAY_REPLACE_VALUE)
 continue;
 
   UpdJSONArrayUpdate* myUpd = static_castUpdJSONArrayUpdate*(*ite);
@@ -2133,8 +2135,7 @@
   {
 if (myUpd-thePosition == otherUpd2-thePosition)
 {
-  merged = true;
-  break;
+  ite = targetUpdates-erase(ite);
 }
   }
 }

=== added file 'test/rbkt/ExpQueryResults/zorba/jsoniq/arr_update_01.xml.res'
--- test/rbkt/ExpQueryResults/zorba/jsoniq/arr_update_01.xml.res	1970-01-01 00:00:00 +
+++ test/rbkt/ExpQueryResults/zorba/jsoniq/arr_update_01.xml.res	2012-07-10 13:06:20 +
@@ -0,0 +1,1 @@
+[ 1, 5, 6, 4, 3 ]
\ No newline at end of file

=== added file 'test/rbkt/ExpQueryResults/zorba/jsoniq/obj_update_01.xml.res'
--- test/rbkt/ExpQueryResults/zorba/jsoniq/obj_update_01.xml.res	1970-01-01 00:00:00 +
+++ test/rbkt/ExpQueryResults/zorba/jsoniq/obj_update_01.xml.res	2012-07-10 13:06:20 +
@@ -0,0 +1,1 @@
+{ foo2 : bar2, bar : foo }

=== added file 'test/rbkt/ExpQueryResults/zorba/jsoniq/obj_update_02.xml.res'
--- test/rbkt/ExpQueryResults/zorba/jsoniq/obj_update_02.xml.res	1970-01-01 00:00:00 +
+++ test/rbkt/ExpQueryResults/zorba/jsoniq/obj_update_02.xml.res	2012-07-10 13:06:20 +
@@ -0,0 +1,1 @@
+{ bar : foo }

=== added file 'test/rbkt/Queries/zorba/jsoniq/arr_update_01.xq'
--- test/rbkt/Queries/zorba/jsoniq/arr_update_01.xq	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/arr_update_01.xq	2012-07-10 13:06:20 +
@@ -0,0 +1,12 @@
+import module namespace j = http://www.jsoniq.org/functions;;
+
+variable $a :=  [ 1, 2, 3];
+
+(
+ replace json value of $a(2) with 4, 
+ insert json (5, 6) into $a at position 2,
+ delete json $a(2),
+ delete json $a(2)
+);
+
+$a

=== added file 'test/rbkt/Queries/zorba/jsoniq/arr_update_02.spec'
--- test/rbkt/Queries/zorba/jsoniq/arr_update_02.spec	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/arr_update_02.spec	2012-07-10 13:06:20 +
@@ -0,0 +1,1 @@
+Error: http://www.jsoniq.org/errors:JNUP0009
\ No newline at end of file

=== added file 'test/rbkt/Queries/zorba/jsoniq/arr_update_02.xq'
--- test/rbkt/Queries/zorba/jsoniq/arr_update_02.xq	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/arr_update_02.xq	2012-07-10 13:06:20 +
@@ -0,0 +1,13 @@
+import module namespace j = http://www.jsoniq.org/functions;;
+
+variable $a :=  [ 1, 2, 3];
+
+(
+ replace json value of $a(2) with 4, 
+ replace json value of $a(2) with 4, 
+ insert json (5, 6) into $a at position 2,
+ delete json $a(2),
+ delete json $a(2)
+);
+
+$a

=== added file 'test/rbkt/Queries/zorba/jsoniq/obj_update_01.xq'
--- test/rbkt/Queries/zorba/jsoniq/obj_update_01.xq	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/obj_update_01.xq	2012-07-10 13:06:20 +
@@ -0,0 +1,11 @@
+import module namespace j = http://www.jsoniq.org/functions;;
+
+variable $o := { foo : bar };
+
+(
+ replace json value of $o(foo) with bar2, 
+ rename json $o(foo) as foo2,
+ insert json { bar : foo } into $o
+);
+
+$o

=== added file 'test/rbkt/Queries/zorba/jsoniq/obj_update_02.xq'
--- test/rbkt/Queries/zorba/jsoniq/obj_update_02.xq	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/jsoniq/obj_update_02.xq	2012-07-10 13:06:20 +
@@ -0,0 +1,12 @@
+import module namespace j = http://www.jsoniq.org/functions;;
+
+variable $o := { foo : bar };
+
+(
+ 

[Zorba-coders] [Merge] lp:~zorba-coders/zorba/jsoniq-multiple-updates-fix into lp:zorba

2012-07-10 Thread Ghislain Fourny
The proposal to merge lp:~zorba-coders/zorba/jsoniq-multiple-updates-fix into 
lp:zorba has been updated.

Commit Message changed to:

Fix that gives precedence to an array replacement over an array deletion, and 
adds tests about multiple updates with same selector on arrays and on objects.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/jsoniq-multiple-updates-fix/+merge/114183
-- 
https://code.launchpad.net/~zorba-coders/zorba/jsoniq-multiple-updates-fix/+merge/114183
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/bugs-1022495-and-1022494 into lp:zorba

2012-07-10 Thread Dennis Knochenwefel
Dennis Knochenwefel has proposed merging 
lp:~zorba-coders/zorba/bugs-1022495-and-1022494 into lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Chris Hillery (ceejatec)
Related bugs:
  Bug #1022494 in Zorba: fetch_bogus2 fails due to flworfound.org change
  https://bugs.launchpad.net/zorba/+bug/1022494
  Bug #1022495 in Zorba: versioning/import5 fails due to flworfound.org change
  https://bugs.launchpad.net/zorba/+bug/1022495

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bugs-1022495-and-1022494/+merge/114185

fixing bugs #1022495 and #1022494
-- 
https://code.launchpad.net/~zorba-coders/zorba/bugs-1022495-and-1022494/+merge/114185
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'test/rbkt/Queries/CMakeLists.txt'
--- test/rbkt/Queries/CMakeLists.txt	2012-07-09 20:45:24 +
+++ test/rbkt/Queries/CMakeLists.txt	2012-07-10 13:14:23 +
@@ -590,6 +590,3 @@
 EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling17 899364)
 EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling21 899364)
 
-# Failing due to flworfound.org hosting changes.
-EXPECTED_FAILURE(test/rbkt/zorba/versioning/import5 1022495)
-EXPECTED_FAILURE(test/rbkt/zorba/fetch/fetch_bogus2 1022494)

=== modified file 'test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq'
--- test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq	2012-06-28 04:14:03 +
+++ test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq	2012-07-10 13:14:23 +
@@ -1,4 +1,4 @@
 (: Fetch a valid module URI but as SOME_CONTENT :)
 import module namespace fetch = http://www.zorba-xquery.com/modules/fetch;;
 
-fetch:content(http://www.flworfound.org/modules/ext;, SOME_CONTENT)
+fetch:content(http://zorba-tests.28msec.us/doesnotexist;, SOME_CONTENT)

=== modified file 'test/rbkt/Queries/zorba/versioning/import5.xq'
--- test/rbkt/Queries/zorba/versioning/import5.xq	2012-06-28 04:14:03 +
+++ test/rbkt/Queries/zorba/versioning/import5.xq	2012-07-10 13:14:23 +
@@ -1,4 +1,4 @@
 (: Test that importing a non-existent explicit version gets an error. :)
-import module namespace vm = http://www.flworfound.org/modules/ver#2.2!;;
+import module namespace vm = http://zorba-tests.28msec.us/zorba-test-module.xq#2.2!;;
 
 vm:version()

-- 
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 1022494] Re: fetch_bogus2 fails due to flworfound.org change

2012-07-10 Thread Launchpad Bug Tracker
** Branch linked: lp:~zorba-coders/zorba/bugs-1022495-and-1022494

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

Title:
  fetch_bogus2 fails due to flworfound.org change

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  The test test/rbkt/zorba/fetch/fetch_bogus2 seems to fail under
  Windows as of trunk revision 10917.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1022494/+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 1022495] Re: versioning/import5 fails due to flworfound.org change

2012-07-10 Thread Launchpad Bug Tracker
** Branch linked: lp:~zorba-coders/zorba/bugs-1022495-and-1022494

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

Title:
  versioning/import5 fails due to flworfound.org change

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  The test test/rbkt/zorba/versioning/import5 seems to fail under
  Windows as of trunk revision 10917.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1022495/+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/bugs-1022495-and-1022494 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue job bugs-1022495-and-1022494-2012-07-10T13-16-14.485Z is 
finished. The final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/bugs-1022495-and-1022494/+merge/114185
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/bugs-1022495-and-1022494 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Voting does not meet specified criteria. Required: Approve  1, Disapprove  1, 
Needs Fixing  1, Pending  1. Got: 2 Pending.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bugs-1022495-and-1022494/+merge/114185
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 1022976] [NEW] html:parse-internal may return empty sequence

2012-07-10 Thread Ghislain Fourny
Public bug reported:

In the data converters module, html:parse-internal has return type
document-node(), however in its implementation, when an error happens,
it seems to return a SingletonItemSequence with a zorba::Item containing
a NULL pointer:

http://bazaar.launchpad.net/~zorba-coders/zorba/data-converters-
module/view/head:/src/com/zorba-
xquery/www/modules/converters/html.xq.src/tidy_wrapper.h#L194

This leads to a type error at runtime because the function signature is
not matched.

Perhaps a special error code could be returned?

** Affects: zorba
 Importance: Undecided
 Assignee: Chris Hillery (ceejatec)
 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/1022976

Title:
  html:parse-internal may return empty sequence

Status in Zorba - The XQuery Processor:
  New

Bug description:
  In the data converters module, html:parse-internal has return type
  document-node(), however in its implementation, when an error happens,
  it seems to return a SingletonItemSequence with a zorba::Item
  containing a NULL pointer:

  http://bazaar.launchpad.net/~zorba-coders/zorba/data-converters-
  module/view/head:/src/com/zorba-
  xquery/www/modules/converters/html.xq.src/tidy_wrapper.h#L194

  This leads to a type error at runtime because the function signature
  is not matched.

  Perhaps a special error code could be returned?

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1022976/+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 into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread Cezar Andrei
The proposal to merge lp:zorba into lp:~zorba-coders/zorba/zorba-experimental 
has been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/trunk/+merge/104960
-- 
https://code.launchpad.net/~zorba-coders/zorba/trunk/+merge/104960
Your team Zorba Coders is requested to review the proposed merge of lp:zorba 
into lp:~zorba-coders/zorba/zorba-experimental.

-- 
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 into lp:~zorba-coders/zorba/zorba-experimental

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

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/trunk/+merge/104960
-- 
https://code.launchpad.net/~zorba-coders/zorba/trunk/+merge/104960
Your team Zorba Coders is requested to review the proposed merge of lp:zorba 
into lp:~zorba-coders/zorba/zorba-experimental.

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread Cezar Andrei
The proposal to merge lp:~zorba-coders/zorba/jsoniq_demo into 
lp:~zorba-coders/zorba/zorba-experimental has been updated.

Commit Message changed to:

...

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

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread Cezar Andrei
Review: Approve


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

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/jsoniq_demo into 
lp:~zorba-coders/zorba/zorba-experimental has been updated.

Status: Approved = Needs review

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

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread William Candillon
Review: Approve


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

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread William Candillon
The proposal to merge lp:~zorba-coders/zorba/jsoniq_demo into 
lp:~zorba-coders/zorba/zorba-experimental has been updated.

Commit Message changed to:

Build JSONiq support by default

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

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread William Candillon
The proposal to merge lp:~zorba-coders/zorba/jsoniq_demo into 
lp:~zorba-coders/zorba/zorba-experimental has been updated.

Status: Needs review = Approved

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

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

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

experimental build started for lp:~zorba-coders/zorba/jsoniq_demo. Check out 
http://jsoniq_demo.zorba-xquery.com/ in half an hour or so. Logfile at 
http://zorbatest.lambda.nu:8080/remotequeue/experimental/jsoniq_demo.log .


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

-- 
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/jsoniq_demo into lp:~zorba-coders/zorba/zorba-experimental

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/jsoniq_demo into 
lp:~zorba-coders/zorba/zorba-experimental has been updated.

Status: Approved = Needs review

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

-- 
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 1023120] [NEW] xs:include ignored in schemas

2012-07-10 Thread Chris Hillery
Public bug reported:

It doesn't appear that xs:include elements in schemas have any effect.
The definitions in the referenced schema are not loaded, and no error is
thrown even if the referenced file does not exist or contains invalid
XML.

** Affects: zorba
 Importance: High
 Assignee: Cezar Andrei (cezar-andrei)
 Status: Confirmed

** Changed in: zorba
   Status: New = Confirmed

** Changed in: zorba
 Assignee: (unassigned) = Cezar Andrei (cezar-andrei)

** Changed in: zorba
   Importance: Undecided = High

** Changed in: zorba
Milestone: None = 2.7

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

Title:
  xs:include ignored in schemas

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  It doesn't appear that xs:include elements in schemas have any
  effect. The definitions in the referenced schema are not loaded, and
  no error is thrown even if the referenced file does not exist or
  contains invalid XML.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1023120/+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/bugs-1022495-and-1022494 into lp:zorba

2012-07-10 Thread Chris Hillery
Review: Needs Fixing

This doesn't test quite the same thing that it used to. Those tests were 
previously *valid* module URIs (that is, there actually was a module with that 
namespace) used in incorrect ways.

The modules in question are declared in test/rbkt/modules. In order to fix this 
properly, the definition of those modules and every test that makes use of them 
will need to be updated to the new domain name. It's not hard, but it's 
tedious, which is why I wanted to wait until we were sure we have an unchanging 
domain name to do it.

If this zorba-tests.28msec.us domain is guaranteed to be there forever, then I 
could probably do a global search/replace in perl pretty quickly.

-- 
https://code.launchpad.net/~zorba-coders/zorba/bugs-1022495-and-1022494/+merge/114185
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 1020588] Re: Illegal updating expressions

2012-07-10 Thread Chris Hillery
Markos -

2.5.4 Comma Expression

The semantics of comma expressions (composed of one or more expressions
concatenated by the comma operator, as described in Section 3.3.1
Constructing SequencesXQ) are extended as follows:

1. If any operand is an updating expression, then all operands must be
updating or vacuous expressions [err:XUST0001]. In this case, the comma
expression is an updating expression.


Doesn't Zorba's behaviour contradict that statement?

** Changed in: zorba
   Status: Invalid = Confirmed

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

Title:
  Illegal updating expressions

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  a/, delete node a/

  Expected: XUST0001
  Returned: a/

  Hope this helps,
  Christian

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1020588/+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/bug-1002993 into lp:zorba

2012-07-10 Thread Cezar Andrei
Review: Approve

It's fine.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/bug-1002993 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Attempt to merge into lp:zorba failed due to conflicts: 

text conflict in ChangeLog
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/bug-1002993 into lp:zorba has been 
updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Matthias Brantner
The proposal to merge lp:~zorba-coders/zorba/bug-1002993 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Attempt to merge into lp:zorba failed due to conflicts: 

text conflict in ChangeLog
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/bug-1002993 into lp:zorba has been 
updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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 1020588] Re: Illegal updating expressions

2012-07-10 Thread Markos Zaharioudakis
Didn't you read my comment?

Yes, with scritping enabled (which is the default), Zorba is not 100%
compliant with the XQUF spec. But if you disable scripting, then the
query does throw XUST0001.

This is not the only spec deviation introduced by scripting.


** Changed in: zorba
   Status: Confirmed = Invalid

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

Title:
  Illegal updating expressions

Status in Zorba - The XQuery Processor:
  Invalid

Bug description:
  a/, delete node a/

  Expected: XUST0001
  Returned: a/

  Hope this helps,
  Christian

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1020588/+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-07-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/114278

added auditing in zorba cmd.
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114278
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'bin/zorbacmd.cpp'
--- bin/zorbacmd.cpp	2012-06-28 04:14:03 +
+++ bin/zorbacmd.cpp	2012-07-10 21:26:21 +
@@ -803,7 +803,9 @@
 
 if (properties.trailingNl()) 
   outputStream  std::endl;
- 
+
+query-close();
+
  // stop the execution timer
 if (doTiming)
   timing.stopTimer(TimingInfo::EXEC_TIMER, i);

-- 
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 1020588] Re: Illegal updating expressions

2012-07-10 Thread Christian Gruen
If I got it right, you want to say that XQSE is not yet 100% compliant
with XQUF?

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

Title:
  Illegal updating expressions

Status in Zorba - The XQuery Processor:
  Invalid

Bug description:
  a/, delete node a/

  Expected: XUST0001
  Returned: a/

  Hope this helps,
  Christian

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1020588/+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 1023168] [NEW] Non-single-char-escapes in regex character ranges not caught

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

Regular expressions like:

  [\s-A]
  [A-\w]

i.e., those that involve non-single-character-escapes inside character
ranges are illegal according to XML Schema Part 2: Datatypes Second
Edition: F Regular Expressions. ICU either does not consider this an
error or does not catch it. The Zorba code that translates XQuery
regular expressions into ICU regular expressions also doesn't check for
it -- it's non-trivial to do.

** Affects: zorba
 Importance: Low
 Assignee: Paul J. Lucas (paul-lucas)
 Status: Triaged


** Tags: regex

** Changed in: zorba
   Importance: Undecided = Low

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

Title:
  Non-single-char-escapes in regex character ranges not caught

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Regular expressions like:

[\s-A]
[A-\w]

  i.e., those that involve non-single-character-escapes inside character
  ranges are illegal according to XML Schema Part 2: Datatypes Second
  Edition: F Regular Expressions. ICU either does not consider this an
  error or does not catch it. The Zorba code that translates XQuery
  regular expressions into ICU regular expressions also doesn't check
  for it -- it's non-trivial to do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1023168/+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-1022762 into lp:zorba

2012-07-10 Thread Paul J. Lucas
Paul J. Lucas has proposed merging lp:~paul-lucas/zorba/bug-1022762 into 
lp:zorba.

Requested reviews:
  Paul J. Lucas (paul-lucas)
Related bugs:
  Bug #1022762 in Zorba: Multi-char escapes wrongly forbidden in character 
class
  https://bugs.launchpad.net/zorba/+bug/1022762

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280

Reverted previous fix.
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/util/regex.cpp'
--- src/util/regex.cpp	2012-06-28 04:14:03 +
+++ src/util/regex.cpp	2012-07-10 21:39:32 +
@@ -124,103 +124,85 @@
   }
   got_backslash = false;
 
-  if ( in_char_class ) {
-//
-// When in a character class, only single-character escapes are
-// permitted.
-//
-switch ( *xq_c ) {
-  case '(':
-  case ')':
-  case '*':
-  case '+':
-  case '-':
-  case '.':
-  case 'n': // newline
-  case 'r': // carriage return
-  case 't': // tab
-  case '[':
-  case '\\':
-  case ']':
-  case '^':
-  case '{':
-  case '|':
-  case '}':
-*icu_re += '\\';
-break;
-  default:
-throw INVALID_RE_EXCEPTION( xq_re, ZED( BadRegexEscape_3 ), *xq_c );
-}
-  } else {
-switch ( *xq_c ) {
-  case 'c': // NameChar
-*icu_re += [ bs_c ];
-continue;
-  case 'C': // [^\c]
-*icu_re += [^ bs_c ];
-continue;
-  case 'i': // initial NameChar
-*icu_re += [ bs_i ];
-continue;
-  case 'I': // [^\i]
-*icu_re += [^ bs_i ];
-continue;
-  case '0':
-  case '1':
-  case '2':
-  case '3':
-  case '4':
-  case '5':
-  case '6':
-  case '7':
-  case '8':
-  case '9':
-backref_no = *xq_c - '0';
-if ( !backref_no )  // \0 is illegal
-  throw INVALID_RE_EXCEPTION( xq_re, ZED( BackRef0Illegal ) );
-if ( in_char_class ) {
-  //
-  // XQuery 3.0 FO 5.6.1: Within a character class expression,
-  // \ followed by a digit is invalid.
-  //
-  throw INVALID_RE_EXCEPTION(
-xq_re, ZED( BackRefIllegalInCharClass )
-  );
-}
-in_backref = true;
-// no break;
-  case '$':
-  case '(':
-  case ')':
-  case '*':
-  case '+':
-  case '-':
-  case '.':
-  case '?':
-  case 'd': // [0-9]
-  case 'D': // [^\d]
-  case 'n': // newline
-  case 'p': // category escape
-  case 'P': // [^\p]
-  case 'r': // carriage return
-  case 's': // whitespace
-  case 'S': // [^\s]
-  case 't': // tab
-  case 'w': // word char
-  case 'W': // [^\w]
-  case '[':
-  case '\\':
-  case ']':
-  case '^':
-  case '{':
-  case '|':
-  case '}':
-*icu_re += '\\';
-break;
-  default:
-throw INVALID_RE_EXCEPTION( xq_re, ZED( BadRegexEscape_3 ), *xq_c );
-}
-  } // if ( in_char_class )
+  switch ( *xq_c ) {
+
+// Back-References 
+
+case '0':
+case '1':
+case '2':
+case '3':
+case '4':
+case '5':
+case '6':
+case '7':
+case '8':
+case '9':
+  backref_no = *xq_c - '0';
+  if ( !backref_no )  // \0 is illegal
+throw INVALID_RE_EXCEPTION( xq_re, ZED( BackRef0Illegal ) );
+  if ( in_char_class ) {
+//
+// XQuery 3.0 FO 5.6.1: Within a character class expression,
+// \ followed by a digit is invalid.
+//
+throw INVALID_RE_EXCEPTION(
+  xq_re, ZED( BackRefIllegalInCharClass )
+);
+  }
+  in_backref = true;
+  // no break;
+
+// Single Character Escapes ///
+
+case '$': // added in XQuery 3.0 FO 5.6.1
+case '(':
+case ')':
+case '*':
+case '+':
+case '-':
+case '.':
+case '?':
+case '[':
+case '\\':
+case ']':
+case '^':
+case 'n': // newline
+case 'r': // carriage return
+case 't': // tab
+case '{':
+case '|':
+case '}':
+  // no break;
+
+// Multi-Character  Category Escapes /
+
+case 'd': // [0-9]
+case 'D': // [^\d]
+   

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

2012-07-10 Thread Paul J. Lucas
Review: Approve


-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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 1023170] [NEW] Segfault in xml:parse

2012-07-10 Thread mb21
Public bug reported:

We compiled the zorba from source, revision 10923 and we still get a
segfault when running xml:parse on something we got from either http:get
or fetch:content. Maybe reopen bug #867154 or bug #1020953

Replacing the let http:get() with variable http:get(); fixes it.

$ zorba -f -q variable-zorba.xq
[Thread debugging using libthread_db enabled]
?xml version=1.0 encoding=UTF-8?

Program received signal SIGSEGV, Segmentation fault.
0xb54e29de in std::basic_istreamchar, std::char_traitschar 
::sentry::sentry(std::basic_istreamchar, std::char_traitschar , bool) () 
from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0xb54e29de in std::basic_istreamchar, std::char_traitschar 
::sentry::sentry(std::basic_istreamchar, std::char_traitschar , bool) () 
from /usr/lib/i386-linux-gnu/libstdc++.so.6
#1  0xb54e2fee in std::basic_istreamchar, std::char_traitschar 
::read(char*, int) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#2  0xb7a0eb71 in zorba::simplestore::FastXmlLoader::readPacket 
(this=0x8134260, stream=..., buf=0x81c6c6b , size=0)
at /home/tillw/code/zorba/zorba/src/store/naive/loader_fast.cpp:242
#3  0xb7a13ac2 in zorba::simplestore::FragmentXmlLoader::fillBuffer 
(this=0x8134260, theFragmentStream=0x814687c)
at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:161
#4  0xb7a143e3 in zorba::simplestore::FragmentXmlLoader::loadXml 
(this=0x8134260, baseUri=..., docUri=..., stream=...)
at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:260
#5  0xb7a36246 in zorba::simplestore::Store::loadDocument (this=0xb7fde600, 
baseUri=..., docUri=..., stream=..., loadProperties=...)
at /home/tillw/code/zorba/zorba/src/store/naive/store.cpp:1030
#6  0xb75ffc88 in zorba::FnZorbaParseXmlFragmentIterator::nextImpl 
(this=0x81640e0, result=..., planState=...)
at 
/home/tillw/code/zorba/zorba/src/runtime/parsing_and_serializing/parse_fragment_impl.cpp:230
#7  0xb73fc81d in 
zorba::Batcherzorba::FnZorbaParseXmlFragmentIterator::produceNext 
(this=0x81640e0, result=..., planState=...)
at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
#8  0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., iter=0x81640e0, 
planState=...)
at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
#9  0xb77e7a32 in zorba::SequentialIterator::nextImpl (this=0x8164170, 
result=..., planState=...)
at /home/tillw/code/zorba/zorba/src/runtime/scripting/scripting.cpp:96
#10 0xb77f069d in zorba::Batcherzorba::SequentialIterator::produceNext 
(this=0x8164170, result=..., planState=...)
at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
#11 0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., iter=0x8164170, 
planState=...)
at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
#12 0xb76a6156 in zorba::PlanWrapper::next (this=0x8138d18, result=...)
at /home/tillw/code/zorba/zorba/src/runtime/api/plan_wrapper.cpp:151
#13 0xb7014061 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., 
aOStream=..., aHandler=0x0)
at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2781
#14 0xb7013da2 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., 
aOStream=...)
at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2733
#15 0xb6fb747e in zorba::XQueryImpl::serialize (this=0x8133258, os=..., 
aWrapper=..., opt=0xbfffe7f0)
at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1305
#16 0xb6fb6889 in zorba::XQueryImpl::execute (this=0x8133258, os=..., 
opt=0xbfffe7f0)
at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1131
#17 0x0805a91e in compileAndExecute (zorbaInstance=0xb7fda600, properties=..., 
staticContext=..., qfilepath=..., qfile=...,
outputStream=..., timing=...) at 
/home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:801
#18 0x0805bdee in main (argc=4, argv=0xb024) at 
/home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:1081

** Affects: zorba
 Importance: Undecided
 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/1023170

Title:
  Segfault in xml:parse

Status in Zorba - The XQuery Processor:
  New

Bug description:
  We compiled the zorba from source, revision 10923 and we still get a
  segfault when running xml:parse on something we got from either
  http:get or fetch:content. Maybe reopen bug #867154 or bug #1020953

  Replacing the let http:get() with variable http:get(); fixes it.

  $ zorba -f -q variable-zorba.xq
  [Thread debugging using libthread_db enabled]
  ?xml version=1.0 encoding=UTF-8?

  Program received signal SIGSEGV, Segmentation fault.
  0xb54e29de in std::basic_istreamchar, std::char_traitschar 
::sentry::sentry(std::basic_istreamchar, std::char_traitschar , bool) () 
from /usr/lib/i386-linux-gnu/libstdc++.so.6
  (gdb) bt
  #0  0xb54e29de in std::basic_istreamchar, 

[Zorba-coders] [Bug 1023170] Re: Segfault in xml:parse

2012-07-10 Thread mb21
** Attachment added: reproduce
   
https://bugs.launchpad.net/bugs/1023170/+attachment/3218992/+files/variable-zorba.xq

** Description changed:

  We compiled the zorba from source, revision 10923 and we still get a
  segfault when running xml:parse on something we got from either http:get
- or fetch:content. Maybe reopen bug #867154
+ or fetch:content. Maybe reopen bug #867154 or bug #1020953
  
  Replacing the let http:get() with variable http:get(); fixes it.
- 
  
  $ zorba -f -q variable-zorba.xq
  [Thread debugging using libthread_db enabled]
  ?xml version=1.0 encoding=UTF-8?
  
  Program received signal SIGSEGV, Segmentation fault.
  0xb54e29de in std::basic_istreamchar, std::char_traitschar 
::sentry::sentry(std::basic_istreamchar, std::char_traitschar , bool) () 
from /usr/lib/i386-linux-gnu/libstdc++.so.6
  (gdb) bt
  #0  0xb54e29de in std::basic_istreamchar, std::char_traitschar 
::sentry::sentry(std::basic_istreamchar, std::char_traitschar , bool) () 
from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #1  0xb54e2fee in std::basic_istreamchar, std::char_traitschar 
::read(char*, int) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #2  0xb7a0eb71 in zorba::simplestore::FastXmlLoader::readPacket 
(this=0x8134260, stream=..., buf=0x81c6c6b , size=0)
- at /home/tillw/code/zorba/zorba/src/store/naive/loader_fast.cpp:242
+ at /home/tillw/code/zorba/zorba/src/store/naive/loader_fast.cpp:242
  #3  0xb7a13ac2 in zorba::simplestore::FragmentXmlLoader::fillBuffer 
(this=0x8134260, theFragmentStream=0x814687c)
- at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:161
+ at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:161
  #4  0xb7a143e3 in zorba::simplestore::FragmentXmlLoader::loadXml 
(this=0x8134260, baseUri=..., docUri=..., stream=...)
- at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:260
+ at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:260
  #5  0xb7a36246 in zorba::simplestore::Store::loadDocument (this=0xb7fde600, 
baseUri=..., docUri=..., stream=..., loadProperties=...)
- at /home/tillw/code/zorba/zorba/src/store/naive/store.cpp:1030
+ at /home/tillw/code/zorba/zorba/src/store/naive/store.cpp:1030
  #6  0xb75ffc88 in zorba::FnZorbaParseXmlFragmentIterator::nextImpl 
(this=0x81640e0, result=..., planState=...)
- at 
/home/tillw/code/zorba/zorba/src/runtime/parsing_and_serializing/parse_fragment_impl.cpp:230
+ at 
/home/tillw/code/zorba/zorba/src/runtime/parsing_and_serializing/parse_fragment_impl.cpp:230
  #7  0xb73fc81d in 
zorba::Batcherzorba::FnZorbaParseXmlFragmentIterator::produceNext 
(this=0x81640e0, result=..., planState=...)
- at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
+ at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
  #8  0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., 
iter=0x81640e0, planState=...)
- at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
+ at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
  #9  0xb77e7a32 in zorba::SequentialIterator::nextImpl (this=0x8164170, 
result=..., planState=...)
- at /home/tillw/code/zorba/zorba/src/runtime/scripting/scripting.cpp:96
+ at /home/tillw/code/zorba/zorba/src/runtime/scripting/scripting.cpp:96
  #10 0xb77f069d in zorba::Batcherzorba::SequentialIterator::produceNext 
(this=0x8164170, result=..., planState=...)
- at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
+ at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
  #11 0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., 
iter=0x8164170, planState=...)
- at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
+ at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
  #12 0xb76a6156 in zorba::PlanWrapper::next (this=0x8138d18, result=...)
- at /home/tillw/code/zorba/zorba/src/runtime/api/plan_wrapper.cpp:151
+ at /home/tillw/code/zorba/zorba/src/runtime/api/plan_wrapper.cpp:151
  #13 0xb7014061 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., 
aOStream=..., aHandler=0x0)
- at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2781
+ at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2781
  #14 0xb7013da2 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., 
aOStream=...)
- at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2733
+ at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2733
  #15 0xb6fb747e in zorba::XQueryImpl::serialize (this=0x8133258, os=..., 
aWrapper=..., opt=0xbfffe7f0)
- at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1305
+ at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1305
  #16 0xb6fb6889 in zorba::XQueryImpl::execute (this=0x8133258, os=..., 
opt=0xbfffe7f0)
- at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1131

[Zorba-coders] [Bug 1022762] Re: Multi-char escapes wrongly forbidden in character class

2012-07-10 Thread Paul J. Lucas
It's been decided to remove the fix and mark regex_err16.xq as an
expected failure. A new bug #1023168 has been created.

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

Title:
  Multi-char escapes wrongly forbidden in character class

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  If you have a character range, e.g., A-Z, then the end-point chars in
  the range can be SingleCharEsc. A while ago, a fix was made for
  this, but the fix went too far and forbids MultiCharEsc within
  charClassExpr.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1022762/+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-1022762 into lp:zorba

2012-07-10 Thread Paul J. Lucas
The proposal to merge lp:~paul-lucas/zorba/bug-1022762 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/bug-1022762-2012-07-10T21-43-57.687Z/log.html
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
The attempt to merge lp:~paul-lucas/zorba/bug-1022762 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 bug-1022762-2012-07-10T21-43-57.687Z is finished.  The
  final status was:

  

  2 tests did not succeed - changes not commited.


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

-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~paul-lucas/zorba/bug-1022762 into lp:zorba has been 
updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Paul J. Lucas
The proposal to merge lp:~paul-lucas/zorba/bug-1022762 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/bug-1022762-2012-07-10T22-38-00.238Z/log.html
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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 1023168] Re: Non-single-char-escapes in regex character ranges not caught

2012-07-10 Thread Paul J. Lucas
** Description changed:

  Regular expressions like:
  
-   [\s-A]
-   [A-\w]
+   [\s-A]
  
  i.e., those that involve non-single-character-escapes inside character
  ranges are illegal according to XML Schema Part 2: Datatypes Second
  Edition: F Regular Expressions. ICU either does not consider this an
  error or does not catch it. The Zorba code that translates XQuery
  regular expressions into ICU regular expressions also doesn't check for
  it -- it's non-trivial to do.

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

Title:
  Non-single-char-escapes in regex character ranges not caught

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Regular expressions like:

    [\s-A]

  i.e., those that involve non-single-character-escapes inside character
  ranges are illegal according to XML Schema Part 2: Datatypes Second
  Edition: F Regular Expressions. ICU either does not consider this an
  error or does not catch it. The Zorba code that translates XQuery
  regular expressions into ICU regular expressions also doesn't check
  for it -- it's non-trivial to do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1023168/+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 1020588] Re: Illegal updating expressions

2012-07-10 Thread Markos Zaharioudakis
Yes, Zorba's XQSE is not 100% compliant with W3C XQUF.

There is also the W3C XQSE spec (http://www.w3.org/TR/xquery-sx-10/),
but it's only a working draft, which has not been updated for more than
2 years and which is not implemented by anybody (as far as I know).
Nevertheless, W3C XQSE takes the same approach as Zorba's XQSE with
regard to the issue raised by this bug. Read section 2.4:

2.4 Updating Expression Constraints

XQSX relaxes the constraints on the placement of updating expressions,
so that a non-empty XDM instance can be returned by an expression as
well as a non-empty pending update list. In order to allow this, new
rules to determine the category and resulting pending update list are
added to every existing expression, following certain principles:

etc...

Furthermore, what does compliant really mean? The W3C XQSE spec says
the following (in section 1):

XQSX has the following properties:

It is a strict superset of XQUF, in the sense that all valid XQUF
expressions are also valid XQSX expressions and have the same meaning.
(In the same sense, XQUF is a strict superset of [XQuery 1.0].)

I believe the same is true for Zorba's XQSE (but i need to double check
this). But your query is not a *valid* XQUF expression, so is there
really any violation here?

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

Title:
  Illegal updating expressions

Status in Zorba - The XQuery Processor:
  Invalid

Bug description:
  a/, delete node a/

  Expected: XUST0001
  Returned: a/

  Hope this helps,
  Christian

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1020588/+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:~paul-lucas/zorba/bug-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
The attempt to merge lp:~paul-lucas/zorba/bug-1022762 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 bug-1022762-2012-07-10T22-38-00.238Z is finished.  The
  final status was:

  

  2 tests did not succeed - changes not commited.


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

-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~paul-lucas/zorba/bug-1022762 into lp:zorba has been 
updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-07-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/114297

added auditing in zorba cmd + fixed bug in auditing the parse time
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'bin/zorbacmd.cpp'
--- bin/zorbacmd.cpp	2012-06-28 04:14:03 +
+++ bin/zorbacmd.cpp	2012-07-10 23:16:22 +
@@ -803,7 +803,9 @@
 
 if (properties.trailingNl()) 
   outputStream  std::endl;
- 
+
+query-close();
+
  // stop the execution timer
 if (doTiming)
   timing.stopTimer(TimingInfo::EXEC_TIMER, i);

-- 
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-07-10 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Commit Message changed to:

added auditing in zorba cmd + fixed bug in auditing the parse time

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
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 1020588] Re: Illegal updating expressions

2012-07-10 Thread Christian Gruen
Thanks for your clarification, and in particular for the reference to
2.4, which clearly shows that Zorba is compliant with the spec.

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

Title:
  Illegal updating expressions

Status in Zorba - The XQuery Processor:
  Invalid

Bug description:
  a/, delete node a/

  Expected: XUST0001
  Returned: a/

  Hope this helps,
  Christian

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1020588/+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-07-10 Thread Markos Zaharioudakis
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
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-07-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/114297
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
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-07-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/markos-scratch-2012-07-11T00-15-03.097Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
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 1023170] Re: Segfault in xml:parse

2012-07-10 Thread Chris Hillery
I'll take a look, as it is quite possibly to do with streams and URI
resolution again. If it ends up being inside the parse code itself I'll
re-assign to Nicolae, I believe.

** Changed in: zorba
   Status: New = Confirmed

** Changed in: zorba
   Importance: Undecided = High

** Changed in: zorba
 Assignee: (unassigned) = Chris Hillery (ceejatec)

** Changed in: zorba
Milestone: None = 2.7

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

Title:
  Segfault in xml:parse

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  We compiled the zorba from source, revision 10923 and we still get a
  segfault when running xml:parse on something we got from either
  http:get or fetch:content. Maybe reopen bug #867154 or bug #1020953

  Replacing the let http:get() with variable http:get(); fixes it.

  $ zorba -f -q variable-zorba.xq
  [Thread debugging using libthread_db enabled]
  ?xml version=1.0 encoding=UTF-8?

  Program received signal SIGSEGV, Segmentation fault.
  0xb54e29de in std::basic_istreamchar, std::char_traitschar 
::sentry::sentry(std::basic_istreamchar, std::char_traitschar , bool) () 
from /usr/lib/i386-linux-gnu/libstdc++.so.6
  (gdb) bt
  #0  0xb54e29de in std::basic_istreamchar, std::char_traitschar 
::sentry::sentry(std::basic_istreamchar, std::char_traitschar , bool) () 
from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #1  0xb54e2fee in std::basic_istreamchar, std::char_traitschar 
::read(char*, int) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #2  0xb7a0eb71 in zorba::simplestore::FastXmlLoader::readPacket 
(this=0x8134260, stream=..., buf=0x81c6c6b , size=0)
  at /home/tillw/code/zorba/zorba/src/store/naive/loader_fast.cpp:242
  #3  0xb7a13ac2 in zorba::simplestore::FragmentXmlLoader::fillBuffer 
(this=0x8134260, theFragmentStream=0x814687c)
  at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:161
  #4  0xb7a143e3 in zorba::simplestore::FragmentXmlLoader::loadXml 
(this=0x8134260, baseUri=..., docUri=..., stream=...)
  at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:260
  #5  0xb7a36246 in zorba::simplestore::Store::loadDocument (this=0xb7fde600, 
baseUri=..., docUri=..., stream=..., loadProperties=...)
  at /home/tillw/code/zorba/zorba/src/store/naive/store.cpp:1030
  #6  0xb75ffc88 in zorba::FnZorbaParseXmlFragmentIterator::nextImpl 
(this=0x81640e0, result=..., planState=...)
  at 
/home/tillw/code/zorba/zorba/src/runtime/parsing_and_serializing/parse_fragment_impl.cpp:230
  #7  0xb73fc81d in 
zorba::Batcherzorba::FnZorbaParseXmlFragmentIterator::produceNext 
(this=0x81640e0, result=..., planState=...)
  at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
  #8  0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., 
iter=0x81640e0, planState=...)
  at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
  #9  0xb77e7a32 in zorba::SequentialIterator::nextImpl (this=0x8164170, 
result=..., planState=...)
  at /home/tillw/code/zorba/zorba/src/runtime/scripting/scripting.cpp:96
  #10 0xb77f069d in zorba::Batcherzorba::SequentialIterator::produceNext 
(this=0x8164170, result=..., planState=...)
  at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535
  #11 0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., 
iter=0x8164170, planState=...)
  at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109
  #12 0xb76a6156 in zorba::PlanWrapper::next (this=0x8138d18, result=...)
  at /home/tillw/code/zorba/zorba/src/runtime/api/plan_wrapper.cpp:151
  #13 0xb7014061 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., 
aOStream=..., aHandler=0x0)
  at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2781
  #14 0xb7013da2 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., 
aOStream=...)
  at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2733
  #15 0xb6fb747e in zorba::XQueryImpl::serialize (this=0x8133258, os=..., 
aWrapper=..., opt=0xbfffe7f0)
  at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1305
  #16 0xb6fb6889 in zorba::XQueryImpl::execute (this=0x8133258, os=..., 
opt=0xbfffe7f0)
  at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1131
  #17 0x0805a91e in compileAndExecute (zorbaInstance=0xb7fda600, 
properties=..., staticContext=..., qfilepath=..., qfile=...,
  outputStream=..., timing=...) at 
/home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:801
  #18 0x0805bdee in main (argc=4, argv=0xb024) at 
/home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:1081

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

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

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

2012-07-10 Thread Zorba Build Bot
Validation queue job markos-scratch-2012-07-11T00-15-03.097Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
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-07-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/114297
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114297
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:~nbrinza/zorba/error-messages into lp:zorba

2012-07-10 Thread Chris Hillery
The proposal to merge lp:~nbrinza/zorba/error-messages into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~nbrinza/zorba/error-messages/+merge/114003
-- 
https://code.launchpad.net/~nbrinza/zorba/error-messages/+merge/114003
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:~nbrinza/zorba/error-messages into lp:zorba

2012-07-10 Thread Zorba Build Bot
Attempt to merge into lp:zorba failed due to conflicts: 

text conflict in src/compiler/parser/xquery_scanner.cpp
-- 
https://code.launchpad.net/~nbrinza/zorba/error-messages/+merge/114003
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:~nbrinza/zorba/error-messages into lp:zorba

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~nbrinza/zorba/error-messages into lp:zorba has been 
updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~nbrinza/zorba/error-messages/+merge/114003
-- 
https://code.launchpad.net/~nbrinza/zorba/error-messages/+merge/114003
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-1022762 into lp:zorba

2012-07-10 Thread Paul J. Lucas
The proposal to merge lp:~paul-lucas/zorba/bug-1022762 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/bug-1022762-2012-07-11T02-21-58.677Z/log.html
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue job bug-1022762-2012-07-11T02-21-58.677Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Voting does not meet specified criteria. Required: Approve  1, Disapprove  1, 
Needs Fixing  1, Pending  1. Got: 1 Approve.
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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-1022762 into lp:zorba

2012-07-10 Thread Zorba Build Bot
The proposal to merge lp:~paul-lucas/zorba/bug-1022762 into lp:zorba has been 
updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1022762/+merge/114280
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/feature-unordered_map into lp:zorba

2012-07-10 Thread Paul J. Lucas
Paul J. Lucas has proposed merging lp:~paul-lucas/zorba/feature-unordered_map 
into lp:zorba.

Requested reviews:
  Paul J. Lucas (paul-lucas)

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/feature-unordered_map/+merge/114328

Fixed typo.
-- 
https://code.launchpad.net/~paul-lucas/zorba/feature-unordered_map/+merge/114328
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/util/unordered_map.h'
--- src/util/unordered_map.h	2012-06-05 14:16:41 +
+++ src/util/unordered_map.h	2012-07-11 04:13:23 +
@@ -46,7 +46,7 @@
  * As such, it lacks member functions that use r-value references.
  *
  * @tparam KeyType They map's key type.
- * @tparam MappedType The type the keys are mapped to.
+ * @tparam ValueType The type the keys are mapped to.
  * @tparam KeyHash The unary_function to use for generating hash codes.
  * @tparam KeyEqual The binary_function to use to test for key equality.
  * @tparam Allocator The allocator to use.

-- 
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 1002993] Re: Assertion `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed

2012-07-10 Thread Markos Zaharioudakis
** Changed in: zorba
 Assignee: Cezar Andrei (cezar-andrei) = Markos Zaharioudakis (markos-za)

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

Title:
  Assertion `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The following query and schema cause an assertion to fail.

  src/types/typeops.cpp:145: static zorba::store::SchemaTypeCode
  zorba::TypeOps::get_atomic_type_code(const zorba::XQType): Assertion
  `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed.

  -- query --

  import schema namespace f =
  http://www.evaluescience.com/schemas/forms; at forms.xsd;

  declare namespace an = http://www.zorba-xquery.com/annotations;;

  declare %an:no-cache %an:sequential function local:test2() {

 variable $form := validate strict {
   f:form
 f:hidden name=myid value=3/
   /f:form
 };
 replace value of node $form/f:hidden/@value with hello;

 ok
  };

  local:test2()

  -- schema --

  ?xml version=1.0 encoding=utf-8?
  xs:schema targetNamespace=http://www.evaluescience.com/schemas/forms;
 xmlns = http://www.evaluescience.com/schemas/forms;
 xmlns:xs=http://www.w3.org/2001/XMLSchema; 
elementFormDefault=qualified

  xs:complexType name=Form
   xs:sequence
xs:any namespace=##targetNamespace minOccurs=0
 maxOccurs=unbounded
/xs:any
   /xs:sequence
  /xs:complexType

xs:element name=form type=Form/xs:element

  xs:complexType name=Hidden
   xs:attribute name=name type=xs:string 
use=required/xs:attribute
xs:attribute name=value type=xs:anySimpleType
  use=optional /
  /xs:complexType

  xs:element name=hidden type=Hidden/xs:element

  /xs:schema

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1002993/+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/bug-1002993 into lp:zorba

2012-07-10 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/bug-1002993 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/bug-1002993-2012-07-11T05-02-50.735Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread Zorba Build Bot
Validation queue job bug-1002993-2012-07-11T05-02-50.735Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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/bug-1002993 into lp:zorba

2012-07-10 Thread noreply
The proposal to merge lp:~zorba-coders/zorba/bug-1002993 into lp:zorba has been 
updated.

Status: Approved = Merged

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1002993/+merge/108304
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-07-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/114336

Avoid (if possible) treat expr for checking that the value of a non-external 
global variable conforms to the type declaration of the vatiable
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114336
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog	2012-07-11 04:46:41 +
+++ ChangeLog	2012-07-11 05:37:40 +
@@ -23,6 +23,8 @@
   * Optimized hash function used for nodes (also fixes bug #1010051)
   * No more serialization of compiler expressions.
   * Big rewrite of plan serializer internals, resulting in big performance improvement.
+  * Avoid (if possible) treat expr for checking that the value of a non-external
+global variable conforms to the type declaration of the vatiable.
 
 Bug Fixes/Other Changes:
   * Fixed bug #1002993 (bug during revalidation after update; improper condition

=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp	2012-07-11 05:28:20 +
+++ src/compiler/translator/translator.cpp	2012-07-11 05:37:40 +
@@ -1923,12 +1923,21 @@
 varType = GENV_TYPESYSTEM.ITEM_TYPE_ONE;
   }
 
+  if (initExpr != NULL  varType != NULL)
+  {
+initExpr = new treat_expr(theRootSctx,
+  loc,
+  initExpr,
+  varType,
+  TreatIterator::TYPE_MATCH);
+  }
+
   expr_t declExpr = new var_decl_expr(theRootSctx, loc, varExpr, initExpr);
 
   stmts.push_back(declExpr);
 
   // check type for vars that are external or have an init expr
-  if (varType != NULL  (b.is_extern() || b.theExpr != NULL))
+  if (varType != NULL  b.is_extern())
   {
 expr_t getExpr = new fo_expr(theRootSctx, loc, varGet, varExpr);
 

-- 
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 1002993] Re: Assertion `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed

2012-07-10 Thread Markos Zaharioudakis
** 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/1002993

Title:
  Assertion `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  The following query and schema cause an assertion to fail.

  src/types/typeops.cpp:145: static zorba::store::SchemaTypeCode
  zorba::TypeOps::get_atomic_type_code(const zorba::XQType): Assertion
  `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed.

  -- query --

  import schema namespace f =
  http://www.evaluescience.com/schemas/forms; at forms.xsd;

  declare namespace an = http://www.zorba-xquery.com/annotations;;

  declare %an:no-cache %an:sequential function local:test2() {

 variable $form := validate strict {
   f:form
 f:hidden name=myid value=3/
   /f:form
 };
 replace value of node $form/f:hidden/@value with hello;

 ok
  };

  local:test2()

  -- schema --

  ?xml version=1.0 encoding=utf-8?
  xs:schema targetNamespace=http://www.evaluescience.com/schemas/forms;
 xmlns = http://www.evaluescience.com/schemas/forms;
 xmlns:xs=http://www.w3.org/2001/XMLSchema; 
elementFormDefault=qualified

  xs:complexType name=Form
   xs:sequence
xs:any namespace=##targetNamespace minOccurs=0
 maxOccurs=unbounded
/xs:any
   /xs:sequence
  /xs:complexType

xs:element name=form type=Form/xs:element

  xs:complexType name=Hidden
   xs:attribute name=name type=xs:string 
use=required/xs:attribute
xs:attribute name=value type=xs:anySimpleType
  use=optional /
  /xs:complexType

  xs:element name=hidden type=Hidden/xs:element

  /xs:schema

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1002993/+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-07-10 Thread Markos Zaharioudakis
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114336
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-07-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/114336
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114336
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-07-10 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/markos-scratch-2012-07-11T05-42-58.896Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/114336
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/matthias-disallow-mixed-tests into lp:zorba

2012-07-10 Thread Till Westmann
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/matthias-disallow-mixed-tests/+merge/114176
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/matthias-disallow-mixed-tests into lp:zorba

2012-07-10 Thread Till Westmann
The proposal to merge lp:~zorba-coders/zorba/matthias-disallow-mixed-tests into 
lp:zorba has been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/matthias-disallow-mixed-tests/+merge/114176
-- 
https://code.launchpad.net/~zorba-coders/zorba/matthias-disallow-mixed-tests/+merge/114176
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