XSL help....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    XSL help....


    Hello Guys,

    I am trying to render an Xml dataset into HTML using XSLT.
    When I am loading the XSLT file into transform object to
    render it. Here is the code snippet:

    <!--
    XslTransform transCart = new XslTransform();
    transCart.Load( Server.MapPath( "1.xslt"));
    showCart.Docume nt = cartFromSession ;
    showCart.Transf orm = 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.

    Stack Trace:
    [PathTooLongExce ption: The path is too long after being
    fully qualified. Make sure path is less than 260
    characters.]
    System.IO.Path. nGetFullPathHel per(String path, Char[]
    invalidPathChar s, Char[] whitespaceChars , Char
    directorySepara tor, Char altDirectorySep arator, Char
    volumeSeparator , Boolean fullCheck, String& newPath) +0
    System.IO.Path. GetFullPathInte rnal(String path) +165
    System.IO.Path. GetFullPath(Str ing path) +19
    System.Xml.XmlR esolver.Resolve Uri(Uri baseUri, String
    relativeUri) +599
    System.Xml.XmlT extReader..ctor (String url, XmlNameTable
    nt) +91
    System.Xml.XmlD ocument.Load(St ring filename) +52
    vivek.checkout. Page_Load(Objec t sender, EventArgs e)
    +755
    System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
    System.Web.UI.C ontrol.LoadRecu rsive() +35
    System.Web.UI.P age.ProcessRequ estMain() +731


    Can anyone help me out with this?

    Thanks a lot!


  • Chance Hopkins

    #2
    Re: XSL help....

    do you try what I said to try, in my reply to your post from yesterday?


    <anonymous@disc ussions.microso ft.com> wrote in message news:06c901c39d 19$7748aa60$a50 1280a@phx.gbl.. .[color=blue]
    >
    > Hello Guys,
    >
    > I am trying to render an Xml dataset into HTML using XSLT.
    > When I am loading the XSLT file into transform object to
    > render it. Here is the code snippet:
    >
    > <!--
    > XslTransform transCart = new XslTransform();
    > transCart.Load( Server.MapPath( "1.xslt"));
    > showCart.Docume nt = cartFromSession ;
    > showCart.Transf orm = 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.
    >
    > Stack Trace:
    > [PathTooLongExce ption: The path is too long after being
    > fully qualified. Make sure path is less than 260
    > characters.]
    > System.IO.Path. nGetFullPathHel per(String path, Char[]
    > invalidPathChar s, Char[] whitespaceChars , Char
    > directorySepara tor, Char altDirectorySep arator, Char
    > volumeSeparator , Boolean fullCheck, String& newPath) +0
    > System.IO.Path. GetFullPathInte rnal(String path) +165
    > System.IO.Path. GetFullPath(Str ing path) +19
    > System.Xml.XmlR esolver.Resolve Uri(Uri baseUri, String
    > relativeUri) +599
    > System.Xml.XmlT extReader..ctor (String url, XmlNameTable
    > nt) +91
    > System.Xml.XmlD ocument.Load(St ring filename) +52
    > vivek.checkout. Page_Load(Objec t sender, EventArgs e)
    > +755
    > System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
    > System.Web.UI.C ontrol.LoadRecu rsive() +35
    > System.Web.UI.P age.ProcessRequ estMain() +731
    >
    >
    > Can anyone help me out with this?
    >
    > Thanks a lot!
    >
    >[/color]


    Comment

    • Guest's Avatar

      #3
      Re: XSL help....

      Yes, I did try printing out the mapped path using
      response.write but the path was 39 characters.

      Surprisingly, I am able to render the same Xml dataset
      using the same XSLT in one of my webforms earlier. Can
      anyone please help me out.

      Here is the code snippet


      <!--
      XslTransform transCart = new XslTransform();
      transCart.Load( Server.MapPath( "1.xslt"));
      showCart.Docume nt = cartFromSession ;
      showCart.Transf orm = 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.

      Stack Trace:
      [PathTooLongExce ption: The path is too long after being
      fully qualified. Make sure path is less than 260
      characters.]
      System.IO.Path. nGetFullPathHel per(String path, Char[]
      invalidPathChar s, Char[] whitespaceChars , Char
      directorySepara tor, Char altDirectorySep arator, Char
      volumeSeparator , Boolean fullCheck, String& newPath) +0
      System.IO.Path. GetFullPathInte rnal(String path) +165
      System.IO.Path. GetFullPath(Str ing path) +19
      System.Xml.XmlR esolver.Resolve Uri(Uri baseUri, String
      relativeUri) +599
      System.Xml.XmlT extReader..ctor (String url,
      XmlNameTable
      nt) +91
      System.Xml.XmlD ocument.Load(St ring filename) +52
      vivek.checkout. Page_Load(Objec t sender, EventArgs e)
      +755
      System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
      System.Web.UI.C ontrol.LoadRecu rsive() +35
      System.Web.UI.P age.ProcessRequ estMain() +731

      [color=blue]
      >-----Original Message-----
      >do you try what I said to try, in my reply to your post[/color]
      from yesterday?[color=blue]
      >
      >
      ><anonymous@dis cussions.micros oft.com> wrote in message[/color]
      news:06c901c39d 19$7748aa60$a50 1280a@phx.gbl.. .[color=blue][color=green]
      >>
      >> Hello Guys,
      >>
      >> I am trying to render an Xml dataset into HTML using[/color][/color]
      XSLT.[color=blue][color=green]
      >> When I am loading the XSLT file into transform object[/color][/color]
      to[color=blue][color=green]
      >> render it. Here is the code snippet:
      >>
      >> <!--
      >> XslTransform transCart = new XslTransform();
      >> transCart.Load( Server.MapPath( "1.xslt"));
      >> showCart.Docume nt = cartFromSession ;
      >> showCart.Transf orm = transCart;
      >> -->
      >>
      >> showCart is my xml control and cartFromSession is my
      >> XmlDocument.
      >>
      >> When I run the application, I get an error saying that[/color][/color]
      the[color=blue][color=green]
      >> The path is too long after being fully qualified. Make
      >> sure path is less than 260 characters.
      >>
      >> Stack Trace:
      >> [PathTooLongExce ption: The path is too long after being
      >> fully qualified. Make sure path is less than 260
      >> characters.]
      >> System.IO.Path. nGetFullPathHel per(String path, Char[/color][/color]
      [][color=blue][color=green]
      >> invalidPathChar s, Char[] whitespaceChars , Char
      >> directorySepara tor, Char altDirectorySep arator, Char
      >> volumeSeparator , Boolean fullCheck, String& newPath) +0
      >> System.IO.Path. GetFullPathInte rnal(String path) +165
      >> System.IO.Path. GetFullPath(Str ing path) +19
      >> System.Xml.XmlR esolver.Resolve Uri(Uri baseUri,[/color][/color]
      String[color=blue][color=green]
      >> relativeUri) +599
      >> System.Xml.XmlT extReader..ctor (String url,[/color][/color]
      XmlNameTable[color=blue][color=green]
      >> nt) +91
      >> System.Xml.XmlD ocument.Load(St ring filename) +52
      >> vivek.checkout. Page_Load(Objec t sender, EventArgs e)
      >> +755
      >> System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
      >> System.Web.UI.C ontrol.LoadRecu rsive() +35
      >> System.Web.UI.P age.ProcessRequ estMain() +731
      >>
      >>
      >> Can anyone help me out with this?
      >>
      >> Thanks a lot!
      >>
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      • Guest's Avatar

        #4
        Re: XSL help....

        Yes, I did try printing out the mapped path using
        response.write but the path was 39 characters.

        Surprisingly, I am able to render the same Xml dataset
        using the same XSLT in one of my webforms earlier. Can
        anyone please help me out.

        Here is the code snippet


        <!--
        XslTransform transCart = new XslTransform();
        transCart.Load( Server.MapPath( "1.xslt"));
        showCart.Docume nt = cartFromSession ;
        showCart.Transf orm = 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.

        Stack Trace:
        [PathTooLongExce ption: The path is too long after being
        fully qualified. Make sure path is less than 260
        characters.]
        System.IO.Path. nGetFullPathHel per(String path, Char[]
        invalidPathChar s, Char[] whitespaceChars , Char
        directorySepara tor, Char altDirectorySep arator, Char
        volumeSeparator , Boolean fullCheck, String& newPath) +0
        System.IO.Path. GetFullPathInte rnal(String path) +165
        System.IO.Path. GetFullPath(Str ing path) +19
        System.Xml.XmlR esolver.Resolve Uri(Uri baseUri, String
        relativeUri) +599
        System.Xml.XmlT extReader..ctor (String url,
        XmlNameTable
        nt) +91
        System.Xml.XmlD ocument.Load(St ring filename) +52
        vivek.checkout. Page_Load(Objec t sender, EventArgs e)
        +755
        System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
        System.Web.UI.C ontrol.LoadRecu rsive() +35
        System.Web.UI.P age.ProcessRequ estMain() +731

        [color=blue]
        >-----Original Message-----
        >do you try what I said to try, in my reply to your post[/color]
        from yesterday?[color=blue]
        >
        >
        ><anonymous@dis cussions.micros oft.com> wrote in message[/color]
        news:06c901c39d 19$7748aa60$a50 1280a@phx.gbl.. .[color=blue][color=green]
        >>
        >> Hello Guys,
        >>
        >> I am trying to render an Xml dataset into HTML using[/color][/color]
        XSLT.[color=blue][color=green]
        >> When I am loading the XSLT file into transform object[/color][/color]
        to[color=blue][color=green]
        >> render it. Here is the code snippet:
        >>
        >> <!--
        >> XslTransform transCart = new XslTransform();
        >> transCart.Load( Server.MapPath( "1.xslt"));
        >> showCart.Docume nt = cartFromSession ;
        >> showCart.Transf orm = transCart;
        >> -->
        >>
        >> showCart is my xml control and cartFromSession is my
        >> XmlDocument.
        >>
        >> When I run the application, I get an error saying that[/color][/color]
        the[color=blue][color=green]
        >> The path is too long after being fully qualified. Make
        >> sure path is less than 260 characters.
        >>
        >> Stack Trace:
        >> [PathTooLongExce ption: The path is too long after being
        >> fully qualified. Make sure path is less than 260
        >> characters.]
        >> System.IO.Path. nGetFullPathHel per(String path, Char[/color][/color]
        [][color=blue][color=green]
        >> invalidPathChar s, Char[] whitespaceChars , Char
        >> directorySepara tor, Char altDirectorySep arator, Char
        >> volumeSeparator , Boolean fullCheck, String& newPath) +0
        >> System.IO.Path. GetFullPathInte rnal(String path) +165
        >> System.IO.Path. GetFullPath(Str ing path) +19
        >> System.Xml.XmlR esolver.Resolve Uri(Uri baseUri,[/color][/color]
        String[color=blue][color=green]
        >> relativeUri) +599
        >> System.Xml.XmlT extReader..ctor (String url,[/color][/color]
        XmlNameTable[color=blue][color=green]
        >> nt) +91
        >> System.Xml.XmlD ocument.Load(St ring filename) +52
        >> vivek.checkout. Page_Load(Objec t sender, EventArgs e)
        >> +755
        >> System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
        >> System.Web.UI.C ontrol.LoadRecu rsive() +35
        >> System.Web.UI.P age.ProcessRequ estMain() +731
        >>
        >>
        >> Can anyone help me out with this?
        >>
        >> Thanks a lot!
        >>
        >>[/color]
        >
        >
        >.
        >[/color]

        Comment

        • David

          #5
          Re: XSL help....

          In article , <anonymous@disc ussions.microso ft.com> wrote:[color=blue]
          >
          > Hello Guys,
          >
          > I am trying to render an Xml dataset into HTML using XSLT.
          > When I am loading the XSLT file into transform object to
          > render it. Here is the code snippet:
          >
          ><!--
          > XslTransform transCart = new XslTransform();
          > transCart.Load( Server.MapPath( "1.xslt"));
          > showCart.Docume nt = cartFromSession ;
          > showCart.Transf orm = 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.[/color]

          I'm just guessing, but it sounds like you've got a namespace declaration
          running amok here. I don't think the code snippet above reveals
          anything relevant, it's the xslt (and perhaps xml) source that is
          probably causing the problem.


          --
          David
          dfoster at
          hotpop dot com

          Comment

          • David

            #6
            Re: XSL help....

            In article , <anonymous@disc ussions.microso ft.com> wrote:[color=blue]
            >
            > Hello Guys,
            >
            > I am trying to render an Xml dataset into HTML using XSLT.
            > When I am loading the XSLT file into transform object to
            > render it. Here is the code snippet:
            >
            ><!--
            > XslTransform transCart = new XslTransform();
            > transCart.Load( Server.MapPath( "1.xslt"));
            > showCart.Docume nt = cartFromSession ;
            > showCart.Transf orm = 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.[/color]

            I'm just guessing, but it sounds like you've got a namespace declaration
            running amok here. I don't think the code snippet above reveals
            anything relevant, it's the xslt (and perhaps xml) source that is
            probably causing the problem.


            --
            David
            dfoster at
            hotpop dot com

            Comment

            Working...