473,385 Members | 1,838 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,385 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 4172
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...

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.