Xml and XSLT

G

Guest

Hi Guys,

I am using XSLT to render my XML dataset at the client
side to HTML code.

When I am trying to load the XslTransform with an Xslt
file, it gives me the following error.
Make sure path is less than 260 characters.

I have used the same file to render another Dataset, but
not sure why this is behaving in this way.....

Here is the path of the XSLT which is surprisingly not
more than 52 characters
http://aspweb.w2k.iis.xku.edu/uploa/dynamiccart.xslt
 
C

Chance Hopkins

hi,

Im not positive, but the error might be referring to the path (or xpath) inside your xml, not the url of the document.

Xpath is used to define the matching patterns for the transformations.


OR,

since you are doing a "map path", that is returning the physical path, which MAY be over 260 characters. Print it out with a
Response.Write and check it out.

hope that helps
 
K

Kirk Allen Evans [MVP]

Post the code, we'll point it out. Anything else right now is guessing.


--
Kirk Allen Evans
Microsoft MVP, ASP.NET
XmlInsider
www.xmlandasp.net
Read my web log at http://weblogs.asp.net/kaevans


Chance Hopkins said:
hi,

Im not positive, but the error might be referring to the path (or xpath)
inside your xml, not the url of the document.
Xpath is used to define the matching patterns for the transformations.


OR,

since you are doing a "map path", that is returning the physical path,
which MAY be over 260 characters. Print it out with a
 
G

Guest

Dear Kirk,

Here is the code snippet from my application.

<!--
XslTransform transCart = new XslTransform();
transCart.Load(Server.MapPath("1.xslt"));
showCart.Document = cartFromSession;
showCart.Transform = transCart;
-->

showCart is my xml control and cartFromSession is my
XmlDocument.

When I run the application, I get an error saying that
the "The path is too long after being fully qualified.
Make sure path is less than 260 characters"

The strange thing is I was able to render the same
dataset with same XSLT


Stack Trace:
[PathTooLongException: The path is too long after being
fully qualified. Make sure path is less than 260
characters.]
System.IO.Path.nGetFullPathHelper(String path, Char[]
invalidPathChars, Char[] whitespaceChars, Char
directorySeparator, Char altDirectorySeparator, Char
volumeSeparator, Boolean fullCheck, String& newPath) +0
System.IO.Path.GetFullPathInternal(String path) +165
System.IO.Path.GetFullPath(String path) +19
System.Xml.XmlResolver.ResolveUri(Uri baseUri, String
relativeUri) +599
System.Xml.XmlTextReader..ctor(String url,
XmlNameTable
nt) +91
System.Xml.XmlDocument.Load(String filename) +52
vivek.checkout.Page_Load(Object sender, EventArgs e)
+755
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
 

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