Why is XML/XSL so slow when creating HTML code?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Why is XML/XSL so slow when creating HTML code?

  1. #1
    Greg Rothlander Guest

    Why is XML/XSL so slow when creating HTML code?


    I've been working on converting some of my applications from ASP to XML using
    XSL. I've removed the HTML and converted it to XSL as well as the VBScript
    within the HTML code.

    It seems that the transformation of the XML through XSL is very slow. Pages
    that blinked up are now taking 3, 4, and 5 seconds to load. This doesn't
    seem like a lot but the performance loss is very noticable.

    Is there any know issues with XSL/XML and it's speed to transform a typical
    page with maybe 10 to 15 textbox and a few combo boxes and maybe a small
    table with 5 or so columns and about 5 rows of data. This doesn't seem to
    be a large amount of data, but something is really slowing me down. It would
    seem that I should through out XML/XSL in favor of ASP and global strings.

    Any comments would be appreciated because I really think I missing something.
    Any info on the speed of XSL/XML would also be appreciated.


    Thanks for your help,
    Greg Rothlander

  2. #2
    Sean Guest

    Re: Why is XML/XSL so slow when creating HTML code?


    Post your xslt and also how/where you are transforming it. I use the same
    with no issues.

    Sean

    "Greg Rothlander" <grothlander@austin400.com> wrote:
    >
    >I've been working on converting some of my applications from ASP to XML

    using
    >XSL. I've removed the HTML and converted it to XSL as well as the VBScript
    >within the HTML code.
    >
    >It seems that the transformation of the XML through XSL is very slow. Pages
    >that blinked up are now taking 3, 4, and 5 seconds to load. This doesn't
    >seem like a lot but the performance loss is very noticable.
    >
    >Is there any know issues with XSL/XML and it's speed to transform a typical
    >page with maybe 10 to 15 textbox and a few combo boxes and maybe a small
    >table with 5 or so columns and about 5 rows of data. This doesn't seem

    to
    >be a large amount of data, but something is really slowing me down. It

    would
    >seem that I should through out XML/XSL in favor of ASP and global strings.
    >
    >Any comments would be appreciated because I really think I missing something.
    > Any info on the speed of XSL/XML would also be appreciated.
    >
    >
    >Thanks for your help,
    >Greg Rothlander



  3. #3
    Carl Gregory Guest

    Re: Why is XML/XSL so slow when creating HTML code?


    I haven't come accros any particular problems. If you post your code there
    may be a few things that can be done to speed things up (e.g try to avoid
    using // in XPath queries, try and use element centric XML as opposed to
    attribute based where possible)
    It is also possible to store a stylesheet in a 'Template' object, which effectively
    stores the stylesheet in a compiled state. I did have a link
    to a guide on how to do it, but I can't find it. I'll post it when I get

    back onto my old computer!

    >"Greg Rothlander" <grothlander@austin400.com> wrote:
    >>
    >>I've been working on converting some of my applications from ASP to XML

    >using
    >>XSL. I've removed the HTML and converted it to XSL as well as the VBScript
    >>within the HTML code.
    >>
    >>It seems that the transformation of the XML through XSL is very slow.

    Pages
    >>that blinked up are now taking 3, 4, and 5 seconds to load. This doesn't
    >>seem like a lot but the performance loss is very noticable.
    >>
    >>Is there any know issues with XSL/XML and it's speed to transform a typical
    >>page with maybe 10 to 15 textbox and a few combo boxes and maybe a small
    >>table with 5 or so columns and about 5 rows of data. This doesn't seem

    >to
    >>be a large amount of data, but something is really slowing me down. It

    >would
    >>seem that I should through out XML/XSL in favor of ASP and global strings.
    >>
    >>Any comments would be appreciated because I really think I missing something.
    >> Any info on the speed of XSL/XML would also be appreciated.
    >>
    >>
    >>Thanks for your help,
    >>Greg Rothlander

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center