ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » StyleSheet Security Problems IIB10

Post new topic  Reply to topic
 StyleSheet Security Problems IIB10 « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Fri May 22, 2020 6:23 am    Post subject: StyleSheet Security Problems IIB10 Reply with quote

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
View user's profile Send private message
matuwe
PostPosted: Fri May 22, 2020 6:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » StyleSheet Security Problems IIB10
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.