[ http://issues.apache.org/jira/browse/XALANC-574?page=comments#action_12332244 ]
David Bertoni commented on XALANC-574: -------------------------------------- Is this really a report for Xalan-C++, or did you mean it for Xalan-J? If it is for Xalan-C++, can you please provide more information about what you're doing? > Can't load xslt file using C#. > ------------------------------ > > Key: XALANC-574 > URL: http://issues.apache.org/jira/browse/XALANC-574 > Project: XalanC > Type: Bug > Environment: Windows 2K, .NET 1.1, C# > Reporter: [EMAIL PROTECTED] > Priority: Critical > > I'm trying to load an xsl file using C#, the J# redist and the xalan plugin. > Whenever the code gets to the 'tf.newTemplates(xsltSource);' line I get an > error 'The given path's format is not supported'. If I remove the loading of > the xsl file the code successfuly loads the xml document and produes an > output file. Attached is the code and the xsl file. > try > { > javax.xml.transform.TransformerFactory tf = > javax.xml.transform.TransformerFactory.newInstance(); > javax.xml.transform.Source xsltSource = new > javax.xml.transform.stream.StreamSource(@"C:\test.xsl"); > javax.xml.transform.Templates templates = > tf.newTemplates(xsltSource); > javax.xml.transform.Transformer transformer = > templates.newTransformer(); > javax.xml.transform.stream.StreamSource xmlSource = new > javax.xml.transform.stream.StreamSource(@"C:\merged.xml"); > javax.xml.transform.Result htmlResult = new > javax.xml.transform.stream.StreamResult(@"C:\out.txt"); > transformer.transform(xmlSource,htmlResult); > } > catch (Exception ex) > { > Console.Write(ex.StackTrace.ToString()); > } > <?xml version="1.0"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > </xsl:stylesheet> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]