Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2006, 05:39 AM
Authorized User
 
Join Date: May 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default http: paths of document not found on mac

When I test the availability of a document with:
 <xsl:template match="/">
        <xsl:choose>
            <xsl:when test="doc-available('http://www.w3schools.com/xml/note.xml' )">
                found
            </xsl:when>
            <xsl:otherwise>
                not found
            </xsl:otherwise>
        </xsl:choose>
from:<xsl:value-of select="document('http://www.w3schools.com/xml/note.xml')//from"/>
    </xsl:template>
On my Mac (OSX10.4.7) the result is "not found from:" on my windows laptop the result is "found from:jani"
It appears that absolute paths with http:// are not found on my mac but they are found with my windows laptop. When I check documents with relative paths or resolved paths (with file://) its OK, my mac finds the documents.
When I use the doc() function I get the error message:
Description: Failed to load document http://www.w3schools.com/xml/note.xml

I used the same network, same software (Oxygen) and same processor Saxon8B. (firewall stopped)
Anyone have a suggestion what I can do so the mac will find absolute path referenced
 
Old August 9th, 2006, 03:42 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

This is all to do with setting the right configuration properties for networking at the Java level, for example proxy server settings. It's hard to help with this remotely, and impossible when you're using a platform that I'm unfamiliar with. Google on the theme of Java networking system properties for Mac.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
server root and php_include paths mac os x jben.net Beginning PHP 8 November 14th, 2006 07:08 AM
Using document() with relative paths boen_robot XSLT 4 June 4th, 2006 05:41 PM
Resource not found - HTTP -404 javz_1 Apache Tomcat 1 January 16th, 2006 05:35 AM
Site root and document relative paths. nicnacs Dreamweaver (all versions) 5 October 5th, 2004 05:35 PM
HTTP 404 Page not found hosefo81 Beginning PHP 4 October 26th, 2003 06:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.