下面是我的XML輸入XSLT/X-路徑表達式
<ServiceIncident xmlns="http://b2b.ibm.com/schema/IS_B2B_CDM/R2_2">
<RequesterID/>
<ProviderID>INC0011731</ProviderID>
<ProviderPriority>4</ProviderPriority>
<WorkflowStatus>NEW</WorkflowStatus>
<Transaction>
<Acknowledge>1</Acknowledge>
<StatusCode>0</StatusCode>
<Comment>String</Comment>
<TransactionName>Problem_Submittal</TransactionName>
<TransactionType>2</TransactionType>
<TransactionDateTime>2012-10-19T16:05:56Z</TransactionDateTime>
<TransactionNumber>2012-10-19T16:05:56Z:1ae9b6a79901fc40fa75c64e1cdcc3b4</TransactionNumber>
<TransactionRouting>MX::ITELLASNINCBRDG</TransactionRouting>
<DataSource>ServiceNow</DataSource>
<DataTarget>NASPGR72</DataTarget>
</Transaction>
我的問題是隻有一個或兩個領域,我需要比其它XSLT無論是在輸入我需要在輸出映射。
以下是iam在xslt中使用的複製輸入的代碼。
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
其不是通過使用以下x路的表達,但不IAM獲得輸出在輸入和輸出相同的是IAM映射一個元件之後。
<TransactionRouting>
<xsl:text>Maximo</xsl:text>
</TransactionRouting>
通過使用上述複製代碼亞姆能夠整個輸入複製作爲輸出,但如果IAM試圖通過使用X路徑表達式做地圖中的xsl一種元素如上所示這是不是在輸入和輸出IAM相同不能這樣做,請幫助我。
目前還不清楚你的意思是「在XSL中映射元素」。此外,請將您的問題的標題更改爲比「XSLT/XPath問題」更具體且更有意義的短語。謝謝! –
你說的是「下面的XPath表達式」,但是你的問題中沒有顯示任何XPath表達式。你可以編輯問題來顯示_whole_ XSLT文件嗎? –