Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - how to use extern function of C++ in xslt [Thread Next] Re: how to use extern function of C++ in xsltTo: NULL Date: 3/26/2008 1:09:00 AM On Mar 25, 6:28=A0pm, naveen.gar...@gmail.com wrote: > hi friends, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0can ny1 tell me =A0how to do coding ext= ern function in > xslt > > suppose this is our extern function > > extern FUNC(void, ICU_APPL_CODE) Icu_Edge_Detect_1(void); > > how can we convert it in to xslt Hi, 1. try with c++ support processor. 2. use extension-element-prefixes attribute to extern the function. 3. below is the sample coding (copied from saxon) <xsl:template name=3D"tokenize" xmlns:Tokenizer=3D"/ java.util.StringTokenizer"> <xsl:param name=3D"sentence"/> <xsl:variable name=3D"tok" select=3D"Tokenizer:new($sentence)"/> <saxon:while test=3D"Tokenizer:hasMoreTokens($tok)" xsl:extension-element-prefixes=3D"saxon" xsl:exclude-result-prefixes=3D"Tokenizer" xmlns:saxon=3D"http://icl.com/saxon"> <xsl:value-of select=3D"Tokenizer:nextToken($tok)"/> </saxon:while> </xsl:template> Regards, Balaji. M | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
