1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <xsl:stylesheet version="1.0" |
---|
3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
4 | xmlns:witsml="http://www.witsml.org/schemas/131"> |
---|
5 | |
---|
6 | <xsl:include href="all_object_utility_templates.xsl"/> |
---|
7 | |
---|
8 | <xsl:template match="/"> |
---|
9 | <html> |
---|
10 | <head> |
---|
11 | <title> |
---|
12 | WITSML Message Stylesheet |
---|
13 | </title> |
---|
14 | </head> |
---|
15 | |
---|
16 | <body> |
---|
17 | <table border="1" align="center"> |
---|
18 | <tr><th colspan="16" ><font size="+2" color="blue">WITSML</font></th></tr> |
---|
19 | <tr><th colspan="16"><font size="+2" color="blue">Messages</font></th></tr> |
---|
20 | <xsl:for-each select="witsml:messages"> |
---|
21 | <xsl:for-each select="witsml:message"> |
---|
22 | |
---|
23 | <tr> <td colspan="2"><font size="+1" color="blue"><b>Well</b></font></td> |
---|
24 | <td colspan="4"><font size="-1"><b>name: </b> <xsl:value-of select="witsml:nameWell"/></font></td> |
---|
25 | <td colspan="7"><font size="-1"><b>uid: </b> <xsl:value-of select="@uidWell"/></font></td></tr> |
---|
26 | |
---|
27 | <tr> <td colspan="2"><font size="+1" color="blue"><b>Wellbore</b></font></td> |
---|
28 | <td colspan="4"><font size="-1"><b>name: </b> <xsl:value-of select="witsml:name"/></font></td> |
---|
29 | <td colspan="7"><font size="-1"><b>uid: </b> <xsl:value-of select="@uid"/></font></td></tr> |
---|
30 | |
---|
31 | <tr> <td colspan="2"><font size="+1" color="blue"><b>Message</b></font></td> |
---|
32 | <td colspan="4"><font size="-1"><b>name: </b> <xsl:value-of select="witsml:name"/></font></td> |
---|
33 | <td colspan="7"><font size="-1"><b>uid: </b> <xsl:value-of select="@uid"/></font></td></tr> |
---|
34 | |
---|
35 | <tr> <td colspan="2"><font size="+1" color="blue"><b>Object: <xsl:value-of select="witsml:objectReference/@object"/></b></font></td> |
---|
36 | <td colspan="4"><font size="-1"><b>name: </b> <xsl:value-of select="witsml:objectReference"/></font></td> |
---|
37 | <td colspan="7"><font size="-1"><b>uidRef: </b> <xsl:value-of select="witsml:objectReference/@uidRef"/></font></td></tr> |
---|
38 | |
---|
39 | <tr> <td colspan="2"><font size="+1" color="blue"><b>Sub-Object: <xsl:value-of select="witsml:subObjectReference/@object"/></b></font></td> |
---|
40 | <td colspan="4"><font size="-1"><b>name: </b> <xsl:value-of select="witsml:subObjectReference"/></font></td> |
---|
41 | <td colspan="7"><font size="-1"><b>uidRef: </b> <xsl:value-of select="witsml:subObjectReference/@uidRef"/></font></td></tr> |
---|
42 | |
---|
43 | |
---|
44 | <tr><td colspan="2"></td> |
---|
45 | <td colspan="3"><font size="-1"><b>Act. code: </b> <xsl:value-of select="witsml:activityCode"/></font></td> |
---|
46 | <td colspan="3"><font size="-1"><b>Probability: </b> <xsl:value-of select="witsml:warnProbability"/></font></td></tr> |
---|
47 | <tr><td colspan="2"><font size="-1"></font></td> |
---|
48 | <td colspan="3"><font size="-1"><b>MD: </b> <xsl:apply-templates select="witsml:md" mode="valueWithUomRef"/></font></td> |
---|
49 | <td colspan="3"><font size="-1"><b>MD bit: </b> <xsl:apply-templates select="witsml:mdBit" mode="valueWithUomRef"/></font></td></tr> |
---|
50 | <tr><td colspan="2"><font size="-1"></font></td> |
---|
51 | <td colspan="3"><font size="-1"><b>Msg type: </b> <xsl:value-of select="witsml:typeMessage"/></font></td> |
---|
52 | <td colspan="3"><font size="-1"><b>Severity: </b> <xsl:value-of select="witsml:severity"/></font></td></tr> |
---|
53 | <tr><td colspan="2"></td> |
---|
54 | <td colspan="1" align="right"><font size="-1"><b>Param: </b></font></td> |
---|
55 | <td colspan="1"><font size="-1"><b>index: </b> <xsl:value-of select="witsml:param/@index"/></font></td> |
---|
56 | <td colspan="2"><font size="-1"><b>name: </b> <xsl:value-of select="witsml:param/@name"/></font></td> |
---|
57 | <td colspan="3"><font size="-1"><b>value: </b> <xsl:apply-templates select="witsml:param" mode="valueWithUomRef"/></font></td></tr> |
---|
58 | <tr><td colspan="2"></td> |
---|
59 | <td colspan="14"><font size="-1"><b>Message: </b> <xsl:value-of select="witsml:messageText"/></font></td></tr> |
---|
60 | |
---|
61 | <!-- Common Data --> |
---|
62 | <tr><td colspan="2"></td> |
---|
63 | <td colspan="12" align="center"><font size="-1" color="blue">Common Data</font></td></tr> |
---|
64 | <tr><td colspan="2"></td> |
---|
65 | <td colspan="2"><font size="-1"><b>Creation Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimCreation"/></font></td> |
---|
66 | <td colspan="2"><font size="-1"><b>Last Chg Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimLastChange"/></font></td> |
---|
67 | <td colspan="4"><font size="-1"><b>State: </b><xsl:value-of select="witsml:commonData/witsml:itemState"/></font></td></tr> |
---|
68 | <tr><td colspan="2"></td> |
---|
69 | <td colspan="8"><font size="-1"><b>Comments: </b><xsl:value-of select="witsml:commonData/witsml:comments"/></font></td></tr> |
---|
70 | |
---|
71 | </xsl:for-each> |
---|
72 | </xsl:for-each> |
---|
73 | </table> |
---|
74 | </body> |
---|
75 | </html> |
---|
76 | </xsl:template> |
---|
77 | |
---|
78 | |
---|
79 | </xsl:stylesheet> |
---|