<?xml version="1.0"?>
<!--
$Id: dump-content.xsl,v 1.4 2004/01/22 19:27:28 jmates Exp $

The author disclaims all copyrights and releases this document into
the public domain.

Testing XSLT stylesheet to dump content from APXL (Apple Presentation
XML Language, used by their Keynote application).

<content> is used for most textual things.

Notes are in <notes> blocks as CDATA just before </slide>.

Charts are odd, and use a plugin: namespace and otherwise store their
data in a different format.
-->

<xsl:stylesheet
		version="1.0"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="text"/>

  <xsl:variable name="newline">
    <xsl:text>
</xsl:text>
  </xsl:variable>

  <xsl:template match="/">
    <xsl:for-each select="//content[ancestor::slide-list]">
      <xsl:if test="string-length(text()) &gt; 0">
        <xsl:value-of select="."/>
        <xsl:value-of select="$newline"/>
        <xsl:value-of select="$newline"/>
      </xsl:if>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>
