Hi,

  In order for us to help you, you should provide the content of $doc, the
content of example.xsl (reduced to the minimal form reproducing the problem
you have).  As well as the expected output and the actual output you get.

  I see that you also use a Xalan-specific extension, calling back some
Java function from XPath.  Given the name of the Java class, I guess you
should use fn:encode-for-uri instead:

    http://w3.org/TR/xpath-functions/#func-encode-for-uri

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


On 24 November 2014 at 11:58, S.Gowtham wrote:

>
> Hi all,
>
>
>  I invoked below transformation query to transform the xml with xslt.
>
> *xdmp:xslt-invoke("example.xsl", $doc, (), ())*
>
> In example.xsl contains below contents.
>
>
> *<xsl:template match="CaseRef">*
> * <xsl:variable xmlns:encoder="xalan://java.net.URLEncoder"
> name="urlEncodedCit"*
> *         select="encoder:encode( substring( string(@href),2))"/>*
> *<xsl:value-of select="$urlEncodedCit"/>*
> *</xsl:template>*
>
> But the marklogic query console returned file without any tags. It seems
> to me that, the file is not transformed correctly.
>
> Can anyone help me to solve the issue.
>
> Thanks,
>
> Best Regards,
>
> $.Gowth@m
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to