Groups | Blog | Home
all groups > dotnet xml > july 2004 >

dotnet xml : xslt newbie question


Mike P
7/23/2004 4:10:38 AM
I'm a ASP.NET/C# programmer new to XSLT/XPath with a bit of experience
of XML. I've been reading through some stuff on XSLT and I'm struggling
to think of what situations I would want to use it in. Basically XSLT
is like CSS for XML files, right (i.e. setting how the XML is displayed
on screen)? The only use I can think of for this is if I have an XML
file and I want to display it's contents to the screen in a datagrid
style. Why would I use XSLT rather than reading the XML into a dataset
instead?

Can somebody please enlighten me and tell me what other uses XSLT can be
put to!


Cheers,

Mike


*** Sent via Developersdex http://www.developersdex.com ***
Emil Kvarnhammar
7/23/2004 1:53:31 PM
Hi Mike!

XSLT is not only about presenting XML data graphically.

XSLT can be used to transform XML data into almost any format.
Examples: to MS excel format, to HTML, or even to another XML format.

What XSLT is all about in short, is to define a template of a result
document defining
with xslt tags where to insert the dynamic values (loaded from a XML).

XSLT is very powerful. For instance, I have used it for generating C#
classes
out of XML schemas (defining data types in a standard way).

Also remember, that XSLT is a standard. It can be used in Java code, .NET
code etc.

There is no end to the possibilities. :)

Do you see what I mean?

/Emil Kvarnhammar


[quoted text, click to view]

Ice
7/26/2004 10:07:04 AM
you shouldn't be looking for a place to use a technology or subset of it.
its usage should present itself naturally.

ice
[quoted text, click to view]

AddThis Social Bookmark Button