1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?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="loginServerCAMResponse/*"/>
- <xsl:apply-templates select="loginServerResponse/*"/>
- </atom:feed>
- </xsl:template>
- <xsl:template match="loginServerCAMReturn">
- <xsl:variable name="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="gateway" select="/root/GatewayURL"/>
- <xsl:variable name="jsessionid" select="/root/JSESSIONID"/>
- <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="tm1displayviews" select="/root/TM1DisplayViews"/>
- <xsl:variable name="tm1username" select="/root/TM1username"/>
- <xsl:variable name="tm1pass" select="/root/TM1pass"/>
- <xsl:variable name="filterpackages" select="/root/FilterPackages"/>
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <atom:id>root1</atom:id>
- <atom:title xml:lang="en">Applications</atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=tm1/102FP1/getApplicationNodes.xts&JSESSIONID={$jsessionid}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&FilterPackages={$filterpackages}" title="">
- </atom:link>
- <atom:link rel="icon" type="image/gif" href="{$webroot}/tm1/bux/images/apps.gif"/>
- <atom:link rel="thumbnail" type="image/gif" href="{$webroot}/tm1/bux/images/apps_64.gif"/>
- </atom:entry>
- <xsl:choose>
- <xsl:when test="$tm1displayviews = 'N'">
- </xsl:when>
- <xsl:otherwise>
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <atom:id>Root1b</atom:id>
- <atom:title xml:lang="en">Views</atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=tm1/102FP1/getCubes.xts&JSESSIONID={$jsessionid}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&FilterPackages={$filterpackages}" title="">
- </atom:link>
- <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:entry>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="loginServerReturn">
- <xsl:variable name="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="gateway" select="/root/GatewayURL"/>
- <xsl:variable name="jsessionid" select="/root/JSESSIONID"/>
- <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="tm1displayviews" select="/root/TM1DisplayViews"/>
- <xsl:variable name="tm1username" select="/root/TM1username"/>
- <xsl:variable name="tm1pass" select="/root/TM1pass"/>
- <xsl:variable name="filterpackages" select="/root/FilterPackages"/>
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <atom:id>root1</atom:id>
- <atom:title xml:lang="en">Applications</atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=tm1/102FP1/getApplicationNodes.xts&JSESSIONID={$jsessionid}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&FilterPackages={$filterpackages}" title="">
- </atom:link>
- <atom:link rel="icon" type="image/gif" href="{$webroot}/tm1/bux/images/apps.gif"/>
- <atom:link rel="thumbnail" type="image/gif" href="{$webroot}/tm1/bux/images/apps_64.gif"/>
- </atom:entry>
- <xsl:choose>
- <xsl:when test="$tm1displayviews = 'N'">
- </xsl:when>
- <xsl:otherwise>
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <atom:id>Root1b</atom:id>
- <atom:title xml:lang="en">Views</atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=tm1/102FP1/getCubes.xts&JSESSIONID={$jsessionid}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&FilterPackages={$filterpackages}" title="">
- </atom:link>
- <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:entry>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
|