Subject: Re: [xsl] non-existing file in document() function From: Gary Lawrence Murphy <garym@xxxxxxxxxx> Date: 14 Apr 2002 21:15:04 -0400 |
>>>>> "K" == Kunal H Parikh <kunal@xxxxxxxxxx> writes: K> Hi ! I am trying to use the document function in my XSLT You just missed this discussion by a few days ;) ... the behaviour of document() on missing docs is undefined, so it varies from vendor to vendor. If Java is an option, one reliable solution is to use the extension mechanism to define a namespace for the java.io.File class: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fs="java.io.File" > and then use <xsl:when test="fs:canRead(fs:new($filename))"> -- Gary Lawrence Murphy <garym@xxxxxxxxxxx> TeleDynamics Communications Inc Business Innovations Through Open Source Systems: http://www.teledyn.com "Computers are useless. They can only give you answers."(Pablo Picasso) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] non-existing file in document, Kunal H. Parikh | Thread | RE: [xsl] non-existing file in docu, Michael Kay |
Re: [xsl] mystery #3: rendering emb, Gary Lawrence Murphy | Date | Re: [xsl] XSLT Processing Model Que, Matt Gushee |
Month |