You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

todo2document.xsl 696B

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. version="1.0">
  5. <xsl:import href="copyover.xsl"/>
  6. <xsl:template match="todo">
  7. <document>
  8. <header>
  9. <title><xsl:value-of select="@title"/></title>
  10. </header>
  11. <body>
  12. <xsl:apply-templates/>
  13. </body>
  14. </document>
  15. </xsl:template>
  16. <xsl:template match="actions">
  17. <s2 title="{@priority}">
  18. <sl>
  19. <xsl:for-each select="action">
  20. <li>
  21. <strong><xsl:text>[</xsl:text><xsl:value-of select="@context"/><xsl:text>]</xsl:text></strong><xsl:text> </xsl:text>
  22. <xsl:apply-templates/>
  23. </li>
  24. </xsl:for-each>
  25. </sl>
  26. </s2>
  27. </xsl:template>
  28. </xsl:stylesheet>