How to transform an XML into XHTML?



How to transform an XML into XHTML?..

Answer / Rajnish Kumar Mahiwal

To transform an XML into XHTML, you can use an XSLT stylesheet that maps the XML elements and attributes to their corresponding XHTML equivalents. Here's a simple example:nn<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">n<xsl:template match="/">n <html>n <body>n <h1><xsl:value-of select="title"/></h1>n <!-- Other XHTML elements and attributes go here -->n </body>n</xsl:template>n</xsl:stylesheet>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

What are the limitations of dtd?

1 Answers  


What is SOAP and how does it related to XML?

2 Answers   IBM,


What is an xml file for video?

1 Answers  


Does youtube have an rss feed?

1 Answers  


What is a xpath query?

1 Answers  


Explain about xml signature?

1 Answers  


Which XML is set to be valid XML?

1 Answers  


What are the parts in which template gets defined?

1 Answers  


What is parsing and how do I do it in xml?

1 Answers  


What is DOM and SOAP?

1 Answers   Covansys,


Can you open xml in excel?

1 Answers  


What is the version information in xml?

1 Answers  


Categories