Transforming
XML using XSLT to an HTML page
XML files
hold the data that is to be displayed in the html file. An XSL file holds
the information on how to transform that xml data and display it. The
style information and the format in which the data has to be displayed
are available in the XSL file.
_______________________________________________
_______________________________________________
It
is possible to include this style sheet file in the xml file itself and
open the xml file to display the data in the style you want. For example
if you include the code,
<?xml-stylesheet
type="text/xsl" href="ur_xsl_file.xslt"?>
The result
of including the above code will transform the xml file according to the
style and formatting information that is found in the 'ur_xsl_file.xslt'.
ASP.Net and
other technologies provide you ways to do this in the code. In ASP.Net
the classes for this are available in the namespace System.Xml and System.Xml.Xsl.
You can use
an xml server control in your aspx page and set the document source and
the transform source for the xml control through code in the Page_Load
event of the aspx file.
Linked by Thom Holwerda on Thu 6th Oct 2005 11:05 UTC (New Mobile Computing) The Servlet-Based Content Creation Framework is an easy-used and easily-understood compact, content creation framework utilizing hamlets; a servlet extension that reads XHTML and uses the simple API for XML. Read this article on introducing Hamlets and learn how they can be used to separate Java and HTML in the same source file. Job vacancy: Senior Development Officer (PublicTechnology.net) (Ref: SDO) The successful candidate will join our Business & Information Systems Development team and work in an open plan office with the rest of the team. The post-holder will assist the development team in all aspects of its work. Research and Markets: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (Centre Daily Times) Research and Markets (http://www.researchandmarkets.com/research/f3ee1a/xslt_2_0_and_xpath) has announced the addition of the "XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition" report to their offering. Research and Markets: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (Business Wire via Yahoo! Finance) DUBLIN, Ireland----Research and Markets has announced the addition of the "XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition" report to their offering.
FREE
Subscription
Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.
Note
: We never rent, trade, or sell my email lists to
anyone.
We assure that your privacy is respected
and protected.
_______________________________________
Recommended
XML Books
|
|