Style Report

I am using the reporting tool “Style Report Pro” and cannot create a datasource from Tamino.

The problem is that a schema is required for the datasource, so I was wondering if anyone know how to strip the following tags out of the response from Tamino, so Tamino just returns the result as XML, without any ‘ino’ and ‘xql’ namespaces:

<ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“XQL FAQ (XML Query Language - Frequently Asked Questions)”>
xql:query/Projects</xql:query>
<ino:message ino:returnvalue=“0”>
ino:messagelineXQL Request processing</ino:messageline>
</ino:message>
xql:result

Actually I didn’t get a clear picture about, how you are trying to use the Schema, to create a datasource.

But there is a way to get the Schema from Tamino server without Response wrapper.

http://<server host>/tamino//ino:collection/xs:schema//

Thanks Prashant for your reply, but it doesn’t quite solve our problem. To be more clear we have been using the query:

http://localhost/tamino/ArchivePortal/DEPT?_XQL=/Projects

To get some XML data from tamino, but it contains the response wrapper, which contains two namespaces, and the schema located at:

http://localhost/tamino/ArchivePortal/ino:collection/xs:schema/DEPT/Projects

doesn’t work with the additional response wrapper and namespaces. So I was wondering if there was any way to either get data from tamino that doesn’t have the response wrapper, or to add the response wrapper to the schema definition.

We have tried to modify the schema definition, using an xml editor, to include the response wrapper. We used import statements to import the second namespace, and although we couldn’t get this to work, ideally we’d like to get the schema straight from tamino using a URL anyway.

– Chris

Hi Chris

(1) extending the schema to include the response wrapper is probably not a good idea: the elements/attributes in the response wrapper in general belong to a different namespace. Hence you have to put the respective definitions into another schema document which then imports your existing one …

(2) The alternate choice: get your document(s) without response wrapper: this is possible - just issue the following request (similar to the one for the unwrapped schema) using plain URL addressing in order to retrieve a SINGLE document per request:

http://<server host>/tamino////

where is either @ino:id or the docname (if any) you have assigned when storing the document in Tamino.

Hope that helps
Uli