Feature #5096
Updated by Reynaud Sylvain about 11 years ago
Replace @path-template with list of <argument>: * @name="string" * @pattern="regexp | .*" @named-in-path="true|FALSE" * @path-format=" | VALUE | name/value" * @eval => the default value (_+example+: property('def')_). * text() => the default value (_+NOTE+: not allowed if preceding-sibling::argument[text()='']_). Example: <pre><code class="xml"> <view><!-- /vo/{vo=dteam}/{site=CC-IN2P3} --> <argument name="vo" path-format="name/value">dteam</argument> named-in-path="true">dteam</argument> <argument name="site">CC-IN2P3</argument> </view> </code></pre> Replace XPath functions path() and request() with args() and post(): * path( ) (_+NOTE+: 'key' no more supported here_). * arguments( args( [<key>] ) => XML or [string] (_+NOTE+: 'path' is a reserved keyword for 'key'_). * post( ) => XML (_+NOTE+: is a synonym for function current()_). Modify XPath functions view() and view_request(): * view( <view>, [<entries>] ) => XML. * view_post( <view>, <post>, [<entries>] ) => XML. Function arguments() args() is a <e:entries> XML document, which contains *ALL* of the following: * path * default values described in list of <argument> * key/values extracted from path * key/values extracted from query fields * key/values extracted from posted HTML form Function post() is any XML document, which contains *ONLY ONE* of the following: * posted HTML form * posted XML data * XML data sent by view (_+NOTE+: using function view_post()_) * NULL Examples: <pre> view('view1') view('view1', arguments()) args()) view('view1', entries(entry('newK',arguments('oldK')))) view_post('view1', post(), arguments()) entries(entry('newK',args('oldK')))) </pre>