Search

June 2005
M T W T F S S
« May   Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

How to access XSLT/XPATH 2.0 functions

June 21st, 2005 by

From: “Al Wilkerson”


Newsgroups: microsoft.public.xsl


Subject: How to access XSLT/XPATH  2.0 functions ?


Date: Sun, 19 Jun 2005 02:08:15 -0500


 


Does anyone know how to replace a string using XSL ? I think there’s a replace function in XSLT 2.0.


 


But how to I get access to the function?


 


Meaning how do I declare the namespace to use that function ?


 


Thanks,


 



Al


 


*************************************


 


From: “Joe Fawcett”


Subject: Re: How to access XSLT/XPATH  2.0 functions ?


Date: Sun, 19 Jun 2005 09:24:40 +0100


Newsgroups: microsoft.public.xsl


 


Well to use version 2.0 you need to use a processor that supports it, at the moment the main one is Saxon (version 8+ I believe) which is written in Java but which also has a port to .net.


 


Secondly you need to declare version=”2.0″ on the stylesheet element.


 


If you are not able to do that then you can write your own recursive template or use one from the fxslt library at http://fxsl.sourceforge.net/


 



 


Joe (MVP – XML)


 


*************************************


 


Date: Sun, 19 Jun 2005 11:33:57 +0200


From: “Oleg Tkachenko [MVP]”


Subject: Re: How to access XSLT/XPATH  2.0 functions ?


Newsgroups: microsoft.public.xsl


 


Get EXSLT implementation instead. If you are under .NET, get EXSLT.NET at


http://www.gotdotnet.com/workspaces/workspace.aspx?id=201eb290-5bf0-4452-9bf7-d21d39268f36 .


 


And here is an article on how to use it – http://msdn.microsoft.com/xml/default.aspx?pull=/library/en-us/dnxml/html/practexslt.asp#practexslt_topic10


 



Oleg Tkachenko [XML MVP, MCAD]


http://blog.tkachenko.com


 

Posted in XML-XSL Tips | No Comments »



Comments are closed.