Focal Point
[SOLVED by case] Could not compile stylesheet - solved

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/907101325

September 07, 2010, 07:18 AM
ray_In_Vancouver
[SOLVED by case] Could not compile stylesheet - solved
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
September 15, 2010, 08:52 AM
ray_In_Vancouver
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