• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
4  <!-- Purpose: To be imported by ../ImpIncl17. -->
5
6<xsl:key name="id" use="@id" match="LAMBDA"/>
7<xsl:key name="annid" use="@of" match="Annotation"/>
8
9<xsl:template match="a">
10  <out>
11    <xsl:apply-templates/>
12  </out>
13</xsl:template>
14
15<xsl:template match="Definition"/><!-- Don't handle the LAMBDAs now -->
16
17<!-- Alternate template for Definition...
18Usual "apply" looping, which means we will visit the LAMBDAs -->
19<!--
20<xsl:template match="Definition">
21  <xsl:apply-templates/>
22</xsl:template>
23-->
24
25<xsl:template match="LAMBDA">
26  <xsl:choose>
27    <xsl:when test="key('annid',@id)">
28      <xsl:text>NO BUG</xsl:text>
29    </xsl:when>
30    <xsl:otherwise>
31      <xsl:text>Found one whose id has no annotation!</xsl:text>
32    </xsl:otherwise>
33  </xsl:choose>
34</xsl:template>
35
36<xsl:template match="node">
37  <xsl:variable name="id" select="@id"/>
38  <xsl:text>On node whose id is </xsl:text>
39  <xsl:value-of select="$id"/>
40  <xsl:text> -nodes to apply: </xsl:text>
41  <xsl:value-of select="count(key('id',$id))"/><xsl:text>
42</xsl:text>
43  <xsl:apply-templates select="key('id',$id)"/>
44</xsl:template>
45
46
47  <!--
48   * Licensed to the Apache Software Foundation (ASF) under one
49   * or more contributor license agreements. See the NOTICE file
50   * distributed with this work for additional information
51   * regarding copyright ownership. The ASF licenses this file
52   * to you under the Apache License, Version 2.0 (the  "License");
53   * you may not use this file except in compliance with the License.
54   * You may obtain a copy of the License at
55   *
56   *     http://www.apache.org/licenses/LICENSE-2.0
57   *
58   * Unless required by applicable law or agreed to in writing, software
59   * distributed under the License is distributed on an "AS IS" BASIS,
60   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
61   * See the License for the specific language governing permissions and
62   * limitations under the License.
63  -->
64
65</xsl:stylesheet>
66