Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: how to use extern function of C++ in xslt

From: Balaji <msbalaji@-----.--->
To: 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


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