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

Conclusion

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-04-19 10:38:30 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search