adspace


What is xslt example?

Answer Posted / Amita Raj

XSLT (Extensible Stylesheet Language Transformations) is used to transform XML documents into other formats like HTML, XML, or text. Here's a simple XSLT example:
```xml
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match='/'>
<html>
<body>
<h1>My XML Data</h1>
<ul>
<xsl:for-each select='book'>
<li><b><xsl:value-of select='title' /></b>: <xsl:value-of select='author' /></li>
</xsl:for-each>
</ul>
</body>
</html>
</xsl:template>
</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

What are the ways to add styles to html?

997


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

903


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

869


Are you ready to relocate? : xslt

918