From: Jens Ø. P. <oe...@gm...> - 2011-11-25 12:13:28
|
Hi Wolfgang, This bug was introduced with your revision 15457 changes to Optimizer.java. Best, Jens xquery version "1.0"; declare namespace bu="http://portal.bungeni.org/1.0/"; let $input := <bu:ontology xmlns:bu="http://portal.bungeni.org/1.0/" type="document"> <bu:document type="bill"/> <bu:bungeni> <bu:country>ke</bu:country> <bu:parliament date="2011-03-02" href="/ke/parliament/2011-03-02" isA="TLCOrganization"/> </bu:bungeni> <bu:bill isA="TLCConcept"> <bu:group href="/ke/parliament/2011-03-02/group/96" isA="ministry"/> </bu:bill> <bu:legislativeItem isA="TLCConcept" uri="/ke/parliament/2011-03-02/bill/359:29-bill/en"> <bu:owner href="/ke/parliament/2011-03-02/user/93" isA="user" showAs="P1_10, member"/> <bu:legislativeItemId>726</bu:legislativeItemId> <bu:wfevents> <bu:wfevent date="2011-11-09T01:39:00" href="/ke/parliament/2011-03-02/event/727/en" isA="TLCEvent" showAs="Event added by the Clerk (published internally)"/> <bu:wfevent date="2011-11-09T01:39:00" href="/ke/parliament/2011-03-02/event/728/en" isA="TLCEvent" showAs="Event added by the Clerk"/> </bu:wfevents> <bu:statusDate type="xs:dateTime">2011-11-09T01:40:10.386087</bu:statusDate> <bu:versions> <bu:version id="ver-150" isA="TLCConcept" uri="/ke/parliament/2011-03-02/bill/359:29-bill/en@2011-11-09T01:40:10" user-generated="false"> <bu:status>gazetted</bu:status> <bu:type href="/ontology/ke/bill/government" showAs="government"/> <bu:shortName>Bill P1_10 (as Clerk - cosignatory - allow scheduling first reading)</bu:shortName> <bu:language>en</bu:language> <bu:body><div xmlns="http://www.w3.org/1999/xhtml/"> edit CLERK <div xmlns="" style="text-align: center;"> <strong style="font-size: 17px;">bill description</strong> </div> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description <span style="text-decoration: underline;">bill description bill description bill description bill description</span> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </div> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description bill description </li> </ol> <ul xmlns="" style="text-align: justify;"> <li>bill description bill <strong>description bill description</strong> bill description </li> <li>bill description bill description bill description bill description description bill description bill description </li> <li>bill description bill description bill description bill description </li> </ul> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </li> </ol> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description</strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill <span style="text-decoration: underline;">description bill description bill description bill description bill description bill description bill description bill description </span>bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong> bill description bill description bill description bill description </strong>bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill descriptionv </div> </div></bu:body> <bu:field name="change_id">793</bu:field> <bu:statusDate type="xs:dateTime">2011-11-09T01:40:10.386087</bu:statusDate> <bu:field name="manual">False</bu:field> <bu:publicationDate type="xs:date">2011-02-02</bu:publicationDate> <bu:permissions> <bu:permission name="zope.View" role="bungeni.Owner" setting="Allow"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Signatory" setting="Allow"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Owner" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Speaker" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.MP" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Minister" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Authenticated" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Anonymous" setting="Allow"/> <bu:permission name="bungeni.groupitemassignment.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.groupitemassignment.Add" role="bungeni.Clerk" setting="Allow"/> </bu:permissions> </bu:version> <bu:version id="ver-149" isA="TLCConcept" uri="/ke/parliament/2011-03-02/bill/359:29-bill/en@2011-11-09T01:40:05" user-generated="false"> <bu:status>received</bu:status> <bu:type href="/ontology/ke/bill/government" showAs="government"/> <bu:shortName>Bill P1_10 (as Clerk - cosignatory - allow scheduling first reading)</bu:shortName> <bu:language>en</bu:language> <bu:body><div xmlns="http://www.w3.org/1999/xhtml/"> edit CLERK <div xmlns="" style="text-align: center;"> <strong style="font-size: 17px;">bill description</strong> </div> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description <span style="text-decoration: underline;">bill description bill description bill description bill description</span> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </div> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description bill description </li> </ol> <ul xmlns="" style="text-align: justify;"> <li>bill description bill <strong>description bill description</strong> bill description </li> <li>bill description bill description bill description bill description description bill description bill description </li> <li>bill description bill description bill description bill description </li> </ul> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </li> </ol> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description</strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill <span style="text-decoration: underline;">description bill description bill description bill description bill description bill description bill description bill description </span>bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong> bill description bill description bill description bill description </strong>bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill descriptionv </div> </div></bu:body> <bu:field name="change_id">790</bu:field> <bu:statusDate type="xs:dateTime">2011-11-09T01:40:05.260815</bu:statusDate> <bu:field name="manual">False</bu:field> <bu:publicationDate type="xs:date">2011-02-02</bu:publicationDate> <bu:permissions> <bu:permission name="zope.View" role="bungeni.Speaker" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.MP" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Minister" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Authenticated" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Anonymous" setting="Deny"/> <bu:permission name="bungeni.groupitemassignment.Edit" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.groupitemassignment.Add" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Owner" setting="Allow"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Signatory" setting="Allow"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Owner" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Clerk" setting="Allow"/> </bu:permissions> </bu:version> <bu:version id="ver-148" isA="TLCConcept" uri="/ke/parliament/2011-03-02/bill/359:29-bill/en@2011-11-09T01:39:39" user-generated="false"> <bu:status>submitted</bu:status> <bu:type href="/ontology/ke/bill/government" showAs="government"/> <bu:shortName>Bill P1_10 (as Clerk - cosignatory - allow scheduling first reading)</bu:shortName> <bu:language>en</bu:language> <bu:body><div xmlns="http://www.w3.org/1999/xhtml/"> edit CLERK <div xmlns="" style="text-align: center;"> <strong style="font-size: 17px;">bill description</strong> </div> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description <span style="text-decoration: underline;">bill description bill description bill description bill description</span> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </div> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description bill description </li> </ol> <ul xmlns="" style="text-align: justify;"> <li>bill description bill <strong>description bill description</strong> bill description </li> <li>bill description bill description bill description bill description description bill description bill description </li> <li>bill description bill description bill description bill description </li> </ul> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </li> </ol> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description</strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill <span style="text-decoration: underline;">description bill description bill description bill description bill description bill description bill description bill description </span>bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong> bill description bill description bill description bill description </strong>bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill descriptionv </div> </div></bu:body> <bu:field name="change_id">787</bu:field> <bu:statusDate type="xs:dateTime">2011-11-09T01:39:39.618665</bu:statusDate> <bu:field name="manual">False</bu:field> <bu:publicationDate type="xs:date">2011-02-02</bu:publicationDate> <bu:permissions> <bu:permission name="zope.View" role="bungeni.Speaker" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.MP" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Minister" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Authenticated" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Anonymous" setting="Deny"/> <bu:permission name="bungeni.groupitemassignment.Edit" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.groupitemassignment.Add" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Owner" setting="Allow"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Signatory" setting="Allow"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Owner" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Owner" setting="Deny"/> </bu:permissions> </bu:version> </bu:versions> <bu:changes> <bu:change> <bu:status>received</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"/> <bu:field name="change_id">792</bu:field> <bu:field name="date_active">2011-11-09T01:40:10.408374</bu:field> <bu:field name="date_audit">2011-11-09T01:40:10.408374</bu:field> <bu:field name="action">modified</bu:field> </bu:change> <bu:change> <bu:status>received</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description">received by clerk</bu:field> <bu:field name="change_id">791</bu:field> <bu:field name="date_active">2011-11-09T01:40:10.395268</bu:field> <bu:field name="date_audit">2011-11-09T01:40:10.395268</bu:field> <bu:field name="action">workflow</bu:field> </bu:change> <bu:change> <bu:status>received</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description">New version on workflow transition to: received</bu:field> <bu:field name="change_id">790</bu:field> <bu:field name="date_active">2011-11-09T01:40:10.348123</bu:field> <bu:field name="date_audit">2011-11-09T01:40:10.348123</bu:field> <bu:field name="action">new-version</bu:field> </bu:change> <bu:change> <bu:status>submitted</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"/> <bu:field name="change_id">789</bu:field> <bu:field name="date_active">2011-11-09T01:40:05.279044</bu:field> <bu:field name="date_audit">2011-11-09T01:40:05.279044</bu:field> <bu:field name="action">modified</bu:field> </bu:change> <bu:change> <bu:status>submitted</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description">Submitted to Clerk</bu:field> <bu:field name="change_id">788</bu:field> <bu:field name="date_active">2011-11-09T01:40:05.268060</bu:field> <bu:field name="date_audit">2011-11-09T01:40:05.268060</bu:field> <bu:field name="action">workflow</bu:field> </bu:change> <bu:change> <bu:status>submitted</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description">New version on workflow transition to: submitted</bu:field> <bu:field name="change_id">787</bu:field> <bu:field name="date_active">2011-11-09T01:40:05.230594</bu:field> <bu:field name="date_audit">2011-11-09T01:40:05.230594</bu:field> <bu:field name="action">new-version</bu:field> </bu:change> <bu:change> <bu:status>working_draft</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"> Signatory: Mrs member P1_CS modified</bu:field> <bu:field name="change_id">786</bu:field> <bu:field name="date_active">2011-11-09T01:40:03.008180</bu:field> <bu:field name="date_audit">2011-11-09T01:40:03.008180</bu:field> <bu:field name="action">Signatory</bu:field> </bu:change> <bu:change> <bu:status>working_draft</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"> Signatory: Mrs member P1_CS modified</bu:field> <bu:field name="change_id">785</bu:field> <bu:field name="date_active">2011-11-09T01:40:02.980178</bu:field> <bu:field name="date_audit">2011-11-09T01:40:02.980178</bu:field> <bu:field name="action">Signatory</bu:field> </bu:change> <bu:change> <bu:status>working_draft</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"> Signatory: Mrs member P1_CS added</bu:field> <bu:field name="change_id">784</bu:field> <bu:field name="date_active">2011-11-09T01:40:02.934232</bu:field> <bu:field name="date_audit">2011-11-09T01:40:02.934232</bu:field> <bu:field name="action">Signatory</bu:field> </bu:change> <bu:change> <bu:status>working_draft</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description">File attachment by Clerk (publish internally) demo-attachment.pdf edited</bu:field> <bu:field name="change_id">783</bu:field> <bu:field name="date_active">2011-11-09T01:39:51.116959</bu:field> <bu:field name="date_audit">2011-11-09T01:39:51.116959</bu:field> <bu:field name="action">attachment</bu:field> </bu:change> <bu:change> <bu:status>working_draft</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"/> <bu:field name="change_id">782</bu:field> <bu:field name="date_active">2011-11-09T01:39:42.644095</bu:field> <bu:field name="date_audit">2011-11-09T01:39:42.644095</bu:field> <bu:field name="action">modified</bu:field> </bu:change> <bu:change> <bu:status>working_draft</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"/> <bu:field name="change_id">781</bu:field> <bu:field name="date_active">2011-11-09T01:39:39.634408</bu:field> <bu:field name="date_audit">2011-11-09T01:39:39.634408</bu:field> <bu:field name="action">modified</bu:field> </bu:change> <bu:change> <bu:status>working_draft</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description">Working Draft</bu:field> <bu:field name="change_id">780</bu:field> <bu:field name="date_active">2011-11-09T01:39:39.624654</bu:field> <bu:field name="date_audit">2011-11-09T01:39:39.624654</bu:field> <bu:field name="action">workflow</bu:field> </bu:change> <bu:change> <bu:field name="user_id">91</bu:field> <bu:field name="description"/> <bu:field name="change_id">779</bu:field> <bu:field name="date_active">2011-11-09T01:39:39.559376</bu:field> <bu:field name="date_audit">2011-11-09T01:39:39.559376</bu:field> <bu:field name="action">added</bu:field> </bu:change> <bu:change> <bu:status>gazetted</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description">New version on workflow transition to: gazetted</bu:field> <bu:field name="change_id">793</bu:field> <bu:field name="date_active">2011-11-09T01:40:13.209460</bu:field> <bu:field name="date_audit">2011-11-09T01:40:13.209460</bu:field> <bu:field name="action">new-version</bu:field> </bu:change> <bu:change> <bu:status>gazetted</bu:status> <bu:field name="user_id">91</bu:field> <bu:field name="description"> Signatory: Mrs member P1_CS modified</bu:field> <bu:field name="change_id">794</bu:field> <bu:field name="date_active">2011-11-09T01:40:13.285635</bu:field> <bu:field name="date_audit">2011-11-09T01:40:13.285635</bu:field> <bu:field name="action">Signatory</bu:field> </bu:change> </bu:changes> <bu:registryNumber>359:29-bill</bu:registryNumber> <bu:body><div xmlns="http://www.w3.org/1999/xhtml/"> edit CLERK <div xmlns="" style="text-align: center;"> <strong style="font-size: 17px;">bill description</strong> </div> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description <span style="text-decoration: underline;">bill description bill description bill description bill description</span> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </div> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description bill description </li> </ol> <ul xmlns="" style="text-align: justify;"> <li>bill description bill <strong>description bill description</strong> bill description </li> <li>bill description bill description bill description bill description description bill description bill description </li> <li>bill description bill description bill description bill description </li> </ul> <ol xmlns="" style="text-align: justify;"> <li>bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description </li> </ol> <div xmlns="" style="text-align: justify;"> <strong style="color: rgb(192, 0, 0);">bill description bill description</strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill <span style="text-decoration: underline;">description bill description bill description bill description bill description bill description bill description bill description </span>bill description bill description bill description bill description bill description bill description bill description bill description <strong style="color: rgb(192, 0, 0);">bill description bill description </strong> bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description <strong> bill description bill description bill description bill description </strong>bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill description bill descriptionv </div> </div></bu:body> <bu:shortName>Bill P1_10 (as Clerk - cosignatory - allow scheduling first reading)</bu:shortName> <bu:status>gazetted</bu:status> <bu:language>en</bu:language> <bu:itemId>726</bu:itemId> <bu:publicationDate type="xs:date">2011-02-02</bu:publicationDate> <bu:type href="/ontology/ke/bill/government" showAs="government"/> <bu:permissions> <bu:permission name="zope.View" role="bungeni.Owner" setting="Allow"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Clerk" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Signatory" setting="Allow"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.bill.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.signatory.Delete" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Owner" setting="Deny"/> <bu:permission name="zope.View" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.signatory.Add" role="bungeni.Owner" setting="Deny"/> <bu:permission name="bungeni.bill.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.fileattachment.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.fileattachment.Add" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Speaker" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.MP" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Minister" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Authenticated" setting="Allow"/> <bu:permission name="zope.View" role="bungeni.Anonymous" setting="Allow"/> <bu:permission name="bungeni.groupitemassignment.Edit" role="bungeni.Clerk" setting="Allow"/> <bu:permission name="bungeni.groupitemassignment.Add" role="bungeni.Clerk" setting="Allow"/> </bu:permissions> </bu:legislativeItem> <bu:attached_files> <bu:attached_file> <bu:status>internal</bu:status> <bu:field name="file_title">attachment by Clerk (publish internally)</bu:field> <bu:field name="file_mimetype">application/pdf</bu:field> <bu:language>en</bu:language> <bu:field name="file_name">demo-attachment.pdf</bu:field> <bu:field name="attached_file_type">document</bu:field> <bu:field name="attached_file_id">762</bu:field> <bu:field name="item_id">726</bu:field> <bu:statusDate type="xs:dateTime">2011-11-09T01:39:51.095331</bu:statusDate> </bu:attached_file> <bu:attached_file> <bu:status>attached</bu:status> <bu:field name="file_title">attachment by Clerk</bu:field> <bu:field name="file_mimetype">application/pdf</bu:field> <bu:language>en</bu:language> <bu:field name="file_name">demo-attachment.pdf</bu:field> <bu:field name="attached_file_type">document</bu:field> <bu:field name="attached_file_id">761</bu:field> <bu:field name="item_id">726</bu:field> <bu:statusDate type="xs:dateTime">2011-11-09T01:39:46.246643</bu:statusDate> </bu:attached_file> </bu:attached_files> <bu:signatories> <bu:signatory href="/ke/parliament/2011-03-02/user/8" isA="user" showAs="P1_CS, member"/> </bu:signatories> </bu:ontology> let $ret1 := $input/bu:legislativeItem/bu:permissions/bu:permission[@name='zope.View' and @role='bungeni.Anonymous' and @setting='Allow' ] (: Returns 2 Result NODES -- WRONG BEHAVIOR , should return 1:) let $ret2 := $input/bu:legislativeItem/bu:permissions/bu:permission[@name='zope.View' and @role='bungeni.Anonymous' and @setting='Deny' ] (: Returns 2 Result NODES -- WRONG BEHAVIOR, should return 0 :) return <out> (<allow>{$ret1}</allow>,<deny>{$ret2}</deny>) </out> On Nov 23, 2011, at 9:34 AM, Jens Østergaard Petersen wrote: > Hi Ashok, > > I have no solution to your problem, but what appears to be happening is that > > /bu:ontology/bu:legislativeItem/bu:permissions/bu:permission[@name='zope.View' and @role='bungeni.Anonymous' and @setting='Allow' ] > > is interpreted as > > /bu:ontology/bu:legislativeItem//bu:permissions/bu:permission[@name='zope.View' and @role='bungeni.Anonymous' and @setting='Allow' ] > > since bu:permissions/bu:permission nodes are located inside /bu:ontology/bu:legislativeItem/bu:versions/bu:permissions/bu:permission as well inside /bu:ontology/bu:legislativeItem/bu:permissions/bu:permission, the correct place. > > That's of course also what you wrote! > > A correct result can be obtained by > > /bu:ontology/bu:legislativeItem/(bu:permissions except bu:versions)/bu:permission[@name='zope.View' and @role='bungeni.Anonymous' and @setting='Allow' ] > > but this of course should not be necessary. While this is OK, I think, in eXist, this also gives a correct result: > > /bu:ontology/bu:legislativeItem/bu:permissions/bu:permissions/bu:permission[@name='zope.View' and @role='bungeni.Anonymous' and @setting='Allow' ] > > - and that can't be right! > > Have a nice day, > > Jens > > On Nov 22, 2011, at 3:57 PM, ashok _ wrote: > >> I have been running eXist trunk for the last couple of weeks >> (currently tested with r15553 ) >> >> I noticed his odd XQuery XPath resolution problem, with incorrect >> results being returned : >> >> I have attached example XML document and XQuery files which return >> incorrect results on querying the XML document >> >> For example -- >> >> a query like : >> >> collection('/db/test')/bu:ontology/bu:legislativeItem/bu:permissions/bu:permission[@name='zope.View' >> and @role='bungeni.Anonymous' and @setting='Allow' ] >> >> matches permission nodes even on the descendants axis not just on the >> context axis ... >> >> The same works correctly on eXist stable (1.4.x ) ... >> >> Is this a known bug ? >> <on_bill_121.xml><test-1.xql><test-2.xql>------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d_______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open > |