473,383 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

DOM/XSLT & func:script

hi,

I try hardly to use javascript functions in my XSL (exslt.org) using
DOM/XSL (libxslt). It works on sablotron but it is too slow and cost too
much cpu.

I am up to date on my software versions (under PHP):

domxml
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20615
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.1.12
libxslt compiled against libxml Version 2.6.15
DOM/EXSLT enabled
libexslt Version 0.8.3

Here an example :

XSL file :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" >
<xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:func="http://exslt.org/functions"
xmlns:gru="http://gru.fr/namespace"
extension-element-prefixes="func"
exclude-result-prefixes="gru">
<func:script implements-prefix="gru" language="javascript">
function foo() {
return "bar";
}
</func:script>
<xsl:template match="*">
<xsl:value-of select="gru:foo()"/>
</xsl:template>
</xsl:stylesheet>
XML file :
<?xml version="1.0" encoding="ISO-8859-1"?>
<FOO>
<TOTO>plop</TOTO>
</FOO>
Xsltproc.exe give me these errors :
xmlXPathCompOpEval: function foo not found
XPath error : Unregistered function
xmlXPathCompiledEval: evaluation failed
runtime error: file gru.xsl line 19 element value-of
xsltValueOf: text copy failed
no result for gru.xml


any idea ?

Thanks

JEDI_BC
Jul 20 '05 #1
0 1666

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Prodip Saha | last post by:
Dear ASP.NET Gurus, I have a TextBox control with AutoPostBack set to true to execute the server scripts. I also, added some client script for validation.What I want is--execute the client script...
3
by: Shaker | last post by:
Dear All, How can I access the client side scripts (javascript) for ASP.Net page. Through the IDE of Visual studio .Net AS We were did with Visual Interdive 6. There was ability to see server...
2
by: 4you2 | last post by:
Hello, I need a script that will calculate how many hours is passed from specific date & time till another date&time. For example: from 12.19.2006, 10:00 to 15.12.2006, 15:00 is passed 77...
2
by: M Bourgon | last post by:
I'm trying to automate an auto-export of a table on a daily basis, using BCP. I'm using native format for the BCP because the text in one of the fields can encompass pretty much any ASCII...
14
RMWChaos
by: RMWChaos | last post by:
Firebug is reporting "too much recursion" when I attempt to create a child element in a parent that doesn't exist yet. The script should automatically create the missing parent before going on to...
2
by: valvetty | last post by:
I got a youtube.com clone PHP &MySql script I wanna know how I can install it to the remote hosting webserver.
9
by: Betikci Boris | last post by:
I get bored last night and wrote a script that uses xor for encrypt- decrypt, however it woks fine under linux 2.6.25, text and documents are ok, but fails on compressed files *.jpg, *.pdf , etc ....
6
by: ahmedalobaidy | last post by:
I have a page (html&php)from this page post this action to <form method=post action="loadfile.php" ENCTYPE="multipart/form-data well the loadfile.php is a script for upload file to the mysql data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.