Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 590691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:33:23+00:00 2026-05-13T15:33:23+00:00

We are in the process of porting existing JS application to the Silverlight. You

  • 0

We are in the process of porting existing JS application to the Silverlight. You can imagine application as a some kind of document management application:
1.) Documents are stored as XML documents.
2.) Documents can be of different types. Document types can be added without source code modification (everything is in the DB or FS).
– Each document type has different form for editing documents.
– Each document type has different form for viewing documents.

Edit and view forms are generated from XML document (and XML schema) using a single XSLT and CSS file. Forms between document types can be very similar or very different. Some may contain bullets, auto-numbering (of some elements), borders, indenting, different font-styles, line breaks…, some may not.

Now, the question 🙂
I am not sure how to port this functionality into the SL. I see two basic options:
– to create one universal generator for editing forms, and one universal generator for view forms
– to create generator for editing forms, and generator for view forms for each document type (the system which we have now)

For the first option I think that I should “invent” some metadata file which will tell how to generate (style) forms. Because we have to support many different styles I think that this would be like inventing a new CSS.

For the second option I don’t know how to create this generators. As I already said, adding a new document type (and new generators) should be done without changing or recompiling the source code, and should be easy as much as it could be (document types are changing daily). We had XSLT in JS, but as far as I know there is no XSLT support in the SL.

And also, I am aware that the generator should probably generate XAML code, not HTML.

We have created a prototype in which we have different generator for each document type. Each generator is stored in different assembly which is then dynamically load into the SL application. But I am afraid that creating this for each document type will be a nightmare.

What do you suggest? Please let me know if you need more info. Thanks!

Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:33:23+00:00Added an answer on May 13, 2026 at 3:33 pm

    This is a tricky one. I’m going to be difficult now and not actually answer your question but instead suggest an alternate approach: Is it an option for you to handle the XSL processing on the server and then just load the generated XAML into Silverlight through a web service method? Or perhaps even keep the XSL processing in your current Javascript code and just call those js methods from Silverlight.

    As for the editing of the XML document, I think it will be even trickier. Generating the form should not be too complicated, assuming that you manage to solve the whole XML -> XSL -> XAML problem. But I cannot think of a good way of getting the values that the user enters into that generated form back to the XML document. Silverlight does support Linq to XML, but those queries are always compiled, which I think you want to avoid. I guess Silverlight in its current version just isn’t very well suited to this sort of thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of porting a Linux application to Mac. I have different
I am in the process of porting an existing application to run on Windows
I'm in the process of porting some Java processing code to ruby-processing , and
I'm in the process of porting some SQL Server 2005 databases to SQL Server
I'm in the process of porting a Windows application to OS X (we wrote
In the process of porting some of my generic class libraries from C++ to
I am in the process of porting an application from x86 to x64. I
I'm in the process of porting some code from Objective C to C++. I'm
I'm in the process of porting my application from an App Engine Datastore to
I'm in the process of porting an application from PyGTK to PyGObject. Mostly it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.