Skip to content

Instantly share code, notes, and snippets.

@vindolin
Last active December 28, 2015 07:19
Show Gist options
  • Save vindolin/3e05d3cb7f41fa0d4384 to your computer and use it in GitHub Desktop.
Save vindolin/3e05d3cb7f41fa0d4384 to your computer and use it in GitHub Desktop.
SLAX error
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xinclude="http://www.w3.org/2001/XInclude">
<xsl:template name="test1">
</xsl:template>
<xsl:template name="test2">
<xsl:if test="count(test)=0">
<xsl:call-template name="test1">
</xsl:call-template>
</xsl:if>
<xsl:if test="count(test)=0">
<xsl:call-template name="test1">
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
<!--
SLAX output:
version 1.1;
ns xinclude = "http://www.w3.org/2001/XInclude";
template test1 () {
}
template test2 () {
if (count(test) == 0) {
call test1();
}
if (count(test) == 0) {
call test1();
}
}
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment