Hi,
Can any one suggest me what all things I have to consider while transforming the content from the XML to XHTML and if also possible please provide me the example or Two.
Thanks in Advance.
Hi,
Can any one suggest me what all things I have to consider while transforming the content from the XML to XHTML and if also possible please provide me the example or Two.
Thanks in Advance.
Extensible Stylesheet Language Transformation (XSLT), a powerful language for working with data in Extensible Markup Language (XML) documents.Extensible Stylesheet Language Transformation (XSLT) is a powerful language for manipulating the data in Extensible Markup Language (XML) documents. To manipulate the data - in other words, to transform the XML document - you use an XSLT stylesheet, which contains the rules you've set up for transforming an XML document.
Below I show you a simple XHTML input document and an XSLT stylesheet to transform it to a new XHTML document. In this example we want to keep everything in the input document but we also want to add a CSS stylesheet to the head section and a navigation menu to the top of the body section.
Code:<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> [2] <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Test document</title> </head> <body> <h1>Test document</h1> <p>This paragraph indicates the rest of the document.</p> </body> </html>
That's awesome, now I wish I didn't take the day off today. So you are saying importNode will make it so when I append the xml node, which is xhtml, it will treat it as html and display properly in the page? If so, that's gonna make things way easier.
Bookmarks