473,503 Members | 4,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 vs. XSLT

Right,

I need some some views on the pros and cons of using XSLT versus ASP.NET 2.0
for the Presentation layer of an app. My company are looking at creating
multiple sites and multi lingual support going forward...

I have looked at Chris Lovetts post
http://msdn.microsoft.com/library/de...ml02192001.asp

Some of his views are still relevant.

My view on the ASP.NET side is:

Better productivity and ease of use from a developer perspective
Reuse and maintainability of controls
Excellent tooling support in VS.NET 2005
Use of master pages and themes/skins for style changes etc..
Speed to market of writing and using controls
Unit testing of UI components using NUnitASP (not UAT testing)

Views please...
Sep 18 '06 #1
9 1766
XSLT is a toy compared to the power of ASP.NET
If your needs are simple and you're sure they will stay that way then XSLT
may suffice. But if you're building industrial strength software then
ASP.NET is the way to go.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"daph4ntom" <da*******@discussions.microsoft.comwrote in message
news:14**********************************@microsof t.com...
Right,

I need some some views on the pros and cons of using XSLT versus ASP.NET
2.0
for the Presentation layer of an app. My company are looking at creating
multiple sites and multi lingual support going forward...

I have looked at Chris Lovetts post
http://msdn.microsoft.com/library/de...ml02192001.asp

Some of his views are still relevant.

My view on the ASP.NET side is:

Better productivity and ease of use from a developer perspective
Reuse and maintainability of controls
Excellent tooling support in VS.NET 2005
Use of master pages and themes/skins for style changes etc..
Speed to market of writing and using controls
Unit testing of UI components using NUnitASP (not UAT testing)

Views please...

Sep 18 '06 #2
>I need some some views on the pros and cons of using XSLT versus ASP.NET 2.0
>for the Presentation layer of an app.
Why "vs" ? You can combine the two - use ASP.NET for much of the
plumbing and the basic UI, and XSLT where appropriate to turn XML data
into presentable content.

Marc
Sep 19 '06 #3
Ya, that's a good point Marc.
I just wrote an ASP.NET project that involved a touch of XSLT. They're not
necessarily mutually exclusive, but you will have to choose one as your
primary development platform. I suggest ASP.NET, but go ahead and use some
XSLT with it once it a while if you want. Certainly XSLT is better at some
kinds of things than ASP.NET - just not most things.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Marc Scheuner" <no*****@for.mewrote in message
news:42********************************@4ax.com...
I need some some views on the pros and cons of using XSLT versus ASP.NET
2.0
for the Presentation layer of an app.

Why "vs" ? You can combine the two - use ASP.NET for much of the
plumbing and the basic UI, and XSLT where appropriate to turn XML data
into presentable content.

Marc

Sep 19 '06 #4
I have been having a think about this:

- Which is faster?
- With ASP.NET 2.0 you can do alot of performance tweaks such as fragment
caching etc. so whole page does not have to be posted back. Does XSLT offer
some kind of equivalent?
- U get stuff given to you for free e.g. validation, u get protection
against cross site scripting...
- If you were serving the xslt server side how does this scale up compared
to ASP.NET?
- How would you handle XSLT with a more interactive website not just one
serving up data, looking at MSDN and the article link in my 1st post MSDN
uses XSLT. How interactive is this and how often has it changed?

"Steve C. Orr [MVP, MCSD]" wrote:
Ya, that's a good point Marc.
I just wrote an ASP.NET project that involved a touch of XSLT. They're not
necessarily mutually exclusive, but you will have to choose one as your
primary development platform. I suggest ASP.NET, but go ahead and use some
XSLT with it once it a while if you want. Certainly XSLT is better at some
kinds of things than ASP.NET - just not most things.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Marc Scheuner" <no*****@for.mewrote in message
news:42********************************@4ax.com...
>I need some some views on the pros and cons of using XSLT versus ASP.NET
>2.0
for the Presentation layer of an app.
Why "vs" ? You can combine the two - use ASP.NET for much of the
plumbing and the basic UI, and XSLT where appropriate to turn XML data
into presentable content.

Marc


Sep 19 '06 #5
This is like comparing a hammer to a screwdriver. Which is the better tool?
I suppose it depends on whether you're trying to drive a nail or a screw.

--
HTH,

Kevin Spencer
Microsoft MVP
Digital Carpenter

A man, a plan, a canal,
a palindrome that has gone to s**t.

"daph4ntom" <da*******@discussions.microsoft.comwrote in message
news:14**********************************@microsof t.com...
Right,

I need some some views on the pros and cons of using XSLT versus ASP.NET
2.0
for the Presentation layer of an app. My company are looking at creating
multiple sites and multi lingual support going forward...

