adspace


How to transform an XML into XHTML?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Are you ready to relocate? : xslt

917


Do you feel that you are a good xslt programmer? : xslt

868


Do you feel that you have chosen the right technology xslt? : xslt

902


What are the ways to add styles to html?

996