Showing
3 changed files
with
15 additions
and
2 deletions
| ... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
| 46 | sm:nodeX 623 ; | 46 | sm:nodeX 623 ; |
| 47 | sm:nodeY 9 ; | 47 | sm:nodeY 9 ; |
| 48 | sm:outputVariable "input"^^xsd:string ; | 48 | sm:outputVariable "input"^^xsd:string ; |
| 49 | - sml:sourceFilePath "/www-test.reportinghub.no/dpr1/testcases/Field Vega - BAA Vega/Daily Production Vega Unit 2012-10-14.xml"^^xsd:string . | 49 | + 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 . |
| 50 | 50 | ||
| 51 | :SaveTransformResult | 51 | :SaveTransformResult |
| 52 | rdf:type sml:ExportToTextFile ; | 52 | rdf:type sml:ExportToTextFile ; | ... | ... |
| ... | @@ -3,6 +3,8 @@ | ... | @@ -3,6 +3,8 @@ |
| 3 | <documentInfo> | 3 | <documentInfo> |
| 4 | <DocumentName namingSystem="EC">Daily Production Vega Unit</DocumentName> | 4 | <DocumentName namingSystem="EC">Daily Production Vega Unit</DocumentName> |
| 5 | <DocumentAlias namingSystem="EC">Daily Production and Operation Report</DocumentAlias> | 5 | <DocumentAlias namingSystem="EC">Daily Production and Operation Report</DocumentAlias> |
| 6 | +<DocumentAlias namingSystem="ERHFIELDID">4467595</DocumentAlias> | ||
| 7 | +<DocumentAlias namingSystem="ERHFIELDNAME">VEGA</DocumentAlias> | ||
| 6 | <DocumentDate>2012-10-14T00:00:00</DocumentDate> | 8 | <DocumentDate>2012-10-14T00:00:00</DocumentDate> |
| 7 | <documentClass namingSystem="EC">DPOR</documentClass> | 9 | <documentClass namingSystem="EC">DPOR</documentClass> |
| 8 | <documentClass namingSystem="EC">DPR</documentClass> | 10 | <documentClass namingSystem="EC">DPR</documentClass> | ... | ... |
| ... | @@ -7,6 +7,9 @@ | ... | @@ -7,6 +7,9 @@ |
| 7 | <xsl:strip-space elements="*"/> | 7 | <xsl:strip-space elements="*"/> |
| 8 | <xsl:output indent="yes"/> | 8 | <xsl:output indent="yes"/> |
| 9 | 9 | ||
| 10 | + <xsl:variable name="fieldname" select="/dpr:WITSMLComposite/dpr:documentInfo/dpr:DocumentAlias[@namingSystem='ERHFIELDNAME']" /> | ||
| 11 | + <xsl:variable name="fieldid" select="/dpr:WITSMLComposite/dpr:documentInfo/dpr:DocumentAlias[@namingSystem='ERHFIELDID']" /> | ||
| 12 | + | ||
| 10 | <!-- WITSMLComposite -> objects --> | 13 | <!-- WITSMLComposite -> objects --> |
| 11 | 14 | ||
| 12 | <xsl:template match="dpr:WITSMLComposite"> | 15 | <xsl:template match="dpr:WITSMLComposite"> |
| ... | @@ -33,7 +36,15 @@ | ... | @@ -33,7 +36,15 @@ |
| 33 | <title>Vega DPRM</title> | 36 | <title>Vega DPRM</title> |
| 34 | <date>2012-10-14</date> | 37 | <date>2012-10-14</date> |
| 35 | <reportStatus>final</reportStatus> | 38 | <reportStatus>final</reportStatus> |
| 36 | - <installation kind="field" namingSystem="NPD" uidRef="4467595">VEGA</installation> | 39 | + <xsl:element name="installation"> |
| 40 | + <xsl:attribute name="kind">field</xsl:attribute> | ||
| 41 | + <xsl:attribute name="namingSystem">NPD</xsl:attribute> | ||
| 42 | + <xsl:attribute name="uidRef"> | ||
| 43 | + <xsl:value-of select="$fieldid" /> | ||
| 44 | + </xsl:attribute> | ||
| 45 | + <xsl:value-of select="$fieldname" /> | ||
| 46 | + </xsl:element> | ||
| 47 | + | ||
| 37 | </xsl:element> | 48 | </xsl:element> |
| 38 | 49 | ||
| 39 | </xsl:template> | 50 | </xsl:template> | ... | ... |
-
Please register or login to post a comment