book
Article ID: KB0071894
calendar_today
Updated On:
Description
This prefix error means XSLT is defined with exclude-result-prefixes for multiple namespaces that are not part of the original schema definition. To resolve the issue you could try to remove the namespaces that are not being used in original schema from the exclude-result-prefixes list.
Resolution
Steps to access and remove exclude-result-prefixes.
- Go to the Mapper activity and select the input tab.
- In the mapping section, right-click on the "input" node and select the "'show edit Tab " option, which will open the edit statement window (XSLT statement window).
- In the Edit statement, you will find the "exclude-result-prefixes:" option. Here you can remove the specified name, for instance "ns", and run a test to check it resolves the issue, as the prefixes specified as the value of the "exclude-result-prefixes" attribute are excluded from literal-result elements.
Please refer to screenshot attached to the article for details.
Example:
Here is first line in the XSLT mapper that has the exclude-result-prefixes="ns1 xsl ns xsd tib">
===============
<xsl:stylesheet xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:ns="
https://xmlns.bmogc.net/hub/cg/event/v1_0" xmlns:tib="
http://www.tibco.com/bw/xslt/custom-functions" version="2.0" exclude-result-prefixes="ns1 xsl tib">
================
Issue/Introduction
This article provides detailed explanation of the namespace prefix error and steps to resolve it.