Hi. I'm having some difficulty testing the downloaded example files. When I try to open dbhedge.xml in IE6 under WinXP I get the following error message:
<Error>
Namespace 'http://example.com/my' does not contain any functions.
</Error>
<Note>
I had to add a line to dbhedge.xml so that it would associate the correct XSL file; i.e.,
<?xml-stylesheet type="text/xsl" href="fo-hedge.xsl"?>
</Note>
I'm not perfectly familiar with namespaces, but as far as I can tell the missing function -- my:closingParenPos -- is located in the file hedge2svg.xsl. I know enough about namespaces to not take the error message literally: i.e., it's a URI and not a link to a real resource. So, my question is: how do I get hedge2svg.xsl to recognize the function??
To process examples you must use XSLT processor that supports EXSLT extensions. Unfortunately XSLT processor bundled with IE doesn't support EXSLT and thus you are getting these odd error messages. You must use Saxon or xsltproc to try out examples.
AFAIK no. But there are other intiatives that integrate EXSLT into MSXML. For example http://sourceforge.net/projects/fxsl. Unfortunately such solutions make EXSLT available only to standalone applications that are using XSLT, not to XSLT stylesheets run inside IE.
You wrote in the article that you "decided to implement (my:closingParenPos) as an EXSLT function because a regularly named template would be too verbose". I am not perfectly XML-literate, but this would seem to imply that one can still accomplish the objective of your article without using EXSLT. As I am most interested in using XSLT and SVG to dynamically draw tree diagrams, can you tell us what changes to make in order to run the example straight-up in IE6?
The link to hedge2svg-msxml.zip is dead, can someone give me a new link or send me the file by email (bilel@linuxmail.org) please ? I need to draw flow diagram trees from dynamic xml data and I need this exemple
PHP didnt transform it either...php5 using xsltprocessor...just as I normally do.
Warning: xmlXPathCompOpEval: function node-set not found in c:\Inetpub\wwwroot\hedge2svg-msxml\convertxsl.php on line 19
Warning: XPath error Unregistered function in exsl:node-set($tree)/node in c:\Inetpub\wwwroot\hedge2svg-msxml\convertxsl.php on line 19
line 19: fwrite($file_handle, $proc->transformToXML($xml));