xref: /aosp_15_r20/external/apache-xml/test/tests/bugzilla/Bugzilla6181.xsl (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<?xml version="1.0"?>
2<!--
3  - Title:   action.xsl
4  - Purpose: An XSL stylesheet for processing an intermediate XML file
5  -          and generating the action classes required for our simple UI
6  -          for each entity in the file.
7  -
8  - $Revision$
9  - $Date$
10  - $Author$
11  -->
12
13<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
14		xmlns:lxslt="http://xml.apache.org/xslt"
15		xmlns:ns="Bugzilla6181"
16		extension-element-prefixes="ns"
17                version="1.0"
18                exclude-result-prefixes="#default">
19<xsl:output method="text" indent="no"/>
20
21<xsl:template match="/">
22  <xsl:apply-templates select="//component/dependent"/>
23</xsl:template>
24
25<xsl:template match="dependent">
26	<xsl:variable name="parentName" select="id(associations/parent/@idref)/@name"/>
27	<xsl:variable name="parentName2">
28      <xsl:value-of select="id(associations/parent/@idref)/@name"/>
29    </xsl:variable>
30
31	<xsl:value-of select="$parentName"/>EditForm parentForm = (<xsl:value-of select="$parentName"/>EditForm) session.getAttribute( "<xsl:value-of select='ns:initcap($parentName)'/>EditForm" );
32
33  	    <xsl:value-of select="$parentName2"/>Proxy sessionProxy = new <xsl:value-of select="ns:initcap($parentName2)"/>Proxy();
34</xsl:template>
35
36
37  <!--
38   * Licensed to the Apache Software Foundation (ASF) under one
39   * or more contributor license agreements. See the NOTICE file
40   * distributed with this work for additional information
41   * regarding copyright ownership. The ASF licenses this file
42   * to you under the Apache License, Version 2.0 (the  "License");
43   * you may not use this file except in compliance with the License.
44   * You may obtain a copy of the License at
45   *
46   *     http://www.apache.org/licenses/LICENSE-2.0
47   *
48   * Unless required by applicable law or agreed to in writing, software
49   * distributed under the License is distributed on an "AS IS" BASIS,
50   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
51   * See the License for the specific language governing permissions and
52   * limitations under the License.
53  -->
54
55</xsl:stylesheet>
56