Google Search

Saturday, January 29, 2011

XSL MC1803 XML AND WEB SERVICES LAB Anna University lab manual download fifth semester

XSL MC1803 XML AND WEB SERVICES LAB Anna University lab manual download fifth semester

CREATE A XSL  FOR BOOK DETAILS XML DOCUMENT

<?xml version="1.0" ?>
<?xml:stylesheet type="text/xsl" href="book.xsl"?>
XML Stylesheet Language (book.xsl)
<?xsl version ="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h3>my book novels </h3>
<table border="1">
<tr bgcolor="#9acd32">
<th> name </th>
<th> price </th>
<th>publication</th>
<th>noofpages</th>
</tr>
<xsl:for-each select="book">
<xsl:for-each select="novels">
<xsl:for-each select="romance">
<tr>
            <td><xsl:value-of select="name"/></td>
            <td><xsl:value-of select="price"/></td>
            <td><xsl:value-of select="publication"/></td>
            <td><xsl:value-of select="noofpages"/></td>
</tr>

</xsl:for-each>
</xsl:for-each>
</xsl:for-each>

</table>

<h3>my book technical </h3>
<table border="1">
<tr bgcolor="#9acd32">
<th> name </th>
<th> price </th>
<th>publication</th>
<th>noofpages</th>
</tr>

<xsl:for-each select="book">
<xsl:for-each select="technical">
<xsl:for-each select="romance">
<tr>
            <td><xsl:value-of select="name"/></td>
            <td><xsl:value-of select="price"/></td>
           

<td><xsl:value-of select="publication"/></td>
        <td><xsl:value-of select="noofpages"/></td>
</tr>

</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</table>

<h3>my book for management </h3>
<table border="1">
<tr bgcolor="#9acd32">
<th> name </th>
<th> price </th>
<th>publication</th>
<th>noofpages</th>
</tr>

<xsl:for-each select="book">
<xsl:for-each select="management">
<xsl:for-each select="romance">
<tr>
            <td><xsl:value-of select="name"/></td>
            <td><xsl:value-of select="price"/></td>
            <td><xsl:value-of select="publication"/></td>
            <td><xsl:value-of select="noofpages"/></td>
</tr>

</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</table>

</body>
</html>
</xsl:template>
</xsl:stylesheet>



0 comments:

Post a Comment