diff options
Diffstat (limited to 'test/java/org/apache/fop/fo/extract-events.xsl')
-rw-r--r-- | test/java/org/apache/fop/fo/extract-events.xsl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/java/org/apache/fop/fo/extract-events.xsl b/test/java/org/apache/fop/fo/extract-events.xsl index 8edc0ee49..6cf42c984 100644 --- a/test/java/org/apache/fop/fo/extract-events.xsl +++ b/test/java/org/apache/fop/fo/extract-events.xsl @@ -6,16 +6,22 @@ <xsl:output indent="yes" omit-xml-declaration="yes"/> - <xsl:template match="fo:root"> + <xsl:template match="/"> <event> - <xsl:text>start root</xsl:text> + <xsl:text>start document</xsl:text> </event> - <xsl:apply-templates select="fo:page-sequence"/> + <xsl:apply-templates/> <event> - <xsl:text>end root</xsl:text> + <xsl:text>end document</xsl:text> </event> </xsl:template> + <xsl:template match="fo:root"> + <event>start root</event> + <xsl:apply-templates select="fo:page-sequence"/> + <event>end root</event> + </xsl:template> + <xsl:template match="fo:*"> <xsl:call-template name="process.node"> <xsl:with-param name="id"> |