News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Namespaces in Real Use

Started by ben2ong2, October 06, 2006, 02:46:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ben2ong2

When you start using XSL, you will soon see namespaces in real use. XSL style sheets are used to transform XML documents into other formats, like HTML.
If you take a close look at the XSL document below, you will see that most of the tags are HTML tags. The tags that are not HTML tags have the prefix xsl, identified by the namespace "You are not allowed to view links. Register or Login":
<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"xmlns:xsl="You are not allowed to view links. Register or Login"><xsl:template match="/"><html><body>  <h2>My CD Collection</h2>  <table border="1">    <tr>      <th align="left">Title</th>      <th align="left">Artist</th>    </tr>    <xsl:for-each select="catalog/cd">    <tr>      <td><xsl:value-of select="title"/></td>      <td><xsl:value-of select="artist"/></td>    </tr>    </xsl:for-each>  </table></body></html></xsl:template></xsl:stylesheet>
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login