12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ASV
- (C) Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" exclude-result-prefixes="bus xtsext cf cm pf">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xsl:if test="/root/*[local-name()='schedule']/*[local-name()='active']='false'">
- <param name="m_subData_active_schedule">
- <xsl:text>true</xsl:text>
- </param>
- </xsl:if>
- <param name="m_subData_periodical_producer_defaultName">
- <xsl:value-of select="/root/*[local-name()='schedule']/*[local-name()='periodicalProducer']/*/*[local-name()='defaultName']"/>
- </param>
- <param name="m_subData_periodical_producer">
- <xsl:value-of select="/root/*[local-name()='schedule']/*[local-name()='periodicalProducer']/*/*[local-name()='searchPath']"/>
- </param>
- <param name="m_subData_periodical_producer_parent_searchPath">
- <xsl:value-of select="/root/*[local-name()='periodicalProducerParent']/*/*[local-name()='searchPath']"/>
- </param>
- <param name="m_subData_periodical_producer_parent_permissions">
- <xsl:value-of select="/root/*[local-name()='periodicalProducerParent']/*/*[local-name()='permissions']"/>
- </param>
- <xsl:variable name="the-object" select="/root/*[local-name()='schedule']/*[local-name()='periodicalProducer']/*"/>
- <xsl:variable name="start-at-path">
- <xsl:choose>
- <xsl:when test="starts-with($the-object/*[local-name()='searchPath'], key('session-param', 'e_hp')) or (starts-with($the-object/*[local-name()='searchPath'], '~'))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'),'/folder')"/>
- </xsl:when>
- <xsl:when test="starts-with($the-object/*[local-name()='searchPath'],'/content')">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <param name="m_subData_periodical_producer_path">
- <cf:do-the-path-link>
- <cf:param name="familytree">/root/*[local-name()='schedule']/*[local-name()='periodicalProducer']/*/*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">/root/*[local-name()='schedule']/*[local-name()='periodicalProducer']/*/*[local-name()='defaultName']</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </param>
- </xsl:template>
- </xsl:stylesheet>
|