1 <?xml version="1.0" standalone="no"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:exsl="http://exslt.org/common"
5 xmlns:dyn="http://exslt.org/dynamic"
6 xmlns:math="http://exslt.org/math"
7 xmlns:xlink="http://www.w3.org/1999/xlink"
8 extension-element-prefixes="math dyn exsl xlink">
11 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
12 doctype-public="-//W3C//DTD SVG 1.0//EN"
13 doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/>
17 ======================================================
18 Function to put TEXT CSS and other Internal
19 Styling properties directly into the output
20 svg. The Qt 4.3 Renderer
21 cannot handle separate CSS StyleSheets
22 ======================================================
24 <xsl:template name="F_WriteText">
26 <xsl:param name="iClass" select="'_UNKNOWN_'"/>
27 <xsl:param name="iText" select="' '"/>
28 <xsl:param name="iX" select="'0'"/>
29 <xsl:param name="iY" select="'0'"/>
32 <xsl:message>TEXT <xsl:value-of select="$iText"/></xsl:message>
33 <xsl:message>CLASS <xsl:value-of select="$iClass"/></xsl:message>
36 <xsl:element name="text">
37 <xsl:attribute name="x"><xsl:value-of select="$iX"/></xsl:attribute>
38 <xsl:attribute name="y"><xsl:value-of select="$iY"/></xsl:attribute>
42 <xsl:when test="$iClass = 'sharedbus_label'">
43 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
44 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
45 <xsl:attribute name="font-size"><xsl:value-of select="'12pt'"/></xsl:attribute>
46 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
47 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
48 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
49 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
52 <xsl:when test="$iClass = 'p2pbus_label'">
53 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
54 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
55 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
56 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
57 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
58 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
59 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
62 <xsl:when test="$iClass = 'p2pbus_label_horiz'">
63 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
64 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
65 <xsl:attribute name="font-size"><xsl:value-of select="'12pt'"/></xsl:attribute>
66 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
67 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
68 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
69 <xsl:attribute name="writing-mode"><xsl:value-of select="'tb'"/></xsl:attribute>
70 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
74 <xsl:when test="$iClass = 'bif_label'">
75 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
76 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
77 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
78 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
79 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
80 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
81 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
84 <xsl:when test="$iClass = 'bc_ipinst'">
85 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
86 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
87 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
88 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
89 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
90 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
91 <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute>
94 <xsl:when test="$iClass = 'bc_iptype'">
95 <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute>
96 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
97 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
98 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
99 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
100 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
101 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
104 <xsl:when test="$iClass = 'iogrp_label'">
105 <xsl:attribute name="fill"><xsl:value-of select="$COL_IORING"/></xsl:attribute>
106 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
107 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
108 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
109 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
110 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
111 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
114 <xsl:when test="$iClass = 'mpmc_title'">
115 <xsl:attribute name="fill"><xsl:value-of select="$COL_WHITE"/></xsl:attribute>
116 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
117 <xsl:attribute name="font-size"><xsl:value-of select="'16pt'"/></xsl:attribute>
118 <xsl:attribute name="font-style"><xsl:value-of select="'oblique'"/></xsl:attribute>
119 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
120 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
121 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
124 <xsl:when test="$iClass = 'mpmc_biflabel'">
125 <xsl:attribute name="fill"><xsl:value-of select="$COL_WHITE"/></xsl:attribute>
126 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
127 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
128 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
129 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
130 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
131 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
134 <xsl:when test="$iClass = 'intr_symbol'">
135 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
136 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
137 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
138 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
139 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
140 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
143 <xsl:when test="$iClass = 'bkt_label'">
144 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
145 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
146 <xsl:attribute name="font-size"><xsl:value-of select="'9pt'"/></xsl:attribute>
147 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
148 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
149 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
150 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
153 <xsl:when test="$iClass = 'ipclass_label'">
154 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
155 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
156 <xsl:attribute name="font-size"><xsl:value-of select="'9pt'"/></xsl:attribute>
157 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
158 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
159 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
160 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
163 <xsl:when test="$iClass = 'key_header'">
164 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
165 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
166 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
167 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
168 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
169 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
172 <xsl:when test="$iClass = 'key_title'">
173 <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute>
174 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
175 <xsl:attribute name="font-size"><xsl:value-of select="'14pt'"/></xsl:attribute>
176 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
177 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
178 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
181 <xsl:when test="$iClass = 'key_label'">
182 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
183 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
184 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
185 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
186 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
187 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
188 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
191 <xsl:when test="$iClass = 'key_label_small'">
192 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
193 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
194 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
195 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
196 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
197 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
198 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
202 <xsl:when test="$iClass = 'key_label_ul'">
203 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
204 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
205 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
206 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
207 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
208 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
209 <xsl:attribute name="text-decoration"><xsl:value-of select="'underline'"/></xsl:attribute>
210 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
214 <xsl:when test="$iClass = 'ipd_portlabel'">
215 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
216 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
217 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
218 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
219 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
220 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
221 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
224 <xsl:when test="$iClass = 'ipd_biflabel'">
225 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
226 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
227 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
228 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
229 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
230 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
233 <xsl:when test="$iClass = 'ipd_iptype'">
234 <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute>
235 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
236 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
237 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
238 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
239 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
240 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
243 <xsl:when test="$iClass = 'ipd_ipname'">
244 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
245 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
246 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
247 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
248 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
249 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
250 <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute>
253 <xsl:when test="$iClass = 'blkd_spec_name'">
254 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
255 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
256 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
257 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
258 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
259 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
262 <xsl:when test="$iClass = 'blkd_spec_value_mid'">
263 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
264 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
265 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
266 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
267 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
268 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
269 <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute>
272 <xsl:otherwise><xsl:message>UNKNOWN Text style class <xsl:value-of select="$iClass"/></xsl:message></xsl:otherwise>
275 <xsl:value-of select="$iText"/>
290 font-family: Verdana Arial Helvetica sans-serif;
299 font-family: Courier Arial Helvetica sans-serif;
309 font-family: Verdana Arial Helvetica sans-serif;
319 font-family: Verdana Arial Helvetica sans-serif;
329 font-family: Verdana Arial Helvetica sans-serif;
339 font-family: Verdana Arial Helvetica sans-serif;
351 font-family: Times Arial Helvetica sans-serif;
361 font-family: Times Arial Helvetica sans-serif;
372 font-family: Verdana Arial Helvetica sans-serif;
381 font-family: Verdana Arial Helvetica sans-serif;
391 font-family: Verdana Arial Helvetica sans-serif;
401 font-family: Verdana Arial Helvetica sans-serif;
413 font-family: Times Arial Helvetica sans-serif;
423 font-family: Verdana Arial Helvetica sans-serif;
435 baseline-shift:super;
436 font-family: Arial Courier san-serif;
447 font-family: Verdana Arial Helvetica sans-serif;
459 font-family: Verdana Arial Helvetica sans-serif;
470 font-family: Verdana Arial Helvetica sans-serif;
474 text.sharedbuslabel {
481 font-family: Verdana Arial Helvetica sans-serif;
492 font-family: sans-serif;
495 text.horizp2pbuslabel {
502 font-family: Verdana Arial Helvetica sans-serif;
513 font-family: Arial Helvetica sans-serif;
522 font-family: Arial Helvetica sans-serif;
532 font-family: Verdana Arial Helvetica sans-serif;
542 text-decoration: underline;
543 font-family: Verdana Arial Helvetica sans-serif;
552 font-family: Arial Helvetica sans-serif;
562 font-family: Verdana Arial Helvetica sans-serif;
572 font-family: Verdana Arial Helvetica sans-serif;
581 font-family: Arial Helvetica sans-serif;