123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <?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: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:choose>
- <xsl:when test="/root/Id != ''">
- <xsl:variable name="id" select="/root/Id"/>
- <xsl:apply-templates select="//*[@Id=$id]/Folder|//*[@Id=$id]/Cube|//*[@Id=$id]/Cubeviewer|//*[@Id=$id]/Websheet"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="NavigationTree/*"/>
- </xsl:otherwise>
- </xsl:choose>
- </atom:feed>
- </xsl:template>
- <xsl:template match="Folder">
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <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="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="gateway" select="/root/GatewayURL"/>
- <xsl:variable name="tm1toolbar" select="/root/TM1Toolbar"/>
- <xsl:variable name="aspsessionid" select="/root/ASPSessionId"/>
- <atom:id><xsl:value-of select="@Id"/></atom:id>
- <atom:title xml:lang="en"><xsl:value-of select="Name"/></atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=/tm1/PRE102/serverContent.xts&Id={@Id}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&TM1Toolbar={$tm1toolbar}&ASPSessionId={$aspsessionid}">
- </atom:link>
- <atom:link rel="icon" type="image/gif" href="{$webroot}/icd/feeds/images/icon_ldx_folder.gif"/>
- <atom:link rel="thumbnail" type="image/gif" href="{$webroot}/icd/feeds/images/icon_ldx_folder_64.gif"/>
- </atom:entry>
- </xsl:template>
- <xsl:template match="Cube">
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <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="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="gateway" select="/root/GatewayURL"/>
- <xsl:variable name="tm1toolbar" select="/root/TM1Toolbar"/>
- <xsl:variable name="aspsessionid" select="/root/ASPSessionId"/>
- <atom:id>
- <xsl:value-of select="@Id"/>
- </atom:id>
- <atom:title xml:lang="en">
- <xsl:value-of select="Name"/>
- </atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=/tm1/PRE102/serverContent.xts&Id={@Id}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&TM1Toolbar={$tm1toolbar}&ASPSessionId={$aspsessionid}">
- </atom:link>
- <atom:link rel="icon" type="image/gif" href="{$webroot}/tm1/bux/images/cube.gif"/>
- <atom:link rel="thumbnail" type="image/gif" href="{$webroot}/tm1/bux/images/cube_64.gif"/>
- </atom:entry>
- </xsl:template>
- <xsl:template match="Cubeviewer">
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <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="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="tm1toolbar" select="/root/TM1Toolbar"/>
- <xsl:variable name="aspsessionid" select="/root/ASPSessionId"/>
- <atom:id>
- <xsl:value-of select="@Id"/>
- </atom:id>
- <atom:title xml:lang="en">
- <xsl:value-of select="Description"/>
- </atom:title>
- <atom:summary xml:lang="en">
- <xsl:value-of select="Description"/>
- </atom:summary>
- <atom:link rel="alternate" type="application/x-iwidget+xml" href="{$webroot}/tm1/bux/iWidgets/PRE102/tm1ContentCubeViewerWidget.xml?iwparam=tm1Host%3d{$tm1serverhost}%26tm1Server%3d{$tm1servername}%26tm1UserName%3d{$tm1username}%26tm1Password%3d{$tm1pass}%26tm1WebURL%3d{$tm1weburl}%2F{$tm1webvirtualdirectory}%26tm1ServerCubeView%3d{Name}%26TM1Toolbar%3d{$tm1toolbar}%26ASPSessionId%3d{$aspsessionid}"/>
- <xsl:choose>
- <xsl:when test="string(Private) != 'false'">
- <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"/>
- </xsl:when>
- <xsl:otherwise>
- <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"/>
- </xsl:otherwise>
- </xsl:choose>
- </atom:entry>
- </xsl:template>
- <xsl:template match="Websheet">
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <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="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="tm1toolbar" select="/root/TM1Toolbar"/>
- <xsl:variable name="aspsessionid" select="/root/ASPSessionId"/>
- <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:link rel="alternate" type="application/x-iwidget+xml" href="{$webroot}/tm1/bux/iWidgets/PRE102/tm1ContentWebSheetViewerWidget.xml?iwparam=tm1Host%3d{$tm1serverhost}%26tm1Server%3d{$tm1servername}%26tm1UserName%3d{$tm1username}%26tm1Password%3d{$tm1pass}%26tm1WebURL%3d{$tm1weburl}%2F{$tm1webvirtualdirectory}%26tm1CubeView%3d{xtsext:urlencode(Source)}%26TM1Toolbar%3d{$tm1toolbar}%26ASPSessionId%3d{$aspsessionid}"/>
-
- <xsl:choose>
- <xsl:when test="string(Private) != 'false'">
- <atom:link rel="icon" type="image/gif" href="{$webroot}/tm1/bux/images/excel-private.gif"/>
- <atom:link rel="thumbnail" type="image/gif" href="{$webroot}/tm1/bux/images/excel-private_64.gif"/>
- </xsl:when>
- <xsl:otherwise>
- <atom:link rel="icon" type="image/gif" href="{$webroot}/tm1/bux/images/excel.gif"/>
- <atom:link rel="thumbnail" type="image/gif" href="{$webroot}/tm1/bux/images/excel_64.gif"/>
- </xsl:otherwise>
- </xsl:choose>
- </atom:entry>
- </xsl:template>
- <xsl:template match="Application">
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <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="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="gateway" select="/root/GatewayURL"/>
- <xsl:variable name="tm1toolbar" select="/root/TM1Toolbar"/>
- <xsl:variable name="aspsessionid" select="/root/ASPSessionId"/>
- <atom:id>
- <xsl:value-of select="@Id"/>
- </atom:id>
- <atom:title xml:lang="en">
- <xsl:value-of select="Name"/>
- </atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=/tm1/PRE102/serverContent.xts&Id={@Id}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&TM1Toolbar={$tm1toolbar}&ASPSessionId={$aspsessionid}">
- </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:template>
- <xsl:template match="Server">
- <atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
- <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="webroot" select="/root/WebRootURL"/>
- <xsl:variable name="gateway" select="/root/GatewayURL"/>
- <xsl:variable name="tm1toolbar" select="/root/TM1Toolbar"/>
- <xsl:variable name="aspsessionid" select="/root/ASPSessionId"/>
- <atom:id>
- <xsl:value-of select="@Id"/>
- </atom:id>
- <atom:title xml:lang="en"><xts:string id="TM1_VIEWS"/></atom:title>
- <atom:link rel="alternate" type="application/atom+xml" href="{$gateway}/icd/feeds/cm/system/xts.run?m=/tm1/PRE102/serverContent.xts&Id={@Id}&TM1WebURL={$tm1weburl}&TM1WebVirtualDirectory={$tm1webvirtualdirectory}&TM1Host={$tm1serverhost}&TM1DataServer={$tm1servername}&TM1username={$tm1username}&TM1pass={$tm1pass}&TM1Toolbar={$tm1toolbar}&ASPSessionId={$aspsessionid}">
- </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:template>
- <xsl:template match="Administration">
- </xsl:template>
- </xsl:stylesheet>
|