
|
Transform
XML using XSLT to HTML
Transform XML to HTML using XSLT can be done in many ways. The simplest way is to just include the XSL file in the XML file itself using a code similar to,
_______________________________________________ <?xml-stylesheet type="text/xsl" href="ur_xsl_file.xsl"?> If the above code is included in the XML file then the XML file is transformed, according to the instructions given in the XSL file, when it is opened in the browser. Other ways of transformation are done by using the programming language of your choice. PHP has the DomDocument option to create the document objects for loading the XML and the XSL file and then use the XSLT processor instance transform method to transform the XML document to html format. In ASP.Net namespaces like, System.Xml, System.Xml.Xsl, and System.Xml.Xpath are available for this purpose. You can create an XslTransform object and use the Load method and the Transform method to transform the XML document using the XSL.
Software Review - StyleVision 2008 from Altova (Blogcritics.org) Linked by Christian Paratschek on Wed 16th Nov 2005 19:02 UTC (OS News) Linked by Eugenia Loli-Queru on Thu 22nd Sep 2005 22:35 UTC (New Mobile Computing)
|
Dallas Web Design- local Dallas web design firm offers site design and backend system development
| |||
|
| ||||