Re: [xml] Problem using exslt with libxslt



Wrong mailing list, but you may want to get the exslt namespace correct: 
"http://exslt.org/strings";

--- Pedro Rocha <pedro_jrocha hotmail com> wrote:

Hello,

I'm trying to use exslt with win32 libxslt (1.1.10) and I'm having the 
following problem:

This is the xsl file:

      <xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:str="http://exslt.org/str"; extension-element-prefixes="str">

               <xsl:template match="/">
                   <xsl:value-of select="str:padding(1,'aaa')"/>
               </xsl:template>

I'm using the libxslt function xsltApplyStylesheet.

And this is the error I'm getting:

xmlXPathCompOpEval: function padding not found
XPath error : Unregistered function
xmlXPathCompiledEval: 1 object left on the stack
runtime error: file file:///c%3A/temp/xml/prueba3.xslt line 115 element 
value-of
xsltValueOf: text copy failed

Any clues?

Thanks,

Pedro

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml





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