Re: [xslt] extension



On Tue, Feb 17, 2004 at 06:06:02PM -0000, spinmar@interfree.it wrote:
> 
> Hi all,
> 
> I have a stupid question but I can't understand how to use extensions.
> 
> I have noticed (with xsltproc --dumpextensions) that the function str:encode is included.
> 
> How can I use it in my c program? 
> 
> My xsl starts with:
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:str="http://exslt.org/strings"; extension-element-prefixes="str" version="1.0">
> 
> 
> but the program givers me this error:
> 
> xmlXPathCompOpEval: function encode-uri not found
> XPath error Unregistered function in str:encode-uri($str,true())
> 
> 
> I suppose that I have to call some function in my main.

  exsltRegisterAll(); probably,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]