diff options
author | Luis Bernardo <lbernardo@apache.org> | 2013-07-12 23:24:40 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2013-07-12 23:24:40 +0000 |
commit | 74ad4fd2236a498b2fdab1790b433b00037122c8 (patch) | |
tree | 16829b7987b3bdb02e156bad82433e4040349b12 /test/xsl | |
parent | c078247bdc67632eb9e6fda7fa3ea19513241220 (diff) | |
download | xmlgraphics-fop-74ad4fd2236a498b2fdab1790b433b00037122c8.tar.gz xmlgraphics-fop-74ad4fd2236a498b2fdab1790b433b00037122c8.zip |
FOP-2271: XSL Infinite loop; test case: patch submitted by Simon Steiner.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1502725 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/xsl')
-rw-r--r-- | test/xsl/iloop.xsl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/xsl/iloop.xsl b/test/xsl/iloop.xsl new file mode 100644 index 000000000..2efdfb068 --- /dev/null +++ b/test/xsl/iloop.xsl @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <xsl:template match="/"> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:layout-master-set> + <fo:simple-page-master master-name="all" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="0.3cm" margin-left="1cm" margin-right="1cm"> + <fo:region-body margin-top="0cm" margin-right="0cm" margin-bottom="1cm" margin-left="0cm" region-name="doesntexist" /> + + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="all"> + + <fo:flow flow-name="xsl-region-body"> + <fo:block> + <xsl:apply-templates select="//region[@name='Main Region']" /> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + + </xsl:template> + + +</xsl:stylesheet>
\ No newline at end of file |