12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: CCS
- (c) Copyright IBM Corp. 2005, 2013
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:ccs="com.cognos.ccs.xslt.XSLTFunctions" xmlns="http://developer.cognos.com/schemas/rds/types/2" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ldx="http://www.ibm.com/xmlns/prod/cognos/layoutData/200904">
- <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" version="1.0"/>
- <xsl:template match="/">
- <layout>
- <xsl:apply-templates select="/report/layouts/layout/reportPages/*">
- <xsl:with-param name="posId">./layouts/layout/reportPages</xsl:with-param>
- </xsl:apply-templates>
- <xsl:apply-templates select="/report/classStyles/*"/>
- </layout>
- </xsl:template>
- <xsl:template name="page">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../page)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::page)"/>
- </xsl:variable>
- <page>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat('./layouts/layout/reportPages/page[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>./layouts/layout/reportPages/page</xsl:otherwise>
- </xsl:choose>
- </posId>
- <xsl:if test="pageHeader/contents/*">
- <header>
- <xsl:apply-templates select="pageHeader/contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId, '/page[',$index,']/pageHeader/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/page/pageHeader/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">false</xsl:with-param>
- </xsl:apply-templates>
- </header>
- </xsl:if>
- <xsl:if test="pageBody/contents/*">
- <body>
- <xsl:apply-templates select="pageBody/contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId, '/page[',$index,']/pageBody/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/page/pageBody/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">false</xsl:with-param>
- </xsl:apply-templates>
- </body>
- </xsl:if>
- <xsl:if test="pageFooter/contents/*">
- <footer>
- <xsl:apply-templates select="pageFooter/contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId, '/page[',$index,']/pageFooter/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/page/pageFooter/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">false</xsl:with-param>
- </xsl:apply-templates>
- </footer>
- </xsl:if>
- </page>
- </xsl:template>
- <xsl:template match="page">
- <xsl:param name="posId"/>
- <xsl:call-template name="page">
- <xsl:with-param name="posId" select="$posId"/>
- </xsl:call-template>
- </xsl:template>
- <xsl:template match="page[pageSections]">
- <xsl:param name="posId"/>
- <xsl:variable name="countMembers" select="count(pageSections/pageSection/pageSectionDefinition/dmMembers/dmMember)"/>
- <pageGroup>
- <xsl:choose>
- <xsl:when test="$countMembers = 1">
- <ldx:id>
- <xsl:value-of select="concat('children(', pageSections/pageSection/pageSectionDefinition/dmMembers/dmMember/itemCaption, ')')"/>
- </ldx:id>
- </xsl:when>
- <xsl:otherwise>
- <ldx:id>
- <xsl:value-of select="concat(pageSections/pageSection/dmHierarchy/itemCaption, ' (list)')"/>
- </ldx:id>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="page">
- <xsl:with-param name="posId" select="$posId"/>
- </xsl:call-template>
- </pageGroup>
- </xsl:template>
- <xsl:template match="pageSet">
- <xsl:variable name="countType">
- <xsl:value-of select="count(../pageSet)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::pageSet)"/>
- </xsl:variable>
- <xsl:apply-templates select="pageOverallGroup/headerPages/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat('./layouts/layout/reportPages/pageSet[',$index,']/pageOverallGroup/headerPages')"/>
- </xsl:when>
- <xsl:otherwise>./layouts/layout/reportPages/pageSet/pageOverallGroup/headerPages</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">false</xsl:with-param>
- </xsl:apply-templates>
- <xsl:if test="count(pageGroups) = 0">
- <xsl:apply-templates select="detailPages/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat('./layouts/layout/reportPages/pageSet[',$index,']/detailPages')"/>
- </xsl:when>
- <xsl:otherwise>./layouts/layout/reportPages/pageSet/detailPages</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:if>
- <xsl:apply-templates select="pageGroups/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat('./layouts/layout/reportPages/pageSet[',$index,']/pageGroups')"/>
- </xsl:when>
- <xsl:otherwise>./layouts/layout/reportPages/pageSet</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">false</xsl:with-param>
- <xsl:with-param name="detailPages" select="detailPages/*"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="pageOverallGroup/footerPages/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat('./layouts/layout/reportPages/pageSet[',$index,']/pageOverallGroup/footerPages')"/>
- </xsl:when>
- <xsl:otherwise>./layouts/layout/reportPages/pageSet/pageOverallGroup/footerPages</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">false</xsl:with-param>
- </xsl:apply-templates>
- </xsl:template>
- <xsl:template match="pageGroup">
- <xsl:param name="posId"/>
- <xsl:param name="conditional"/>
- <xsl:param name="detailPages"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../table)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::pageGroup)"/>
- </xsl:variable>
- <pageGroup>
- <xsl:if test="@refDataItem">
- <ldx:id>
- <xsl:value-of select="@refDataItem"/>
- </ldx:id>
- </xsl:if>
- <xsl:apply-templates select="headerPages/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/headerPages[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/headerPages')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:apply-templates select="$detailPages">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/detailPages[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/detailPages')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:apply-templates select="footerPages/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/footerPages[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/footerPages')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </pageGroup>
- </xsl:template>
- <xsl:template match="table">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../table)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::table)"/>
- </xsl:variable>
- <item>
- <LTable>
- <xsl:apply-templates select="tableRows/tableRow">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/table[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/table')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:if test="style/CSS">
- <CSSStyle>
- <xsl:value-of select="style/CSS/@value"/>
- </CSSStyle>
- </xsl:if>
- <xsl:apply-templates select="style/defaultStyles/*"/>
- </LTable>
- </item>
- </xsl:template>
- <xsl:template match="tableRow">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../tableRow)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::tableRow)"/>
- </xsl:variable>
- <row>
- <xsl:apply-templates select="tableCells/tableCell">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/tableRows/tableRow[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/tableRows/tableRow')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:if test="style/CSS">
- <CSSStyle>
- <xsl:value-of select="style/CSS/@value"/>
- </CSSStyle>
- </xsl:if>
- <xsl:apply-templates select="style/defaultStyles/*"/>
- </row>
- </xsl:template>
- <xsl:template match="tableCell">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../tableCell)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::tableCell)"/>
- </xsl:variable>
- <cell>
- <xsl:if test="@colSpan">
- <colSpan>
- <xsl:value-of select="@colSpan"/>
- </colSpan>
- </xsl:if>
- <xsl:apply-templates select="contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/tableCells/tableCell[',$index,']/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/tableCells/tableCell/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:if test="style/CSS">
- <CSSStyle>
- <xsl:value-of select="style/CSS/@value"/>
- </CSSStyle>
- </xsl:if>
- <xsl:apply-templates select="style/defaultStyles/*"/>
- </cell>
- </xsl:template>
- <xsl:template match="block">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../block)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::block)"/>
- </xsl:variable>
- <item>
- <LContainer>
- <xsl:apply-templates select="contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/block[',$index,']/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/block/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:if test="style/CSS">
- <CSSStyle>
- <xsl:value-of select="style/CSS/@value"/>
- </CSSStyle>
- </xsl:if>
- <xsl:apply-templates select="style/defaultStyles/*"/>
- </LContainer>
- </item>
- </xsl:template>
- <xsl:template match="list">
- <xsl:param name="posId"/>
- <xsl:param name="conditional"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../list)"/>
- </xsl:variable>
- <xsl:variable name="refQuery">
- <xsl:value-of select="@refQuery"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::list)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/list[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/list')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- <xsl:if test="listGroups">
- <extension>
- <LList>
- <xsl:variable name="listId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/list[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/list')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:apply-templates select="listGroups/*">
- <xsl:with-param name="posId">
- <xsl:value-of select="concat($listId, '/listGroups')"/>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:apply-templates select="listOverallGroup/*">
- <xsl:with-param name="posId">
- <xsl:value-of select="$listId"/>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </LList>
- </extension>
- </xsl:if>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="listGroup">
- <xsl:param name="posId"/>
- <xsl:param name="conditional"/>
- <xsl:param name="refQuery"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../list)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::list)"/>
- </xsl:variable>
- <xsl:variable name="listGroupId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/listGroup/list[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/listGroup')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <listGroup>
- <key>
- <xsl:variable name="refDataItem" select="@refDataItem"/>
- <xsl:variable name="label" select="/report/queries/query[@name=$refQuery]/selection/*[@name=$refDataItem and @label]/@label"/>
- <xsl:choose>
- <xsl:when test="$label">
- <xsl:value-of select="$label"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$refDataItem"/>
- </xsl:otherwise>
- </xsl:choose>
- </key>
- <xsl:apply-templates select="*">
- <xsl:with-param name="posId">
- <xsl:value-of select="$listGroupId"/>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </listGroup>
- </xsl:template>
- <xsl:template match="listHeader | listFooter">
- <xsl:param name="posId"/>
- <xsl:param name="conditional"/>
- <xsl:variable name="listSectionId">
- <xsl:value-of select="concat($posId,'/',name())"/>
- </xsl:variable>
- <xsl:element name="{name()}">
- <xsl:apply-templates select="listRows/listRow">
- <xsl:with-param name="posId">
- <xsl:value-of select="$listSectionId"/>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:element>
- </xsl:template>
- <xsl:template match="listRow">
- <xsl:param name="posId"/>
- <xsl:param name="conditional"/>
- <xsl:variable name="listRowId">
- <xsl:value-of select="concat($posId,'/listRows/listRow')"/>
- </xsl:variable>
- <listRow>
- <xsl:apply-templates select="rowCells/rowCell">
- <xsl:with-param name="posId">
- <xsl:value-of select="$listRowId"/>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </listRow>
- </xsl:template>
- <xsl:template match="rowCell">
- <xsl:param name="posId"/>
- <xsl:param name="conditional"/>
- <xsl:variable name="rowCellId">
- <xsl:value-of select="concat($posId,'/rowCells/rowCell/contents')"/>
- </xsl:variable>
- <rowCell>
- <xsl:choose>
- <xsl:when test="@colSpan">
- <xsl:attribute name="colSpan">
- <xsl:value-of select="@colSpan"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="colSpan">1</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="contents/*">
- <xsl:with-param name="posId">
- <xsl:value-of select="$rowCellId"/>
- </xsl:with-param>
- <xsl:with-param name="conditional">
- <xsl:value-of select="$conditional"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </rowCell>
- </xsl:template>
- <!--
- <xsl:template match="list">
- <xsl:param name="posId"/>
- <xsl:param name="conditional"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../list)"/>
- </xsl:variable>
- <xsl:variable name="refQuery">
- <xsl:value-of select="@refQuery"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::list)"/>
- </xsl:variable>
- <item>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/list[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/list')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- <conditional>
- <xsl:choose>
- <xsl:when test="./conditionalRender">true</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$conditional"/>
- </xsl:otherwise>
- </xsl:choose>
- </conditional>
- <MListFrame>
-
- -->
- <xsl:template match="TOC">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../TOC)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::TOC)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@tocName">
- <ldx:id>
- <xsl:value-of select="@tocName"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/TOC[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/TOC')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="textItem">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../textItem)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::textItem)+ count(preceding-sibling::date)+ count(preceding-sibling::time)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/textItem[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/textItem')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="time">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../textItem) + count(../date) + count(../time)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::textItem)+ count(preceding-sibling::date)+ count(preceding-sibling::time)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/textItem[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/textItem')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="date">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../textItem) + count(../date) + count(../time)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::textItem)+ count(preceding-sibling::date)+ count(preceding-sibling::time)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/textItem[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/textItem')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="image">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../image)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::image)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/image[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/image')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="crosstab">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../crosstab)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::crosstab)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:choose>
- <xsl:when test="function-available('ccs:getInfoPartName')">
- <xsl:value-of select="ccs:getInfoPartName(@name,'Crosstab')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@name"/>
- </xsl:otherwise>
- </xsl:choose>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/crosstab[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/crosstab')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="repeaterTable">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../repeaterTable)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::repeaterTable)"/>
- </xsl:variable>
- <xsl:variable name="rptId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/repeaterTable[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/repeaterTable')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <item>
- <LRepeater>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:value-of select="$rptId"/>
- </posId>
- <layout>
- <xsl:apply-templates select="repeaterTableCell/contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($rptId,'/repeaterTableCell/contents[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($rptId,'/repeaterTableCell/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:if test="style/CSS">
- <CSSStyle>
- <xsl:value-of select="style/CSS/@value"/>
- </CSSStyle>
- </xsl:if>
- <xsl:apply-templates select="style/defaultStyles/*"/>
- </layout>
- </LRepeater>
- </item>
- </xsl:template>
- <xsl:template match="repeater">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../repeater)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::repeater)"/>
- </xsl:variable>
- <xsl:variable name="rptId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/repeater[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/repeater')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <item>
- <LRepeater>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:value-of select="$rptId"/>
- </posId>
- <layout>
- <xsl:apply-templates select="contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/repeater/contents[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/repeater/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:if test="style/CSS">
- <CSSStyle>
- <xsl:value-of select="style/CSS/@value"/>
- </CSSStyle>
- </xsl:if>
- <xsl:apply-templates select="style/defaultStyles/*"/>
- </layout>
- </LRepeater>
- </item>
- </xsl:template>
- <xsl:template match="hyperlink">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../hyperlink)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::hyperlink)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/hyperlink[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/hyperlink')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="button">
- <!--Not yet handled-->
- </xsl:template>
- <xsl:template match="promptButton">
- <!--Not yet handled-->
- </xsl:template>
- <xsl:template match="HTMLItem">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../HTMLItem)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::HTMLItem)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/HTMLItem[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/HTMLItem')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="customContent">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../customContent)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::customContent)"/>
- </xsl:variable>
- <xsl:call-template name="richTextItem">
- <xsl:with-param name="posId" select="concat($posId,'/customContent')"/>
- <xsl:with-param name="index" select="$index"/>
- <xsl:with-param name="countType" select="$countType"/>
- </xsl:call-template>
- </xsl:template>
- <xsl:template match="richTextItem">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../richTextItem)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::richTextItem)"/>
- </xsl:variable>
- <xsl:call-template name="richTextItem">
- <xsl:with-param name="posId" select="concat($posId,'/richTextItem')"/>
- <xsl:with-param name="index" select="$index"/>
- <xsl:with-param name="countType" select="$countType"/>
- </xsl:call-template>
- </xsl:template>
- <xsl:template name="richTextItem">
- <xsl:param name="posId"/>
- <xsl:param name="index"/>
- <xsl:param name="countType"/>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$posId"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="bookmark">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../bookmark)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::bookmark)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/bookmark[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/bookmark')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="TOCEntry">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../TOCEntry)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::TOCEntry)"/>
- </xsl:variable>
- <item>
- <!-- TOCEntry items are also mapped to bookmark object -->
- <!-- Note: neither TOCEntry nor bookmark have name attrbitues, so id will be empty -->
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:value-of select="@name"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/TOCEntry[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/TOCEntry')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="fieldSet">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../fieldset)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::fieldset)"/>
- </xsl:variable>
- <xsl:apply-templates select="fieldSetCaption/contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/fieldSet/fieldSetCaption[',$index,']/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/fieldSet/fieldSetCaption/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:apply-templates select="contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/fieldSet[',$index,']/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/fieldSet/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:template>
- <xsl:template match="conditionalBlocks">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../conditionalBlocks)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::conditionalBlocks)"/>
- </xsl:variable>
- <xsl:apply-templates select="./conditionalBlockDefault/contents/*">
- <xsl:with-param name="posId">
- <xsl:value-of select="concat($posId,'/conditionalBlockDefault/contents')"/>
- </xsl:with-param>
- </xsl:apply-templates>
- <xsl:for-each select="./conditionalBlockCases/conditionalBlock">
- <xsl:apply-templates select="./contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="count(../conditionalBlock) > 1">
- <xsl:value-of select="concat($posId,'/conditionalBlockCases/conditionalBlock[',1 + count(preceding-sibling::conditionalBlock),']/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/conditionalBlockCases/conditionalBlock/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:for-each>
- </xsl:template>
- <xsl:template match="layoutComponentRef">
- <xsl:param name="conditional"/>
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../layoutComponentRef)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::layoutComponentRef)"/>
- </xsl:variable>
- <!-- LCRs will be handled in a future release -->
- </xsl:template>
- <xsl:template match="CMMMap">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../CMMMap)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::CMMMap)"/>
- </xsl:variable>
- <item>
- <LReference>
- <xsl:if test="@cmmID">
- <ldx:id>
- <xsl:value-of select="@cmmID"/>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/CMMMap[',$index,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/CMMMap')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="asOfTime">
- <!--Not yet handled-->
- </xsl:template>
- <xsl:template match="singleton">
- <xsl:param name="posId"/>
- <xsl:variable name="countType">
- <xsl:value-of select="count(../singleton)"/>
- </xsl:variable>
- <xsl:variable name="index">
- <xsl:value-of select="1 + count(preceding-sibling::singleton)"/>
- </xsl:variable>
- <xsl:apply-templates select="contents/*">
- <xsl:with-param name="posId">
- <xsl:choose>
- <xsl:when test="$countType > 1">
- <xsl:value-of select="concat($posId,'/singleton[',$index,']/contents')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/singleton/contents')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:template>
- <xsl:template match="pieChart | paretoChart | scatterChart | polarChart | radarChart | progressiveChart | combinationChart | bubbleChart | threeDCombinationChart | threeDScatterChart | gaugeChart | mapChart | metricsChart | marimekkoChart | winLossChart | v2_combinationChart | v2_scatterChart | v2_pieChart | v2_gaugeChart | v2_matrixChart | v2_progressiveChart | v2_paretoChart | v2_bubbleChart | v2_repeaterChart | v2_bulletChart | viz">
- <xsl:param name="posId"/>
- <item>
- <LReference>
- <xsl:if test="@name">
- <ldx:id>
- <xsl:choose>
- <xsl:when test="function-available('ccs:getInfoPartName')">
- <xsl:value-of select="ccs:getInfoPartName(@name,'Chart')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@name"/>
- </xsl:otherwise>
- </xsl:choose>
- </ldx:id>
- </xsl:if>
- <posId>
- <xsl:choose>
- <xsl:when test="name() = 'pieChart'">
- <xsl:choose>
- <xsl:when test="count(../pieChart) > 1">
- <xsl:value-of select="concat($posId,'/pieChart[',1 + count(preceding-sibling::pieChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/pieChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'paretoChart'">
- <xsl:choose>
- <xsl:when test="count(../paretoChart) > 1">
- <xsl:value-of select="concat($posId,'/paretoChart[',1 + count(preceding-sibling::paretoChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/paretoChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'scatterChart'">
- <xsl:choose>
- <xsl:when test="count(../scatterChart) > 1">
- <xsl:value-of select="concat($posId,'/scatterChart[',1 + count(preceding-sibling::scatterChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/scatterChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'polarChart'">
- <xsl:choose>
- <xsl:when test="count(../polarChart) > 1">
- <xsl:value-of select="concat($posId,'/polarChart[',1 + count(preceding-sibling::polarChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/polarChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'radarChart'">
- <xsl:choose>
- <xsl:when test="count(../radarChart) > 1">
- <xsl:value-of select="concat($posId,'/radarChart[',1 + count(preceding-sibling::radarChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/radarChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'progressiveChart'">
- <xsl:choose>
- <xsl:when test="count(../progressiveChart) > 1">
- <xsl:value-of select="concat($posId,'/progressiveChart[',1 + count(preceding-sibling::progressiveChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/progressiveChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'combinationChart'">
- <xsl:choose>
- <xsl:when test="count(../combinationChart) > 1">
- <xsl:value-of select="concat($posId,'/combinationChart[',1 + count(preceding-sibling::combinationChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/combinationChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'bubbleChart'">
- <xsl:choose>
- <xsl:when test="count(../bubbleChart) > 1">
- <xsl:value-of select="concat($posId,'/bubbleChart[',1 + count(preceding-sibling::bubbleChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/bubbleChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'threeDCombinationChart'">
- <xsl:choose>
- <xsl:when test="count(../threeDCombinationChart) > 1">
- <xsl:value-of select="concat($posId,'/threeDCombinationChart[',1 + count(preceding-sibling::threeDCombinationChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/threeDCombinationChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'threeDScatterChart'">
- <xsl:choose>
- <xsl:when test="count(../threeDScatterChart) > 1">
- <xsl:value-of select="concat($posId,'/threeDScatterChart[',1 + count(preceding-sibling::threeDScatterChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/threeDScatterChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'gaugeChart'">
- <xsl:choose>
- <xsl:when test="count(../gaugeChart) > 1">
- <xsl:value-of select="concat($posId,'/gaugeChart[',1 + count(preceding-sibling::gaugeChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/gaugeChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'mapChart'">
- <xsl:choose>
- <xsl:when test="count(../mapChart) > 1">
- <xsl:value-of select="concat($posId,'/mapChart[',1 + count(preceding-sibling::mapChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/mapChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'metricsChart'">
- <xsl:choose>
- <xsl:when test="count(../metricsChart) > 1">
- <xsl:value-of select="concat($posId,'/metricsChart[',1 + count(preceding-sibling::metricsChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/metricsChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'marimekkoChart'">
- <xsl:choose>
- <xsl:when test="count(../marimekkoChart) > 1">
- <xsl:value-of select="concat($posId,'/marimekkoChart[',1 + count(preceding-sibling::marimekkoChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/marimekkoChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'winLossChart'">
- <xsl:choose>
- <xsl:when test="count(../winLossChart) > 1">
- <xsl:value-of select="concat($posId,'/winLossChart[',1 + count(preceding-sibling::winLossChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/winLossChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_combinationChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_combinationChart) > 1">
- <xsl:value-of select="concat($posId,'/winLossChart[',1 + count(preceding-sibling::v2_combinationChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_combinationChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_scatterChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_scatterChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_scatterChart[',1 + count(preceding-sibling::v2_scatterChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_schatterChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_pieChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_combinationChart) > 1">
- <xsl:value-of select="concat($posId,'/pieChart[',1 + count(preceding-sibling::v2_pieChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_pieChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_guageChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_guageChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_guageChart[',1 + count(preceding-sibling::v2_guageChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_guageChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_matrixChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_matrixChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_matrixChart[',1 + count(preceding-sibling::v2_matrixChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_matrixChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_progressiveChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_progressiveChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_progressiveChart[',1 + count(preceding-sibling::v2_progressiveChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_progressiveChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_paretoChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_paretoChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_paretoChart[',1 + count(preceding-sibling::v2_paretoChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_paretoChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_bubbleChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_bubbleChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_bubbleChart[',1 + count(preceding-sibling::v2_bubbleChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_bubbleChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_repeaterChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_repeaterChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_repeaterChart[',1 + count(preceding-sibling::v2_repeaterChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_repeaterChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'v2_bulletChart'">
- <xsl:choose>
- <xsl:when test="count(../v2_bulletChart) > 1">
- <xsl:value-of select="concat($posId,'/v2_bulletChart[',1 + count(preceding-sibling::v2_repeaterChart),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/v2_bulletChart')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="name() = 'viz'">
- <xsl:choose>
- <xsl:when test="count(../viz) > 1">
- <xsl:value-of select="concat($posId,'/viz[',1 + count(preceding-sibling::viz),']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/viz')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($posId,'/unknownChartType')"/>
- </xsl:otherwise>
- </xsl:choose>
- </posId>
- </LReference>
- </item>
- </xsl:template>
- <xsl:template match="defaultStyle">
- <RefStyle>
- <xsl:value-of select="@refStyle"/>
- </RefStyle>
- </xsl:template>
- <xsl:template match="classStyle">
- <ClassStyle>
- <Name>
- <xsl:value-of select="@name"/>
- </Name>
- <Value>
- <xsl:value-of select="CSS/@value"/>
- </Value>
- </ClassStyle>
- </xsl:template>
- </xsl:stylesheet>
|