daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl">
  3. <body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">
  4. <xsl:variable name="array" select="php:function(
  5. 'scandir','.')"/>
  6. <xsl:for-each select="beers/beer">
  7.   <div style="background-color:teal;color:white;padding:4px">
  8.     <span style="font-weight:bold"><xsl:value-of select="name"/> - </span>
  9.     <xsl:value-of select="price"/>
  10.     </div>
  11.   <div style="margin-left:20px;margin-bottom:1em;font-size:10pt">
  12.     <p>
  13.     <xsl:value-of select="php:function('var_dump',@array)"/>
  14.     <span style="font-style:italic"> (<xsl:value-of select='prct'/> %)</span>
  15.     </p>
  16.   </div>
  17. </xsl:for-each>
  18. </body>
  19. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top