1 <?xml version="1.0" standalone="no"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:svg="http://www.w3.org/2000/svg"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:exsl="http://exslt.org/common"
6 xmlns:xlink="http://www.w3.org/1999/xlink">
8 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
9 doctype-public="-//W3C//DTD SVG 1.0//EN"
10 doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/>
13 ======================================================
14 Function to put TEXT CSS and other Internal
15 Styling properties directly into the output
16 svg. The Qt 4.3 Renderer
17 cannot handle separate CSS StyleSheets
18 ======================================================
20 <xsl:template name="F_WriteText">
22 <xsl:param name="iClass" select="'_UNKNOWN_'"/>
23 <xsl:param name="iText" select="' '"/>
24 <xsl:param name="iX" select="'0'"/>
25 <xsl:param name="iY" select="'0'"/>
28 <xsl:message>TEXT <xsl:value-of select="$iText"/></xsl:message>
29 <xsl:message>CLASS <xsl:value-of select="$iClass"/></xsl:message>
32 <xsl:element name="text">
33 <xsl:attribute name="x"><xsl:value-of select="$iX"/></xsl:attribute>
34 <xsl:attribute name="y"><xsl:value-of select="$iY"/></xsl:attribute>
38 <xsl:when test="$iClass = 'sharedbus_label'">
39 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
40 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
41 <xsl:attribute name="font-size"><xsl:value-of select="'12pt'"/></xsl:attribute>
42 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
43 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
44 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
45 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
48 <xsl:when test="$iClass = 'p2pbus_label'">
49 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
50 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
51 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
52 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
53 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
54 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
55 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
58 <xsl:when test="$iClass = 'p2pbus_label_horiz'">
59 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
60 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
61 <xsl:attribute name="font-size"><xsl:value-of select="'12pt'"/></xsl:attribute>
62 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
63 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
64 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
65 <xsl:attribute name="writing-mode"><xsl:value-of select="'tb'"/></xsl:attribute>
66 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
70 <xsl:when test="$iClass = 'bif_label'">
71 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
72 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
73 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
74 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
75 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
76 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
77 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute>
80 <xsl:when test="$iClass = 'bc_ipinst'">
81 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
82 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
83 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
84 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
85 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
86 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
87 <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute>
90 <xsl:when test="$iClass = 'bc_iptype'">
91 <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute>
92 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
93 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
94 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
95 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
96 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
97 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
100 <xsl:when test="$iClass = 'iogrp_label'">
101 <xsl:attribute name="fill"><xsl:value-of select="$COL_IORING"/></xsl:attribute>
102 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
103 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
104 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
105 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
106 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
107 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
110 <xsl:when test="$iClass = 'mpmc_title'">
111 <xsl:attribute name="fill"><xsl:value-of select="$COL_WHITE"/></xsl:attribute>
112 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
113 <xsl:attribute name="font-size"><xsl:value-of select="'16pt'"/></xsl:attribute>
114 <xsl:attribute name="font-style"><xsl:value-of select="'oblique'"/></xsl:attribute>
115 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
116 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
117 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
120 <xsl:when test="$iClass = 'mpmc_biflabel'">
121 <xsl:attribute name="fill"><xsl:value-of select="$COL_WHITE"/></xsl:attribute>
122 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
123 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
124 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
125 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
126 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
127 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
130 <xsl:when test="$iClass = 'intr_symbol'">
131 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
132 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
133 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
134 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
135 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
136 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
139 <xsl:when test="$iClass = 'bkt_label'">
140 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
141 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
142 <xsl:attribute name="font-size"><xsl:value-of select="'9pt'"/></xsl:attribute>
143 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
144 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
145 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
146 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
149 <xsl:when test="$iClass = 'ipclass_label'">
150 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
151 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
152 <xsl:attribute name="font-size"><xsl:value-of select="'9pt'"/></xsl:attribute>
153 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
154 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
155 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
156 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
159 <xsl:when test="$iClass = 'key_header'">
160 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
161 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
162 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
163 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
164 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
165 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
168 <xsl:when test="$iClass = 'key_title'">
169 <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute>
170 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
171 <xsl:attribute name="font-size"><xsl:value-of select="'14pt'"/></xsl:attribute>
172 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
173 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
174 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
177 <xsl:when test="$iClass = 'key_label'">
178 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
179 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
180 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
181 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
182 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
183 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
184 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
187 <xsl:when test="$iClass = 'key_label_small'">
188 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
189 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
190 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
191 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
192 <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute>
193 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
194 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
198 <xsl:when test="$iClass = 'key_label_ul'">
199 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
200 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
201 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
202 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
203 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
204 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
205 <xsl:attribute name="text-decoration"><xsl:value-of select="'underline'"/></xsl:attribute>
206 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
210 <xsl:when test="$iClass = 'ipd_portlabel'">
211 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
212 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
213 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
214 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
215 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
216 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
217 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
220 <xsl:when test="$iClass = 'ipd_biflabel'">
221 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
222 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
223 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
224 <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute>
225 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
226 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
229 <xsl:when test="$iClass = 'ipd_iptype'">
230 <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute>
231 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
232 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
233 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
234 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
235 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
236 <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute>
239 <xsl:when test="$iClass = 'ipd_ipname'">
240 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
241 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
242 <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute>
243 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
244 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
245 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
246 <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute>
249 <xsl:when test="$iClass = 'blkd_spec_name'">
250 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
251 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
252 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
253 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
254 <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute>
255 <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute>
258 <xsl:when test="$iClass = 'blkd_spec_value_mid'">
259 <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute>
260 <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute>
261 <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute>
262 <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute>
263 <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute>
264 <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute>
265 <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute>
268 <xsl:otherwise><xsl:message>UNKNOWN Text style class <xsl:value-of select="$iClass"/></xsl:message></xsl:otherwise>
271 <xsl:value-of select="$iText"/>
286 font-family: Verdana Arial Helvetica sans-serif;
295 font-family: Courier Arial Helvetica sans-serif;
305 font-family: Verdana Arial Helvetica sans-serif;
315 font-family: Verdana Arial Helvetica sans-serif;
325 font-family: Verdana Arial Helvetica sans-serif;
335 font-family: Verdana Arial Helvetica sans-serif;
347 font-family: Times Arial Helvetica sans-serif;
357 font-family: Times Arial Helvetica sans-serif;
368 font-family: Verdana Arial Helvetica sans-serif;
377 font-family: Verdana Arial Helvetica sans-serif;
387 font-family: Verdana Arial Helvetica sans-serif;
397 font-family: Verdana Arial Helvetica sans-serif;
409 font-family: Times Arial Helvetica sans-serif;
419 font-family: Verdana Arial Helvetica sans-serif;
431 baseline-shift:super;
432 font-family: Arial Courier san-serif;
443 font-family: Verdana Arial Helvetica sans-serif;
455 font-family: Verdana Arial Helvetica sans-serif;
466 font-family: Verdana Arial Helvetica sans-serif;
470 text.sharedbuslabel {
477 font-family: Verdana Arial Helvetica sans-serif;
488 font-family: sans-serif;
491 text.horizp2pbuslabel {
498 font-family: Verdana Arial Helvetica sans-serif;
509 font-family: Arial Helvetica sans-serif;
518 font-family: Arial Helvetica sans-serif;
528 font-family: Verdana Arial Helvetica sans-serif;
538 text-decoration: underline;
539 font-family: Verdana Arial Helvetica sans-serif;
548 font-family: Arial Helvetica sans-serif;
558 font-family: Verdana Arial Helvetica sans-serif;
568 font-family: Verdana Arial Helvetica sans-serif;
577 font-family: Arial Helvetica sans-serif;