Skip to content

Instantly share code, notes, and snippets.

@roumy
Created November 2, 2019 20:21
Show Gist options
  • Save roumy/bb792d02f98877d9f31df98d944dcc1c to your computer and use it in GitHub Desktop.
Save roumy/bb792d02f98877d9f31df98d944dcc1c to your computer and use it in GitHub Desktop.
back
<?xml version="1.0" encoding="UTF-8"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl">
<body style="font-family:Arial;font-size:17pt;background-color:#EEEEEE">
<xsl:for-each select="beers/beer">
<div style="background-color:teal;color:red;padding:4px">
<span style="font-weight:bold"><xsl:value-of select="name"/> - </span>
<xsl:value-of select="price"/>
</div>
<div style="margin-left:20px;margin-bottom:1em;font-size:10pt">
<p>
<xsl:value-of select="description"/>
<span style="font-style:italic"> (<xsl:value-of select='prct'/> %)</span>
</p>
</div>
</xsl:for-each>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment