dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17698
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7145: Removed redundant sdmx2dxf2 transform from importexport
------------------------------------------------------------
revno: 7145
committer: Bob Jolliffe <bobjolliffe@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-06-01 22:54:20 +0100
message:
Removed redundant sdmx2dxf2 transform from importexport
removed:
dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/cross2dxf2.xsl
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== removed file 'dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/cross2dxf2.xsl'
--- dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/cross2dxf2.xsl 2011-12-30 15:49:52 +0000
+++ dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/cross2dxf2.xsl 1970-01-01 00:00:00 +0000
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:d="http://dhis2.org/schema/dxf/2.0"
- version="1.0">
-
- <xsl:output method="xml" indent="yes" />
-
- <xsl:template match="/">
- <d:dxf>
- <d:dataValueSets>
- <xsl:for-each select="//*[local-name()='Group']">
- <xsl:variable name="dataset"
- select="substring-before(substring-after(substring-after(namespace-uri(),'='),':'),':')"/>
- <xsl:variable name="period" select="@*[local-name()='TIME_PERIOD']"/>
- <d:dataValueSet period='{$period}' idScheme='CODE' dataset='{$dataset}'>
-
- <xsl:for-each select="*[local-name()='Section']">
- <xsl:for-each select="*[local-name()='OBS_VALUE']">
- <xsl:variable name="orgunit" select="@*[local-name()='FACILITY']"/>
- <xsl:variable name="dataElement" select="@*[local-name()='DATAELEMENT']"/>
- <xsl:variable name="value" select="@*[local-name()='value']"/>
- <d:dataValue dataElement='{$dataElement}' orgunit='{$orgunit}' value='{$value}' />
- </xsl:for-each>
- </xsl:for-each>
- </d:dataValueSet>
- </xsl:for-each>
- </d:dataValueSets>
- </d:dxf>
- </xsl:template>
-
-</xsl:stylesheet>