xref: /aosp_15_r20/external/apache-xml/test/tests/perf/basic/basic-all_well.xsl (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<?xml version="1.0"?>
2
3<!--<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">-->
4<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6	<xsl:template match="/">
7		<html>
8			<head>
9				<title><xsl:value-of select="PLAY/TITLE" /></title>
10			</head>
11			<body>
12				<xsl:attribute name="style">
13					background-color: #000000;
14				</xsl:attribute>
15				<xsl:apply-templates />
16			</body>
17		</html>
18	</xsl:template>
19
20	<xsl:template match="PLAY">
21		<div>
22	 		<xsl:attribute name="style">
23	 			position: absolute;
24				width: 100%;
25	 			font-family: Arial;
26	 			font-size: 10pt;
27	 			color: #cc6600;
28	 		</xsl:attribute>
29	 		<xsl:apply-templates />
30		</div>
31	</xsl:template>
32
33	<xsl:template match="SCNDESCR">
34		<div>
35			<xsl:attribute name="style">
36				margin-bottom: 1em;
37				padding: 1px;
38				padding-left: 3em;
39				background-color: #cc6600;
40				color: #333333;
41			</xsl:attribute>
42			<xsl:value-of select="."/>
43		</div>
44	</xsl:template>
45
46	<xsl:template match="PLAY/TITLE">
47		<div>
48			<xsl:attribute name="style">
49				padding: 2px;
50				padding-left: 1em;
51				font-size: 12pt;
52				background-color: #ff9900;
53				color: #000000;
54			</xsl:attribute>
55			<xsl:value-of select="."/>
56		</div>
57	</xsl:template>
58
59	<xsl:template match="ACT/TITLE">
60		<div>
61			<xsl:attribute name="style">
62				text-align: right;
63			</xsl:attribute>
64			<span>
65				<xsl:attribute name="style">
66					width: 25%;
67					padding: 1px;
68					padding-right: 1em;
69					color: #000000;
70					background-color: #ff9900;
71				</xsl:attribute>
72				<xsl:value-of select="."/>
73			</span>
74		</div>
75	</xsl:template>
76
77	<xsl:template match="SCENE | PROLOGUE">
78		<div>
79			<!--
80			<xsl:attribute name="id">act<xsl:eval>ancestorChildNumber('ACT',this)</xsl:eval>scene<xsl:eval>absoluteChildNumber(this)</xsl:eval></xsl:attribute>
81			-->
82			<xsl:apply-templates />
83		</div>
84	</xsl:template>
85
86	<xsl:template match="SCENE/TITLE">
87		<div>
88			<xsl:attribute name="style">
89				margin-bottom: 1em;
90				padding-left: 1em;
91				border-color: #ff9900;
92				border-width: 1px;
93				border-bottom-style: solid;
94				border-top-style: solid;
95				background-color: #cc6600;
96				color: #000000;
97			</xsl:attribute>
98			<xsl:value-of select="."/>
99		</div>
100	</xsl:template>
101
102	<xsl:template match="PROLOGUE/TITLE">
103		<div>
104			<xsl:attribute name="style">
105				margin-bottom: 1em;
106				padding-left: 1em;
107				border-color: #ff9900;
108				border-width: 1px;
109				border-bottom-style: solid;
110				border-top-style: solid;
111				background-color: #cc6600;
112				color: #000000;
113			</xsl:attribute>
114			<xsl:value-of select="."/>
115		</div>
116	</xsl:template>
117
118	<xsl:template match="SPEAKER">
119		<div>
120			<xsl:attribute name="style">
121				color: #ff9900;
122			</xsl:attribute>
123			<xsl:value-of select="."/>
124		</div>
125	</xsl:template>
126
127	<xsl:template match="LINE">
128		<div>
129			<xsl:attribute name="style">
130				margin-left: 3em;
131				color: #ccccff;
132			</xsl:attribute>
133			<xsl:value-of select="."/>
134		</div>
135	</xsl:template>
136
137	<xsl:template match="STAGEDIR">
138		<div>
139			<xsl:attribute name="style">
140				position: relative;
141				width: 40%;
142				left: 50%;
143				text-align: right;
144				margin: 0.5em;
145				padding-right: 1em;
146				padding-left: 1em;
147				border-color: #ff9900;
148				border-width: 1px;
149				border-bottom-style: solid;
150				border-top-style: solid;
151				font-size: 9pt;
152				color: #9999cc;
153			</xsl:attribute>
154			<xsl:value-of select="."/>
155		</div>
156	</xsl:template>
157
158
159  <!--
160   * Licensed to the Apache Software Foundation (ASF) under one
161   * or more contributor license agreements. See the NOTICE file
162   * distributed with this work for additional information
163   * regarding copyright ownership. The ASF licenses this file
164   * to you under the Apache License, Version 2.0 (the  "License");
165   * you may not use this file except in compliance with the License.
166   * You may obtain a copy of the License at
167   *
168   *     http://www.apache.org/licenses/LICENSE-2.0
169   *
170   * Unless required by applicable law or agreed to in writing, software
171   * distributed under the License is distributed on an "AS IS" BASIS,
172   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
173   * See the License for the specific language governing permissions and
174   * limitations under the License.
175  -->
176
177</xsl:stylesheet>
178