[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Function name that doesn't have an explicit namesp

Subject: Re: 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
Re:  Function name that doesn't have an explicit namesp
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.