[xslt] exslt problem with function



If you try the example on www.exslt.org for the
function, you might find that xsltproc is generating
an error and not completing the function call.  I
tried the same with saxon to verify my syntax and it
seems to work fine.  

See:

http://exslt.org/func/elements/function/index.html

for example...here is my dump from xsltproc:

----------------------------------------------
  ELEMENT fake
PBM: Node has no parent
    ELEMENT func:result
      namespace func href=http://exslt.org/functions
      namespace my
href=http://www.bsiweb.com/functions
      ATTRIBUTE select
        TEXT
          content=count(//*)
{http://www.bsiweb.com/functions}count-elements:
cannot write to result tree while executing a function
xmlXPathEval: evaluation failed
runtime error: file func.xsl line 18 element value-of
xsltValueOf: text copy failed
<?xml version="1.0"?>
<out xmlns:func="http://exslt.org/functions"
xmlns:my="http://www.bsiweb.com/functions"/>

----------------------------------------------

and here is the result when it is executed
successfully:

<?xml version="1.0" encoding="utf-8"?>
<out xmlns:func="http://exslt.org/functions"
xmlns:my="http://www.bsiweb.com/functions">17</out>

Dan



__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1




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