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 92201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:08:59+00:00 2026-05-10T23:08:59+00:00

As a huge XSL fan, I am very happy to use xsl as the

  • 0

As a huge XSL fan, I am very happy to use xsl as the view in our proprietary MVC framework on ASP.NET. Objects in the model are serialized under the hood using .NET’s xml serializer, and we use quite atomic xsl templates to declare how each object or property should transform.

For example:

  <xsl:template match='/Article'>     <html>       <body>         <div class='article'>           <xsl:apply-templates />         </div>       </body>     </html>   </xsl:template>    <xsl:template match='Article/Title'>     <h1>       <xsl:apply-templates />     </h1>   </xsl:template>    <xsl:template match='@*|text()'>     <xsl:copy />   </xsl:template> 

This mechanism allows us to quickly override default matching templates, like having a template matching on the last item in a list, or the selected one, etc. Also, xsl extension objects in .NET allow us just the bit of extra grip that we need. Common shared templates can be split up and included.

However

Even though I can ignore the verbosity downside of xsl (because Visual Studio schema intellisense + snippets really is slick, praise to the VS-team), the downside of not having intellisense over strongtyped objects in the model is really something that’s bugging me.

I’ve seen ASP.NET MVC + user controls in action and really starting to love it, but I wonder;

Is there a way of getting some sort of intellisense over XML that we’re iterating over, or do you know of a language that offers the freedom and declarativeness of XSL but has the strongtype/intellisense benefits of say webforms/usercontrols/asp.net.mvc-view?

(I probably know the answer: ‘no’, and I’ll find myself using Phil Haack’s utterly cool mvc shizzle soon…)

  • 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. 2026-05-10T23:09:00+00:00Added an answer on May 10, 2026 at 11:09 pm

    You can used the serialized (xml) form of your objects and edit it with the XML Editor of VS (I use VS2008).

    Then associate an xsd schema to this xml document. Use the schema that xsd,exe generated itself and that it uses in the serialization/deserialization.

    You will see that you get intellisense for free!

    Moreover, if you edit the schema and add

        <xs:annotation>       <xs:documentation>         Helpful Explanation.       </xs:documentation>     </xs:annotation> 

    then the XML Editor will not only prompt you the possible elements or attributes names and values, but it will also pop-out the ‘Helpful Explanation’ for every one of them that has the annotation data entered into the xml schema.

    To learn how to associate an xml schema to an xml document either lookup the local VS2008 help or find it on MSDN online, or read it here.

    Hope this helped.

    Cheers,

    Dimitre Novatchev

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

Sidebar

Ask A Question

Stats

  • Questions 59k
  • Answers 59k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Is this a case where a single controller might show… May 11, 2026 at 9:03 am
  • added an answer System.Reflection.MethodBase.GetCurrentMethod() Found it myself after some screwing around with the… May 11, 2026 at 9:03 am
  • added an answer It is paranoia :) DB's don't grow in size unnecessarily,… May 11, 2026 at 9:03 am

Related Questions

As a huge XSL fan, I am very happy to use xsl as the
As a long time World of Warcraft player, and a passionate developer I have
As a novice developer who is getting into the rhythm of my first professional
As a self-taught computer programmer, I'm often at a loss to estimate the O()
As a programmer I need a place to store my stuff. I've been running
As a part of the signup process for my online application, I'm thinking of
As a long time Microsoft developer, I find MSDN to be an invaluable resource.
As a classic ASP developer about once a year since ASP.NET came out I
As a programmer I have no idea how one would go about programming menus
As a general rule, I prefer using value rather than pointer semantics in C++

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.