Changeset 159 for projects/DailyDrillingReport_1.2/XML/PDFreport
- Timestamp:
- 03/30/11 10:33:08 (13 years ago)
- Location:
- projects/DailyDrillingReport_1.2/XML/PDFreport
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_HTMLReport_transformation_2011_03_09.fo
r152 r159 36 36 <fo:block> 37 37 <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 38 <fo:table-column column-width="proportional-column-width(1 6.49)" column-number="1"/>39 <fo:table-column column-width="proportional-column-width(1 6.931)" column-number="2"/>40 <fo:table-column column-width="proportional-column-width(18. 397)" column-number="3"/>41 <fo:table-column column-width="proportional-column-width(4 8.182)" column-number="4"/>38 <fo:table-column column-width="proportional-column-width(17.79)" column-number="1"/> 39 <fo:table-column column-width="proportional-column-width(17.33)" column-number="2"/> 40 <fo:table-column column-width="proportional-column-width(18.898)" column-number="3"/> 41 <fo:table-column column-width="proportional-column-width(45.982)" column-number="4"/> 42 42 <fo:table-body> 43 43 <fo:table-row> … … 61 61 <fo:table-row> 62 62 <fo:table-cell vertical-align="middle"> 63 <fo:block font- size="11pt" font-weight="bold">Wellbore:</fo:block>63 <fo:block font-weight="bold">Wellbore:</fo:block> 64 64 </fo:table-cell> 65 65 <fo:table-cell vertical-align="middle"> … … 89 89 </fo:table-cell> 90 90 <fo:table-cell vertical-align="middle"> 91 <fo:block font-size="11pt" font-weight="bold">91 <fo:block> 92 92 <fo:basic-link external-destination="url(http://rds.posccaesar.org/2008/02/XML/RDL/RDS328364064)" font-weight="bold">Created date:</fo:basic-link> 93 93 </fo:block> … … 186 186 </fo:table-cell> 187 187 <fo:table-cell vertical-align="middle"> 188 <fo:block font-size="11pt" font-weight="bold">188 <fo:block> 189 189 <fo:basic-link external-destination="url(http://www.posccaesar.org)" font-weight="bold">High pressure - High temperature</fo:basic-link> </fo:block> 190 190 </fo:table-cell> … … 855 855 </fo:table-cell> 856 856 <fo:table-cell> 857 <fo:block/> 858 </fo:table-cell> 859 <fo:table-cell> 860 <fo:block/> 857 <fo:block> 858 <fo:inline>1</fo:inline> 859 </fo:block> 860 </fo:table-cell> 861 <fo:table-cell> 862 <fo:block> 863 <fo:inline>1</fo:inline> 864 </fo:block> 861 865 </fo:table-cell> 862 866 <fo:table-cell> … … 871 875 </fo:table-cell> 872 876 <fo:table-cell> 873 <fo:block/> 877 <fo:block> 878 <fo:inline>3</fo:inline> 879 </fo:block> 874 880 </fo:table-cell> 875 881 <fo:table-cell> … … 916 922 </fo:table-cell> 917 923 <fo:table-cell> 918 <fo:block/> 919 </fo:table-cell> 920 <fo:table-cell> 921 <fo:block/> 924 <fo:block> 925 <fo:inline>3</fo:inline> 926 </fo:block> 927 </fo:table-cell> 928 <fo:table-cell> 929 <fo:block> 930 <fo:inline>2</fo:inline> 931 </fo:block> 922 932 </fo:table-cell> 923 933 <fo:table-cell> … … 932 942 </fo:table-cell> 933 943 <fo:table-cell> 934 <fo:block/> 944 <fo:block> 945 <fo:inline>5</fo:inline> 946 </fo:block> 935 947 </fo:table-cell> 936 948 <fo:table-cell> … … 1051 1063 </fo:table-cell> 1052 1064 <fo:table-cell> 1053 <fo:block/> 1054 </fo:table-cell> 1055 <fo:table-cell> 1056 <fo:block> 1057 <fo:inline>12:00</fo:inline> 1065 <fo:block> 1066 <fo:inline>Top</fo:inline> 1067 </fo:block> 1068 </fo:table-cell> 1069 <fo:table-cell> 1070 <fo:block> 1071 <fo:inline>14:00</fo:inline> 1058 1072 </fo:block> 1059 1073 </fo:table-cell> … … 1115 1129 </fo:table-cell> 1116 1130 <fo:table-cell> 1117 <fo:block/> 1118 </fo:table-cell> 1119 <fo:table-cell> 1120 <fo:block> 1121 <fo:inline>13:00</fo:inline> 1131 <fo:block> 1132 <fo:inline>Intermediate</fo:inline> 1133 </fo:block> 1134 </fo:table-cell> 1135 <fo:table-cell> 1136 <fo:block> 1137 <fo:inline>17:00</fo:inline> 1122 1138 </fo:block> 1123 1139 </fo:table-cell> … … 1179 1195 </fo:table-cell> 1180 1196 <fo:table-cell> 1181 <fo:block/> 1182 </fo:table-cell> 1183 <fo:table-cell> 1184 <fo:block> 1185 <fo:inline>15:00</fo:inline> 1197 <fo:block> 1198 <fo:inline>Production</fo:inline> 1199 </fo:block> 1200 </fo:table-cell> 1201 <fo:table-cell> 1202 <fo:block> 1203 <fo:inline>10:00</fo:inline> 1186 1204 </fo:block> 1187 1205 </fo:table-cell> … … 1305 1323 </fo:table-cell> 1306 1324 <fo:table-cell> 1307 <fo:block>Plug failed to bump</fo:block>1325 <fo:block>Plug bumped</fo:block> 1308 1326 </fo:table-cell> 1309 1327 <fo:table-cell> … … 1314 1332 </fo:table-cell> 1315 1333 <fo:table-cell> 1316 <fo:block>Float failed</fo:block>1334 <fo:block>Float held</fo:block> 1317 1335 </fo:table-cell> 1318 1336 <fo:table-cell> … … 1348 1366 <fo:table-cell> 1349 1367 <fo:block> 1350 <fo:inline> 1351 1352 Cement squeeze 1353 1354 </fo:inline> 1368 <fo:inline>squeeze</fo:inline> 1355 1369 </fo:block> 1356 1370 </fo:table-cell> … … 1486 1500 <fo:table-cell> 1487 1501 <fo:block> 1488 <fo:inline> 1489 1490 Spacer 1491 1492 </fo:inline> 1502 <fo:inline>Spacer</fo:inline> 1493 1503 </fo:block> 1494 1504 </fo:table-cell> … … 1610 1620 </fo:table-cell> 1611 1621 <fo:table-cell> 1612 <fo:block>Plug failed to bump</fo:block>1622 <fo:block>Plug bumped</fo:block> 1613 1623 </fo:table-cell> 1614 1624 <fo:table-cell> … … 1619 1629 </fo:table-cell> 1620 1630 <fo:table-cell> 1621 <fo:block>Float failed</fo:block>1631 <fo:block>Float held</fo:block> 1622 1632 </fo:table-cell> 1623 1633 <fo:table-cell> … … 1653 1663 <fo:table-cell> 1654 1664 <fo:block> 1655 <fo:inline> 1656 1657 Casing and liner 1658 1659 </fo:inline> 1665 <fo:inline>primary</fo:inline> 1660 1666 </fo:block> 1661 1667 </fo:table-cell> … … 1791 1797 <fo:table-cell> 1792 1798 <fo:block> 1793 <fo:inline> 1794 1795 Mud 1796 1797 </fo:inline> 1799 <fo:inline>Mud</fo:inline> 1798 1800 </fo:block> 1799 1801 </fo:table-cell> … … 1831 1833 <fo:block> 1832 1834 <fo:inline>2</fo:inline> 1835 </fo:block> 1836 </fo:table-cell> 1837 <fo:table-cell> 1838 <fo:block> 1839 <fo:inline>bla bla bla...</fo:inline> 1840 </fo:block> 1841 </fo:table-cell> 1842 </fo:table-row> 1843 <fo:table-row> 1844 <fo:table-cell> 1845 <fo:block> 1846 <fo:inline>Slurry</fo:inline> 1847 </fo:block> 1848 </fo:table-cell> 1849 <fo:table-cell> 1850 <fo:block> 1851 <fo:inline>bla bla bla...</fo:inline> 1852 </fo:block> 1853 </fo:table-cell> 1854 <fo:table-cell> 1855 <fo:block> 1856 <fo:inline>10</fo:inline> 1857 </fo:block> 1858 </fo:table-cell> 1859 <fo:table-cell> 1860 <fo:block> 1861 <fo:inline>24</fo:inline> 1862 </fo:block> 1863 </fo:table-cell> 1864 <fo:table-cell> 1865 <fo:block> 1866 <fo:inline>12</fo:inline> 1867 </fo:block> 1868 </fo:table-cell> 1869 <fo:table-cell> 1870 <fo:block> 1871 <fo:inline>12</fo:inline> 1872 </fo:block> 1873 </fo:table-cell> 1874 <fo:table-cell> 1875 <fo:block> 1876 <fo:inline>40</fo:inline> 1877 </fo:block> 1878 </fo:table-cell> 1879 <fo:table-cell> 1880 <fo:block> 1881 <fo:inline>3</fo:inline> 1882 </fo:block> 1883 </fo:table-cell> 1884 <fo:table-cell> 1885 <fo:block> 1886 <fo:inline>bla bla bla...</fo:inline> 1887 </fo:block> 1888 </fo:table-cell> 1889 </fo:table-row> 1890 <fo:table-row> 1891 <fo:table-cell> 1892 <fo:block> 1893 <fo:inline>Spacer</fo:inline> 1894 </fo:block> 1895 </fo:table-cell> 1896 <fo:table-cell> 1897 <fo:block> 1898 <fo:inline>bla bla bla...</fo:inline> 1899 </fo:block> 1900 </fo:table-cell> 1901 <fo:table-cell> 1902 <fo:block> 1903 <fo:inline>10</fo:inline> 1904 </fo:block> 1905 </fo:table-cell> 1906 <fo:table-cell> 1907 <fo:block> 1908 <fo:inline>24</fo:inline> 1909 </fo:block> 1910 </fo:table-cell> 1911 <fo:table-cell> 1912 <fo:block> 1913 <fo:inline>12</fo:inline> 1914 </fo:block> 1915 </fo:table-cell> 1916 <fo:table-cell> 1917 <fo:block> 1918 <fo:inline>12</fo:inline> 1919 </fo:block> 1920 </fo:table-cell> 1921 <fo:table-cell> 1922 <fo:block> 1923 <fo:inline>40</fo:inline> 1924 </fo:block> 1925 </fo:table-cell> 1926 <fo:table-cell> 1927 <fo:block> 1928 <fo:inline>3</fo:inline> 1833 1929 </fo:block> 1834 1930 </fo:table-cell> … … 2970 3066 <fo:block> 2971 3067 <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 2972 <fo:table-column column-width="proportional-column-width( 10)" column-number="1"/>2973 <fo:table-column column-width="proportional-column-width( 5)" column-number="2"/>2974 <fo:table-column column-width="proportional-column-width( 5)" column-number="3"/>2975 <fo:table-column column-width="proportional-column-width( 5)" column-number="4"/>3068 <fo:table-column column-width="proportional-column-width(6.25)" column-number="1"/> 3069 <fo:table-column column-width="proportional-column-width(6.25)" column-number="2"/> 3070 <fo:table-column column-width="proportional-column-width(6.25)" column-number="3"/> 3071 <fo:table-column column-width="proportional-column-width(6.25)" column-number="4"/> 2976 3072 <fo:table-column column-width="proportional-column-width(6.25)" column-number="5"/> 2977 3073 <fo:table-column column-width="proportional-column-width(6.25)" column-number="6"/> … … 3214 3310 <fo:block> 3215 3311 <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 3216 <fo:table-column column-width="proportional-column-width( 10)" column-number="1"/>3217 <fo:table-column column-width="proportional-column-width( 5)" column-number="2"/>3218 <fo:table-column column-width="proportional-column-width( 5)" column-number="3"/>3219 <fo:table-column column-width="proportional-column-width( 5)" column-number="4"/>3312 <fo:table-column column-width="proportional-column-width(6.25)" column-number="1"/> 3313 <fo:table-column column-width="proportional-column-width(6.25)" column-number="2"/> 3314 <fo:table-column column-width="proportional-column-width(6.25)" column-number="3"/> 3315 <fo:table-column column-width="proportional-column-width(6.25)" column-number="4"/> 3220 3316 <fo:table-column column-width="proportional-column-width(6.25)" column-number="5"/> 3221 3317 <fo:table-column column-width="proportional-column-width(6.25)" column-number="6"/> … … 3685 3781 <fo:table-cell> 3686 3782 <fo:block> 3687 <fo:inline> 02:00</fo:inline>3783 <fo:inline>2001-12-31T02:00</fo:inline> 3688 3784 </fo:block> 3689 3785 </fo:table-cell> -
projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_HTMLReport_transformation_2011_03_09.xfd
r152 r159 261 261 <fo:table-cell vertical-align="middle"> 262 262 <fo:block> 263 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='true' ">yes</xsl:if>264 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='false' ">no</xsl:if>263 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='true' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='1'">yes</xsl:if> 264 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='false' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='0'">no</xsl:if> 265 265 </fo:block> 266 266 </fo:table-cell> … … 270 270 <fo:table-cell vertical-align="middle"> 271 271 <fo:block> 272 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='true' ">yes</xsl:if>273 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='false' ">no</xsl:if>272 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='true' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='1'">yes</xsl:if> 273 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='false' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='0'">no</xsl:if> 274 274 </fo:block> 275 275 </fo:table-cell> … … 856 856 </fo:table-cell> 857 857 <fo:table-cell> 858 <fo:block>Hole made (run)</fo:block> 859 <fo:block> 860 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 861 </fo:block> 862 </fo:table-cell> 863 <fo:table-cell> 864 <fo:block>Hours drilled (run)</fo:block> 865 <fo:block> 866 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 867 </fo:block> 868 </fo:table-cell> 869 <fo:table-cell> 870 <fo:block>ROP</fo:block> 871 <fo:block> 872 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom"/> 873 </fo:block> 874 </fo:table-cell> 875 <fo:table-cell> 876 <fo:block>Total hole made</fo:block> 877 <fo:block> 878 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom"/> 879 </fo:block> 880 </fo:table-cell> 881 <fo:table-cell> 882 <fo:block>Total hours drilled</fo:block> 883 <fo:block> 884 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom"/> 885 </fo:block> 886 </fo:table-cell> 887 <fo:table-cell> 888 <fo:block>Total ROP</fo:block> 889 <fo:block> 890 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropMx/@uom"/> 891 </fo:block> 892 </fo:table-cell> 893 <fo:table-cell> 858 894 <fo:block>Dull grade</fo:block> 859 </fo:table-cell>860 <fo:table-cell>861 <fo:block>Hole made (run)</fo:block>862 <fo:block>863 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/>864 </fo:block>865 </fo:table-cell>866 <fo:table-cell>867 <fo:block>Hours drilled (run)</fo:block>868 <fo:block>869 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/>870 </fo:block>871 </fo:table-cell>872 <fo:table-cell>873 <fo:block>ROP</fo:block>874 <fo:block>875 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom"/>876 </fo:block>877 </fo:table-cell>878 <fo:table-cell>879 <fo:block>Total hole made</fo:block>880 <fo:block>881 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom"/>882 </fo:block>883 </fo:table-cell>884 <fo:table-cell>885 <fo:block>Total hours drilled</fo:block>886 <fo:block>887 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom"/>888 </fo:block>889 </fo:table-cell>890 <fo:table-cell>891 <fo:block>Total ROP</fo:block>892 <fo:block>893 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropMx/@uom"/>894 </fo:block>895 895 </fo:table-cell> 896 896 </fo:table-row> … … 928 928 <fo:table-cell> 929 929 <fo:block> 930 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/> 931 </fo:block> 932 </fo:table-cell> 933 <fo:table-cell> 934 <fo:block> 935 <xfd:field xpath="witsml:bitRun/witsml:eTimOpBit"/> 936 </fo:block> 937 </fo:table-cell> 938 <fo:table-cell> 939 <fo:block> 940 <xfd:field xpath="witsml:bitRun/witsml:ropAv"/> 941 </fo:block> 942 </fo:table-cell> 943 <fo:table-cell> 944 <fo:block> 945 <xfd:field xpath="witsml:bitRun/witsml:mdTotHoleMade"/> 946 </fo:block> 947 </fo:table-cell> 948 <fo:table-cell> 949 <fo:block> 950 <xfd:field xpath="witsml:bitRun/witsml:totHrsDrilled"/> 951 </fo:block> 952 </fo:table-cell> 953 <fo:table-cell> 954 <fo:block> 955 <xfd:field xpath="witsml:bitRun/witsml:ropMx"/> 956 </fo:block> 957 </fo:table-cell> 958 <fo:table-cell> 959 <fo:block> 930 960 <xfd:field xpath="witsml:dullGrade"/> 931 </fo:block>932 </fo:table-cell>933 <fo:table-cell>934 <fo:block>935 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/>936 </fo:block>937 </fo:table-cell>938 <fo:table-cell>939 <fo:block>940 <xfd:field xpath="witsml:bit/Run/witsml:eTimOpBit"/>941 </fo:block>942 </fo:table-cell>943 <fo:table-cell>944 <fo:block>945 <xfd:field xpath="witsml:ropAv"/>946 </fo:block>947 </fo:table-cell>948 <fo:table-cell>949 <fo:block>950 <xfd:field xpath="witsml:bitRun/witsml:mdTotHoleMade"/>951 </fo:block>952 </fo:table-cell>953 <fo:table-cell>954 <fo:block>955 <xfd:field xpath="witsml:bitRun/witsml:totHrsDrilled"/>956 </fo:block>957 </fo:table-cell>958 <fo:table-cell>959 <fo:block>960 <xfd:field xpath="witsml:ropMx"/>961 961 </fo:block> 962 962 </fo:table-cell> … … 1071 1071 <fo:table-cell> 1072 1072 <fo:block> 1073 <xsl:variable name="element_casing" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='stimStageType']/xsd:restriction"/> 1074 <xsl:variable name="casingTypes" select="witsml:casing_liner_tubing_run/witsml:kind"/> 1075 <xfd:field xpath="$element_casing//xsd:enumeration[@value=$casingTypes]"/> 1076 </fo:block> 1077 </fo:table-cell> 1078 <fo:table-cell> 1079 <fo:block> 1080 <xfd:field xpath="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 1073 <xfd:field xpath="witsml:casing_liner_tubing_run/witsml:tubularJobType"/> 1074 </fo:block> 1075 </fo:table-cell> 1076 <fo:table-cell> 1077 <fo:block> 1078 <xfd:field xpath="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T')"/> 1081 1079 </fo:block> 1082 1080 </fo:table-cell> … … 1200 1198 </fo:table-cell> 1201 1199 <fo:table-cell> 1202 <fo:block>Plug failed to bump</fo:block>1200 <fo:block>Plug bumped</fo:block> 1203 1201 </fo:table-cell> 1204 1202 <fo:table-cell> … … 1209 1207 </fo:table-cell> 1210 1208 <fo:table-cell> 1211 <fo:block>Float failed</fo:block>1209 <fo:block>Float held</fo:block> 1212 1210 </fo:table-cell> 1213 1211 <fo:table-cell> … … 1243 1241 <fo:table-cell> 1244 1242 <fo:block> 1245 <xsl:variable name="element_jobTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='cementJobTypes']/xsd:restriction"/> 1246 <xsl:variable name="jobTypes" select="witsml:jobType"/> 1247 <xfd:field xpath="$element_jobTypes//xsd:enumeration[@value=$jobTypes]"/> 1243 <xfd:field xpath="witsml:jobType"/> 1248 1244 </fo:block> 1249 1245 </fo:table-cell> … … 1260 1256 <fo:table-cell> 1261 1257 <fo:block> 1262 <xsl:if test="witsml:topPlug='true' ">yes</xsl:if>1263 <xsl:if test="witsml:topPlug='false' ">no</xsl:if>1264 </fo:block> 1265 </fo:table-cell> 1266 <fo:table-cell> 1267 <fo:block> 1268 <xsl:if test="witsml:botPlug='true' ">yes</xsl:if>1269 <xsl:if test="witsml:botPlug='false' ">no</xsl:if>1270 </fo:block> 1271 </fo:table-cell> 1272 <fo:table-cell> 1273 <fo:block> 1274 <xsl:if test="witsml:plugBumped='true' ">yes</xsl:if>1275 <xsl:if test="witsml:plugBumped='false' ">no</xsl:if>1258 <xsl:if test="witsml:topPlug='true' or witsml:topPlug='1'">yes</xsl:if> 1259 <xsl:if test="witsml:topPlug='false' or witsml:topPlug='0'">no</xsl:if> 1260 </fo:block> 1261 </fo:table-cell> 1262 <fo:table-cell> 1263 <fo:block> 1264 <xsl:if test="witsml:botPlug='true' or witsml:botPlug='1'">yes</xsl:if> 1265 <xsl:if test="witsml:botPlug='false' or witsml:botPlug='0'">no</xsl:if> 1266 </fo:block> 1267 </fo:table-cell> 1268 <fo:table-cell> 1269 <fo:block> 1270 <xsl:if test="witsml:plugBumped='true' or witsml:plugBumped='1'">yes</xsl:if> 1271 <xsl:if test="witsml:plugBumped='false' or witsml:plugBumped='0'">no</xsl:if> 1276 1272 </fo:block> 1277 1273 </fo:table-cell> … … 1283 1279 <fo:table-cell> 1284 1280 <fo:block> 1285 <xsl:if test="witsml:floatHeld='true' ">yes</xsl:if>1286 <xsl:if test="witsml:floatHeld='false' ">no</xsl:if>1281 <xsl:if test="witsml:floatHeld='true' or witsml:floatHeld='1'">yes</xsl:if> 1282 <xsl:if test="witsml:floatHeld='false' or witsml:floatHeld='0'">no</xsl:if> 1287 1283 </fo:block> 1288 1284 </fo:table-cell> … … 1294 1290 <fo:table-cell> 1295 1291 <fo:block> 1296 <xsl:if test="witsml:annFlowAfter='true' ">yes</xsl:if>1297 <xsl:if test="witsml:annFlowAfter='false' ">no</xsl:if>1292 <xsl:if test="witsml:annFlowAfter='true' or witsml:annFlowAfter='1'">yes</xsl:if> 1293 <xsl:if test="witsml:annFlowAfter='false' or witsml:annFlowAfter='0'">no</xsl:if> 1298 1294 </fo:block> 1299 1295 </fo:table-cell> … … 1305 1301 <fo:table-cell> 1306 1302 <fo:block> 1307 <xsl:if test="witsml:reciprocated='true' ">yes</xsl:if>1308 <xsl:if test="witsml:reciprocated='false' ">no</xsl:if>1309 </fo:block> 1310 </fo:table-cell> 1311 <fo:table-cell> 1312 <fo:block> 1313 <xsl:if test="witsml:rotated='true' ">yes</xsl:if>1314 <xsl:if test="witsml:rotated='false' ">no</xsl:if>1303 <xsl:if test="witsml:reciprocated='true' or witsml:reciprocated='1'">yes</xsl:if> 1304 <xsl:if test="witsml:reciprocated='false' or witsml:reciprocated='0'">no</xsl:if> 1305 </fo:block> 1306 </fo:table-cell> 1307 <fo:table-cell> 1308 <fo:block> 1309 <xsl:if test="witsml:rotated='true' or witsml:rotated='1'">yes</xsl:if> 1310 <xsl:if test="witsml:rotated='false' or witsml:rotated='0'">no</xsl:if> 1315 1311 </fo:block> 1316 1312 </fo:table-cell> … … 1399 1395 <fo:table-cell> 1400 1396 <fo:block> 1401 <xsl:variable name="element_fluidTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='fluidTypes']/xsd:restriction"/> 1402 <xsl:variable name="fluidTypes" select="witsml:typeFluid"/> 1403 <xfd:field xpath="$element_fluidTypes//xsd:enumeration[@value=$fluidTypes]"/> 1397 <xfd:field xpath="witsml:typeFluid"/> 1404 1398 </fo:block> 1405 1399 </fo:table-cell> … … 2412 2406 <fo:table-cell> 2413 2407 <fo:block> 2414 <xsl:if test="witsml:goodSeal='true' ">yes</xsl:if>2415 <xsl:if test="witsml:goodSeal='false' ">no</xsl:if>2408 <xsl:if test="witsml:goodSeal='true' or witsml:goodSeal='1'">yes</xsl:if> 2409 <xsl:if test="witsml:goodSeal='false' or witsml:goodSeal='0'">no</xsl:if> 2416 2410 </fo:block> 2417 2411 </fo:table-cell> -
projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_HTMLReport_transformation_2011_03_09.xsl
r152 r159 2 2 <xslt:stylesheet xmlns:date="http://exslt.org/dates-and-times" xmlns:str="http://exslt.org/strings" xmlns:xslt="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:xfd="http://www.ecrion.com/xfd/1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:witsml="http://www.witsml.org/schemas/1series" xmlns:sawsdl="http://www.w3.org/ns/sawsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" extension-element-prefixes="date str"> 3 3 <xslt:output indent="yes" encoding="utf-8"/> 4 <xslt:param name="XFCrtLocalDate">2011-03- 22</xslt:param>5 <xslt:param name="XFCrtLocalTime">1 4:27:24</xslt:param>6 <xslt:param name="XFCrtLocalDateTime">2011-03- 22T14:27:24</xslt:param>7 <xslt:param name="XFCrtUTCDate">2011-03- 22</xslt:param>8 <xslt:param name="XFCrtUTCTime"> 13:27:24</xslt:param>9 <xslt:param name="XFCrtUTCDateTime">2011-03- 22T13:27:24</xslt:param>4 <xslt:param name="XFCrtLocalDate">2011-03-30</xslt:param> 5 <xslt:param name="XFCrtLocalTime">10:29:36</xslt:param> 6 <xslt:param name="XFCrtLocalDateTime">2011-03-30T10:29:36</xslt:param> 7 <xslt:param name="XFCrtUTCDate">2011-03-30</xslt:param> 8 <xslt:param name="XFCrtUTCTime">08:29:36</xslt:param> 9 <xslt:param name="XFCrtUTCDateTime">2011-03-30T08:29:36</xslt:param> 10 10 <xslt:param name="XFOutputFormat"/> 11 11 <!-- … … 312 312 <fo:table-cell vertical-align="middle"> 313 313 <fo:block> 314 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='true' ">yes</xsl:if>315 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='false' ">no</xsl:if>314 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='true' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='1'">yes</xsl:if> 315 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='false' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='0'">no</xsl:if> 316 316 </fo:block> 317 317 </fo:table-cell> … … 321 321 <fo:table-cell vertical-align="middle"> 322 322 <fo:block> 323 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='true' ">yes</xsl:if>324 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='false' ">no</xsl:if>323 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='true' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='1'">yes</xsl:if> 324 <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='false' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='0'">no</xsl:if> 325 325 </fo:block> 326 326 </fo:table-cell> … … 1005 1005 </fo:table-cell> 1006 1006 <fo:table-cell> 1007 <fo:block>Dull grade</fo:block>1008 </fo:table-cell>1009 <fo:table-cell>1010 1007 <fo:block>Hole made (run)</fo:block> 1011 1008 <fo:block> … … 1054 1051 </fo:inline></xsl:if> 1055 1052 </fo:block> 1053 </fo:table-cell> 1054 <fo:table-cell> 1055 <fo:block>Dull grade</fo:block> 1056 1056 </fo:table-cell> 1057 1057 </fo:table-row> … … 1102 1102 <fo:table-cell> 1103 1103 <fo:block> 1104 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart)"><fo:inline> 1105 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/> 1106 </fo:inline></xsl:if> 1107 </fo:block> 1108 </fo:table-cell> 1109 <fo:table-cell> 1110 <fo:block> 1111 <xsl:if test="string(witsml:bitRun/witsml:eTimOpBit)"><fo:inline> 1112 <xsl:value-of select="witsml:bitRun/witsml:eTimOpBit"/> 1113 </fo:inline></xsl:if> 1114 </fo:block> 1115 </fo:table-cell> 1116 <fo:table-cell> 1117 <fo:block> 1118 <xsl:if test="string(witsml:bitRun/witsml:ropAv)"><fo:inline> 1119 <xsl:value-of select="witsml:bitRun/witsml:ropAv"/> 1120 </fo:inline></xsl:if> 1121 </fo:block> 1122 </fo:table-cell> 1123 <fo:table-cell> 1124 <fo:block> 1125 <xsl:if test="string(witsml:bitRun/witsml:mdTotHoleMade)"><fo:inline> 1126 <xsl:value-of select="witsml:bitRun/witsml:mdTotHoleMade"/> 1127 </fo:inline></xsl:if> 1128 </fo:block> 1129 </fo:table-cell> 1130 <fo:table-cell> 1131 <fo:block> 1132 <xsl:if test="string(witsml:bitRun/witsml:totHrsDrilled)"><fo:inline> 1133 <xsl:value-of select="witsml:bitRun/witsml:totHrsDrilled"/> 1134 </fo:inline></xsl:if> 1135 </fo:block> 1136 </fo:table-cell> 1137 <fo:table-cell> 1138 <fo:block> 1139 <xsl:if test="string(witsml:bitRun/witsml:ropMx)"><fo:inline> 1140 <xsl:value-of select="witsml:bitRun/witsml:ropMx"/> 1141 </fo:inline></xsl:if> 1142 </fo:block> 1143 </fo:table-cell> 1144 <fo:table-cell> 1145 <fo:block> 1104 1146 <xsl:if test="string(witsml:dullGrade)"><fo:inline> 1105 1147 <xsl:value-of select="witsml:dullGrade"/> 1106 </fo:inline></xsl:if>1107 </fo:block>1108 </fo:table-cell>1109 <fo:table-cell>1110 <fo:block>1111 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart)"><fo:inline>1112 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/>1113 </fo:inline></xsl:if>1114 </fo:block>1115 </fo:table-cell>1116 <fo:table-cell>1117 <fo:block>1118 <xsl:if test="string(witsml:bit/Run/witsml:eTimOpBit)"><fo:inline>1119 <xsl:value-of select="witsml:bit/Run/witsml:eTimOpBit"/>1120 </fo:inline></xsl:if>1121 </fo:block>1122 </fo:table-cell>1123 <fo:table-cell>1124 <fo:block>1125 <xsl:if test="string(witsml:ropAv)"><fo:inline>1126 <xsl:value-of select="witsml:ropAv"/>1127 </fo:inline></xsl:if>1128 </fo:block>1129 </fo:table-cell>1130 <fo:table-cell>1131 <fo:block>1132 <xsl:if test="string(witsml:bitRun/witsml:mdTotHoleMade)"><fo:inline>1133 <xsl:value-of select="witsml:bitRun/witsml:mdTotHoleMade"/>1134 </fo:inline></xsl:if>1135 </fo:block>1136 </fo:table-cell>1137 <fo:table-cell>1138 <fo:block>1139 <xsl:if test="string(witsml:bitRun/witsml:totHrsDrilled)"><fo:inline>1140 <xsl:value-of select="witsml:bitRun/witsml:totHrsDrilled"/>1141 </fo:inline></xsl:if>1142 </fo:block>1143 </fo:table-cell>1144 <fo:table-cell>1145 <fo:block>1146 <xsl:if test="string(witsml:ropMx)"><fo:inline>1147 <xsl:value-of select="witsml:ropMx"/>1148 1148 </fo:inline></xsl:if> 1149 1149 </fo:block> … … 1275 1275 <fo:table-cell> 1276 1276 <fo:block> 1277 <xsl:variable name="element_casing" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='stimStageType']/xsd:restriction"/> 1278 <xsl:variable name="casingTypes" select="witsml:casing_liner_tubing_run/witsml:kind"/> 1279 <xsl:if test="string($element_casing//xsd:enumeration[@value=$casingTypes])"><fo:inline> 1280 <xsl:value-of select="$element_casing//xsd:enumeration[@value=$casingTypes]"/> 1281 </fo:inline></xsl:if> 1282 </fo:block> 1283 </fo:table-cell> 1284 <fo:table-cell> 1285 <fo:block> 1286 <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T'))"><fo:inline> 1287 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 1277 <xsl:if test="string(witsml:casing_liner_tubing_run/witsml:tubularJobType)"><fo:inline> 1278 <xsl:value-of select="witsml:casing_liner_tubing_run/witsml:tubularJobType"/> 1279 </fo:inline></xsl:if> 1280 </fo:block> 1281 </fo:table-cell> 1282 <fo:table-cell> 1283 <fo:block> 1284 <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T'))"><fo:inline> 1285 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T')"/> 1288 1286 </fo:inline></xsl:if> 1289 1287 </fo:block> … … 1430 1428 </fo:table-cell> 1431 1429 <fo:table-cell> 1432 <fo:block>Plug failed to bump</fo:block>1430 <fo:block>Plug bumped</fo:block> 1433 1431 </fo:table-cell> 1434 1432 <fo:table-cell> … … 1441 1439 </fo:table-cell> 1442 1440 <fo:table-cell> 1443 <fo:block>Float failed</fo:block>1441 <fo:block>Float held</fo:block> 1444 1442 </fo:table-cell> 1445 1443 <fo:table-cell> … … 1481 1479 <fo:table-cell> 1482 1480 <fo:block> 1483 <xsl:variable name="element_jobTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='cementJobTypes']/xsd:restriction"/> 1484 <xsl:variable name="jobTypes" select="witsml:jobType"/> 1485 <xsl:if test="string($element_jobTypes//xsd:enumeration[@value=$jobTypes])"><fo:inline> 1486 <xsl:value-of select="$element_jobTypes//xsd:enumeration[@value=$jobTypes]"/> 1481 <xsl:if test="string(witsml:jobType)"><fo:inline> 1482 <xsl:value-of select="witsml:jobType"/> 1487 1483 </fo:inline></xsl:if> 1488 1484 </fo:block> … … 1504 1500 <fo:table-cell> 1505 1501 <fo:block> 1506 <xsl:if test="witsml:topPlug='true' ">yes</xsl:if>1507 <xsl:if test="witsml:topPlug='false' ">no</xsl:if>1508 </fo:block> 1509 </fo:table-cell> 1510 <fo:table-cell> 1511 <fo:block> 1512 <xsl:if test="witsml:botPlug='true' ">yes</xsl:if>1513 <xsl:if test="witsml:botPlug='false' ">no</xsl:if>1514 </fo:block> 1515 </fo:table-cell> 1516 <fo:table-cell> 1517 <fo:block> 1518 <xsl:if test="witsml:plugBumped='true' ">yes</xsl:if>1519 <xsl:if test="witsml:plugBumped='false' ">no</xsl:if>1502 <xsl:if test="witsml:topPlug='true' or witsml:topPlug='1'">yes</xsl:if> 1503 <xsl:if test="witsml:topPlug='false' or witsml:topPlug='0'">no</xsl:if> 1504 </fo:block> 1505 </fo:table-cell> 1506 <fo:table-cell> 1507 <fo:block> 1508 <xsl:if test="witsml:botPlug='true' or witsml:botPlug='1'">yes</xsl:if> 1509 <xsl:if test="witsml:botPlug='false' or witsml:botPlug='0'">no</xsl:if> 1510 </fo:block> 1511 </fo:table-cell> 1512 <fo:table-cell> 1513 <fo:block> 1514 <xsl:if test="witsml:plugBumped='true' or witsml:plugBumped='1'">yes</xsl:if> 1515 <xsl:if test="witsml:plugBumped='false' or witsml:plugBumped='0'">no</xsl:if> 1520 1516 </fo:block> 1521 1517 </fo:table-cell> … … 1529 1525 <fo:table-cell> 1530 1526 <fo:block> 1531 <xsl:if test="witsml:floatHeld='true' ">yes</xsl:if>1532 <xsl:if test="witsml:floatHeld='false' ">no</xsl:if>1527 <xsl:if test="witsml:floatHeld='true' or witsml:floatHeld='1'">yes</xsl:if> 1528 <xsl:if test="witsml:floatHeld='false' or witsml:floatHeld='0'">no</xsl:if> 1533 1529 </fo:block> 1534 1530 </fo:table-cell> … … 1542 1538 <fo:table-cell> 1543 1539 <fo:block> 1544 <xsl:if test="witsml:annFlowAfter='true' ">yes</xsl:if>1545 <xsl:if test="witsml:annFlowAfter='false' ">no</xsl:if>1540 <xsl:if test="witsml:annFlowAfter='true' or witsml:annFlowAfter='1'">yes</xsl:if> 1541 <xsl:if test="witsml:annFlowAfter='false' or witsml:annFlowAfter='0'">no</xsl:if> 1546 1542 </fo:block> 1547 1543 </fo:table-cell> … … 1555 1551 <fo:table-cell> 1556 1552 <fo:block> 1557 <xsl:if test="witsml:reciprocated='true' ">yes</xsl:if>1558 <xsl:if test="witsml:reciprocated='false' ">no</xsl:if>1559 </fo:block> 1560 </fo:table-cell> 1561 <fo:table-cell> 1562 <fo:block> 1563 <xsl:if test="witsml:rotated='true' ">yes</xsl:if>1564 <xsl:if test="witsml:rotated='false' ">no</xsl:if>1553 <xsl:if test="witsml:reciprocated='true' or witsml:reciprocated='1'">yes</xsl:if> 1554 <xsl:if test="witsml:reciprocated='false' or witsml:reciprocated='0'">no</xsl:if> 1555 </fo:block> 1556 </fo:table-cell> 1557 <fo:table-cell> 1558 <fo:block> 1559 <xsl:if test="witsml:rotated='true' or witsml:rotated='1'">yes</xsl:if> 1560 <xsl:if test="witsml:rotated='false' or witsml:rotated='0'">no</xsl:if> 1565 1561 </fo:block> 1566 1562 </fo:table-cell> … … 1662 1658 <fo:table-cell> 1663 1659 <fo:block> 1664 <xsl:variable name="element_fluidTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='fluidTypes']/xsd:restriction"/> 1665 <xsl:variable name="fluidTypes" select="witsml:typeFluid"/> 1666 <xsl:if test="string($element_fluidTypes//xsd:enumeration[@value=$fluidTypes])"><fo:inline> 1667 <xsl:value-of select="$element_fluidTypes//xsd:enumeration[@value=$fluidTypes]"/> 1660 <xsl:if test="string(witsml:typeFluid)"><fo:inline> 1661 <xsl:value-of select="witsml:typeFluid"/> 1668 1662 </fo:inline></xsl:if> 1669 1663 </fo:block> … … 2840 2834 <fo:table-cell> 2841 2835 <fo:block> 2842 <xsl:if test="witsml:goodSeal='true' ">yes</xsl:if>2843 <xsl:if test="witsml:goodSeal='false' ">no</xsl:if>2836 <xsl:if test="witsml:goodSeal='true' or witsml:goodSeal='1'">yes</xsl:if> 2837 <xsl:if test="witsml:goodSeal='false' or witsml:goodSeal='0'">no</xsl:if> 2844 2838 </fo:block> 2845 2839 </fo:table-cell>