Subject: Re: [xsl] Namespace 'http://www.w3.org/2005/xpath-functions' does not contain any functions (was Re: [xsl] XSL cant check if "File exists"?) From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 29 Aug 2006 22:14:40 +0100 |
When using xslt2 there is no need to declare xmlns:fn="http://www.w3.org/2006/xpath-functions" (it should anyway be 2005 not 2006) it's best to not declare fn: and use doc-available() rather than fn:doc-available() (as earlier drafts of xslt2 used different namespaces, but all drafts define the default function namespaces to be the correct namespace for taht draft, so if your implementation implemnts an old draft of xslt2 then it will still work) IE (and other browsers such as mozilla and opera) do not support XSLT2 (and are unlikely to support them for some years one would assume) To check if a file exists in xslt1 you can use test="document('foo.xml')" which will be false if the processor returns an empty node set for missing files (they are also allowed to raisean error) or you can escape to an extension language (in IE but not in mozilla) msxml for example allows you to define functions in javascript, so assuming that you are in a situation that browser security allows access to the filesystem at all you can text in javascript (or any other ms scripting language) David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Namespace 'http://www.w3.org/, Laky Tang | Thread | RE: [xsl] Namespace 'http://www.w3., Michael Kay |
[xsl] Namespace 'http://www.w3.org/, Laky Tang | Date | [xsl] XPath location problem, Per Åberg |
Month |