Advertisement
TheFastFish

poor attempt at a stylesheet

Aug 3rd, 2014
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.53 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--an attempt at a stylesheet-->
  3. <xsl:stylesheet version="1.0">
  4. <xsl:template match="/chronicle">
  5. <html>
  6. <head>
  7. <h1>The Cousin Chronicle</h1>
  8. <h2>
  9. <xsl:value-of select="book@name"/>
  10. </h2>
  11. </head>
  12. <body>
  13. <xsl:for-each select="book/msg">
  14. <div>
  15. <p class="sender">
  16. <xsl:value-of select="sender"/>
  17. </p>
  18. <p class="stamp">
  19. <xsl:value-of select="stamp"/>
  20. </p>
  21. <pre class="text">
  22. <xsl:value-of select="text"/>
  23. <pre>
  24. </xsl:for-each>
  25. </body>
  26. </html>
  27. </xsl:template>
  28. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement