summaryrefslogtreecommitdiffstats
path: root/dom/xslt/crashtests/528963.xml
blob: d855e7563460d707cc08c394b0aff71ba0393280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml" href="#bug"?>
<!DOCTYPE doc [
<!ATTLIST xsl:transform
  id	ID	#REQUIRED>
]>
<doc>
  <xsl:transform 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="2.0"
    id="bug">
    <xsl:key name="k0" match="e2" use="name('foo')" /> 

    <xsl:template name="t1" match="/">
      <xsl:element name="e2" namespace="{//doc}" />
    </xsl:template>
    <xsl:template name="t2" match="key('k0', 'bar')" />
  </xsl:transform>
  
  <e2/>
  
</doc>