|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
|
|
StyleSheet Security Problems IIB10 |
« View previous topic :: View next topic » |
Author |
Message
|
matuwe |
Posted: Fri May 22, 2020 6:23 am Post subject: StyleSheet Security Problems IIB10 |
|
|
Master
Joined: 05 Dec 2007 Posts: 296
|
Hi Kindly assist. I am trying migrate a flow from Broker 7 to broker 10. The stylesheet is now giving me an error
Code: |
Use of the extension function 'http://xml.apache.org/xslt/java:format' is not allowed when Java security is enabled |
Is there any configuration I need to set on my new broker |
|
Back to top |
|
|
matuwe |
Posted: Fri May 22, 2020 6:25 am Post subject: |
|
|
Master
Joined: 05 Dec 2007 Posts: 296
|
Code: |
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xslt/java"
exclude-result-prefixes="java">
<xsl:output method="Text" omit-xml-declaration="yes" indent="no" encoding="utf-8" />
<xsl:variable name="date">
<xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('dd-MM-yyyy'), java:java.util.Date.new())"/>
</xsl:variable>
<xsl:template match="/root">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="FHeader">
<xsl:text>H</xsl:text>
<xsl:value-of select="/root/bankId"/>
<xsl:text>0</xsl:text>
<xsl:value-of select="$date"/>
<xsl:text>TD</xsl:text>
<xsl:value-of select="RunId"/>
<xsl:if test="position()!=last()">
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="detailrecord">
<xsl:text>D</xsl:text>
<xsl:value-of select="/root/bankId" />
<xsl:value-of select="ChequeBookRequestId" />
<xsl:value-of select="ChequeBookType" />
<xsl:value-of select="NumberOfBooks" />
<xsl:value-of select="substring(ChqBookStartSerialNum,1,6)" />
<xsl:value-of select="substring(AccountName,1,40)" />
<xsl:value-of select="substring(AccountNumber,1,13)" />
<xsl:value-of select="substring(AccountAddress,1,40)" />
<xsl:value-of select="substring(AccountBranchCode,1,6)" />
<xsl:value-of select="AccountBranchDescription" />
<xsl:value-of select="substring(AccountBranchAddress,1,40)" />
<xsl:value-of select="substring(DeliveryBranchCode,1,6)" />
<xsl:value-of select="substring(DeliveryBranchDescription,1,40)" />
<xsl:value-of select="substring(DeliveryBranchAddress,1,40)" />
<xsl:value-of select="substring(normalize-space(MICRAccountNumber),string-length(normalize-space(MICRAccountNumber))-9,10)" />
<xsl:value-of select="AccountCurrencyCode" />
<xsl:value-of select="ChequeDigitCode" />
<xsl:if test="position()!=last()">
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="FTrailer">
<xsl:text>T</xsl:text>
<xsl:value-of select="/root/bankId" />
<xsl:text>4</xsl:text>
<xsl:value-of select="NumberOfRecords"/>
<xsl:value-of select="NumberOfBooks"/>
</xsl:template>
<xsl:template match="bankId">
<xsl:text></xsl:text>
</xsl:template>
</xsl:stylesheet>
|
|
|
Back to top |
|
|
|
|
|
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|