I originally posted this to the Xalan Mailing List.

Dave B. suggested that I post it here.  Thanks for your help
Dave and Joe.

Essentially I'm having a problem compiling a style sheet.  The following
code
is a snippet from the XalanTransformer example code.

//  const char* const       theXSLFileName =
"ftp://w1000-10.workgroup.com/pctrxml/reports/XML.xsl";;
    const char* const       theXSLFileName =
"http://sundev4.workgroup.com:82/pctrxml/reports/XML.xsl";;
//  const char* const       theXSLFileName =
"file:///vol/users/kroy/testXalan/XML.xsl";

    XalanTransformer xalan;

    const XalanCompiledStylesheet*  css = 0;

    if (xalan.compileStylesheet(theXSLFileName, css) != 0)
    {
        cout << xalan.getLastError() << "\n";
        return 0;
    }

If I use the theXSLFileName with the http or ftp I got the following error.

Fatal Error at (file , line 0, column 0): An exception occurred! 
Type:MalformedURLException, 
Message:The URL used an unsupported protocol

But if I use file:///, it works.

Dave B. ran a test which indicates the http is supported on Solaris.  

Does anyone know what I'm doing wrong?  Do I need to include or link
anything when I'm building
the application?  Is there a place where I can verify which URI schemes are
supported on which 
platforms?

Thanks,

Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to