A Dynamic XSL Transformation
page 4 of 4
by Michelle Beall
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 28235/ 70


This example demonstrated how to take an XML file returned from a web service and generate a HTML table with dynamic columns based on the query fields to the web service.

We created an ASPX with an XML control which we used to view the XML document and apply the XSLT to the XML document.  We modified the XML document to insert any missing expected attributes since the web service would only return an attribute if it had a value.

The XSLT built a HTML table and for each attribute that had a blank value we displayed a nobreak space.  The XSLT does not need to know the attribute names or the number of attributes.  This is governed in the ASPX page when we clean up the XML returned by the web service.

I hope this helps some people.

View Entire Article

User Comments

No comments posted yet.

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-06-19 1:09:03 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search