Changeset 3491


Ignore:
Timestamp:
08/29/13 15:53:37 (11 years ago)
Author:
andmor
Message:

Removed call to sloot.xpath2 over the response. Call is now just done for logging purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.access.data/access/user.dpml

    r3486 r3491  
    254254                        <!-- get the user information -->
    255255                        <sequence>
    256                                 <request assignment="res">
     256                                <request assignment="response">
    257257                                        <identifier>active:org.basex.query</identifier>
    258258                                        <argument name="operator">
     
    268268                                        <argument name="args">this:arguments</argument>
    269269                                </request>
    270                                 <!-- pass the document returned by basex trough sloot.xpath2 so
    271                                 when we log the response (end of this dpml) the actual user
    272                                 document is logged instead of the value of its pointer!-->
    273                                 <request assignment="response">
    274                                         <identifier>active:sloot.xpath2</identifier>
    275                                         <argument name="operand">this:res</argument>
    276                                         <argument name="operator">
    277                                                 <literal type="xml">
    278                                                         <dummy>.</dummy>
    279                                                 </literal>
    280                                         </argument>
    281                                 </request>
    282 
    283                                 <!--    AAM: it would be better  to use sloot.xquery instead of sloot.xpath2
    284                 for instance to log the user document in its own line. However using it
    285                 causes a type mismatch in findUser.dpml since sloot.xquery does not seem
    286                 to return an element of type "document" as expected by findUser.dpml
    287                
    288                                         <request assignment="response">
    289                                         <identifier>active:sloot.xquery</identifier>
    290                                         <argument name="operator">
    291                                                 <literal type="xml"><dummy>{$NL}{$doc}{$NL}</dummy></literal>
    292                                         </argument>
    293                                         <argument name="NL">
    294                                                 <literal type="string">
    295 </literal>
    296                                         </argument>
    297                                         <argument name="doc">this:res</argument>
    298                                 </request>-->
    299 
    300270                        </sequence>
    301271                </then>
     
    317287                                <literal type="string">[access.data] User accessor response: [%1]</literal>
    318288                        </message>
    319                         <param>this:response</param>
     289                        <param>
     290                                <!-- pass the response trough sloot.xpath2 so the actual
     291                                user document is logged instead of the value of its pointer!-->
     292                                <request>
     293                                        <identifier>active:sloot.xpath2</identifier>
     294                                        <argument name="operand">this:response</argument>
     295                                        <argument name="operator">
     296                                                <literal type="xml">
     297                                                        <dummy>.</dummy>
     298                                                </literal>
     299                                        </argument>
     300                                </request>
     301                        </param>
    320302                </log>
    321303                <request>
Note: See TracChangeset for help on using the changeset viewer.