XslCompiledTransform

  • Thread starter Thread starter Mark
  • Start date Start date
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();
 
Mark,

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