Created
December 7, 2014 17:04
-
-
Save anonymous/3432742335a8fd3c600f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:include href="top.xsl"/> | |
<!-- | |
Document : Review.xsl | |
Created on : 13 November 2014, 16:14 | |
Author : Adam | |
Description: | |
Purpose of transformation follows. | |
--> | |
<!-- TODO customize transformation rules | |
syntax recommendation http://www.w3.org/TR/xslt | |
--> | |
<xsl:template match=""> | |
<div class="jumbotron"> | |
<div class="container"> | |
<h1> | |
<xsl:apply-templates select="//review[@id='1']//name"/> | |
</h1> | |
<p>About: <xsl:apply-templates select="//review[@id='1']//information"/></p> | |
<p class = "first"></p> | |
<p>Price: <xsl:apply-templates select="//review[@id='1']//price"/></p> | |
<p>Opinion: <xsl:apply-templates select="//review[@id='1']//opinion"/></p> | |
<p>Rating: <xsl:apply-templates select="//review[@id='1']//rating"/></p> | |
<p> | |
<a class="learn-more" role="button" > | |
Learn more about the app. | |
</a> | |
</p> | |
</div> | |
</div> | |
<div class="jumbotron"> | |
<div class="container"> | |
<h1> | |
<xsl:apply-templates select="//review[@id='2']//name"/> | |
</h1> | |
<p>About: <xsl:apply-templates select="//review[@id='2']//information"/></p> | |
<p class = "second"></p> | |
<p>Price: <xsl:apply-templates select="//review[@id='2']//price"/></p> | |
<p>Opinion: <xsl:apply-templates select="//review[@id='2']//opinion"/></p> | |
<p>Rating: <xsl:apply-templates select="//review[@id='2']//rating"/></p> | |
<p> | |
<a class="learn-more2" role="button"> | |
Learn more about the app.</a> | |
</p> | |
</div> | |
</div> | |
<div class="jumbotron"> | |
<div class="container"> | |
<h1> | |
<xsl:apply-templates select="//review[@id='3']//name"/> | |
</h1> | |
<p>About: <xsl:apply-templates select="//review[@id='3']//information"/></p> | |
<p class = "third"></p> | |
<p>Price: <xsl:apply-templates select="//review[@id='3']//price"/></p> | |
<p>Opinion: <xsl:apply-templates select="//review[@id='3']//opinion"/></p> | |
<p>Rating: <xsl:apply-templates select="//review[@id='3']//rating"/></p> | |
<p> | |
<a class="learn-more3" role="button"> | |
Learn more about the app.</a> | |
</p> | |
</div> | |
</div> | |
<div class="jumbotron"> | |
<div class="container"> | |
<h1> | |
<xsl:apply-templates select="//review[@id='4']//name"/> | |
</h1> | |
<p>About: <xsl:apply-templates select="//review[@id='4']//information"/></p> | |
<p class = "fourth"></p> | |
<p>Price: <xsl:apply-templates select="//review[@id='4']//price"/></p> | |
<p>Opinion: <xsl:apply-templates select="//review[@id='4']//opinion"/></p> | |
<p>Rating: <xsl:apply-templates select="//review[@id='4']//rating"/></p> | |
<p> | |
<a class="learn-more4" role="button"> | |
Learn more about the app.</a> | |
</p> | |
</div> | |
</div> | |
</xsl:template> | |
</xsl:transform> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment