Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Does VS2005 support ??

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 6/2/2006 3:58:00 PM



stoj wrote:

> Under VS2005, the following code snipet generates an error indicating that 
> <xsl:function> is an invalid tag.
> 
> Can anyone confirm that VS2005 does not support xsl:function?  This would 
> make sense, since i can'f find any reference on the latest latest MSDN.
> 
> Is there an alternative to <xsl:function> that allows a return value?  
> Presumably not <xsl:call-template> which doesn't support a return value.


> <xsl:stylesheet version="2.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>   <xsl:function name="ol:func">
>     <xsl:param name="arg1"/>
>     <h1>This is an integer</h1>
>   </xsl:function>
> </xsl:stylesheet>


.NET 1.x XslTransform as well as .NET 2.0 XslCompiledTransform as well 
as MSXML 3, 4, 5, 6 all support XSLT 1.0 and not XSLT 2.0.

If you want to write an extension function you can do so with 
msxsl:function and script (respectively C# or JScript.NET or VB.NET), see
<http://msdn2.microsoft.com/en-us/library/wxaw5z5e.aspx>


-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent