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: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net]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

Hi,
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:
-------------------------------------------------------------------------------------------------------
STYLESHEET:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  xmlns:XQHeaderFunc="java:com.sonicsw.xqimpl.service.xform.HeaderExtension">

<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>

</xsl:stylesheet>

-------------------------------------------------------------------------------------------------------------
OUTPUT:

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

-----------------------------------------------------------------------------------------------------------

QUESTION:
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 ?

TIA,
Sonali