|
| how to use extern function of C++ in xslt |
 |
Tue, 25 Mar 2008 06:28:43 -070 |
hi friends,
can ny1 tell me how to do coding extern function in
xslt
suppose this is our extern function
extern FUNC(void, ICU_APPL_CODE) Icu_Edge_Detect_1(void);
|
| Post Reply
|
| Re: how to use extern function of C++ in xslt |
 |
Wed, 26 Mar 2008 01:09:24 -070 |
On Mar 25, 6:28 pm, naveen.gar...@gmail.com wrote:
> hi friends,
> can ny1 tell me how to do coding extern 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="tokenize" xmlns:Tokenizer="/
java.util.StringTokenizer">
<xsl:param name="sentence"/>
<xsl:variable name="tok"
select="Tokenizer:new($sentence)"/>
<saxon:while test="Tokenizer:hasMoreTokens($tok)"
xsl:extension-element-prefixes="saxon"
xsl:exclude-result-prefixes="Tokenizer"
xmlns:saxon="http://icl.com/saxon">
<xsl:value-of select="Tokenizer:nextToken($tok)"/>
</saxon:while>
</xsl:template>
Regards,
|
| Post Reply
|
|
|
|
|
|
|
|
|
|