473,434 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Xml and XSLT

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.
The path is too long after being fully qualified.

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

----------------------------------------------------------
XslTransform transform = new XslTransform();
transform.Load(Server.MapPath("dynamiccart.xslt")) ;

----------------------------------------------------------

Thanks for your help


Nov 17 '05 #1
4 1457
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

<an*******@discussions.microsoft.com> wrote in message news:01****************************@phx.gbl...
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.
> The path is too long after being fully qualified.

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

----------------------------------------------------------
XslTransform transform = new XslTransform();
transform.Load(Server.MapPath("dynamiccart.xslt")) ;

----------------------------------------------------------

Thanks for your help

Nov 17 '05 #2
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" <ch**********************************@hotmail.co m> wrote in
message news:uR*************@TK2MSFTNGP10.phx.gbl...
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

<an*******@discussions.microsoft.com> wrote in message

news:01****************************@phx.gbl...
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.
>>> The path is too long after being fully qualified.

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

----------------------------------------------------------
XslTransform transform = new XslTransform();
transform.Load(Server.MapPath("dynamiccart.xslt")) ;

----------------------------------------------------------

Thanks for your help


Nov 17 '05 #3
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


-----Original Message-----
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" <ch**********************************@hotmail.co m> wrote
inmessage news:uR*************@TK2MSFTNGP10.phx.gbl...
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

<an*******@discussions.microsoft.com> wrote in message

news:01****************************@phx.gbl... > 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.
>
> >>>> The path is too long after being fully qualified. > 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
>
> ----------------------------------------------------- ----- > XslTransform transform = new XslTransform();
> transform.Load(Server.MapPath("dynamiccart.xslt")) ;
>
> ----------------------------------------------------- ----- >
> Thanks for your help
>
>
>
>


.

Nov 17 '05 #4
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


-----Original Message-----
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" <ch**********************************@hotmail.co m> wrote
inmessage news:uR*************@TK2MSFTNGP10.phx.gbl...
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

<an*******@discussions.microsoft.com> wrote in message

news:01****************************@phx.gbl... > 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.
>
> >>>> The path is too long after being fully qualified. > 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
>
> ----------------------------------------------------- ----- > XslTransform transform = new XslTransform();
> transform.Load(Server.MapPath("dynamiccart.xslt")) ;
>
> ----------------------------------------------------- ----- >
> Thanks for your help
>
>
>
>


.

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ted | last post by:
Was wondering if XSLT alone is appropriate for the following situation. From XML, I'm creating a small website (around 50 pages) with pages that link to each other through a nav menu and a...
2
by: Tom Corcoran | last post by:
I am working to ease updating of a html page by transforming 2 xml files. I was going to use xslt for this and had bought 2 unopened books, wrox xslt and o'reilly's xslt cookbook. But am now...
1
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by...
0
by: Christopher M. Lauer | last post by:
I have done my best to answer this question but can not find the proper set of commands. I would like to transform an xml file (in code behind) and display its output in a specific html tag,...
3
by: Teksure | last post by:
Hi group, searching in the Internet I found two products for XML which incorporate a very robust debugger for XSL/XSLT, I would like you to see these products and then, give me your opinion about...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
3
by: Ian Roddis | last post by:
Hello, I want to embed SQL type queries within an XML data record. The XML looks something like this: <DISPLAYPAGE> <FIELD NAME="SERVER" TYPE="DROPDOWN"> <OPTION>1<OPTION> <OPTION>2<OPTION>...
1
by: Sergey Dubinets | last post by:
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT...
12
by: Chris | last post by:
Hi, Just wondering if anyone out there knows if it is possible to convert a CSV to xml using XSLT? I've seen a lot of examples of xml to CSV, but is it possible to go back the other way? I...
2
jkmyoung
by: jkmyoung | last post by:
Here's a short list of useful xslt general tricks that aren't taught at w3schools. Attribute Value Template Official W3C explanation and example This is when you want to put dynamic values...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.