123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!--
- +===================================================================+
- | Licensed Materials - Property of IBM
- | BI and PM: prmt
- | (C) Copyright IBM Corp. 2002, 2019
- |
- | US Government Users Restricted Rights - Use, duplication or
- | disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- |
- +===================================================================+
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xts:block id="wait" mode="interpret" processor="XSLT" type="exec" condition=".[/root/env/param[@name='m_tracking'] and /root/env/param[@name='doWait']='1']" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <response>
- <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/reportService/202004/.absolute" faultBlock="faultHandler" responseEnvelope="true" outputHeader="true">
- <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Header>
- <bus:biBusHeader xsi:type="bus:biBusHeader">
- <bus:tracking>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(key('env-param','m_tracking'))), true())" disable-output-escaping="yes"/>
- </bus:tracking>
- <xsl:apply-templates select="/root/header/*[local-name() = 'biBusHeader']/*[local-name() != 'tracking']"/>
- </bus:biBusHeader>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <xsl:element name="wait" namespace="http://developer.cognos.com/schemas/reportService/1">
- <bus:conversation xsi:type="bus:asynchRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:nil="true"/>
- <bus:parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"/>
- <bus:options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"/>
- </xsl:element>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </response>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- <!-- don't include superfluous fields in Envelope -->
- <xsl:template match="*[local-name()='formFieldVars']/item[name='inlineSpec' or name='conversation' or name='previousConversation' or name='cancelStack']"/>
- <!-- used to copy the bus header stuff - see "apply-templates" above. -->
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="prependDocument" mode="interpret" processor="XSLT" type="exec" condition=".[not(/root/env/param[@name = 'doWait'])]" mandatory="false">
- <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" exclude-result-prefixes="xsl xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name" />
- <xsl:template match="/root">
- <xts:sequence>
- <xts:append select="/root">
- <trackingInfo>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(key('env-param','m_tracking'))), true())" disable-output-escaping="yes"/>
- </trackingInfo>
- <xsl:if test="key('env-param','ui.conversation')">
- <PRconversation>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(key('env-param','ui.conversation'))), true())" disable-output-escaping="yes"/>
- </PRconversation>
- </xsl:if>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="getPromptValues" type="exec" mode="interpret" processor="XSLT" dependency="prependDocument" condition=".[not(/root/env/param[@name = 'doWait'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="pf xsl xsi xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name" />
- <xsl:template match="/root">
- <xts:sequence>
- <xts:append>
- <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/reportService/202004/.high" responseEnvelope="false" outputHeader="true">
- <SOAP-ENV:Envelope 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" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <SOAP-ENV:Header>
- <bus:biBusHeader xsi:type="bus:biBusHeader">
- <xsl:choose>
- <xsl:when test="key('env-param','m_tracking')!=''">
- <!-- use the round-tripped tracking information -->
- <xsl:choose>
- <xsl:when test="not(trackingInfo/*[local-name()='tracking'])">
- <bus:tracking>
- <xsl:copy-of select="trackingInfo/*"/>
- </bus:tracking>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="trackingInfo/*"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="header/*[local-name()='biBusHeader']/*[local-name()!='tracking']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="header/*[local-name()='biBusHeader']/*"/>
- </xsl:otherwise>
- </xsl:choose>
- </bus:biBusHeader>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <getPromptValues xmlns="http://developer.cognos.com/schemas/reportService/1">
- <xsl:choose>
- <xsl:when test="/root/PRconversation/*[local-name()='primaryRequest']">
- <bus:conversation xsi:type="bus:asynchRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xsl:copy-of select="/root/PRconversation/*[local-name()='primaryRequest']/*"/>
- </bus:conversation>
- </xsl:when>
- <xsl:when test="/root/PRconversation/*">
- <bus:conversation xsi:type="bus:asynchRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xsl:copy-of select="/root/PRconversation/*"/>
- </bus:conversation>
- </xsl:when>
- <xsl:otherwise>
- <bus:conversation xsi:type="bus:asynchRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:nil="true"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="getParameters"/>
- <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]">
- <item xsi:type="bus:runOptionInt">
- <bus:name xsi:type="bus:runOptionEnum">skipValueCount</bus:name>
- <bus:value xsi:type="xsd:int"><xsl:value-of select="key('env-param','skipValueCount')"/></bus:value>
- </item>
- <item xsi:type="bus:runOptionInt">
- <bus:name xsi:type="bus:runOptionEnum">maximumValueCount</bus:name>
- <bus:value xsi:type="xsd:int"><xsl:value-of select="key('env-param','maximumValueCount')"/></bus:value>
- </item>
- <item xsi:type="bus:asynchOptionEncoding">
- <bus:name xsi:type="bus:asynchOptionEnum">attachmentEncoding</bus:name>
- <bus:value xsi:type="bus:encodingEnum">base64</bus:value>
- </item>
- <item xsi:type="bus:asynchOptionInt">
- <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
- <bus:value xsi:type="xsd:int">20</bus:value>
- </item>
- </options>
- </getPromptValues>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- <pf:serialize-xml/>
- <!-- don't include superfluous fields in Envelope -->
- <xsl:template match="*[local-name()='formFieldVars']/item[name='ui.spec' or name='ui.conversation' or name='previousReportSession']"/>
- <!-- used to copy the bus header stuff - see "apply-templates" above. -->
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="getParameters" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
- <parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]">
- <item xsi:type="bus:parameterValue">
- <bus:name xsi:type="xs:string">
- <xsl:value-of select="key('env-param','paramName')"/>
- </bus:name>
- <bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parmValueItem[]">
- <xsl:choose>
- <xsl:when test="key('env-param','displayValue') and key('env-param','useValue')">
- <item xsi:type="bus:hierarchicalParmValueItem">
- <bus:inclusive xsi:nil="true" xsi:type="xs:boolean"/>
- <bus:value xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xs:boolean">true</bus:inclusive>
- <bus:display xsi:type="xs:string">
- <xsl:value-of select="key('env-param','displayValue')" />
- </bus:display>
- <bus:use xsi:type="xs:string">
- <xsl:value-of select="key('env-param','useValue')" />
- </bus:use>
- </bus:value>
- <bus:subNodes SOAP-ENC:arrayType="bus:hierarchicalParmValueItem[]" xsi:type="SOAP-ENC:Array"/>
- </item>
- </xsl:when>
- </xsl:choose>
- </bus:value>
- </item>
- <xsl:for-each select="/root/env/param[starts-with(@name, 'p_')]">
- <item xsi:type="bus:parameterValue">
- <bus:name xsi:type="xs:string">
- <xsl:value-of select="substring(@name,3)"/>
- </bus:name>
- <bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parmValueItem[]">
- <item xsi:type="bus:simpleParmValueItem">
- <bus:inclusive xsi:type="xs:boolean">true</bus:inclusive>
- <bus:use xsi:type="xs:string">
- <xsl:value-of select="key('env-param', @name)" />
- </bus:use>
- <bus:display xsi:type="xsd:string" xsi:nil="true"/>
- </item>
- </bus:value>
- </item>
- </xsl:for-each>
- </parameterValues>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="appendDocument" mode="interpret" processor="XSLT" type="exec" dependency="getPromptValues wait" condition=".[not(/root/env/param[@name = 'doWait']) or (/root/response/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='waitResponse'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xos="http://developer.cognos.com/schemas/xts/output/">
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
- <xsl:template match="/root">
- <xts:sequence>
- <xts:append select="/root">
- <xsl:choose>
- <xsl:when test="contains(./*[local-name() = 'getPromptValuesResponse']/*[local-name()='result']/*[local-name()='status'], 'working') or
- contains(./*[local-name() = 'getPromptValuesResponse']/*[local-name()='result']/*[local-name()='status'], 'stillWorking') or
- contains(./response/*[local-name() = 'Envelope']/*[local-name() = 'Body']/*[local-name() = 'waitResponse']/*[local-name()='result']/*[local-name()='status'], 'stillWorking')">
- <working>
- <xsl:for-each select="/root/output/*/*/*[local-name() = 'Header']/*[local-name() = 'biBusHeader']/*[local-name() = 'tracking']/*">
- <xsl:variable name="markup-track">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="string($markup-track)"/>
- </xsl:for-each>
- </working>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="output">
- <xsl:choose>
- <xsl:when test="./response/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='waitResponse']/*[local-name()='result']/*[local-name()='details']/item/*[local-name()='outputPages']/item != ''">
- <xsl:value-of select="./response/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='waitResponse']/*[local-name()='result']/*[local-name()='details']/item/*[local-name()='outputPages']/item"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="*[local-name()='getPromptValuesResponse']/*[local-name()='result']/*[local-name()='details']/*[local-name()='item']/*[local-name()='outputPages']/item"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="starts-with($output, '<html')">
- <htmlOutput>
- <xsl:value-of select="$output"/>
- </htmlOutput>
- <conversation>
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root//*[local-name()='getPromptValuesResponse']/*[local-name()='result']/*[local-name()='primaryRequest']/*"/>
- </xsl:call-template>
- </conversation>
- <tracking>
- <xsl:for-each select="/root/output/*/*/*[local-name() = 'Header']/*[local-name() = 'biBusHeader']/*[local-name() = 'tracking']/*">
- <xsl:variable name="markup-track">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="string($markup-track)"/>
- </xsl:for-each>
- </tracking>
- </xsl:when>
- <xsl:otherwise>
- <promptTree>
- <xsl:value-of select="$output" disable-output-escaping="yes"/>
- </promptTree>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- <pf:serialize-xml/>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="appendDocument" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" version="1.0">
- <xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/root"><xsl:text/>
- <xsl:variable name="passport">
- <xsl:choose>
- <!-- pull the passport out of the bus header -->
- <xsl:when test="/root/credential/param[@name='CAM']/*[local-name() = 'CAM']/*[local-name = 'CAMPassport']/*[local-name() = 'id']">
- <xsl:value-of select="/root/credential/param[@name='CAM']/*[local-name() = 'CAM']/*[local-name = 'CAMPassport']/*[local-name() = 'id']"/>
- </xsl:when>
- <!-- if it's not there, see if it is still in the cookie -->
- <xsl:otherwise>
- <xsl:value-of select="xtsext:camcookie_action('getPassportID', $CAMPassportCookie)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="./working">
- <xsl:text/>"working","<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='treeNodeName']))"/>","<xsl:value-of select="xtsext:javascriptencode(string(xtsext:cafaction(concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string(./working), true()))))"/><xsl:text/>
- </xsl:when>
- <xsl:when test="./htmlOutput">
- <xsl:value-of select="./htmlOutput" disable-output-escaping="yes"/>
- <script type="text/javascript">
- var PT_CONVERSATION_INFO = "<xsl:value-of select="xtsext:javascriptencode(string(xtsext:cafaction(concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string(./conversation), true()))))"/>";
- var PT_TRACKING = "<xsl:value-of select="xtsext:javascriptencode(string(xtsext:cafaction(concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string(./tracking), true()))))"/>";
- </script>
- </xsl:when>
- <xsl:otherwise>
- <!--
- html wrapper
- -->
- <html><head></head>
- <body>
- <script type="text/javascript">
- <xsl:text/>var j=[<xsl:text/>
- <!--
- Tree Node Name
- -->
- <xsl:text/>"<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='treeNodeName']))"/>"<xsl:text/>
- <!--
- Handle "more" data
- -->
- <xsl:choose>
- <xsl:when test="/root/promptTree/selectOptions[@moreData='true']">
- <xsl:text/>,"true"<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>,"false"<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- <!--
- Handle skip value
- -->
- <xsl:choose>
- <xsl:when test="/root/promptTree/selectOptions[@skipValueCount]">
- <xsl:text/>,"<xsl:value-of select="xtsext:javascriptencode(string(/root/promptTree/selectOptions/@skipValueCount))"/>"<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>,"0"<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- <!--
- Handle maximum value
- -->
- <xsl:choose>
- <xsl:when test="/root/promptTree/selectOptions[@maximumValueCount]">
- <xsl:text/>,"<xsl:value-of select="xtsext:javascriptencode(string(/root/promptTree/selectOptions/@maximumValueCount))"/>"<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>,"0"<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- <!--
- Handle memberDisplayCountDefault value
- -->
- <xsl:choose>
- <xsl:when test="/root/promptTree/selectOptions[@memberDisplayCountDefault]">
- <xsl:text/>,"<xsl:value-of select="xtsext:javascriptencode(string(/root/promptTree/selectOptions/@memberDisplayCountDefault))"/>"<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>,"0"<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- <!--
- Handle memberDisplayCountLimit value
- -->
- <xsl:choose>
- <xsl:when test="/root/promptTree/selectOptions[@memberDisplayCountLimit]">
- <xsl:text/>,"<xsl:value-of select="xtsext:javascriptencode(string(/root/promptTree/selectOptions/@memberDisplayCountLimit))"/>"<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>,"0"<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:for-each select="/root/promptTree/selectOptions/selectTreeOption">
- <xsl:choose>
- <xsl:when test="count(./*) > 0">
- <xsl:text/>,"f"<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>,"l"<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text/>,"<xsl:value-of select="xtsext:javascriptencode(string(./@displayValue))"/>"<xsl:text/>
- <xsl:text/>,"<xsl:value-of select="xtsext:javascriptencode(string(./@useValue))"/>"<xsl:text/>
- <xsl:variable name="currentUseVal">
- <xsl:value-of select="./@useValue"/>
- </xsl:variable>
- <xsl:variable name="isSelected">
- <xsl:for-each select="/root/promptTree/selectChoices/selectTreeOption">
- <xsl:variable name="currentPromptUseVal">
- <xsl:value-of select="./@useValue"/>
- </xsl:variable>
- <xsl:if test="$currentUseVal=$currentPromptUseVal">
- <xsl:text/>true<xsl:text/>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$isSelected='true'">
- <xsl:text/>,"t"<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>,"f"<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:text/>]<xsl:text/></script>
- </body>
- </html>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="faultHandler" type="fault" processor="XSLT">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="xsl">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <soapFault>
- <xsl:copy>
- <xsl:copy-of select="/root/fault"/>
- </xsl:copy>
- </soapFault>
- </xsl:template>
- <xsl:template match="text()"/>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|