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">
10 <!-- Generic colors, shared between modules like webpages diagrams and pdfs -->
12 <xsl:variable name="COL_XLNX" select="'#AA0017'"/>
14 <xsl:variable name="COL_BLACK" select="'#000000'"/>
15 <xsl:variable name="COL_WHITE" select="'#FFFFFF'"/>
17 <xsl:variable name="COL_GRAY" select="'#CECECE'"/>
18 <xsl:variable name="COL_GRAY_LT" select="'#E1E1E1'"/>
19 <xsl:variable name="COL_GRAY_DK" select="'#B1B1B1'"/>
21 <xsl:variable name="COL_YELLOW" select="'#FFFFDD'"/>
22 <xsl:variable name="COL_YELLOW_LT" select="'#FFFFEE'"/>
24 <xsl:variable name="COL_RED" select="'#AA0000'"/>
26 <xsl:variable name="COL_GREEN" select="'#33CC33'"/>
28 <xsl:variable name="COL_BLUE_LT" select="'#AAAAFF'"/>
30 <!-- Colors specific to the Diagrams -->
31 <xsl:variable name="COL_BG" select="'#CCCCCC'"/>
32 <xsl:variable name="COL_BG_LT" select="'#EEEEEE'"/>
33 <xsl:variable name="COL_BG_UNK" select="'#DDDDDD'"/>
35 <xsl:variable name="COL_PROC_BG" select="'#FFCCCC'"/>
36 <xsl:variable name="COL_PROC_BG_MB" select="'#222222'"/>
37 <xsl:variable name="COL_PROC_BG_PP" select="'#90001C'"/>
38 <xsl:variable name="COL_PROC_BG_USR" select="'#666699'"/>
40 <xsl:variable name="COL_MPMC_BG" select="'#8B0800'"/>
42 <xsl:variable name="COL_MOD_BG" select="'#F0F0F0'"/>
43 <xsl:variable name="COL_MOD_SPRT" select="'#888888'"/>
44 <xsl:variable name="COL_MOD_MPRT" select="'#888888'"/>
46 <xsl:variable name="COL_IORING" select="'#000088'"/>
47 <xsl:variable name="COL_IORING_LT" select="'#CCCCFF'"/>
48 <xsl:variable name="COL_SYSPRT" select="'#0000BB'"/>
50 <xsl:variable name="COL_INTCS">
51 <INTCCOLOR INDEX="0" RGB="#FF9900"/>
52 <INTCCOLOR INDEX="1" RGB="#00CCCC"/>
53 <INTCCOLOR INDEX="2" RGB="#33FF33"/>
54 <INTCCOLOR INDEX="3" RGB="#FF00CC"/>
55 <INTCCOLOR INDEX="4" RGB="#99FF33"/>
56 <INTCCOLOR INDEX="5" RGB="#0066CC"/>
57 <INTCCOLOR INDEX="6" RGB="#9933FF"/>
58 <INTCCOLOR INDEX="7" RGB="#3300FF"/>
59 <INTCCOLOR INDEX="8" RGB="#00FF33"/>
60 <INTCCOLOR INDEX="9" RGB="#FF3333"/>
63 <xsl:variable name="COL_BUSSTDS">
64 <BUSCOLOR BUSSTD="AXI" RGB="#0084AB" RGB_LT="#D0E6EF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
65 <BUSCOLOR BUSSTD="XIL" RGB="#990066" RGB_LT="#CC3399" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
66 <BUSCOLOR BUSSTD="OCM" RGB="#0000DD" RGB_LT="#9999DD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
67 <BUSCOLOR BUSSTD="OPB" RGB="#339900" RGB_LT="#CCDDCC" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
69 <BUSCOLOR BUSSTD="LMB" RGB="#7777FF" RGB_LT="#DDDDFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
70 <BUSCOLOR BUSSTD="FSL" RGB="#CC00CC" RGB_LT="#FFBBFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
71 <BUSCOLOR BUSSTD="DCR" RGB="#6699FF" RGB_LT="#BBDDFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
72 <BUSCOLOR BUSSTD="FCB" RGB="#8C00FF" RGB_LT="#CCCCFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
74 <BUSCOLOR BUSSTD="PLB" RGB="#FF5500" RGB_LT="#FFBB00" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
75 <BUSCOLOR BUSSTD="PLBV34" RGB="#FF5500" RGB_LT="#FFBB00" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
76 <BUSCOLOR BUSSTD="PLBV46" RGB="#BB9955" RGB_LT="#FFFFDD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
77 <BUSCOLOR BUSSTD="PLBV46_P2P" RGB="#BB9955" RGB_LT="#FFFFDD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
79 <BUSCOLOR BUSSTD="USER" RGB="#009999" RGB_LT="#00CCCC" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
80 <BUSCOLOR BUSSTD="KEY" RGB="#444444" RGB_LT="#888888" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
81 <BUSCOLOR BUSSTD="GRAYSCALE" RGB="#444444" RGB_LT="#888888" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
83 <xsl:variable name = "COL_BUSSTDS_NUMOF" select="count(exsl:node-set($COL_BUSSTDS)/BUSCOLOR)"/>
85 <xsl:template name="F_BusStd2RGB">
86 <xsl:param name="iBusStd" select="'USER'"/>
89 <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB">
90 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB"/>
93 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB"/>
98 <xsl:template name="F_BusStd2RGB_LT">
99 <xsl:param name="iBusStd" select="'USER'"/>
102 <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_LT">
103 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_LT"/>
106 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_LT"/>
111 <xsl:template name="F_BusStd2RGB_DK">
112 <xsl:param name="iBusStd" select="'USER'"/>
114 <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_DK">
115 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_DK"/>
118 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_DK"/>
123 <xsl:template name="F_BusStd2RGB_TXT">
124 <xsl:param name="iBusStd" select="'USER'"/>
126 <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_TXT">
127 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_TXT"/>
130 <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_TXT"/>
135 <xsl:template name="F_IntcIdx2RGB">
136 <xsl:param name="iIntcIdx" select="'0'"/>
138 <xsl:variable name="index_" select="$iIntcIdx mod 9"/>
141 <xsl:when test="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = $index_)]/@RGB">
142 <xsl:value-of select="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = $index_)]/@RGB"/>
145 <xsl:value-of select="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = '0')]/@RGB"/>