ERROR: 'The input document is not a stylesheet (the XSL namespace is not declared in the root element)

ERROR: 'The input document is not a stylesheet (the XSL namespace is not declared in the root element)

book

Article ID: KB0081203

calendar_today

Updated On:

Products Versions
TIBCO Streaming 7.x, 10.x

Description

The following error may be seen on application startup:

ERROR: 'Could not compile stylesheet' 
FATAL ERROR: 'The input document is not a stylesheet (the XSL namespace is not declared in the root element).' 
:The input document is not a stylesheet (the XSL namespace is not declared in the root element).
This indicates that the XML-to-Tuple Operator is not configured correctly.

Resolution

Not all XML files adhere to XSLT.  To avoid this error, leave the "XSLT File" option blank in the Operator Properties tab, and send the XML file as a string field on the operator's input port.

Issue/Introduction

The message "ERROR: 'The input document is not a stylesheet (the XSL namespace is not declared in the root element)" is seen on application startup when using the XML-to-Tuple operator.