Last post Aug 08, 2011 08:54 PM by Decker Dong - MSFT
Aug 04, 2011 02:43 PM|adiel|LINK
I am trying to use the defaultss.xsl from
Steve Muench. I am gettting an error "XSLT Compile Error" on the load:
Stream s = File.OpenRead("defaultss.xsl");XmlReader xr = XmlReader.Create(s);XslCompiledTransform xct = new XslCompiledTransform();xct.Load(xr); <<-----ERROR HERE "XSLT Compile Error"
Does anyone know why am I getting this error?
Thanks Before Hand,Adiel
Aug 07, 2011 11:00 PM|Decker Dong - MSFT|LINK
I copied the xsl file into my root of my proj, and use the codes below:
XslCompiledTransform xst = new XslCompiledTransform();
Everything works well on me, no exception is thrown out...
Aug 08, 2011 07:47 AM|adiel|LINK
Decker Dong, thanks for your help. Two questions:
1. Did you use the exact code? (did you open the file with the Stream object)
2. Where did you get the file default.xsl? Maybe mines is corrupt.
Aug 08, 2011 08:54 PM|Decker Dong - MSFT|LINK
I just open your url link and copy all the contents in a text file and save it in the root of my asp.net application proj and directly use "path-oriented" reading to load, no error happens.