------------------------------------------------------------
revno: 3494
committer: Bob Joliffe <[email protected]>
branch nick: dhis2
timestamp: Fri 2011-04-29 12:04:43 +0100
message:
  For those who steadfastly refuse to understand case.  A Name is a NAME is a 
name :-)
modified:
  
dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/gml2dxf.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
=== modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/gml2dxf.xsl'
--- dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/gml2dxf.xsl	2010-08-30 16:10:53 +0000
+++ dhis-2/dhis-services/dhis-service-importexport/src/main/resources/transform/gml2dxf.xsl	2011-04-29 11:04:43 +0000
@@ -44,11 +44,12 @@
 </xsl:template>
 
 <xsl:template match="gml:featureMember">
+  <xsl:variable name="name" select=".//*[local-name()='Name' or local-name()='NAME' or local-name()='name']"/>
   <organisationUnit>
     <id>0</id>
     <uuid/>
-    <name><xsl:value-of select=".//*[local-name()='Name']"/></name>
-    <shortName><xsl:value-of select=".//*[local-name()='Name']"/></shortName>
+    <name><xsl:value-of select="$name"/></name>
+    <shortName><xsl:value-of select="$name"/></shortName>
     <code/>
     <openingDate/>
     <closedDate/>

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to