xsl-list
[Top] [All Lists]

Unwanted namespace declaration in output

2006-02-28 15:00:01
My <xslt:stylesheet> has this namespace declaration:

xmlns:xs="http://www.w3.org/2001/XMLSchema";

I need this because I want to do some arithmetic with some parameters in this 
template:

<xsl:template match="name">
  <xsl:param name="current-reqs" as="xs:integer" />
  <xsl:param name="new-reqs" as="xs:integer" />
  <xsl:param name="deleted-reqs" as="xs:integer" />
 .... stuff goes here ...
</xsl:template>

but I don't want the namespace declaration to be repeated in my output.

Example:

 <changes xmlns:xs="http://www.w3.org/2001/XMLSchema";>

When I add the "exclude-result-prefixes='xs'" attribute to my <xsl:stylesheet> 
element, instead of producing output I get this error:

"XTDE0700: No value supplied for required parameter"

Please, what I am missing?

-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--