473,320 Members | 1,823 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,320 software developers and data experts.

XSLT for WinForms?

Hello All,

I was just curious to see if there was some analog to XSLT in WinForms.
I'd like to be able to have my data be defined in XML, then process it
with some kind of style sheet/transformation to dyamically "render"
forms and their constituent controls on-the-fly.

Would XAML fit this description, or am I barking up the wrong tree?

Thanks In Advance!

-Evan
Nov 12 '05 #1
7 4162
Evan,

I don't think there is a relation between WinForms and XML. XSLT is an
XML based technology used for transforming infosets into different
representations. WinForms is a presentation layer for .NET. XAML is a
language that is used for Avalon development, which is another presentation
layer based on managed code.

There is little, if any, overlap here.

You can use XSLT to produce anything you want. Perhaps you are
confusing the fact that XSLT generators can output HTML?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Evan Stone" <evan_stone_n0spaam@intuit_n0spaam.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
Hello All,

I was just curious to see if there was some analog to XSLT in WinForms.
I'd like to be able to have my data be defined in XML, then process it
with some kind of style sheet/transformation to dyamically "render" forms
and their constituent controls on-the-fly.

Would XAML fit this description, or am I barking up the wrong tree?

Thanks In Advance!

-Evan

Nov 12 '05 #2

"Evan Stone" <evan_stone_n0spaam@intuit_n0spaam.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
Hello All,

I was just curious to see if there was some analog to XSLT in WinForms.
I'd like to be able to have my data be defined in XML, then process it
with some kind of style sheet/transformation to dyamically "render" forms
and their constituent controls on-the-fly.

Would XAML fit this description, or am I barking up the wrong tree?

Thanks In Advance!

-Evan


Nicholas (above) is correct. XSLT is a "transform" document for XML data.
You can use it for whatever you like I suppose.

There should be nothing keeping you from either using the DynamicAttributes
property of most objects or deciding on an XML (or other) format that best
describes your Form layout. Then you can create documentation on how to
edit the FormConfig.xml and you have a configurable GUI.

Tom P.
Nov 12 '05 #3
Thanks for the info, but I think you need to read my original post again.

I wasn't asking for a way to transform XML into WinForm data using XSLT
specifically, but rather was asking if there was an existing framework
which behaved in a simliar fashion: i.e. a form _description_ in XML
which then gets "compiled" at runtime into a Form with controls.

From what I've read here:

http://www.ondotnet.com/pub/a/dotnet.../longhorn.html

It sounds like XAML comes pretty darn close to that goal, especially if
one opts to compile at runtime. I haven't done any experiments with XAML
yet, so that's pretty much conjecture on my part, but it seems reasonable.

I'm actually a little surprised that there isn't already a framework
that exists to do this (aside from XAML/Avalon), since this is a fairly
common problem to address among metadata-driven UIs.

Perhaps this is an opportunity to create such a system... :)

Thanks!

-Evan
Nov 12 '05 #4
I believe you are talking about Avalon. Availability...couple years, if not
longer.

Actually, I believe I that have heard of a company offering a package to do
what you are talking about. I don't recall their name. They are basically
(as I understood it) promoting their package as a way of playing around with
Avalon without having to wait for Avalon. You might try doing a Google
search. Maybe a search term something like "Windows XAML". You might also
try checking Xtras.net as they carry a pretty good selection of 3rd party
software.

If you keep your requirements pretty simple, it may not be too hard to
implement your basic implementation. Something like this for creating the
controls:

for each element in the document
determine the control's type
create the control
set the control's size and location
next element

And then to get the data:

for each control
append the Control.Text to the data
next
return the data

Richard Rosenheim

"Evan Stone" <evan_stone_n0spaam@intuit_n0spaam.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
Hello All,

I was just curious to see if there was some analog to XSLT in WinForms.
I'd like to be able to have my data be defined in XML, then process it
with some kind of style sheet/transformation to dyamically "render"
forms and their constituent controls on-the-fly.

Would XAML fit this description, or am I barking up the wrong tree?

Thanks In Advance!

-Evan

Nov 12 '05 #5
Richard:
Actually, I believe I that have heard of a company offering a package to do
what you are talking about. I don't recall their name. They are basically
(as I understood it) promoting their package as a way of playing around with
Avalon without having to wait for Avalon.


You're referring to Xamlon here, right? I looked at their offering a
little while ago and it didn't exactly fill my need at the time, but
since the topic of XAML is rearing its ugly head again perhaps I'll take
another look, since the context under which I was examining it in the
past was a bit different...

I'll see what Xamlon can do for us, and in the meantime if anyone else
has any more suggestions I'd be open to hearing them. :)

Thanks!

-Evan
Nov 12 '05 #6
> From what I've read here:
http://www.ondotnet.com/pub/a/dotnet.../longhorn.html

It sounds like XAML comes pretty darn close to that goal, especially if
one opts to compile at runtime. I haven't done any experiments with XAML
yet, so that's pretty much conjecture on my part, but it seems reasonable.

I'm actually a little surprised that there isn't already a framework
that exists to do this (aside from XAML/Avalon), since this is a fairly
common problem to address among metadata-driven UIs.


You could have a look at one of the at least two fairly seroius
"Avalon-lookalikes" for pre-Avalon developers:

MyXAML (free) http://www.myxaml.com
Xamlon (commercial) http://www.xamlon.com

Enjoy!
Marc

================================================== ==============
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
Nov 12 '05 #7
Evan,

I like the way you think. We are similar thinkers. I am currently working on
an XSD defined data framework, and ultimately I will generate GUI's as well
as database schema's and data access layers from this XSD.

Maybe you and I can collaborate and swap ideas a little more.

I did a test case a year back which actually let you edit a running form,
like you could pickup and resize controls. I have a few weird things like
that. Another lets you scrape out the data of a running form and repopulate
it for setting up tests on UI's.

Chris.
Nov 12 '05 #8

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...
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...
5
by: Fred | last post by:
Not much expertise on XSLT and trying to understand it's uses when creating apps in VS.NET? If I wanted flexibility on the UI (View aspect of M.V.C.): - How does it compare with creating...
7
by: Evan Stone | last post by:
Hello All, I was just curious to see if there was some analog to XSLT in WinForms. I'd like to be able to have my data be defined in XML, then process it with some kind of style...
20
by: Martin Rosén-Lidholm | last post by:
Although an impossible question to answer, I fell urged to raise it anyhow. Given a fairly complex ERP application scenario, what's your estimation for the X-ratio dev. time for...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.