I have looked at Chris Lovetts post
http://msdn.microsoft.com/library/de...ml02192001.asp

Some of his views are still relevant.

My view on the ASP.NET side is:

Better productivity and ease of use from a developer perspective
Reuse and maintainability of controls
Excellent tooling support in VS.NET 2005
Use of master pages and themes/skins for style changes etc..
Speed to market of writing and using controls
Unit testing of UI components using NUnitASP (not UAT testing)

Views please...

Sep 19 '06 #6
<%@ Page Language="VB" Debug="True"%>
<%@ Import Namespace="System.Xml"%>
<%@ Import Namespace="System.Xml.Xsl"%>
<html><head></head><body><form runat="server">
<b>XSL Transformation Example&nbsp;</b><br/>
<asp:Xml id="ourXSLTransform" runat="server"
DocumentSource="Bank3.xml" TransformSource="XSLT1.xsl"/>
</form></body></html>


"daph4ntom" <da*******@discussions.microsoft.comwrote in message news:14**********************************@microsof t.com...
Right,

I need some some views on the pros and cons of using XSLT versus ASP.NET 2.0
for the Presentation layer of an app. My company are looking at creating
multiple sites and multi lingual support going forward...

I have looked at Chris Lovetts post
http://msdn.microsoft.com/library/de...ml02192001.asp

Some of his views are still relevant.

My view on the ASP.NET side is:

Better productivity and ease of use from a developer perspective
Reuse and maintainability of controls
Excellent tooling support in VS.NET 2005
Use of master pages and themes/skins for style changes etc..
Speed to market of writing and using controls
Unit testing of UI components using NUnitASP (not UAT testing)

Views please...

Sep 19 '06 #7
No, I don't think XSLT can do fragment caching.
It's really not very interactive. If you're going to be gathering much
input from users, ASP.NET is way better at that kind of thing.

One thing that XSLT is really good at (and really fast at) is transforming
an XML document into an attractive HTML layout.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"daph4ntom" <da*******@discussions.microsoft.comwrote in message
news:D3**********************************@microsof t.com...
>I have been having a think about this:

- Which is faster?
- With ASP.NET 2.0 you can do alot of performance tweaks such as fragment
caching etc. so whole page does not have to be posted back. Does XSLT
offer
some kind of equivalent?
- U get stuff given to you for free e.g. validation, u get protection
against cross site scripting...
- If you were serving the xslt server side how does this scale up compared
to ASP.NET?
- How would you handle XSLT with a more interactive website not just one
serving up data, looking at MSDN and the article link in my 1st post MSDN
uses XSLT. How interactive is this and how often has it changed?

"Steve C. Orr [MVP, MCSD]" wrote:
>Ya, that's a good point Marc.
I just wrote an ASP.NET project that involved a touch of XSLT. They're
not
necessarily mutually exclusive, but you will have to choose one as your
primary development platform. I suggest ASP.NET, but go ahead and use
some
XSLT with it once it a while if you want. Certainly XSLT is better at
some
kinds of things than ASP.NET - just not most things.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Marc Scheuner" <no*****@for.mewrote in message
news:42********************************@4ax.com.. .
>I need some some views on the pros and cons of using XSLT versus
ASP.NET
2.0
for the Presentation layer of an app.

Why "vs" ? You can combine the two - use ASP.NET for much of the
plumbing and the basic UI, and XSLT where appropriate to turn XML data
into presentable content.

Marc



Sep 19 '06 #8
I prefer loading the XML into a Dom Wrapper and dealing with it that
way.... XSL(T) isn't the most fun language to develop for; quite a pain
to deal with...

Sep 20 '06 #9
First let me start by saying I love XSLT. When I worked with Classic
ASP I did all my formating with XSLT. ASP.NET is suposed to be the
solution for separating code and tags, but with Server Controls you end
up mixing them anyway. Parsing a Server Control is hard, while parsing
XML with XSLT is easy. I wish Server Controls and ASP Pages where more
like JSP Documents, where everything is wellformed and valid XML, and
you have control structure tags (if then, for each), variable setting
tags and more.

Currently, the following is my paradigm:
- Request occurs.
1.- Deserialize Business/Helper objects using XML configuration files.
2.- The objects do the work.
3.- Serialize the objects and transform them to XHTML with XSLT.
- Response occurs.

Any thoughts anyone?
pd. I still haven't tried XSLT 2.0 (using Saxon), but it is suposed to
be much more powerful.

Oct 18 '06 #10

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

Similar topics

2
3883
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
2773
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
3577
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
2334
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
2181
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
2828
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
3071
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
2388
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
11549
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
22747
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...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
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
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5562
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,...
1
4992
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
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.