~bobjolliffe/+junk/sdmx-hd

« back to all changes in this revision

Viewing changes to xslt/dxf2dsd.xsl

  • Committer: Bob Jolliffe
  • Date: 2010-05-28 14:56:55 UTC
  • Revision ID: bobj@bobj-laptop-20100528145655-oeouj3e0alcuijd2
Fixed xslt to generate dsd with value_type

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
                                                years</structure:Description>
278
278
                                </structure:Code>
279
279
                        </structure:CodeList>
 
280
                        
 
281
                        <!-- 
 
282
                                sdmx-hd value types (TODO: should be included from standard codelists as href 
 
283
                                rather than cut and paste as here )
 
284
                        -->
 
285
                        <structure:CodeList id="CL_VALUE_TYPE" agencyID="SDMX-HD" version="1.0" isFinal="true" 
 
286
                                urn="urn:sdmx:org.sdmx.infomodel.codelist.CodeList=SDMX-HD:CL_VALUE_TYPE[1.0]" >
 
287
                                <structure:Name xml:lang="en">Value Type</structure:Name>
 
288
                                <structure:Description xml:lang="en">This distinguishes between targets and
 
289
                                        values.</structure:Description>
 
290
                                <structure:Code value="0"
 
291
                                        urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=SDMX-HD:CL_VALUE_TYPE[1.0].0">
 
292
                                        <structure:Description xml:lang="en">Target</structure:Description>
 
293
                                </structure:Code>
 
294
                                <structure:Code value="1"
 
295
                                        urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=SDMX-HD:CL_VALUE_TYPE[1.0].1">
 
296
                                        <structure:Description xml:lang="en">Value</structure:Description>
 
297
                                </structure:Code>                               
 
298
                        </structure:CodeList> 
280
299
                </CodeLists>
281
300
        </xsl:template>
282
301
 
399
418
                                        codelist="CL_FREQ" codelistVersion="1.0" codelistAgency="SDMX-HD"
400
419
                                        isFrequencyDimension="true"/>
401
420
 
 
421
                                <!--            The valuetype dimension-->
 
422
                                <structure:Dimension crossSectionalAttachObservation="true"
 
423
                                        crossSectionalAttachGroup="true" conceptRef="VALUE_TYPE"
 
424
                                        conceptSchemeRef="CS_COMMON" conceptVersion="1.0" conceptSchemeAgency="SDMX-HD"
 
425
                                        codelist="CL_VALUE_TYPE" codelistVersion="1.0" codelistAgency="SDMX-HD"> 
 
426
                                </structure:Dimension>
 
427
                                
402
428
                                <!--            The dataelement dimension-->
403
429
                                <structure:Dimension crossSectionalAttachObservation="true" conceptRef="DATAELEMENT"
404
430
                                        conceptSchemeRef="CS_COMMON" conceptVersion="1.0" conceptSchemeAgency="SDMX-HD"