XslCompiledTransform

M

Mark

I'm getting the error "The URI scheme is too long." in the code below. What
is URI in this context? The XSL or the XML being transformed?

Thanks!
-Mark

StringBuilder sb = new StringBuilder();

//Create the XslCompiledTransform and Load it with the xsltDocument
XslCompiledTransform xslCompiledTransform = new XslCompiledTransform();

xslCompiledTransform.Load(xslFileNameWithPath);

//Create StringWriter for transformation output
StringWriter stringWriter = new StringWriter(sb);

//Transforming. The currentTransform already has knowledge of the XSL to
apply at this point.
xslCompiledTransform.Transform(xmlToTransform, null, stringWriter);
stringWriter.Close();

return sb.ToString();
 
N

Nicholas Paldino [.NET/C# MVP]

Mark,

Can you show the XML that is being transformed, and the XSL? The
problem is in one of those files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top