[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Function name that doesn't have an explicit namespace prefix?


Subject: Re: [xsl] Function name that doesn't have an explicit namespace prefix?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 13 Nov 2012 11:53:54 +0100

Costello, Roger L. wrote:

Is there a way to define an xsl:function without explicitly giving it a namespace prefix? For example:

<xsl:function name="f">

</xsl:function>


Well http://www.w3.org/TR/xslt20/#stylesheet-functions is rather clear, it says "The name attribute specifies the name of the function. The value of the name attribute is a QName, which is expanded as described in 5.1 Qualified Names.

...

[ERR XTSE0740] A stylesheet function must have a prefixed name, to remove any risk of a clash with a function in the default function namespace. It is a static error if the name has no prefix."



--

	Martin Honnen --- MVP Data Platform Development
	http://msmvps.com/blogs/martin_honnen/


Current Thread