David Price

Improved DPR1 XSL and added testcase info code will add

......@@ -46,7 +46,7 @@
sm:nodeX 623 ;
sm:nodeY 9 ;
sm:outputVariable "input"^^xsd:string ;
sml:sourceFilePath "/www-test.reportinghub.no/dpr1/testcases/Field Vega - BAA Vega/Daily Production Vega Unit 2012-10-14.xml"^^xsd:string .
sml:sourceFilePath "/www.reportinghub.no/test/dpr/testcase/Field Vega - BAA Vega/tqedits/Daily Production Vega Unit 2012-10-14-ONE-FLOW.xml"^^xsd:string .
:SaveTransformResult
rdf:type sml:ExportToTextFile ;
......
......@@ -3,6 +3,8 @@
<documentInfo>
<DocumentName namingSystem="EC">Daily Production Vega Unit</DocumentName>
<DocumentAlias namingSystem="EC">Daily Production and Operation Report</DocumentAlias>
<DocumentAlias namingSystem="ERHFIELDID">4467595</DocumentAlias>
<DocumentAlias namingSystem="ERHFIELDNAME">VEGA</DocumentAlias>
<DocumentDate>2012-10-14T00:00:00</DocumentDate>
<documentClass namingSystem="EC">DPOR</documentClass>
<documentClass namingSystem="EC">DPR</documentClass>
......
......@@ -7,6 +7,9 @@
<xsl:strip-space elements="*"/>
<xsl:output indent="yes"/>
<xsl:variable name="fieldname" select="/dpr:WITSMLComposite/dpr:documentInfo/dpr:DocumentAlias[@namingSystem='ERHFIELDNAME']" />
<xsl:variable name="fieldid" select="/dpr:WITSMLComposite/dpr:documentInfo/dpr:DocumentAlias[@namingSystem='ERHFIELDID']" />
<!-- WITSMLComposite -> objects -->
<xsl:template match="dpr:WITSMLComposite">
......@@ -33,7 +36,15 @@
<title>Vega DPRM</title>
<date>2012-10-14</date>
<reportStatus>final</reportStatus>
<installation kind="field" namingSystem="NPD" uidRef="4467595">VEGA</installation>
<xsl:element name="installation">
<xsl:attribute name="kind">field</xsl:attribute>
<xsl:attribute name="namingSystem">NPD</xsl:attribute>
<xsl:attribute name="uidRef">
<xsl:value-of select="$fieldid" />
</xsl:attribute>
<xsl:value-of select="$fieldname" />
</xsl:element>
</xsl:element>
</xsl:template>
......