Add exclude-result-prefixes="XQHeaderFunc" to the xsl:stylesheet element.
(Note, with Saxon 6.5 this stylesheet will have to specify version="1.1", because it uses xsl:script which is not available in XSLT 1.0)
Mike Kay
-----Original Message-----
From: []On Behalf Of Sonali J. Kanaujia
Sent: 15 November 2001 16:32
To: SAXON XSL Discussion List
Subject: [saxon] Extension classname appended to transformed xml

I have written an ExtensionFunction "HeaderExtension" in Java to plug into Saxon 6.4.3.
The following is a snippet of the stylesheet where I use it:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="" version="1.0"

<xsl:script language="java" implements-prefix="XQHeaderFunc"       src="java:com.sonicsw.xqimpl.service.xform.HeaderExtension"/>

<p>We have received a message property: <xsl:value-of select="@name"/> with value <xsl:value-of select="XQHeaderFunc:getProperty(XQHeaderFunc:new(),string(@name),-1)"/></p>



<p xmlns:XQHeaderFunc="java:com.sonicsw.xqimpl.service.xform.HeaderExtension">
We have received a message property: Priority with value 4</p>


Why is the "src" attribute value or the fully qualified classname of the Extension appended to the transformed string ? I'd like to hide this information in the output.
Is there any way to do that ?