When we call the XalanTransformer transform() method in our 32-bit C/C++ 
application it crashes. I then tried the Xalan program that is built as part of 
the Xalan package. When I run the command line program Xalan I get a 
segmentation fault:

Xalan test.xml test.xsl

The data files are attached.

I am building and running these components on 32-bit RedHat 4:

ICU 53.1
Xerces-c 3.1.1
Xalan-c 1.11

Has anyone seen the Xalan command line program crash like this? Has Xalan been 
tested on Red Hat 4 when built using ICU?

Thanks.

<?xml version="1.0" encoding="UTF-8"?> 
<!-- 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;       LastChangeDate = "07/02/2014"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-->
<xsl:stylesheet 
  version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:otxsl="http://xml.gxs.com/otxsl";
  exclude-result-prefixes="otxsl">

  <xsl:output method="xml"
     version="1.0"
     encoding="UTF-8"
     indent="yes"/>

  <xsl:template match="/">
    <readyrecord>
      <commInfoRecordCount>
        <xsl:value-of select="otxsl:var-get('OTRN_commInfoRecordCount')"/>
      </commInfoRecordCount>

      <xsl:for-each select="otxsl:array-list('OTRN_commInfoRecordLoop', 'stop')">

        <commInfoRecord>
        <xsl:for-each select="otxsl:array-list('OTRN_commInfoRecordVal1', 'stop')">
          <xsl:element name="{otxsl:array-get('OTRN_commInfoRecordLbl1')}">
             <xsl:value-of select="."/>
          </xsl:element>
        </xsl:for-each>
      </commInfoRecord>

      </xsl:for-each>

    </readyrecord>
  </xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?>
<default>
</default>

Reply via email to