Skip to content

Instantly share code, notes, and snippets.

@rdeltour
Created March 7, 2013 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdeltour/5107452 to your computer and use it in GitHub Desktop.
Save rdeltour/5107452 to your computer and use it in GitHub Desktop.
Calabash OutOfMemory Issue
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step version="1.0" name="test" xmlns:p="http://www.w3.org/ns/xproc"
xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:c="http://www.w3.org/ns/xproc-step"
exclude-inline-prefixes="#all" xpath-version="2.0">
<p:output port="result"/>
<p:xslt template-name="main">
<p:input port="source">
<p:empty/>
</p:input>
<p:input port="stylesheet">
<p:inline>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"
version="2.0">
<xsl:template name="main">
<doc>
<xsl:for-each select="(1 to 4000)">
<itemz/>
</xsl:for-each>
</doc>
</xsl:template>
</xsl:stylesheet>
</p:inline>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:validate-with-relax-ng>
<p:input port="schema">
<p:inline>
<c:data>
namespace local = ""
start = Doc
Doc = element local:doc { Item* }
Item = element local:item { text }
</c:data>
</p:inline>
</p:input>
</p:validate-with-relax-ng>
</p:declare-step>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment