IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

How do i store an XSL stylesheet in Tamino?

  • 1.  How do i store an XSL stylesheet in Tamino?

    Posted Fri April 19, 2002 07:04 PM

    How do I store a stylesheet in Tamino?
    Once i apply the stylesheet to the query , how do i print out the result in a browser?
    Thanks,
    Parth


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: How do i store an XSL stylesheet in Tamino?

    Posted Sat April 20, 2002 01:01 PM

    You can use the following TSD3 schema to store a stylesheet in Tamino (unfortunately there is a bug in the Tamino documentation):

    <?xml version = "1.0" encoding = "UTF-8"?>
    <xs:schema xmlns:xs = “XML Schema
    xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition
    xmlns:xsl = “XSLT Namespace
    targetNamespace = “XSLT Namespace” >
    xs:annotation
    xs:appinfo
    <tsd:schemaInfo name = “stylesheet”>
    <tsd:collection name = “stylesheets”/>
    <tsd:doctype name = “xsl:stylesheet”>
    tsd:logical
    tsd:contentclosed</tsd:content>
    </tsd:logical>
    </tsd:doctype>
    </tsd:schemaInfo>
    </xs:appinfo>
    </xs:annotation>
    <xs:element name = “stylesheet”/>
    </xs:schema>

    A query like

    http://localhost/tamino/db/collection?_xql/…/stylesheets/xsl:stylesheet/styleName=yourQuery

    should then embed a xml-stylesheet directive into the result of yourQuery. The stylesheet must be stored in Tamino in collection “stylesheets”, doctype “xsl:stylesheet” using the docname “styleName”. Instead of the styleName you can also use “@ino:id”, ofcourse.


    #API-Management
    #webMethods
    #Tamino