-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRecipe_Style.xslt
executable file
·32 lines (32 loc) · 1.03 KB
/
Recipe_Style.xslt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/Recipe">
<html>
<head>
<link rel="stylesheet" type="text/css" href="Recipe.css"/>
<title> Recipe Preparation </title>
</head>
<body>
<h1> <xsl:value-of select="recipe_name"/> </h1>
<h3> By <xsl:value-of select="recipe_by"/> </h3>
<img>
<xsl:attribute name="src">
<xsl:value-of select="recipe_image"/>
</xsl:attribute>
</img>
<p class="Serves"><xsl:value-of select="serves"/><br/><br/> </p>
<ul class="Ingredients">
<xsl:for-each select="ingredients/ingredient">
<li> <xsl:value-of select="text()"/> </li>
</xsl:for-each><br/>
</ul>
<ul class="Procedure">
<xsl:for-each select="procedure/step">
<li> <xsl:value-of select="text()"/> </li>
</xsl:for-each><br/>
</ul>
<p class="Hints"> <xsl:value-of select="hints"/> </p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>