xsl:include does not work in Saxon 2.0 .

xsl:include does not work in Saxon 2.0 .

book

Article ID: KB0090091

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
=======

If XSLT file uses xsl:include to include the other xsXSLT file, you may see the following exception in Saxon 2.0:


    BW-XML-100006 Job-14000 Error in [TransformXML.process/Transform XML]
The [javax.xml.transform.TransformerConfigurationException] occurred during XSLT transformation:  javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
caused by: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.     Error at xsl:include on line 6 of tibcr://:
  XTSE0165: A source of type com.tibco.xml.trax.XiNodeBucket is not supported in this environment
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
    at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)

Environment:
========
Later than BW 5.7.0

Cause:
====

Before BW 5.7.0, BW only supported XSLT with tibco XSLT parser. It uses the tibcr:// protocol by default to refer to resources in BW projects.  "<xsl:include href="prepare4ET.xsl"/>" means a reference to prepare4ET.xsl which in the root path of the project folder. It has the same meaning as "<xsl:include href="tibcr://prepare4ET.xsl"/>" . Saxon reports the error, "Error at xsl:include on line 7 of tibcr://". There is a defect (BW-9591).


Resolution:

=======
1). This issue has been fixed in 5.9.2 HF13.
2). Use TIBCO XSLT 1.0 .

Issue/Introduction

xsl:include does not work in Saxon 2.0 .

Attachments

xsl:include does not work in Saxon 2.0 . get_app
xsl:include does not work in Saxon 2.0 . get_app