Hi,
we implemented an improvement to our existing xapp:select tag according to the
proposal Christian posted some days ago:
see: Redesign of xapp:select
If the attribute ‘xquery’ is set, then the xapp:select uses the new functionality. On the other hand -when the attribute ‘xquery’ is not set - existing applications will not be attached and will still work as known.
When defining a XQuery expression in the ‘xquery’ attribute, then the attributes behavior like the following:
Attribute collection: collection where to send the xquery
Attribute xquery: xquery that returns a set of documents.
Attribute value: XPath expression to address a single node of the document
Attribute text: XPath expression to address a single node of the document
Attribute distinct: true or false
As an attachment you will find the necessary files for the new functionality.
Bye
Thorsten
Please follow the installation instructions:
--------------------------------------------------------------------------------
Installation instruction for the new xapp:select tag.
--------------------------------------------------------------------------------
- 1. Download the contributed .zip file.
Important:
Create a backup copy of your Tamino X-Application environment because changes you have previously made may be overwritten.
- 2. Unzip the file in your Tamino X-Application 4.1.1 environment.
- 3. Execute the command script build.cmd to rebuild Tamino X-Application and integrate the new select tag.
- 4. Execute the command script build1 examples.jsp to rebuild the JSP examples.
- 5. Execute the command script build1 generator to rebuild the Tamino X-Application Generator.
Tip:
Delete the content of your Tomcat work directory to prevent irritations concerning Tomcat.
--------------------------------------------------------------------------------
Integrating the Tags into an Existing Web Application
--------------------------------------------------------------------------------
To integrate the changes:
- 1. Proceed with the steps as described in the above section.
- 2. Copy the file xapplication\lib\debug\xapplication.jar into the directory yourWebApplication\Web-Inf\lib\xapplication.jar.
- 3. Copy the file xapplication_411src\com\softwareag\xtools\xapplication\jsp\xapplication.tld into the directory yourWebApplication\Web-Inf\jsp\xapplication.tld.
improved_xquery_select_tag.zip (25 KB)