Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED by case] Could not compile stylesheet - solved
Go
New
Search
Notify
Tools
Reply
  
[SOLVED by case] Could not compile stylesheet - solved
 Login/Join
 
Gold member
posted
Trying to use com.ibi.agents.XDTransformAgent with a xslt file.
Xslt publised to transform with no errors.

Transform is in deployed in pflow in service, but get this error

Failed setting up dictionary XD[FAIL] cause: 0 subcause: 0 message: Cannot pre-compile xslt transform Anchor856xslt in file com.ibi.edaqm.XDDictionary$XDTransformation@13e584 : Could not compile stylesheet



<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
  <xsl:output method="xml" indent="yes"/>
  <xsl:template match="@* | node()">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
  </xsl:template>
  <xsl:template match="shipment/_856/HL/N1">
    <xsl:if test="N1/_01_Entity_Identifier_Code='SF'">
      <xsl:element   name="shipfrom">
        <xsl:apply-templates/>
      </xsl:element>
    </xsl:if>
    <xsl:if test="N1/_01_Entity_Identifier_Code='ST'">
      <xsl:element   name="shipTo">
        <xsl:apply-templates/>
      </xsl:element>
    </xsl:if>
  </xsl:template>
  <xsl:template match="shipment/_856/HL/N1/N1">
    <xsl:element name="address">
      <xsl:apply-templates/>
    </xsl:element>
  </xsl:template>
  <xsl:template match="shipment/_856/HL">
    <xsl:if test="HL/_03_Hierarchical_Level_Code='I'">
      <xsl:element   name="item">
        <xsl:apply-templates/>
      </xsl:element>
    </xsl:if>
  </xsl:template>
  <xsl:template match="shipment/_856/HL/HL">
    <xsl:element name="shiped">
      <xsl:apply-templates/>
    </xsl:element>
  </xsl:template>
</xsl:stylesheet>  

This message has been edited. Last edited by: Kerry,


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
Gold member
posted Hide Post
Solved by tech Support.

In the Sever tab of iWay SM > General Setting

General Settings
Listed below are the general settings for the base configuration of this server.

Make sure that the xslt files created in notpad or other tools match this setting.

I was usung notpad and saving the files as .xslt but of type UDF-8. that was putting 2 hidden characters in the files that stoped the server from compiling them.


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED by case] Could not compile stylesheet - solved

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.