1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2015
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:cm="http://developer.cognos.com/schemas/bibus/3/" xmlns:cm2="http://developer.cognos.com/schemas/contentManagerService/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xtscm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <!--
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- process the xts syntax to the new Content Manager SOAP call
- -->
- <xsl:template match="xtscm:query" priority="2">
- <cm:query>
- <xsl:apply-templates/>
- </cm:query>
- </xsl:template>
- <xsl:template match="xtscm:add" priority="2">
- <cm:add>
- <xsl:apply-templates/>
- </cm:add>
- </xsl:template>
- <xsl:template match="xtscm:update" priority="2">
- <cm:update>
- <xsl:apply-templates/>
- </cm:update>
- </xsl:template>
- <xsl:template match="xtscm:updateDrillPath" priority="2">
- <rs:updateDrillPath xmlns:rs="http://developer.cognos.com/schemas/reportService/1">
- <cm:object xsi:type="cm:drillPath">
- <xsl:apply-templates mode="property"/>
- </cm:object>
- <cm:options xsi:type="cm:updateOptions">
- <cm:ignoreInvalidObjectReference xsi:type="xsd:boolean">false</cm:ignoreInvalidObjectReference>
- <cm:returnProperties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:propEnum[0]"/>
- </cm:options>
- </rs:updateDrillPath>
- </xsl:template>
- <xsl:template match="xtscm:delete" priority="2">
- <cm:delete>
- <xsl:apply-templates/>
- </cm:delete>
- </xsl:template>
- <xsl:template match="xtscm:copy" priority="2">
- <cm:copy>
- <xsl:apply-templates/>
- </cm:copy>
- </xsl:template>
- <xsl:template match="xtscm:copyRename" priority="2">
- <cm:copyRename xmlns:cm="http://developer.cognos.com/schemas/contentManagerService/1">
- <xsl:apply-templates/>
- </cm:copyRename>
- </xsl:template>
- <xsl:template match="xtscm:newNames" priority="2">
- <xsl:variable name="newNames" select="local-name(parent::node())"/>
- <newNames xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:{$newNames}Request[{count(child::*)}]">
- <xsl:apply-templates/>
- </newNames>
- </xsl:template>
- <xsl:template match="xtscm:move" priority="2">
- <cm:move>
- <xsl:apply-templates/>
- </cm:move>
- </xsl:template>
- <xsl:template match="xtscm:getDeploymentOptions" priority="2">
- <xsl:element name="cm2:{local-name()}">
- <archive xsi:type="xsd:string">
- <xsl:apply-templates select="xtscm:inputOptions/@archive"/>
- </archive>
- <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:deploymentOption[2]">
- <item xsi:type="cm:deploymentOptionString">
- <name xsi:type="cm:deploymentOptionEnum">archiveEncryptPassword</name>
- <value xsi:type="xsd:string">
- <xsl:value-of select="xtscm:inputOptions/@archiveEncryptPassword"/>
- </value>
- </item>
- <item xsi:type="cm:deploymentOptionBoolean">
- <name xsi:type="cm:deploymentOptionEnum">upgradeArchiveOptions</name>
- <value xsi:type="xsd:boolean"><xsl:value-of select="xtscm:inputOptions/@upgradeArchiveOptions"/></value>
- </item>
- </options>
- </xsl:element>
- </xsl:template>
- <!--
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- handle multiple requests in the same call
- -->
- <xsl:template match="xtscm:requests" priority="2">
- <xsl:variable name="req" select="local-name(parent::node())"/>
- <requests xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:{$req}Request[{count(child::*)}]">
- <xsl:for-each select="child::*">
- <item xsi:type="cm:{$req}Request">
- <xsl:apply-templates/>
- </item>
- </xsl:for-each>
- </requests>
- <xsl:if test="@cacheValidator">
- <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:queryMultipleOptions">
- <cacheValidator xsi:type="xsd:string"><xsl:value-of select="@cacheValidator"/></cacheValidator>
- </options>
- </xsl:if>
- </xsl:template>
- <!--
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- transform all elements (don't forget the priority="2"!)
- -->
- <xsl:template match="xtscm:searchID|xtscm:targetID" priority="2">
- <xsl:variable name="UpdatedRequest">
- <newRequest xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <!-- copy everything except the targetId and the searchID -->
- <xsl:if test="../xtscm:searchID">
- <!-- <search>storeID("<xsl:copy-of select="../xtscm:searchID"/>")</search> -->
- <search>storeID("<xsl:apply-templates/>")</search>
- </xsl:if>
- <xsl:if test="../xtscm:targetID">
- <target>storeID("<xsl:apply-templates/>")</target>
- </xsl:if>
- </newRequest>
- </xsl:variable>
- <xsl:apply-templates select="$UpdatedRequest/xtscm:newRequest/*"/>
- </xsl:template>
- <xsl:template match="xtscm:properties" priority="2">
- <properties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:propEnum[]">
- <xsl:apply-templates/>
- <xsl:if test="count(./*[local-name()='property' and @name='tenantID'])=0">
- <item xsi:type="cm:propEnum">tenantID</item>
- </xsl:if>
- </properties>
- </xsl:template>
- <xsl:template match="xtscm:property" priority="2">
- <item xsi:type="cm:propEnum">
- <xsl:value-of select="@name"/>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:refProps" priority="2">
- <refProps xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:refProp[{count(xtscm:refProp)}]">
- <xsl:apply-templates/>
- </refProps>
- </xsl:template>
- <xsl:template match="xtscm:refProp" priority="2">
- <item xsi:type="cm:refProp">
- <refPropName xsi:type="cm:propEnum">
- <xsl:value-of select="@refPropName"/>
- </refPropName>
- <xsl:apply-templates/>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:sortBy" priority="2">
- <sortBy xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:sort[{count(xtscm:sort)}]">
- <xsl:apply-templates/>
- </sortBy>
- </xsl:template>
- <xsl:template match="xtscm:sort" priority="2">
- <item xsi:type="cm:sort">
- <propName xsi:type="cm:propEnum">
- <xsl:value-of select="@name"/>
- </propName>
- <xsl:if test="@order!=''">
- <order xsi:type="cm:orderEnum">
- <xsl:value-of select="@order"/>
- </order>
- </xsl:if>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:options" priority="2">
- <xsl:call-template name="convert">
- <xsl:with-param name="xsi-type">
- <xsl:text>cm:</xsl:text>
- <xsl:value-of select="local-name(parent::node())"/>
- <xsl:text>Options</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
- <xsl:template match="xtscm:objects" priority="2">
- <objects xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseClass[{count(child::*)}]">
- <xsl:for-each select="child::*">
- <item xsi:type="cm:{local-name()}">
- <xsl:apply-templates mode="property"/>
- </item>
- </xsl:for-each>
- </objects>
- </xsl:template>
- <xsl:template match="xtscm:tokenvalue" priority="2">
- <item xsi:type="cm:multilingualToken">
- <locale xsi:type="xsd:string">
- <xsl:value-of select="@locale"/>
- </locale>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:value" priority="2">
- <item xsi:type="cm:multilingualString">
- <locale xsi:type="xsd:string">
- <xsl:value-of select="@locale"/>
- </locale>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </item>
- </xsl:template>
- <!-- handle all "baseClass" templates -->
- <xsl:template match="xtscm:searchPath" mode="baseClass">
- <xsl:apply-templates select="self::node()" mode="property"/>
- </xsl:template>
- <xsl:template match="xtscm:searchID" mode="baseClass">
- <xsl:variable name="newXML">
- <xtscm:searchPath>storeID("<xsl:apply-templates mode="property"/>")</xtscm:searchPath>
- </xsl:variable>
- <xsl:apply-templates select="$newXML" mode="property"/>
- </xsl:template>
- <xsl:template match="xtscm:*" mode="baseClass">
- <item xsi:type="cm:nil">
- <xsl:apply-templates mode="baseClass"/>
- </item>
- </xsl:template>
- <!-- handle all "powerPlayOption" templates -->
- <xsl:template match="xtscm:name" mode="powerPlayOptions">
- <name xsi:type="cm:powerPlayOptionEnum">
- <xsl:apply-templates mode="powerPlayOptions"/>
- </name>
- </xsl:template>
- <xsl:template match="xtscm:value[@type='boolean']" mode="powerPlayOptions">
- <value xsi:type="xsd:{@type}">
- <xsl:apply-templates mode="powerPlayOptions"/>
- </value>
- </xsl:template>
- <xsl:template match="xtscm:value[@type!='boolean']" mode="powerPlayOptions">
- <value xsi:type="cm:{@type}">
- <xsl:apply-templates mode="powerPlayOptions"/>
- </value>
- </xsl:template>
- <xsl:template match="xtscm:powerPlayOption" mode="powerPlayOptions">
- <item xsi:type="cm:{@class}">
- <xsl:apply-templates mode="powerPlayOptions"/>
- </item>
- </xsl:template>
- <!-- handle the dataBlock templates -->
- <xsl:template match="xtscm:dataBlock" mode="dataBlock">
- <item xsi:type="cm:powerPlayDataBlock">
- <xsl:apply-templates mode="dataBlockItem"/>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:id" mode="dataBlockItem">
- <id xsi:type="cm:powerPlayDataBlockEnum"><xsl:value-of select="."/></id>
- </xsl:template>
- <xsl:template match="xtscm:data" mode="dataBlockItem">
- <data xsi:type="xsd:base64Binary"><xsl:value-of select="."/></data>
- </xsl:template>
- <!-- handle all "RunOptions" templates -->
- <xsl:template match="xtscm:name" mode="runOptions">
- <xsl:variable name="enumClass">
- <xsl:choose>
- <xsl:when test="parent::node()[local-name()='deliveryOption']">
- <xsl:text>cm:deliveryOptionEnum</xsl:text>
- </xsl:when>
- <xsl:otherwise><xsl:text>cm:runOptionEnum</xsl:text></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <name>
- <xsl:attribute name="type" namespace="http://www.w3.org/2001/XMLSchema-instance"><xsl:value-of select="$enumClass"/></xsl:attribute>
- <xsl:apply-templates mode="runOptions"/>
- </name>
- </xsl:template>
- <xsl:template match="xtscm:value" mode="runOptions">
- <xsl:variable name="valueType">
- <xsl:choose>
- <xsl:when test="contains(@type, ':')">
- <xsl:value-of select="@type"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat('xsd:', @type)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <value xsi:type="{$valueType}">
- <xsl:apply-templates mode="runOptions"/>
- </value>
- </xsl:template>
- <xsl:template match="xtscm:locale" mode="runOptions">
- <locale xsi:type="xsd:{@type}">
- <xsl:apply-templates mode="runOptions"/>
- </locale>
- </xsl:template>
- <xsl:template match="xtscm:cmvalue" mode="runOptions">
- <value xsi:type="cm:{@type}">
- <xsl:apply-templates mode="runOptions"/>
- </value>
- </xsl:template>
- <xsl:template match="xtscm:items" mode="runOptions">
- <xsl:choose>
- <xsl:when test="not(@type)">
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[{count(xtscm:*)}]">
- <xsl:apply-templates mode="runOptions"/>
- </value>
- </xsl:when>
- <xsl:when test="substring-before(@type, ':') != ''">
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="{@type}[{count(xtscm:*)}]">
- <xsl:apply-templates mode="runOptions"/>
- </value>
- </xsl:when>
- <xsl:otherwise>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:{@type}[{count(xtscm:*)}]">
- <xsl:apply-templates mode="runOptions"/>
- </value>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="xtscm:item" mode="runOptions">
- <xsl:choose>
- <xsl:when test="not(@type)">
- <item xsi:type="xsd:string">
- <xsl:apply-templates mode="runOptions"/>
- </item>
- </xsl:when>
- <xsl:otherwise>
- <item xsi:type="cm:{@type}">
- <xsl:apply-templates mode="runOptions"/>
- </item>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="xtscm:contentDisposition" mode="runOptions">
- <contentDisposition xsi:type="cm:smtpContentDispositionEnum">
- <xsl:apply-templates mode="runOptions"/>
- </contentDisposition>
- </xsl:template>
- <xsl:template match="xtscm:text" mode="runOptions">
- <text xsi:type="xsd:string">
- <xsl:apply-templates mode="runOptions"/>
- </text>
- </xsl:template>
- <xsl:template match="xtscm:scopeValues" mode="scope">
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:metadataModelItemName[{count(xtscm:scopeValue)}]">
- <xsl:apply-templates mode="scope"/>
- </value>
- </xsl:template>
- <xsl:template match="xtscm:scopeValue" mode="scope">
- <item xsi:type="cm:metadataModelItemName">
- <xsl:value-of select="."/>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:property" mode="runOptions">
- <xsl:choose>
- <xsl:when test="@name='objectName'">
- <objectName xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:{@type}[{count(xtscm:*)}]">
- <xsl:apply-templates mode="runOptions"/>
- </objectName>
- </xsl:when>
- <xsl:when test="@name='parentSearchPath'">
- <parentSearchPath xsi:type="xsd:string">
- <xsl:apply-templates mode="runOptions"/>
- </parentSearchPath>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{@name}">
- <xsl:attribute name="xsi:type"><xsl:value-of select="concat('cm:',@type)"/></xsl:attribute>
- <xsl:apply-templates mode="runOptions"/>
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="xtscm:runOption" mode="runOptions">
- <item xsi:type="cm:{@class}">
- <xsl:apply-templates mode="runOptions"/>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:deliveryOption" mode="deliveryOptions">
- <xsl:choose>
- <xsl:when test="@cmStyle = 'true'">
- <xsl:copy-of select="./item"/>
- </xsl:when>
- <xsl:otherwise>
- <item xsi:type="cm:{@class}">
- <xsl:apply-templates mode="runOptions"/>
- </item>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- handle all "policies" templates -->
- <xsl:template match="xtscm:policy" mode="policies">
- <item xsi:type="cm:policy">
- <xsl:apply-templates mode="policies" select="*[local-name() != 'permission']"/>
- <permissions xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:permission[{count( xtscm:permission )}]">
- <xsl:apply-templates select="xtscm:permission" mode="policies"/>
- </permissions>
- </item>
- </xsl:template>
- <!-- handle all "userCapabilityPolicies" templates -->
- <xsl:template match="xtscm:userCapabilityPolicy" mode="userCapabilityPolicies">
- <item xsi:type="cm:userCapabilityPolicy">
- <xsl:apply-templates mode="policies" select="*[local-name() != 'userCapabilityPermission']"/>
- <permissions xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:userCapabilityPermission[{count( xtscm:userCapabilityPermission )}]">
- <xsl:apply-templates select="xtscm:userCapabilityPermission" mode="userCapabilityPolicies"/>
- </permissions>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:pageletRef">
- <xsl:apply-templates select="xtscm:searchPath" mode="property"/>
- </xsl:template>
- <xsl:template match="xtscm:securityObject" mode="policies">
- <xsl:variable name="xsiType">
- <xsl:choose>
- <xsl:when test="@type != ''">
- <xsl:value-of select="@type"/>
- </xsl:when>
- <xsl:otherwise>cm:nil</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <securityObject xsi:type="{$xsiType}">
- <xsl:apply-templates select="xtscm:searchPath" mode="property"/>
- </securityObject>
- </xsl:template>
- <xsl:template match="xtscm:permission" mode="policies">
- <item xsi:type="cm:permission">
- <name xsi:type="xsd:string">
- <xsl:value-of select="@name"/>
- </name>
- <access xsi:type="cm:accessEnum">
- <xsl:value-of select="@access"/>
- </access>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:userCapabilityPermission" mode="userCapabilityPolicies">
- <item xsi:type="cm:userCapabilityPermission">
- <userCapability xsi:type="cm:userCapabilityEnum">
- <xsl:value-of select="@userCapability"/>
- </userCapability>
- <access xsi:type="cm:accessEnum">
- <xsl:value-of select="@access"/>
- </access>
- </item>
- </xsl:template>
- <!-- handle all "retentionRule" templates -->
- <xsl:template match="xtscm:retentionRule" mode="retention">
- <item xsi:type="cm:retentionRule">
- <objectClass xsi:type="cm:classEnum">
- <xsl:value-of select="@objectClass"/>
- </objectClass>
- <prop xsi:type="cm:propEnum">
- <xsl:value-of select="@prop"/>
- </prop>
- <xsl:if test="@maxDuration">
- <maxDuration xsi:type="xsd:duration">
- <xsl:value-of select="@maxDuration"/>
- </maxDuration>
- </xsl:if>
- <xsl:if test="@maxObjects">
- <maxObjects xsi:type="xsd:integer">
- <xsl:value-of select="@maxObjects"/>
- </maxObjects>
- </xsl:if>
- </item>
- </xsl:template>
- <!-- handle all "gatewayMappings" templates -->
- <xsl:template match="xtscm:gatewayMapping" mode="gatewayMapping">
- <item xsi:type="cm:gatewayMapping">
- <xsl:if test="@externalURI">
- <externalURI xsi:type="xsd:string">
- <xsl:value-of select="@externalURI"/>
- </externalURI>
- </xsl:if>
- <xsl:if test="@internalURI">
- <internalURI xsi:type="xsd:string">
- <xsl:value-of select="@internalURI"/>
- </internalURI>
- </xsl:if>
- </item>
- </xsl:template>
- <!-- handle all "rolapVirtualCubeConfiguration" templates -->
- <xsl:template match="xtscm:rolapVirtualCubeConfiguration" mode="rolapCubeConfiguration">
- <item xsi:type="cm:rolapVirtualCubeConfiguration">
- <xsl:copy-of select="*"/>
- </item>
- </xsl:template>
- <!-- handle all "jmxProxyHostDispatchers" templates -->
- <xsl:template match="xtscm:dispatcher" mode="jmxProxyHostDispatchers">
- <item xsi:type="cm:dispatcher">
- <xsl:copy-of select="*"/>
- </item>
- </xsl:template>
- <!-- handle all "rolapCubeConfiguration" templates -->
- <xsl:template match="xtscm:rolapCubeConfiguration" mode="rolapCubeConfiguration">
- <item xsi:type="cm:rolapCubeConfiguration">
- <xsl:copy-of select="*"/>
- </item>
- </xsl:template>
- <!-- handle all "pageDefinition" templates -->
- <xsl:template match="xtscm:pageDefinition" mode="pageDefinition">
- <xsl:if test=".!=''">
- <item xsi:type="cm:pageDefinition">
- <searchPath xsi:type="cm:stringProp">
- <value xsi:type="xsd:string" xml:space="preserve"><xsl:value-of select="."/></value>
- </searchPath>
- </item>
- </xsl:if>
- </xsl:template>
- <!-- handle all "parameters" templates -->
- <xsl:template match="xtscm:parameterValue" mode="parameters">
- <item xsi:type="cm:parameterValue">
- <name xsi:type="xsd:string"><xsl:value-of select="xtscm:name"/></name>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:parmValueItem[{count(*[not(self::xtscm:name)])}]">
- <xsl:apply-templates select="*[not(self::xtscm:name)]" mode="parameters">
- <xsl:with-param name="isCredential" select="starts-with(xtscm:name, 'credential:')"/>
- </xsl:apply-templates>
- </value>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:simpleParmValueItem" mode="parameters">
- <xsl:param name="isCredential" select="false()"/>
- <item xsi:type="bus:simpleParmValueItem">
- <inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:inclusive"/></inclusive>
- <xsl:choose>
- <xsl:when test="xtscm:display!=''">
- <display xsi:type="xs:string"><xsl:value-of select="xtscm:display"/></display>
- </xsl:when>
- <xsl:otherwise>
- <display xsi:nil="true"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="$isCredential">
- <!-- In the case of credential parameters we do not store the username and password in CM for security reasons -->
- <xsl:variable name="username-stripped">
- <xsl:choose>
- <xsl:when test="contains(xtscm:use, '<username>')">
- <xsl:value-of select="concat(substring-before(string(xtscm:use), '<username>'), '<username/>', substring-after(string(xtscm:use), '</username>'))"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="xtscm:use"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="password-stripped">
- <xsl:choose>
- <xsl:when test="contains($username-stripped, '<password>')">
- <xsl:value-of select="concat(substring-before(string($username-stripped), '<password>'), '<password/>', substring-after(string($username-stripped), '</password>'))"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$username-stripped"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <use xsi:type="xsd:string"><xsl:value-of select="$password-stripped"/></use>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="xtscm:use!=''">
- <use xsi:type="xs:string"><xsl:value-of select="xtscm:use"/></use>
- </xsl:when>
- <xsl:otherwise>
- <use xsi:nil="true"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </item>
- </xsl:template>
- <!-- Requested by Agent -->
- <xsl:template match="*[contains(@xsi:type, 'parameterValue')]" mode="parameters">
- <xsl:copy-of select="."/>
- </xsl:template>
- <!-- -->
- <xsl:template match="xtscm:boundRangeParmValueItem" mode="parameters">
- <item xsi:type="bus:boundRangeParmValueItem">
- <xsl:choose>
- <xsl:when test="xtscm:inclusive">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:inclusive"/></bus:inclusive>
- </xsl:when>
- <xsl:otherwise>
- <bus:inclusive xsi:type="xsd:boolean">true</bus:inclusive>
- </xsl:otherwise>
- </xsl:choose>
- <bus:start xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:start/xtscm:inclusive"/></bus:inclusive>
- <bus:display xsi:type="xsd:string"><xsl:value-of select="xtscm:start/xtscm:display"/></bus:display>
- <bus:use xsi:type="xsd:string"><xsl:value-of select="xtscm:start/xtscm:use"/></bus:use>
- </bus:start>
- <bus:end xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:end/xtscm:inclusive"/></bus:inclusive>
- <bus:display xsi:type="xsd:string"><xsl:value-of select="xtscm:end/xtscm:display"/></bus:display>
- <bus:use xsi:type="xsd:string"><xsl:value-of select="xtscm:end/xtscm:use"/></bus:use>
- </bus:end>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:unboundedEndRangeParmValueItem" mode="parameters">
- <item xsi:type="bus:unboundedEndRangeParmValueItem">
- <xsl:choose>
- <xsl:when test="xtscm:inclusive">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:inclusive"/></bus:inclusive>
- </xsl:when>
- <xsl:otherwise>
- <bus:inclusive xsi:type="xsd:boolean">true</bus:inclusive>
- </xsl:otherwise>
- </xsl:choose>
- <bus:start xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:start/xtscm:inclusive"/></bus:inclusive>
- <bus:display xsi:type="xsd:string"><xsl:value-of select="xtscm:start/xtscm:display"/></bus:display>
- <bus:use xsi:type="xsd:string"><xsl:value-of select="xtscm:start/xtscm:use"/></bus:use>
- </bus:start>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:unboundedStartRangeParmValueItem" mode="parameters">
- <item xsi:type="bus:unboundedStartRangeParmValueItem">
- <xsl:choose>
- <xsl:when test="xtscm:inclusive">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:inclusive"/></bus:inclusive>
- </xsl:when>
- <xsl:otherwise>
- <bus:inclusive xsi:type="xsd:boolean">true</bus:inclusive>
- </xsl:otherwise>
- </xsl:choose>
- <bus:end xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:end/xtscm:inclusive"/></bus:inclusive>
- <bus:display xsi:type="xsd:string"><xsl:value-of select="xtscm:end/xtscm:display"/></bus:display>
- <bus:use xsi:type="xsd:string"><xsl:value-of select="xtscm:end/xtscm:use"/></bus:use>
- </bus:end>
- </item>
- </xsl:template>
- <!-- Match the first hierarchicalParmValueItem -->
- <xsl:template match="xtscm:hierarchicalParmValueItem[parent::*[local-name() != 'hierarchicalParmValueItem']]" mode="parameters">
- <item xsi:type="bus:hierarchicalParmValueItem">
- <xsl:choose>
- <xsl:when test="xtscm:inclusive">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:inclusive"/></bus:inclusive>
- </xsl:when>
- <xsl:otherwise>
- <bus:inclusive xsi:type="xsd:boolean">true</bus:inclusive>
- </xsl:otherwise>
- </xsl:choose>
- <value xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:value/xtscm:inclusive"/></bus:inclusive>
- <bus:display xsi:type="xsd:string"><xsl:value-of select="xtscm:value/xtscm:display"/></bus:display>
- <bus:use xsi:type="xsd:string"><xsl:value-of select="xtscm:value/xtscm:use"/></bus:use>
- </value>
- <xsl:apply-templates select="xtscm:hierarchicalParmValueItem" mode="parameters"/>
- </item>
- </xsl:template>
- <!-- Match all the sub hierarchicalParmValueItem parameters -->
- <xsl:template match="xtscm:hierarchicalParmValueItem[parent::*[local-name() = 'hierarchicalParmValueItem']]" mode="parameters">
- <subNodes xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:hierarchicalParmValueItem[{count(xtscm:hierarchicalParmValueItem)}]">
- <item xsi:type="bus:hierarchicalParmValueItem">
- <xsl:choose>
- <xsl:when test="xtscm:inclusive">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:inclusive"/></bus:inclusive>
- </xsl:when>
- <xsl:otherwise>
- <bus:inclusive xsi:type="xsd:boolean">true</bus:inclusive>
- </xsl:otherwise>
- </xsl:choose>
- <value xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xsd:boolean"><xsl:value-of select="xtscm:value/xtscm:inclusive"/></bus:inclusive>
- <bus:display xsi:type="xsd:string"><xsl:value-of select="xtscm:value/xtscm:display"/></bus:display>
- <bus:use xsi:type="xsd:string"><xsl:value-of select="xtscm:value/xtscm:use"/></bus:use>
- </value>
- <xsl:apply-templates select="xtscm:hierarchicalParmValueItem" mode="parameters"/>
- </item>
- </subNodes>
- </xsl:template>
- <!-- handle all "parameterAssignments" templates -->
- <xsl:template match="xtscm:parameterAssignmentDataItem" mode ="parameterAssignments">
- <item xsi:type="cm:parameterAssignmentDataItem">
- <xsl:apply-templates mode="parameterAssignments"/>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:parameterAssignmentExpression" mode ="parameterAssignments">
- <item xsi:type="cm:parameterAssignmentExpression">
- <xsl:apply-templates mode="parameterAssignments"/>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:dataItemName" mode="parameterAssignments">
- <dataItemName xsi:type="cm:metadataModelItemName">
- <xsl:value-of select="text()"/>
- </dataItemName>
- </xsl:template>
- <xsl:template match="xtscm:expression" mode="parameterAssignments">
- <expression xsi:type="cm:expression">
- <xsl:value-of select="text()"/>
- </expression>
- </xsl:template>
- <xsl:template match="xtscm:parameterName" mode="parameterAssignments">
- <parameterName>
- <xsl:value-of select="text()"/>
- </parameterName>
- </xsl:template>
- <xsl:template match="*" mode="options">
- <xsl:element name="{local-name()}">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}">
- <xsl:choose>
- <xsl:when test="starts-with(.,'cm:')"><xsl:value-of select="concat('bus:',substring-after(.,'cm:'))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates mode="options"/>
- </xsl:element>
- </xsl:template>
- <!--<xsl:template match="*" mode="powerPlayServiceSpecification">
- <xsl:element name="{local-name()}">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}">
- <xsl:value-of select="."/>
- </xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates mode="powerPlayServiceSpecification"/>
- </xsl:element>
- </xsl:template> -->
- <xsl:template match="*[(local-name()='repositoryRules' )]" mode="property">
- <xsl:element name="{local-name()}">
- <xsl:attribute name="xsi:type">cm:repositoryRule</xsl:attribute>
- <xsl:apply-templates select="*" mode="options"/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="*[(local-name()='options' and namespace-uri()='') or local-name()='overrideOptions' or local-name()='serviceDefaultOptions']" mode="property">
- <xsl:element name="{local-name()}">
- <xsl:attribute name="xsi:type">cm:optionArrayProp</xsl:attribute>
- <xsl:apply-templates select="*" mode="options"/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="*[local-name()='deploymentOptions']" mode="property">
- <xsl:element name="options">
- <xsl:attribute name="xsi:type">cm:optionArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:option[{count(xtscm:deploymentOption)}]">
- <xsl:apply-templates mode="deploymentOptions"/>
- </value>
- <xsl:if test="count(@*) > 0">
- <schemaInfo>
- <xsl:for-each select="@*">
- <xsl:element name="{local-name()}">
- <xsl:value-of select="."/>
- </xsl:element>
- </xsl:for-each>
- </schemaInfo>
- </xsl:if>
- </xsl:element>
- </xsl:template>
- <xsl:template match="*[local-name()='routingTable']" mode="property">
- <xsl:copy-of select="."/>
- </xsl:template>
- <xsl:template match="*[local-name()='dataSourceCapabilities']" mode="property">
- <xsl:element name="capabilities" xsi:type="cm:anyURIArrayProp">
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[{count(xtscm:capability)}]">
- <xsl:for-each select="xtscm:capability">
- <item xsi:type="xsd:string">
- <xsl:value-of select="."/>
- </item>
- </xsl:for-each>
- </value>
- </xsl:element>
- </xsl:template>
- <!-- handle all "property" templates, perform the special conversions, including removing the namespace -->
- <xsl:template match="xtscm:*" mode="property">
- <xsl:choose>
- <!-- WO 2280 abacab support powerplay8 for now we need to just drop the blob pp passes to us -->
- <xsl:when test="(parent::node()[@name = 'm_pp8properties'] and (local-name()='specification' or local-name()='metadataModelPackage' or local-name()='metadataModel')) or (name(..)='cm:powerPlay8Report' and local-name()='specification')">
- <xsl:copy-of select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{local-name()}">
- <xsl:choose>
- <!--CM DOES NOT SUPPORT MULTILINGUALSTRINGS YET -->
- <!--xsl:when test="local-name()='defaultName'">
- <xsl:attribute name="xsi:type">cm:nameProp</xsl:attribute>
- <value xsi:type="cm:multilingualStringProp">
- <locale xsi:type="xsd:string">en</locale>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </value>
- </xsl:when-->
- <xsl:when test="local-name()='members' or local-name()='tenantMembers' or local-name()='consumers' or local-name()='definition' or local-name()='base' or local-name()='stepObject' or local-name()='target' or local-name()='owner' or local-name()='contact' or local-name()='dataSourceAccessAccount' or local-name()='credentialNamespaces' or local-name()='metadataModel' or local-name()='taskObject' or local-name()='portalPages' or local-name()='portlet' or local-name()='metadataModelPackage' or local-name()='channel' or local-name()='defaultAnalysis'">
- <xsl:attribute name="xsi:type">cm:baseClassArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseClass[{count(xtscm:*)}]">
- <xsl:apply-templates mode="baseClass"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='runOptions'">
- <xsl:attribute name="xsi:type">cm:runOptionArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:runOption[{count(xtscm:*)}]">
- <xsl:apply-templates mode="runOptions"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='options' and parent::*[local-name() = 'agentTaskDefinition']">
- <xsl:attribute name="xsi:type">cm:optionArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:option[{count(*/*)}]">
- <xsl:apply-templates select="*/*[local-name()='runOption']" mode="runOptions"/>
- <xsl:apply-templates select="*/*[local-name()='deliveryOption']" mode="deliveryOptions"/>
- <xsl:copy-of select="*/*[local-name()='item']"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='options'">
- <xsl:attribute name="xsi:type">cm:optionArrayProp</xsl:attribute>
- <xsl:apply-templates select="*" mode="options"/>
- </xsl:when>
- <xsl:when test="local-name()='dataBlocks'">
- <xsl:attribute name="xsi:type">cm:powerPlayDataBlockArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:powerPlayDataBlock[{count(xtscm:dataBlock)}]">
- <xsl:apply-templates mode="dataBlock"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='policies'">
- <xsl:attribute name="xsi:type">cm:policyArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:policy[{count(xtscm:policy | .//xtscm:policy)}]">
- <xsl:apply-templates mode="policies"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='userCapabilityPolicies'">
- <xsl:attribute name="xsi:type">cm:userCapabilityPolicyArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:userCapabilityPolicy[{count(xtscm:userCapabilityPolicy)}]">
- <xsl:apply-templates mode="userCapabilityPolicies"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='name'">
- <xsl:attribute name="xsi:type">cm:multilingualTokenProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:multilingualToken[{count(xtscm:tokenvalue)}]">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='defaultName'">
- <xsl:attribute name="xsi:type">cm:tokenProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='displaySequence'">
- <xsl:attribute name="xsi:type">cm:nonNegativeIntegerProp</xsl:attribute>
- <value xsi:type="xsd:integer">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='description' or local-name()='screenTip' or local-name()='triggerDescription' or local-name()='title'">
- <xsl:attribute name="xsi:type">cm:multilingualStringProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:multilingualString[{count(xtscm:value)}]">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='retentions'">
- <xsl:attribute name="xsi:type">cm:retentionRuleArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:retentionRule[{count(xtscm:retentionRule)}]">
- <xsl:apply-templates mode="retention"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='rdsGatewayMappings'">
- <xsl:attribute name="xsi:type">cm:gatewayMappingArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:gatewayMapping[{count(xtscm:gatewayMapping)}]">
- <xsl:apply-templates mode="gatewayMapping"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='qsROLAPCubeConfigurations'">
- <xsl:attribute name="xsi:type">cm:baseROLAPCubeConfigurationArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseROLAPCubeConfiguration[{count(xtscm:rolapVirtualCubeConfiguration | xtscm:rolapCubeConfiguration)}]">
- <xsl:apply-templates mode="rolapCubeConfiguration"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='jmxProxyHostDispatchers'">
- <xsl:attribute name="xsi:type">cm:baseClassArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseClass[{count(xtscm:dispatcher)}]">
- <xsl:apply-templates mode="jmxProxyHostDispatchers"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='credentials'">
- <xsl:attribute name="xsi:type">cm:anyTypeProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:text><credential><encryptedValue></xsl:text>
- <xsl:value-of select="."/>
- <xsl:text></encryptedValue></credential></xsl:text>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='executionPageDefinition'">
- <xsl:attribute name="xsi:type">cm:baseClassArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseClass[{count(xtscm:pageDefinition)}]">
- <xsl:apply-templates mode="pageDefinition"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='parameters'">
- <xsl:attribute name="xsi:type">cm:parameterValueArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:parameterValue[{count(xtscm:parameterValue)}]">
- <xsl:apply-templates mode="parameters"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='parameterAssignments'">
- <xsl:attribute name="xsi:type">cm:baseParameterAssignmentArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseParameterAssignment[{count(./*)}]">
- <xsl:if test="count(./*)>0">
- <xsl:apply-templates mode="parameterAssignments"/>
- </xsl:if>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='scope'">
- <xsl:attribute name="xsi:type">cm:metadataModelItemNameArrayProp</xsl:attribute>
- <xsl:apply-templates mode="scope"/>
- </xsl:when>
- <xsl:when test="local-name()='bookmarkItem' or local-name()='storedProcedureName'">
- <xsl:attribute name="xsi:type">cm:metadataModelItemNameProp</xsl:attribute>
- <value xsi:type="cm:metadataModelItemName">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='useAccessibilityFeatures' or local-name()='allowNotification'">
- <xsl:attribute name="xsi:type">cm:booleanProp</xsl:attribute>
- <value xsi:type="xsd:boolean"><xsl:value-of select="."/></value>
- </xsl:when>
- <xsl:when test="local-name()='specification'">
- <xsl:choose>
- <xsl:when test="@type='dataIntegrationServiceSpecificationProp'">
- <xsl:attribute name="xsi:type">cm:dataIntegrationServiceSpecificationProp</xsl:attribute>
- <value xsi:type="cm:dataIntegrationServiceSpecification">
- <value xsi:type="cm:specification">
- <xsl:apply-templates/>
- </value>
- </value>
- </xsl:when>
- <xsl:when test="parent::*[local-name() = 'updateDrillPath']">
- <xsl:attribute name="xsi:type">cm:reportServiceDrillThroughSpecificationProp</xsl:attribute>
- <value xsi:type="cm:reportServiceDrillThroughSpecification">
- <value xsi:type="cm:specification">
- <xsl:value-of select="xtsext:xmldecode(string(.))"/>
- </value>
- </value>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="xsi:type">cm:anyTypeProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="local-name()='closeConnectionCommands' or local-name()='closeSessionCommands' or local-name()='openConnectionCommands' or local-name()='openSessionCommands'">
- <xsl:attribute name="xsi:type">cm:dataSourceCommandBlockProp</xsl:attribute>
- <value xsi:type="cm:dataSourceCommandBlock">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='routingHints' or local-name()='eventKey'">
- <xsl:attribute name="xsi:type">cm:stringArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[{count(xtscm:item)}]">
- <xsl:for-each select="xtscm:item">
- <item xsi:type="xsd:string">
- <xsl:apply-templates/>
- </item>
- </xsl:for-each>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='eventTypes'">
- <xsl:attribute name="xsi:type">cm:eventTypeEnumArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:eventTypeEnum[{count(xtscm:item)}]">
- <xsl:for-each select="xtscm:item">
- <item xsi:type="cm:eventTypeEnum">
- <xsl:value-of select="."/>
- </item>
- </xsl:for-each>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='sequencing'">
- <xsl:attribute name="xsi:type">cm:nmtokenProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="(local-name()='link' and parent::node()[local-name()='urlRSSTask']) or local-name() = 'uri'">
- <xsl:attribute name="xsi:type">cm:anyURIProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='link' and parent::node()[local-name()='shortcutRSSTask']">
- <xsl:attribute name="xsi:type">cm:baseClassArrayProp</xsl:attribute>
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseClass[{count(xtscm:*)}]">
- <xsl:apply-templates mode="baseClass"/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='link' and parent::node()[local-name()='shortcutAgentRSSTask']">
- <xsl:attribute name="xsi:type">cm:agentOutputEnumProp</xsl:attribute>
- <value xsi:type="cm:agentOutputEnum">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='brsDataSourceChange' or local-name()='rsDataSourceChange'">
- <xsl:attribute name="xsi:type">cm:dateTimeProp</xsl:attribute>
- <value xsi:type="xsd:dateTime">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='filterDataItemName'">
- <xsl:attribute name="xsi:type">cm:metadataModelItemNameProp</xsl:attribute>
- <value xsi:type="cm:metadataModelItemName">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='runCondition'">
- <xsl:attribute name="xsi:type">cm:runConditionEnumProp</xsl:attribute>
- <value xsi:type="cm:runConditionEnum">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='iconURI'">
- <xsl:attribute name="xsi:type">cm:anyURIProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='hidden'">
- <xsl:attribute name="xsi:type">cm:booleanProp</xsl:attribute>
- <value xsi:type="xsd:boolean">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='disabled'">
- <xsl:attribute name="xsi:type">cm:booleanProp</xsl:attribute>
- <xsl:if test="string(./child::node())!=''">
- <value xsi:type="xsd:boolean">
- <xsl:apply-templates/>
- </value>
- </xsl:if>
- </xsl:when>
- <xsl:when test="local-name()='report'">
- <xsl:attribute name="xsi:type">cm:reportDataServiceSpecificationProp</xsl:attribute>
- <value xsi:type="cm:reportDataServiceSpecification">
- <value xsi:type="cm:specification">
- <xsl:apply-templates/>
- </value>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='action'">
- <xsl:attribute name="xsi:type">cm:baseReportActionEnumProp</xsl:attribute>
- <value xsi:type="cm:baseReportActionEnum">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='defaultPortalAction' and (contains(' powerPlay8Report powerPlay8ReportView ', concat(' ', local-name(parent::*), ' ')))">
- <xsl:attribute name="xsi:type">cm:basePowerPlay8ReportActionEnumProp</xsl:attribute>
- <value xsi:type="cm:basePowerPlay8ReportActionEnum">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <xsl:when test="local-name()='defaultPortalAction' and (contains(' interactiveReport reportView analysis query report reportTemplate ', concat(' ', local-name(parent::*), ' ')))">
- <xsl:attribute name="xsi:type">cm:baseReportActionEnumProp</xsl:attribute>
- <value xsi:type="cm:baseReportActionEnum">
- <xsl:apply-templates/>
- </value>
- </xsl:when>
- <!-- handle xml tags inside a any kind of property -->
- <xsl:when test="count(child::*) > 0">
- <xsl:attribute name="xsi:type">cm:anyTypeProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:variable name="encoded">
- <xsl:apply-templates mode="encode" select="child::node()"/>
- </xsl:variable>
- <xsl:value-of select="$encoded"/>
- </value>
- </xsl:when>
- <xsl:otherwise>
- <!-- default case: a simple string property -->
- <xsl:attribute name="xsi:type">cm:stringProp</xsl:attribute>
- <value xsi:type="xsd:string">
- <xsl:apply-templates/>
- </value>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="count(@*[local-name()!='type']) > 0">
- <schemaInfo>
- <xsl:for-each select="@*">
- <!-- While we have always sent updateAllDescendents as an option, it turns out that it is not a modelled option.
- The real option is applyUpdateToDescendants. RSVP is now more strict about this, so we must convert. -->
- <xsl:choose>
- <xsl:when test="local-name() = 'updateAllDescendents'">
- <applyUpdateToDescendants>
- <xsl:value-of select="."/>
- </applyUpdateToDescendants>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{local-name()}">
- <xsl:value-of select="."/>
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </schemaInfo>
- </xsl:if>
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- handle all "deploymentOptions" templates, perform the special conversions, including removing the namespace -->
- <xsl:template match="xtscm:deploymentOptions" mode="deploymentOptions">
- <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:option[{count(xtscm:*)}]">
- <xsl:apply-templates mode="deploymentOptions"/>
- </options>
- </xsl:template>
- <xsl:template match="xtscm:deploymentOption" mode="deploymentOptions">
- <xsl:choose>
- <xsl:when test="@name='package'">
- <xsl:variable name="objectClass" select="local-name(../..)"/>
- <xsl:choose>
- <xsl:when test="$objectClass='exportDeployment'">
- <xsl:apply-templates select="." mode="exportDeployment"/>
- </xsl:when>
- <xsl:when test="$objectClass='importDeployment'">
- <xsl:apply-templates select="." mode="importDeployment"/>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <item xsi:type="{@class}">
- <name xsi:type="cm:deploymentOptionEnum"><xsl:value-of select="@name"/></name>
- <value>
- <xsl:choose>
- <xsl:when test="@class='cm:deploymentOptionString'">
- <xsl:attribute name="xsi:type">xsd:string</xsl:attribute>
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class='cm:deploymentOptionAnyType'">
- <xsl:attribute name="xsi:type">xsd:string</xsl:attribute>
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class='cm:deploymentOptionResolution'">
- <xsl:attribute name="xsi:type">cm:conflictResolutionEnum</xsl:attribute>
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class='cm:deploymentOptionMultilingualString'">
- <xsl:attribute name="xsi:type">SOAP-ENC:Array</xsl:attribute>
- <xsl:attribute name="SOAP-ENC:arrayType">cm:multilingualString[<xsl:value-of select="count(xtscm:value)"/>]</xsl:attribute>
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class='cm:deploymentOptionAuditLevel'">
- <xsl:attribute name="xsi:type">cm:auditLevelEnum</xsl:attribute>
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class='cm:deploymentOptionStringArray'">
- <xsl:attribute name="xsi:type">SOAP-ENC:Array</xsl:attribute>
- <xsl:attribute name="SOAP-ENC:arrayType">xsd:string[<xsl:value-of select="count(xtscm:value)"/>]</xsl:attribute>
- <xsl:for-each select="xtscm:value">
- <value xsi:type="xsd:string"><xsl:value-of select="."/></value>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="xsi:type">xsd:boolean</xsl:attribute>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </value>
- </item>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="xtscm:deploymentOption" mode="exportDeployment">
- <xsl:if test="count(xtscm:packageDeploymentInfo) != 0">
- <item xsi:type="cm:deploymentOptionSearchPathSingleObjectArray">
- <name xsi:type="cm:deploymentOptionEnum">export</name>
- <value>
- <xsl:attribute name="xsi:type">SOAP-ENC:Array</xsl:attribute>
- <xsl:attribute name="SOAP-ENC:arrayType">
- <xsl:text>cm:searchPathSingleObject[</xsl:text>
- <xsl:value-of select="count(xtscm:packageDeploymentInfo)"/>
- <xsl:text>]</xsl:text>
- </xsl:attribute>
- <xsl:apply-templates mode="exportDeployment"/>
- </value>
- </item>
- <item xsi:type="cm:deploymentOptionImportRuleArray">
- <name xsi:type="cm:deploymentOptionEnum">import</name>
- <value>
- <xsl:attribute name="xsi:type">SOAP-ENC:Array</xsl:attribute>
- <xsl:attribute name="SOAP-ENC:arrayType">
- <xsl:text>cm:deploymentImportRule[</xsl:text>
- <xsl:value-of select="count(xtscm:packageDeploymentInfo)"/>
- <xsl:text>]</xsl:text>
- </xsl:attribute>
- <xsl:apply-templates mode="importDeployment"/>
- </value>
- </item>
- </xsl:if>
- </xsl:template>
- <xsl:template match="xtscm:deploymentOption" mode="importDeployment">
- <xsl:if test="count(xtscm:packageDeploymentInfo) != 0">
- <item xsi:type="cm:deploymentOptionImportRuleArray">
- <name xsi:type="cm:deploymentOptionEnum">import</name>
- <value>
- <xsl:attribute name="xsi:type">SOAP-ENC:Array</xsl:attribute>
- <xsl:attribute name="SOAP-ENC:arrayType">
- <xsl:text>cm:deploymentImportRule[</xsl:text>
- <xsl:value-of select="count(xtscm:packageDeploymentInfo)"/>
- <xsl:text>]</xsl:text>
- </xsl:attribute>
- <xsl:apply-templates mode="importDeployment"/>
- </value>
- </item>
- </xsl:if>
- </xsl:template>
- <xsl:template match="xtscm:packageDeploymentInfo" mode="exportDeployment">
- <item xsi:type="cm:searchPathSingleObject">
- <xsl:text>storeID('</xsl:text>
- <xsl:value-of select="xtscm:storeID"/>
- <xsl:text>')</xsl:text>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:packageDeploymentInfo" mode="importDeployment">
- <item xsi:type="cm:deploymentImportRule">
- <archiveSearchPath xsi:type="cm:searchPathSingleObject">
- <!--xsl:text>storeID('</xsl:text-->
- <xsl:value-of select="xtscm:archiveSearchPath"/>
- <!--xsl:text>')</xsl:text-->
- </archiveSearchPath>
- <disabled xsi:type="xsd:boolean">
- <xsl:choose>
- <xsl:when test="xtscm:enabled='true'">false</xsl:when>
- <xsl:otherwise>true</xsl:otherwise>
- </xsl:choose>
- </disabled>
- <name>
- <xsl:attribute name="xsi:type">SOAP-ENC:Array</xsl:attribute>
- <xsl:attribute name="SOAP-ENC:arrayType">cm:multilingualToken[<xsl:value-of select="count(xtscm:targetName/xtscm:tokenvalue)"/>]</xsl:attribute>
- <xsl:apply-templates select="xtscm:targetName/xtscm:tokenvalue"/>
- </name>
- <parent xsi:type="cm:searchPathSingleObject">
- <xsl:choose>
- <xsl:when test="*[local-name()='targetLocation']=''">/content</xsl:when>
- <xsl:otherwise><xsl:value-of select="*[local-name()='targetLocation']"/></xsl:otherwise>
- </xsl:choose>
- </parent>
- </item>
- </xsl:template>
- <xsl:template match="xtscm:sourceName|xtscm:targetName" mode="deploymentOptions">
- <xsl:element name="{local-name()}">
- <xsl:attribute name="xsi:type">SOAP-ENC:Array</xsl:attribute>
- <xsl:attribute name="SOAP-ENC:arrayType">cm:multilingualToken[<xsl:value-of select="count(xtscm:tokenvalue)"/>]</xsl:attribute>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="xtscm:enabled" mode="deploymentOptions">
- <enabled xsi:type="xsd:boolean">
- <xsl:apply-templates/>
- </enabled>
- </xsl:template>
- <xsl:template match="xtscm:returnProperties" priority="2">
- <returnProperties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:propEnum[{count(./*[local-name()='property'])}]">
- <xsl:for-each select="./*[local-name()='property']">
- <item xsi:type="propEnum">
- <xsl:value-of select="."/>
- </item>
- </xsl:for-each>
- </returnProperties>
- </xsl:template>
- <!--
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- catch all elements, change attributes into elements for the CM namespace only.
- -->
- <xsl:template name="convert" match="*[namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/'] | @*[namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']" priority="1">
- <xsl:param name="context" select="."/>
- <xsl:param name="xsi-type" select="''"/>
- <xsl:element name="{local-name()}">
- <xsl:if test="$xsi-type!=''">
- <xsl:attribute name="xsi:type"><xsl:value-of select="$xsi-type"/></xsl:attribute>
- </xsl:if>
- <xsl:for-each select="@*">
- <xsl:element name="{name()}">
- <xsl:attribute name="xsi:type">
- <xsl:choose>
- <xsl:when test="name()='schemaInfo'">xsd:boolean</xsl:when>
- <xsl:when test="name()='skipObjects'">xsd:integer</xsl:when>
- <xsl:when test="name()='maxObjects'">xsd:integer</xsl:when>
- <xsl:when test="name()='dataEncoding'">cm:encodingEnum</xsl:when>
- <xsl:when test="name()='skipDataBytes'">xsd:integer</xsl:when>
- <xsl:when test="name()='maxDataBytes'">xsd:integer</xsl:when>
- <xsl:when test="name()='updateAction'">cm:updateActionEnum</xsl:when>
- <xsl:when test="name()='recursive'">xsd:boolean</xsl:when>
- <xsl:when test="name()='force'">xsd:boolean</xsl:when>
- <xsl:otherwise>xsd:string</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:value-of select="."/>
- </xsl:element>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="node()" priority="0">
- <xsl:element name="{name()}" namespace="{namespace-uri()}">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <!--
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- generate text for root element, take care of the attribute namespaces
- -->
- <xsl:template match="*" mode="encode">
- <xsl:text><</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:apply-templates select="@*" mode="sub-encode"/>
- <xsl:if test="(namespace-uri() != '') and (name() = local-name()) and (namespace-uri() != namespace-uri(..))">
- <xsl:text> xmlns="</xsl:text>
- <xsl:value-of select="namespace-uri()"/>
- <xsl:text>"</xsl:text>
- </xsl:if>
- <xsl:if test="(contains(name(), ':')) and (namespace-uri() != namespace-uri(..))">
- <xsl:text> xmlns:</xsl:text>
- <xsl:value-of select="substring-before(name(), ':')"/>
- <xsl:text>="</xsl:text>
- <xsl:value-of select="namespace-uri()"/>
- <xsl:text>"</xsl:text>
- </xsl:if>
- <xsl:variable name="attributes" select="@* | .//@*"/>
- <!--
- The following line should be <xsl:for-each select="$attributes"> but it doesn't work properly in XSLTC
- -->
- <xsl:for-each select="@* | .//@*">
- <xsl:if test="(contains(name(), ':'))">
- <xsl:variable name="ns-name" select="substring-before(name(), ':')"/>
- <xsl:variable name="ns-pos" select="position()"/>
- <xsl:if test="not($attributes[position() < $ns-pos and substring-before(name(), ':') = $ns-name])">
- <xsl:text> xmlns:</xsl:text>
- <xsl:value-of select="substring-before(name(), ':')"/>
- <xsl:text>="</xsl:text>
- <xsl:value-of select="namespace-uri()"/>
- <xsl:text>"</xsl:text>
- </xsl:if>
- </xsl:if>
- </xsl:for-each>
- <xsl:text>></xsl:text>
- <xsl:apply-templates select="* | text()" mode="sub-encode"/>
- <xsl:text></</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:text>></xsl:text>
- </xsl:template>
- <xsl:template match="*" mode="sub-encode">
- <xsl:text><</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:apply-templates select="@*" mode="sub-encode"/>
- <xsl:if test="(namespace-uri() != '') and (name() = local-name()) and (namespace-uri() != namespace-uri(..))">
- <xsl:text> xmlns="</xsl:text>
- <xsl:value-of select="namespace-uri()"/>
- <xsl:text>"</xsl:text>
- </xsl:if>
- <xsl:if test="(contains(name(), ':')) and (namespace-uri() != namespace-uri(..))">
- <xsl:text> xmlns:</xsl:text>
- <xsl:value-of select="substring-before(name(), ':')"/>
- <xsl:text>="</xsl:text>
- <xsl:value-of select="namespace-uri()"/>
- <xsl:text>"</xsl:text>
- </xsl:if>
- <xsl:text>/></xsl:text>
- </xsl:template>
- <!-- generate text for an element with children or text -->
- <xsl:template match="*[* | text()]" mode="sub-encode">
- <xsl:text><</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:apply-templates select="@*" mode="sub-encode"/>
- <xsl:if test="(namespace-uri() != '') and (name() = local-name()) and (namespace-uri() != namespace-uri(..))">
- <xsl:text> xmlns="</xsl:text>
- <xsl:value-of select="namespace-uri()"/>
- <xsl:text>"</xsl:text>
- </xsl:if>
- <xsl:if test="(contains(name(), ':')) and (namespace-uri() != namespace-uri(..))">
- <xsl:text> xmlns:</xsl:text>
- <xsl:value-of select="substring-before(name(), ':')"/>
- <xsl:text>="</xsl:text>
- <xsl:value-of select="namespace-uri()"/>
- <xsl:text>"</xsl:text>
- </xsl:if>
- <xsl:text>></xsl:text>
- <xsl:apply-templates select="* | text()" mode="sub-encode"/>
- <xsl:text></</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:text>></xsl:text>
- </xsl:template>
- <!-- generate text for an attribute -->
- <xsl:template match="@*" mode="sub-encode">
- <xsl:text> </xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:text>="</xsl:text>
- <xsl:value-of select="."/>
- <xsl:text>"</xsl:text>
- </xsl:template>
- <!-- generate text -->
- <xsl:template match="text()" mode="sub-encode">
- <xsl:value-of select="xtsext:xmlencode(string(.))"/>
- </xsl:template>
- <!--
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- comment() and processing-instruction() handlers
- -->
- <xsl:template match="comment()" priority="0">
- <xsl:comment>
- <xsl:value-of select="."/>
- </xsl:comment>
- </xsl:template>
- <xsl:template match="processing-instruction()" priority="0"/>
- <!--
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- generic text() handler
- -->
- <xsl:template match="text()" priority="0">
- <xsl:copy-of select="."/>
- </xsl:template>
- </xsl:stylesheet>
|