| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 | <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 	xmlns:xts="http://developer.cognos.com/schemas/xts/"	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"	xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>	<xsl:template match="/root">		<atom:feed xmlns:atom="http://www.w3.org/2005/Atom">			<atom:id>TM1 root ID</atom:id>			<atom:title xml:lang="en">TM1 Root Feed</atom:title>			<xsl:variable name="gateway" select="/root/GatewayURL"/>			<xsl:apply-templates select="soapenv:Body/listCubeViewsResponse/listCubeViewsReturn/children/children"/>		</atom:feed>	</xsl:template>	<xsl:template match="children">		<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">			<xsl:variable name="webroot" select="/root/WebRootURL"/>			<xsl:variable name="cubeName" select="/root/cubeName"/>			<xsl:variable name="gateway" select="/root/GatewayURL"/>			<xsl:variable name="jsessionid" select="/root/JSESSIONID"/>			<xsl:variable name="treeId" select="/root/TREEID"/>			<xsl:variable name="tm1weburl" select="/root/TM1WebURL"/>			<xsl:variable name="tm1webvirtualdirectory" select="/root/TM1WebVirtualDirectory"/>			<xsl:variable name="tm1serverhost" select="/root/TM1Host"/>			<xsl:variable name="tm1servername" select="/root/TM1DataServer"/>			<xsl:variable name="tm1username" select="/root/TM1username"/>			<xsl:variable name="tm1pass" select="/root/TM1pass"/>			<xsl:variable name="filterpackages" select="/root/FilterPackages"/>			<atom:id><xsl:value-of select="id"/></atom:id>			<atom:title xml:lang="en"><xsl:value-of select="name"/></atom:title>			<atom:summary xml:lang="en"><xsl:value-of select="description"/></atom:summary>			<atom:updated>2009-11-04T13:22:49Z </atom:updated>			<atom:author>				<name>Marianne</name>				<email>badams@example.com</email>			</atom:author>			<xsl:choose>				<xsl:when test="string(type) = 'OBJ_VIEW'">					<atom:link rel="icon" type="image/gif" href="{$webroot}/tm1/bux/images/views.gif"/>					<atom:link rel="thumbnail" type="image/gif" href="{$webroot}/tm1/bux/images/views_64.gif"/>					<atom:link rel="alternate" type="application/x-iwidget+xml" href="{$webroot}/tm1/bux/iWidgets/102FP1/TM1WebCubeViewerWidget.xml?iwparam=tm1Host%3d{$tm1serverhost}%26tm1Server%3d{$tm1servername}%26tm1UserName%3d{$tm1username}%26tm1Password%3d{$tm1pass}%26tm1WebURL%3d{$tm1weburl}%2F{$tm1webvirtualdirectory}%26tm1CubeView%3d{name}%26tm1Cube%3d{$cubeName}%26FilterPackages%3d{$filterpackages}%26AccessType%3dPUBLIC"/>				</xsl:when>				<xsl:otherwise>					<atom:link rel="icon" type="image/gif" href="{$webroot}/tm1/bux/images/view-private.gif"/>					<atom:link rel="thumbnail" type="image/gif" href="{$webroot}/tm1/bux/images/view-private_64.gif"/>					<atom:link rel="alternate" type="application/x-iwidget+xml" href="{$webroot}/tm1/bux/iWidgets/102FP1/TM1WebCubeViewerWidget.xml?iwparam=tm1Host%3d{$tm1serverhost}%26tm1Server%3d{$tm1servername}%26tm1UserName%3d{$tm1username}%26tm1Password%3d{$tm1pass}%26tm1WebURL%3d{$tm1weburl}%2F{$tm1webvirtualdirectory}%26tm1CubeView%3d{name}%26tm1Cube%3d{$cubeName}%26FilterPackages%3d{$filterpackages}%26AccessType%3dPRIVATE"/>				</xsl:otherwise>			</xsl:choose>			</atom:entry>	</xsl:template></xsl:stylesheet>
 |