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
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.