jaxp/test/javax/xml/jaxp/unittest/transform/Bug8150704-1.xsl
author joehw
Wed, 09 Mar 2016 16:09:55 -0800
changeset 36486 b84e564d2358
permissions -rw-r--r--
8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees Reviewed-by: joehw Contributed-by: christoph.langer@sap.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36486
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     2
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     4
  <xsl:output method="text"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     5
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     6
  <xsl:template match="/">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     7
    <xsl:call-template name="recurse1">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     8
      <xsl:with-param name="num">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
     9
        <xsl:value-of select="0"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    10
      </xsl:with-param>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    11
    </xsl:call-template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    12
    <xsl:text>&#xa;</xsl:text>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    13
  </xsl:template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    14
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    15
  <xsl:template name="recurse1">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    16
    <xsl:param name="num"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    17
    <xsl:call-template name="recurse2">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    18
      <xsl:with-param name="num" select="0"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    19
    </xsl:call-template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    20
    <xsl:if test="not($num = 19)">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    21
      <xsl:variable name="tmpnumber"><xsl:value-of select="$num + 1"/></xsl:variable>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    22
      <xsl:call-template name="recurse1">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    23
        <xsl:with-param name="num">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    24
          <xsl:value-of select="$tmpnumber"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    25
        </xsl:with-param>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    26
      </xsl:call-template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    27
    </xsl:if>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    28
  </xsl:template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    29
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    30
  <xsl:template name="recurse2">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    31
    <xsl:param name="num"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    32
    <xsl:call-template name="recursefinal">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    33
      <xsl:with-param name="num" select="0"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    34
    </xsl:call-template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    35
    <xsl:if test="not($num = 19)">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    36
      <xsl:variable name="tmpnumber"><xsl:value-of select="$num + 1"/></xsl:variable>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    37
      <xsl:call-template name="recurse2">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    38
        <xsl:with-param name="num" select="$tmpnumber"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    39
      </xsl:call-template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    40
    </xsl:if>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    41
  </xsl:template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    42
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    43
  <xsl:template name="recursefinal">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    44
    <xsl:param name="num"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    45
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    46
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    47
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    48
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    49
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    50
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    51
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    52
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    53
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    54
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    55
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    56
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    57
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    58
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    59
    <xsl:call-template name="dodot"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    60
    <xsl:if test="not($num = 10)">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    61
      <xsl:variable name="tmpnumber"><xsl:value-of select="$num + 1"/></xsl:variable>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    62
      <xsl:call-template name="recursefinal">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    63
        <xsl:with-param name="num" select="$tmpnumber"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    64
      </xsl:call-template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    65
    </xsl:if>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    66
  </xsl:template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    67
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    68
  <xsl:template name="dodot">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    69
    <xsl:variable name="ElementTexts">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    70
      <xsl:for-each select="element">
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    71
        <xsl:value-of select="text"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    72
      </xsl:for-each>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    73
    </xsl:variable>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    74
    <xsl:value-of select="$ElementTexts"/>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    75
  </xsl:template>
b84e564d2358 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
joehw
parents:
diff changeset
    76
</xsl:stylesheet>