Ticket #120: master_sdrl.xsl

File master_sdrl.xsl, 12.7 kB (added by DCameronMauch, 4 months ago)
Line 
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0"
3                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4                 xmlns:fo="http://www.w3.org/1999/XSL/Format">
5
6 <xsl:output method="xml"/>
7         <xsl:template match="SDT">
8         <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
9         <fo:layout-master-set>
10         <fo:simple-page-master
11           master-name="main"
12           margin-right="0.5in" margin-left="0.5in"
13           page-height="11in" page-width="8.5in"
14           margin-bottom="0.375in" margin-top="0.5in">
15         <fo:region-body margin-top="3.0em" margin-bottom="0.375in"/>
16         <fo:region-before extent="5.0em"/>
17         <fo:region-after extent="0.375in"/>
18         </fo:simple-page-master>
19         </fo:layout-master-set>
20         <fo:page-sequence master-reference="main">
21
22         <fo:static-content flow-name="xsl-region-after">
23         <fo:block text-align="right" font-size="0.75em">Page <fo:page-number/></fo:block>
24         </fo:static-content>
25
26         <fo:flow flow-name="xsl-region-body">
27         <fo:block font-family="sans-serif">
28
29         <fo:table table-layout="fixed" font-size="1.0em" border-style="none" border-width="0.03in">
30           <fo:table-column column-width="7.5in"/>
31           <fo:table-body>
32             <fo:table-row>
33               <fo:table-cell text-align="center">
34                 <fo:block text-align="left" background-color="#FFFFFF" line-height="25pt">
35                   <fo:external-graphic width="7.5in" content-width="scale-to-fit" scaling="uniform">
36                     <xsl:attribute name="src">../images/<xsl:value-of select="BANNER"/>.jpg</xsl:attribute>
37                   </fo:external-graphic>
38                 </fo:block>
39                 <fo:block text-align="center" background-color="#FFFFFF" line-height="25pt">
40                   <xsl:value-of select="BTEXT"/>
41                 </fo:block>
42               </fo:table-cell>
43             </fo:table-row>
44           </fo:table-body>
45         </fo:table>
46
47         <fo:table table-layout="fixed" font-size="0.5em" border-style="solid" border-width="0.02in">
48           <fo:table-column column-width="22%"/>
49           <fo:table-column column-width="28%"/>
50           <fo:table-column column-width="22%"/>
51           <fo:table-column column-width="28%"/>
52           <fo:table-body>
53             <fo:table-row>
54               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
55                 <fo:block font-weight="bold" font-size="1.8em" font-style="italic">
56                   <xsl:value-of select="REGION"/>
57                 </fo:block>
58               </fo:table-cell>
59               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
60                 <fo:block font-weight="normal">
61                   &#160;
62                 </fo:block>
63               </fo:table-cell>
64               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
65                 <fo:block font-weight="bold">
66                    P.O. / SUBCONTRACT:
67                 </fo:block>
68                 <fo:block font-weight="bold" padding-top="0.4em">
69                    BEST CODE:
70                 </fo:block>
71               </fo:table-cell>
72               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
73                 <fo:block font-weight="normal">
74                   <xsl:value-of select="PO_NUMBER"/>
75                 </fo:block>
76                 <fo:block font-weight="normal" padding-top="0.4em">
77                   <xsl:value-of select="BEST_CODE"/>
78                 </fo:block>
79               </fo:table-cell>
80            </fo:table-row>
81             <fo:table-row>
82               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
83                 <fo:block font-weight="bold">
84                    PART NUMBER:
85                 </fo:block>
86               </fo:table-cell>
87               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
88                 <fo:block font-weight="normal">
89                   <xsl:value-of select="PART"/>
90                 </fo:block>
91               </fo:table-cell>
92               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
93                 <fo:block font-weight="bold">
94                    SOW NUMBER:
95                 </fo:block>
96               </fo:table-cell>
97               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
98                 <fo:block font-weight="normal">
99                   <xsl:value-of select="SOW_NUMBER"/>
100                 </fo:block>
101               </fo:table-cell>
102            </fo:table-row>
103             <fo:table-row>
104               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
105                 <fo:block font-weight="bold">
106                    EFFECTIVITY:
107                 </fo:block>
108               </fo:table-cell>
109               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
110                 <fo:block font-weight="normal">
111                   <xsl:value-of select="EFFECTIVITY"/>
112                 </fo:block>
113               </fo:table-cell>
114               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
115                 <fo:block font-weight="bold">
116                    SUPPLIER:
117                 </fo:block>
118               </fo:table-cell>
119               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
120                 <fo:block font-weight="normal">
121                   <xsl:value-of select="ORG_NAME"/>
122                 </fo:block>
123               </fo:table-cell>
124            </fo:table-row>
125
126             <fo:table-row>
127               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
128                 <fo:block font-weight="bold">
129                    SDRL REVISION:
130                 </fo:block>
131               </fo:table-cell>
132               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
133                 <fo:block font-weight="normal">
134                   <xsl:value-of select="SDRL_REVISION"/>
135                 </fo:block>
136               </fo:table-cell>
137               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
138                 <fo:block font-weight="bold">
139                    NOMENCLATURE:
140                 </fo:block>
141               </fo:table-cell>
142               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
143                 <fo:block font-weight="normal">
144                   <xsl:value-of select="NOMENCLATURE"/>
145                 </fo:block>
146               </fo:table-cell>
147            </fo:table-row>
148
149             <fo:table-row>
150               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
151                 <fo:block font-weight="bold">
152                    SDRL DATE:
153                 </fo:block>
154               </fo:table-cell>
155               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
156                 <fo:block font-weight="normal">
157                   <xsl:value-of select="SDRL_REV_DATE"/>
158                 </fo:block>
159               </fo:table-cell>
160               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
161                 <fo:block font-weight="bold">
162                    MODELS:
163                 </fo:block>
164               </fo:table-cell>
165               <fo:table-cell text-align="left" padding-top="0.2em" padding-bottom="0.2em">
166                 <fo:block font-weight="normal">
167                   <xsl:value-of select="MODEL"/>
168                 </fo:block>
169               </fo:table-cell>
170            </fo:table-row>
171
172
173
174           </fo:table-body>
175         </fo:table>
176
177         <fo:table table-layout="fixed" font-size="0.5em" border-style="solid" border-width="0.02in">
178           <fo:table-column column-width="06%"/>
179           <fo:table-column column-width="10%"/>
180           <fo:table-column column-width="18%"/>
181           <fo:table-column column-width="18%"/>
182           <fo:table-column column-width="10%"/>
183           <fo:table-column column-width="10%"/>
184           <fo:table-column column-width="10%"/>
185           <fo:table-column column-width="18%"/>
186           <fo:table-body>
187             <fo:table-row>
188               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
189                 <fo:block font-weight="bold">
190                   SDRL Item Number
191                 </fo:block>
192               </fo:table-cell>
193               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
194                 <fo:block font-weight="bold">
195                   DID No. / Date
196                 </fo:block>
197               </fo:table-cell>
198               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
199                 <fo:block font-weight="bold">
200                   Data Item Description
201                 </fo:block>
202               </fo:table-cell>
203               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
204                 <fo:block font-weight="bold">
205                   Task Reference
206                 </fo:block>
207               </fo:table-cell>
208               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
209                 <fo:block font-weight="bold">
210                   First Submittal Due Date
211                 </fo:block>
212               </fo:table-cell>
213               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
214                 <fo:block font-weight="bold">
215                   Subsequent Submittal Due Date
216                 </fo:block>
217               </fo:table-cell>
218               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
219                 <fo:block font-weight="bold">
220                   Contractual Type
221                 </fo:block>
222               </fo:table-cell>
223               <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em"> <fo:block font-weight="bold">
224                   Comments
225                 </fo:block>
226               </fo:table-cell>
227             </fo:table-row>
228               <xsl:for-each select="DATA_ITEM_LIST">
229               <xsl:for-each select="DATA">
230               <fo:table-row>
231                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
232                   <fo:block font-weight="normal">
233                     <xsl:value-of select="SDRL_ID"/>
234                   </fo:block>
235                 </fo:table-cell>
236                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
237                   <fo:block font-weight="normal">
238                     <xsl:value-of select="DATA_ITEM"/>
239                   </fo:block>
240                 </fo:table-cell>
241                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
242                   <fo:block font-weight="normal">
243                     <xsl:value-of select="DESCRIPTION"/>
244                   </fo:block>
245                 </fo:table-cell>
246                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
247                   <fo:block font-weight="normal">
248                     <xsl:value-of select="TASK_REF"/>
249                   </fo:block>
250                 </fo:table-cell>
251                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
252                   <fo:block font-weight="normal">
253                     <xsl:value-of select="FIRST_SUB"/>
254                   </fo:block>
255                 </fo:table-cell>
256                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
257                   <fo:block font-weight="normal">
258                     <xsl:value-of select="SUBSEQ_SUB"/>
259                   </fo:block>
260                 </fo:table-cell>
261                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
262                   <fo:block font-weight="normal">
263                     <xsl:value-of select="TYPE"/>
264                   </fo:block>
265                 </fo:table-cell>
266                 <fo:table-cell text-align="center" border-style="solid" border-width="0.01in" padding-top="0.2em" padding-bottom="0.2em">
267                   <fo:block font-weight="normal">
268                     <xsl:value-of select="COMMENTS"/>
269                   </fo:block>
270                 </fo:table-cell>
271               </fo:table-row>
272               </xsl:for-each>
273               </xsl:for-each>
274           </fo:table-body>
275         </fo:table>
276         </fo:block>
277         </fo:flow>
278         </fo:page-sequence>
279         </fo:root>
280         </xsl:template>
281         </xsl:stylesheet>