├── .gitignore ├── README.md ├── _config.yml ├── dev ├── Dockerfile-dev ├── README.md ├── demo │ ├── css │ │ └── style.css │ ├── index.html │ └── js │ │ └── SaxonJS2.js └── run.sh ├── docker-compose.yml ├── examples ├── ddi-2.5 │ ├── 2020-130.xml │ ├── 4194_Cohorte_blessures_scolaires_en_2_5.xml │ ├── FSD2954.xml │ ├── FSD3475.xml │ ├── SND0001.xml │ ├── ddi-test-file-no-lang.xml │ ├── ecds0146.xml │ └── mpstr18-en.xml ├── ddi-3.1 │ ├── StudyWithStatistics.xml │ ├── example-1.xml │ ├── example-2.xml │ ├── example-3.xml │ ├── example-4.xml │ └── example-5.xml ├── ddi-3.2 │ ├── ICPSR2079variables.xml │ ├── ZA4586_ddi-I_StudyDescription_3_2.xml │ ├── ZA4586_ddi-l_StudyDescription_3_2.xml │ └── se.gu.snd.sims.ddi3.ECDS0018.xml └── ddi-3.3 │ ├── Archive.xml │ ├── ZA4586_ddi-I_StudyDescription_3_3_ConvertedManualy.xml │ └── se.gu.snd.sims.ddi3.ECDS0018_ConvertedManually.xml └── transformations ├── cessda-eqb └── from-ddi-2.5 │ └── ddi_2_5-cessda_eqb.xslt ├── datacite ├── from-ddi-2.5 │ └── ddi_2_5-datacite_4_4.xslt ├── from-ddi-3.1 │ └── ddi_3_1-datacite_3_1.xsl ├── from-ddi-3.2 │ └── ddi_3_1-datacite_2_2.xsl └── from-ddi-3.3 │ └── ddi_3_3-datacite_4_4.xslt ├── dcat-ap └── from-ddi-2.5 │ └── ddi_2_5-dcat-ap.xslt ├── dcterms ├── from-ddi-2.5 │ └── ddi_2_5-dcterms.xslt ├── from-ddi-3.1 │ └── ddi_3_1-dcterms.xslt └── from-ddi-3.2 │ └── ddi_3_2-dcterms.xslt ├── ddi-1.2.2 ├── from-ddi-3.1 │ ├── copy.xsl │ ├── dda-build.xml │ ├── ddi3_1_list_representation.xsl │ ├── ddi3_1_to_ddi1_2_2.xslt │ ├── ddi3_1_util.xsl │ ├── i18n │ │ ├── messages_da.properties.xml │ │ ├── messages_en.properties.xml │ │ └── messages_sv.properties.xml │ ├── remove_all_namespaces.xsl │ └── xhtml.xsl └── from-ddi-3.2 │ ├── copy.xsl │ ├── dda-build.xml │ ├── ddi3_2_list_representation.xsl │ ├── ddi3_2_to_ddi1_2_2.xsl │ ├── ddi3_2_util.xsl │ ├── i18n │ ├── messages_da.properties.xml │ ├── messages_en.properties.xml │ └── messages_sv.properties.xml │ ├── remove_all_namespaces.xsl │ └── xhtml.xsl ├── fo ├── from-ddi-1.2.2 │ ├── build_pdf │ ├── dda-build.xml │ ├── dditofo.xsl │ ├── dditofo_complete.xslt │ ├── docs │ │ ├── XSL FO.odg │ │ ├── XSLT.odg │ │ └── available_parameters.txt │ ├── functions │ │ ├── i18n │ │ │ └── get.xsl │ │ └── util │ │ │ ├── isodate_long.xsl │ │ │ ├── isodate_month_name.xsl │ │ │ ├── math_max.xsl │ │ │ ├── rtrim.xsl │ │ │ └── trim.xsl │ ├── i18n │ │ ├── en.xml │ │ └── sv.xml │ ├── images │ │ ├── blank.png │ │ ├── gu_logo.png │ │ ├── placeholder_logo.odg │ │ ├── placeholder_logo.png │ │ ├── snd_logo_grayscale.png │ │ ├── snd_logo_sv.png │ │ └── vr_logo.png │ ├── import_wip │ │ ├── FORS │ │ │ ├── ESS-LSE Codebook 2010 en.pdf │ │ │ ├── ddi_documentation.fop.xslt │ │ │ ├── dditofo.xsl │ │ │ ├── includes │ │ │ │ ├── match │ │ │ │ │ ├── ddi-AuthEnty.xml │ │ │ │ │ ├── ddi-IDNo.xml │ │ │ │ │ ├── ddi-collDate.xml │ │ │ │ │ ├── ddi-contact.xml │ │ │ │ │ ├── ddi-dataCollector.xml │ │ │ │ │ ├── ddi-fileDscr.xml │ │ │ │ │ ├── ddi-fileDscr_variables-description.xml │ │ │ │ │ ├── ddi-fileDscr_variables-list.xml │ │ │ │ │ ├── ddi-fileDscr_variables-list_alpha.xml │ │ │ │ │ ├── ddi-fileName.xml │ │ │ │ │ ├── ddi-fundAg.xml │ │ │ │ │ ├── ddi-othId.xml │ │ │ │ │ ├── ddi-otherMat.xml │ │ │ │ │ ├── ddi-producer.xml │ │ │ │ │ ├── ddi-text.xml │ │ │ │ │ ├── ddi-timePrd.xml │ │ │ │ │ ├── ddi-var.xml │ │ │ │ │ ├── ddi-varGrp.xml │ │ │ │ │ ├── ddi-var_variables-list.xml │ │ │ │ │ ├── ddi-var_variables-list_grp.xml │ │ │ │ │ └── root.xml │ │ │ │ └── named │ │ │ │ │ ├── NumFormat.xml │ │ │ │ │ ├── NumFormat2.xml │ │ │ │ │ ├── date_date.xml │ │ │ │ │ ├── documentation-toc-section.xml │ │ │ │ │ ├── footer.xml │ │ │ │ │ ├── footer_first.xml │ │ │ │ │ ├── header.xml │ │ │ │ │ ├── isodate-long.xml │ │ │ │ │ ├── isodate-month.xml │ │ │ │ │ ├── ltrim.xml │ │ │ │ │ ├── math_max.xml │ │ │ │ │ ├── rtrim.xml │ │ │ │ │ ├── trim.xml │ │ │ │ │ ├── variables-table-col-header.xml │ │ │ │ │ ├── variables-table-col-header_grp.xml │ │ │ │ │ ├── variables-table-col-width.xml │ │ │ │ │ └── variables-table-col-width_grp.xml │ │ │ └── process_xincludes.py │ │ └── this_folder.txt │ ├── process_xincludes │ └── templates │ │ ├── match │ │ ├── ddi │ │ │ ├── AuthEnty.xsl │ │ │ ├── IDNo.xsl │ │ │ ├── collDate.xsl │ │ │ ├── contact.xsl │ │ │ ├── dataCollector.xsl │ │ │ ├── fileDscr.xsl │ │ │ ├── fileDscr_variables-description.xsl │ │ │ ├── fileDscr_variables-list.xsl │ │ │ ├── fileName.xsl │ │ │ ├── fundAg.xsl │ │ │ ├── othId.xsl │ │ │ ├── producer.xsl │ │ │ ├── timePrd.xsl │ │ │ ├── var.xsl │ │ │ ├── varGrp.xsl │ │ │ └── var_variablesList.xsl │ │ ├── default_text.xsl │ │ ├── root.xsl │ │ └── root_template_xincludes │ │ │ ├── bookmark-tree.xsl │ │ │ └── page-sequence │ │ │ ├── cover_page.xsl │ │ │ ├── files_description.xsl │ │ │ ├── metadata_information.xsl │ │ │ ├── overview.xsl │ │ │ ├── table_of_contents.xsl │ │ │ ├── variable_groups.xsl │ │ │ ├── variables_description.xsl │ │ │ └── variables_list.xsl │ │ └── named │ │ ├── page_footer.xsl │ │ └── page_header.xsl └── from-ddi-2.5 │ ├── ddi-pdf │ ├── i18n.inc.xslt │ ├── messages_en.properties.xml │ ├── messages_es.properties.xml │ ├── messages_fr.properties.xml │ ├── messages_ja.properties.xml │ ├── messages_nn.properties.xml │ ├── messages_no.properties.xml │ └── messages_ru.properties.xml │ ├── ddi-to-fo.xsl │ └── readme.md ├── html ├── from-ddi-3.1 │ ├── dda-build.xml │ ├── ddaddi3_1.xsl │ ├── ddi3_1.xsl │ ├── ddi3_1_conceptualcomponent.xsl │ ├── ddi3_1_datacollection.xsl │ ├── ddi3_1_logicalproduct.xsl │ ├── ddi3_1_util.xsl │ ├── i18n │ │ ├── messages_da.properties.xml │ │ ├── messages_en.properties.xml │ │ ├── messages_es.properties.xml │ │ ├── messages_fr.properties.xml │ │ ├── messages_ja.properties.xml │ │ ├── messages_ru.properties.xml │ │ └── messages_sv.properties.xml │ ├── js │ │ ├── config.js │ │ ├── excanvas.min.js │ │ ├── exist-requests.js │ │ ├── jquery-1.9.1.min.js │ │ ├── jquery.autofill.min.js │ │ ├── jquery.flot.min.js │ │ ├── jquery.flot.pie.min.js │ │ ├── jquery.flot.tooltip.min.js │ │ ├── navigation-bar.js │ │ └── toc.js │ ├── nbr-var-codes.xsl │ └── theme │ │ └── default │ │ ├── ddi.css │ │ └── img │ │ ├── code-scheme.png │ │ ├── concept.png │ │ ├── decision_palette.gif │ │ ├── flatLayout.gif │ │ ├── html.png │ │ ├── input.png │ │ ├── instruction.png │ │ ├── note.gif │ │ ├── pdf.png │ │ ├── publication.png │ │ ├── question-in-study.png │ │ ├── question.png │ │ ├── sequence.gif │ │ ├── statement.gif │ │ ├── universe.png │ │ └── variable.png └── from-ddi-3.2 │ ├── dda-build.xml │ ├── ddaddi3_2.xsl │ ├── ddi3_2.xsl │ ├── ddi3_2_conceptualcomponent.xsl │ ├── ddi3_2_datacollection.xsl │ ├── ddi3_2_logicalproduct.xsl │ ├── ddi3_2_util.xsl │ ├── i18n │ ├── messages_da.properties.xml │ ├── messages_en.properties.xml │ ├── messages_es.properties.xml │ ├── messages_fr.properties.xml │ ├── messages_ja.properties.xml │ ├── messages_ru.properties.xml │ └── messages_sv.properties.xml │ ├── js │ ├── config.js │ ├── excanvas.min.js │ ├── exist-requests.js │ ├── jquery-1.9.1.min.js │ ├── jquery.autofill.min.js │ ├── jquery.flot.min.js │ ├── jquery.flot.pie.min.js │ ├── jquery.flot.tooltip.min.js │ ├── navigation-bar.js │ └── toc.js │ └── theme │ └── default │ ├── ddi.css │ └── img │ ├── code-scheme.png │ ├── concept.png │ ├── decision_palette.gif │ ├── flatLayout.gif │ ├── html.png │ ├── input.png │ ├── instruction.png │ ├── note.gif │ ├── pdf.png │ ├── publication.png │ ├── question-in-study.png │ ├── question.png │ ├── sequence.gif │ ├── statement.gif │ ├── universe.png │ └── variable.png ├── json ├── from-ddi-1.2.2 │ ├── test │ │ ├── in.xml │ │ └── out.json │ └── xsl │ │ └── ddi1_2_2.xsl └── from-ddi-3.1 │ ├── test │ ├── in.xml │ ├── in.xml.json │ └── out.json │ └── xsl │ └── ddi3_1.xsl ├── marcxml ├── from-ddi-3.1 │ └── ddi_3_1-marcxml.xslt └── from-ddi-3.2 │ └── ddi_3_2-marcxml.xslt ├── meta-share └── from-ddi-2.5 │ └── ddi_2_5-metashare.xslt ├── po └── ddi3.1_QuestionText-to-po.xslt ├── rdf └── ddi_2_5-rdf.xslt └── schema.org └── from-ddi-2.5 ├── ddi_2_5-schema.org.json-ld.xslt └── ddi_2_5-schema.org.rdf-xml.xslt /.gitignore: -------------------------------------------------------------------------------- 1 | examples/*/*.result.xml 2 | 3 | *.result.xml 4 | docker-compose.override.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DDI-XSLT 2 | ======== 3 | 4 | DDI-XSLT is a collection of xslt-stylesheets for transformation of DDI XML to other formats. 5 | 6 | ## Online demo 7 | 8 | [Test some of the transformations online](https://metadatatransform.github.io/ddi-xslt/dev/demo/) 9 | 10 | ## Development 11 | 12 | [Setup using docker](dev/README.md) 13 | 14 | ## License 15 | GNU Lesser General Public License 3.0 16 | 17 | [![GNU LGPL v3.0](https://www.gnu.org/graphics/lgplv3-147x51.png)](https://www.gnu.org/licenses/lgpl-3.0.html) 18 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-slate -------------------------------------------------------------------------------- /dev/Dockerfile-dev: -------------------------------------------------------------------------------- 1 | FROM openjdk:17-ea-14-jdk-alpine3.13 2 | 3 | RUN apk add --no-cache inotify-tools 4 | 5 | COPY dev/run.sh /script/run.sh 6 | COPY transformations /transformations 7 | RUN chmod a+x /script/run.sh 8 | 9 | # get saxon 10 | ARG SAXON_VERSION=10.3 11 | ADD \ 12 | https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/${SAXON_VERSION}/Saxon-HE-${SAXON_VERSION}.jar \ 13 | /utils/saxon.jar 14 | RUN chmod a+x /utils/saxon.jar 15 | 16 | # get ddi profiles for cessda-cmv https://cmv.cessda.eu 17 | ADD https://cmv.cessda.eu/profiles/cdc/ddi-1.2.2/1.0.4/profile.xml \ 18 | /profiles/cdc/1.2.2.xml 19 | 20 | ADD https://cmv.cessda.eu/profiles/cdc/ddi-1.2.2/1.0.4/profile.xml \ 21 | /profiles/cdc/ddi-1.2.2-monolingual.xml 22 | 23 | ADD https://cmv.cessda.eu/profiles/cdc/ddi-2.5/1.0.4/profile.xml \ 24 | /profiles/cdc/ddi-2.5.xml 25 | 26 | ADD https://cmv.cessda.eu/profiles/cdc/ddi-2.5/1.0.4/profile-mono.xml \ 27 | /profiles/cdc/ddi-2.5-monolingual.xml 28 | 29 | ADD https://cmv.cessda.eu/profiles/cdc/ddi-3.2/0.1.1/profile.xml \ 30 | /profiles/cdc/ddi-3.2.xml 31 | 32 | ADD https://cmv.cessda.eu/profiles/eqb/ddi-2.5/0.1.0/profile.xml \ 33 | /profiles/eqb/ddi-2.5.xml 34 | 35 | ADD https://cmv.cessda.eu/profiles/eqb/ddi-3.2/0.1.1/profile.xml \ 36 | /profiles/eqb/ddi-3.2.xml 37 | 38 | # get cessda-cmv-cmd 39 | # https://github.com/borsna/cessda-cmv-cmd 40 | ARG CESSDA_CMV_CMD_VERSION=0.0.3 41 | ADD \ 42 | https://github.com/borsna/cessda-cmv-cmd/releases/download/${CESSDA_CMV_CMD_VERSION}/cmv-cmd.jar \ 43 | /utils/cmv-cmd.jar 44 | RUN chmod a+x /utils/cmv-cmd.jar 45 | 46 | ENTRYPOINT ["sh", "/script/run.sh"] -------------------------------------------------------------------------------- /dev/README.md: -------------------------------------------------------------------------------- 1 | # development 2 | 3 | Create a new file `docker-compose.override.yml` 4 | 5 | Set the enviroment parameters for the XSLT and XML to use in development 6 | 7 | ```yml 8 | version: "3" 9 | services: 10 | ddi-xslt-dev: 11 | environment: 12 | XSLT: /transformations/dcterms/from-ddi-3.2/ddi_3_2-dcterms.xslt 13 | XML: /examples/ddi-3.2/ZA4586_ddi-I_StudyDescription_3_2.xml 14 | ``` 15 | 16 | To use the [CESSDA CMV](https://cmv.cessda.eu) validator after transformation supply a profile XML: 17 | ```yml 18 | version: "3" 19 | services: 20 | ddi-xslt-dev: 21 | environment: 22 | XSLT: /transformations/cessda-eqb/from-ddi-2.5/ddi_2_5-cessda_eqb.xslt 23 | XML: /examples/ddi-2.5/2020-130.xml 24 | PROFILE: /profiles/eqb/ddi-2.5.xml 25 | GATE: BASIC 26 | ``` 27 | CESSDA CMV profiles in docker image: 28 | ``` 29 | /profiles/cdc/1.2.2.xml 30 | /profiles/cdc/ddi-1.2.2-monolingual.xml 31 | /profiles/cdc/ddi-2.5.xml 32 | /profiles/cdc/ddi-2.5-monolingual.xml 33 | /profiles/cdc/ddi-3.2.xml 34 | /profiles/eqb/ddi-2.5.xml 35 | /profiles/eqb/ddi-3.2.xml 36 | ``` 37 | 38 | Values for GATE using CESSDA CMV: `BASIC`, `BASICPLUS`, `EXTENDED`, `STANDARD`, `STRICT` 39 | 40 | 41 | 42 | Note: In case of compilation error, change End Of Line sequence from CRLF to LF in `run.sh` script. -------------------------------------------------------------------------------- /dev/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "starting run.sh" 4 | 5 | SAXON="/utils/saxon.jar" 6 | CMV="/utils/cmv-cmd.jar" 7 | 8 | echo "Dev script to auto-transform XSLT while editing the XSLT" 9 | echo "start watch for modifications in $XSLT" 10 | echo "result will be shown in $XML.result.xml" 11 | while inotifywait -q -e modify $XSLT; do 12 | java -jar $SAXON $XML $XSLT -o:$XML.result.xml 13 | 14 | if [[ ! -z "$PROFILE" ]]; then 15 | VGATE=${GATE:="BASIC"} 16 | echo "CMM-VALIDATOR USING GATE: $VGATE" 17 | java -jar $CMV $XML.result.xml $PROFILE $VGATE 18 | fi 19 | if [[ ! -z "$ECHO_RESULT" ]]; then 20 | cat $XML.result.xml 21 | fi 22 | done 23 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | services: 3 | ddi-xslt-dev: 4 | build: 5 | context: . 6 | dockerfile: dev/Dockerfile-dev 7 | volumes: 8 | - ./transformations:/transformations 9 | - ./examples:/examples -------------------------------------------------------------------------------- /transformations/dcterms/from-ddi-3.2/ddi_3_2-dcterms.xslt: -------------------------------------------------------------------------------- 1 | 2 | 21 | 48 | 49 | ddi-3.2-to-dcterms 50 | DDI 3.2 to Dcterms 51 | Convert DDI Lifecycle (3.2) to Dcterms 52 | XML 53 | 54 | 55 | 56 | 57 | 58 | 59 | metadata 60 | 61 | 62 | 63 | http://www.w3.org/2001/XMLSchema 64 | http://www.w3.org/2001/XMLSchema-instance 65 | http://purl.org/dc/terms/ 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | records: 100 | 101 | 102 | 103 | 104 | 105 | 106 | cases: 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/copy.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/dda-build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Copy style sheet files from ddi-1.2.2 (ddi3_1) to ddieditor-ui: ${ddixslt-lc.dir} 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/ddi3_1_list_representation.xsl: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 22 | 23 | 24 | 25 | 26 | 27 | ### 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | code= 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | numeric= 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | string= 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | date= 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/ddi3_1_util.xsl: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | i18n/messages_en.properties.xml 20 | 21 | 22 | 23 | da 24 | 25 | en 26 | 27 | true 28 | 29 | 30 | 31 | 32 | 33 | 34 | . 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/i18n/messages_da.properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | XML data dokumentation for 4 | Variabler 5 | Andre variabler 6 | Uoplyst 7 | Irrelevant 8 | Deltager ikke 9 | 10 | 11 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/i18n/messages_en.properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | XML data documentation for 4 | Variables 5 | Other variables 6 | Unknown/irrelevant/not participating - is 7 | Scale 8 | Unknown 9 | Irrelevant 10 | 11 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/i18n/messages_sv.properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | XML data dokumentation for 4 | Variabler 5 | Andre variabler 6 | Unknown/irrelevant/not participating - is 7 | Scale 8 | Unknown 9 | Irrelevant 10 | 11 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/remove_all_namespaces.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.1/xhtml.xsl: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 73 | 74 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/copy.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/dda-build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Copy style sheet files from ddi-1.2.2 (ddi3_2) to ddieditor-ui: ${ddixslt-lc.dir} 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/ddi3_2_list_representation.xsl: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 22 | 23 | 24 | 25 | 26 | 27 | ### 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | code= 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | numeric= 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | string= 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | date= 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/ddi3_2_util.xsl: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | i18n/messages_en.properties.xml 20 | 21 | 22 | 23 | da 24 | 25 | en 26 | 27 | true 28 | 29 | 30 | 31 | 32 | 33 | 34 | . 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/i18n/messages_da.properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | XML data dokumentation for 4 | Variabler 5 | Andre variabler 6 | Uoplyst 7 | Irrelevant 8 | Deltager ikke 9 | 10 | 11 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/i18n/messages_en.properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | XML data documentation for 4 | Variables 5 | Other variables 6 | Unknown/irrelevant/not participating - is 7 | Scale 8 | Unknown 9 | Irrelevant 10 | 11 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/i18n/messages_sv.properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | XML data dokumentation for 4 | Variabler 5 | Andre variabler 6 | Unknown/irrelevant/not participating - is 7 | Scale 8 | Unknown 9 | Irrelevant 10 | 11 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/remove_all_namespaces.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /transformations/ddi-1.2.2/from-ddi-3.2/xhtml.xsl: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 73 | 74 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/build_pdf: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Simple build script for turning DDI Codebook into PDF 4 | # 2013-04-25 Initial version 5 | # 2013-04-26 Better file extension on generated file 6 | # 2013-04-30 Using only fop for transformation 7 | # 2013-05-28 Use xinclude insted of xsl:include (mostly) 8 | # 2013-10-09 Removed old FOP/Xalan structure, moved to Saxon+FOP 9 | # 2015-11-06 Improving text feedback/formatting 10 | 11 | # requierments: fop 12 | # usage: ./build_pdf [-h] [-l LANGUAGE] input_file.xml 13 | 14 | # Some useful text formating vars 15 | regular_yellow='\e[0;33m'; 16 | bold_green='\e[1;32m'; 17 | format_reset='\e[0m' # reset text formating to normal 18 | 19 | # ========================== 20 | # Handle options & arguments 21 | # ========================== 22 | 23 | LANGUAGE_STRING="sv" # default i18n file 24 | 25 | # handle options 26 | while getopts "hl:" opt 27 | do 28 | case $opt in 29 | h) echo "Usage: build_pdf [-h] [-l LANGUAGE] input_file.xml" 30 | exit 1;; 31 | l) LANGUAGE_STRING=$OPTARG;; 32 | esac 33 | done 34 | 35 | shift $(($OPTIND - 1)) # shift argument to position 1 36 | 37 | FILENAME="${1%.*}" # remove file extension from DDI input file 38 | 39 | # parameters for Saxon and FOP 40 | PARAMS="paper.type=A4 \ 41 | fop1.extensions=1 \ 42 | i18n.translation_file=./i18n/$LANGUAGE_STRING.xml" 43 | 44 | # ============ 45 | # Process file 46 | # ============ 47 | # note: the -e flag makes echo use the formatting escape sequences 48 | 49 | echo -e "${bold_green}[build_pdf]${format_reset} Using language: ${regular_yellow}$LANGUAGE_STRING${format_reset}" 50 | 51 | # run xincludes 52 | echo -e "${bold_green}[process_xincludes]${format_reset}Assembling dditofo_complete.xsl" 53 | ./process_xincludes 54 | 55 | # transform codebook to fo using saxon 56 | echo -e "${bold_green}[Saxon]${format_reset} Transforming ${regular_yellow}$1${format_reset} to FO..." 57 | java net.sf.saxon.Transform -s:$1 -xsl:dditofo_complete.xsl -o:$FILENAME.fo $PARAMS 58 | echo -e "${bold_green}[Saxon]${format_reset} File ${regular_yellow}$FILENAME.fo${format_reset} generated" 59 | 60 | # render PDF from FO 61 | echo -e "${bold_green}[FOP]${format_reset} Rendering ${regular_yellow}$FILENAME.fo${format_reset} to PDF..." 62 | fop -fo $FILENAME.fo -pdf $FILENAME.pdf 63 | echo -e "${bold_green}[FOP]${format_reset} ${regular_yellow}$FILENAME.pdf${format_reset} generated." 64 | 65 | # cleanup 66 | echo -e "${bold_green}[build_pdf]${format_reset} Removing ${regular_yellow}$FILENAME.fo${format_reset}" 67 | rm $FILENAME.fo 68 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/dda-build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Copy style sheet files from ddi-fo to ddieditor-ui: ${ddixslt-cpdf.dir} 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/docs/XSL FO.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/docs/XSL FO.odg -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/docs/XSLT.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/docs/XSLT.odg -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/docs/available_parameters.txt: -------------------------------------------------------------------------------- 1 | # list of available parameters for dditofo.xslt 2 | # Values in square brackets [like this] are the default values 3 | # How to actually send params to the XSLT-processor varies 4 | 5 | # 2013-06-10 Removing params after the cleanup 6 | 7 | # Paths to external files 8 | rdf-file 9 | translations 10 | 11 | # Used for ISO-date template 12 | language-code [en] 13 | 14 | # Optional text 15 | report-title [Study Documentation] 16 | report-acknowledgments 17 | report-notes 18 | 19 | # Page related 20 | page-format [us-letter] 21 | show-variables-list-layout>default-page 22 | font-family>Times 23 | 24 | # Start page number, used by Overview (useful if running multi-survey reports) 25 | report-start-page-number [4] 26 | show-variables-description-categories-max [1000] 27 | variable-name-length [14] 28 | 29 | report-date [$exslt-date] 30 | 31 | # Main sections in root template 32 | show-bookmarks [1] 33 | show-cover-page [1] 34 | show-metadata-info [1] 35 | show-toc [1] 36 | show-overview [1] 37 | show-files-description [1] 38 | show-documentation [0] 39 | 40 | # Parts in the Cover page 41 | show-logo [0] 42 | show-geography [0] 43 | show-cover-page-producer [1] 44 | show-report-subtitle [0] 45 | show-date" [0] 46 | 47 | # Misc 48 | show-metadata-production [1] 49 | show-variables-list-question [1] 50 | show-variables-description-categories [1] 51 | 52 | # documentation refer to a rdf file given as parameter which we dont have 53 | show-documentation-description [0] 54 | show-documentation-abstract [0] 55 | show-documentation-toc [0] 56 | show-documentation-subjects [0] 57 | 58 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/functions/i18n/get.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/functions/util/isodate_long.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/functions/util/isodate_month_name.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/functions/util/math_max.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | NaN 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/functions/util/rtrim.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/functions/util/trim.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/images/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/images/blank.png -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/images/gu_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/images/gu_logo.png -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/images/placeholder_logo.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/images/placeholder_logo.odg -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/images/placeholder_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/images/placeholder_logo.png -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/images/snd_logo_grayscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/images/snd_logo_grayscale.png -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/images/snd_logo_sv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/images/snd_logo_sv.png -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/images/vr_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/images/vr_logo.png -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/ESS-LSE Codebook 2010 en.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/fo/from-ddi-1.2.2/import_wip/FORS/ESS-LSE Codebook 2010 en.pdf -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-AuthEnty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | , 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-IDNo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | : 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-collDate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | : 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-contact.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | () 14 | 15 | 16 | 17 | , 18 | 19 | 20 | 21 | 22 | 23 | , 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-dataCollector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | () 16 | 17 | 18 | 19 | , 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-fileDscr_variables-description.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-fileDscr_variables-list.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-fileDscr_variables-list_alpha.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-fileName.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-fundAg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | () 15 | 16 | 17 | , 18 | 19 | 20 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-othId.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | , 15 | 16 | 17 | , 18 | 19 | 20 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-producer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | () 21 | 22 | 23 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-timePrd.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | : 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/match/ddi-var_variables-list_grp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | - 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/NumFormat.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/NumFormat2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/date_date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | Z 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | - 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/documentation-toc-section.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | *** 21 | 22 | **** 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/footer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | COMPASS 30 | 31 | 32 | Communication portal for accessing social statistics 33 | 34 | 35 | . 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/footer_first.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/header.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/isodate-long.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | . 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | , 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/isodate-month.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/ltrim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/math_max.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | NaN 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/rtrim.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/trim.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/variables-table-col-header.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/variables-table-col-header_grp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/variables-table-col-width.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/includes/named/variables-table-col-width_grp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/FORS/process_xincludes.py: -------------------------------------------------------------------------------- 1 | """ 2 | Quick and dirty xinclude preprocessor thingy 3 | Req the lxml module 4 | """ 5 | # 2013-05-27 Initial version 6 | 7 | import lxml.etree as LET 8 | 9 | tree = LET.parse('dditofo.xsl') 10 | tree.xinclude() # perform xincludes 11 | 12 | # directly write tree to file 13 | tree.write('dditofo_complete.xsl', xml_declaration=True, encoding='UTF-8') 14 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/import_wip/this_folder.txt: -------------------------------------------------------------------------------- 1 | import/work-in-progress: 2 | 3 | This folder contains resources and code from external sources, for possible future inclusion in this version of the stylesheet. 4 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/process_xincludes: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | """ 3 | Quick and dirty xinclude preprocessor thingy 4 | Req the lxml module 5 | """ 6 | # 2013-05-27 Initial version 7 | 8 | import lxml.etree as LET 9 | 10 | tree = LET.parse('dditofo.xsl') 11 | tree.xinclude() # perform xincludes 12 | 13 | # directly write tree to file 14 | tree.write('dditofo_complete.xsl', xml_declaration=True, encoding='UTF-8') 15 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/AuthEnty.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/IDNo.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/collDate.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/contact.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | , 22 | 23 | 24 | 25 | 26 | 27 | 28 | , 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/dataCollector.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/fileDscr_variables-description.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | : 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/fileName.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/fundAg.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/othId.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/producer.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/timePrd.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/ddi/var_variablesList.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | .. 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/default_text.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/root.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/root_template_xincludes/page-sequence/cover_page.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 59 | 60 | 61 | 66 | 67 | 68 |   69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 |   77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 |   92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/match/root_template_xincludes/page-sequence/metadata_information.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 32 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/named/page_footer.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | - 15 | 16 | - 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-1.2.2/templates/named/page_header.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-2.5/ddi-pdf/i18n.inc.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transformations/fo/from-ddi-2.5/readme.md: -------------------------------------------------------------------------------- 1 | # DDI 2.5 to fo-xml (to be trasformed to PDF) 2 | 3 | To run you need Apache FOP: 4 | https://xmlgraphics.apache.org/fop/download.html 5 | 6 | To run: 7 | 8 | `/path/to/fop -xml path/to/my-ddi-2.5.xml -xsl path/to/dditofo.xsl -pdf my-pdf.pdf` 9 | 10 | 11 | https://demo.borealisdata.ca/dataset.xhtml?persistentId=doi:10.80240/FK2/NWIOZP&version=1.1 12 | Example of dataset with variables, groups and weights 13 | 14 | The codebook https://demo.borealisdata.ca/api/datasets/export?exporter=ddi&persistentId=doi%3A10.80240/FK2/NWIOZP 15 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/dda-build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Copy style sheet files from ddi-html to ddieditor-ui: ${ddixslt.dir} 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/ddi3_1_conceptualcomponent.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 |

29 | 30 |

31 |
32 | 33 |

34 | 35 |
36 |
37 |
38 | 39 | 40 |
41 | 42 | 43 |

44 | 45 |

46 |
47 |
    48 | 49 | 50 | 51 |
52 | 53 |
54 |
55 | 56 | 57 | 58 |
  • 59 | 60 |
    61 | 62 | 78 |
  • 79 |
    80 |
    81 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/ddi3_1_logicalproduct.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 29 | 30 | 31 | 32 | i18n/messages_en.properties.xml 33 | 34 | 35 | 36 |
    37 | 38 |
    39 |
    40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
    56 |
    57 |
    58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
      73 |
    • 74 | 75 |
    • 76 |
    77 |
    78 | 79 | 80 | 81 |
      82 |
    • 83 | Text (max length: ) 84 |
    • 85 |
    86 |
    87 | 88 | 89 |
    • ( )
    90 | 91 |
    92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |

    112 |
    113 | 114 |
      115 | 116 |
    117 |
    118 |
    119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 |
  • 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 |
  • 136 |
    137 | 138 |
    -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/ddi3_1_util.xsl: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | i18n/messages_en.properties.xml 20 | 21 | 22 | 23 | da 24 | 25 | en 26 | 27 | true 28 | 29 | 30 | 31 | 32 | 33 | 34 | . 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/js/config.js: -------------------------------------------------------------------------------- 1 | var backend = 'http://bull.ssd.gu.se:8080/exist/rest/db/qb/'; 2 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/js/exist-requests.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $('.questionName').click(function(e){ 3 | var qid = $(this).parent().attr("id"); 4 | qid = qid.replace('question-',''); 5 | $(this).unbind('click'); 6 | //console.log(qid); 7 | $.ajax({ 8 | url: backend+'qb-get-study-units.xql?callback=?', 9 | dataType: 'jsonp', 10 | data: { 11 | qid:qid, 12 | }, 13 | success: loadedQuestionInfo 14 | }); 15 | 16 | }); 17 | }); 18 | 19 | function loadedQuestionInfo(data){ 20 | var output = ''; 21 | if('study' in data){ 22 | if(data['study'].length > 1){ 23 | var series_id = 0; 24 | $.each(data['study'], function(i,study){ 25 | if(study['series']['series_id'] != series_id){ 26 | output +=''; 27 | series_id = study['series']['series_id']; 28 | } 29 | output += renderStudyLink(study); 30 | }); 31 | }else{ 32 | output += renderStudyLink(data.study); 33 | } 34 | output += '
    '+study['series']['name']['en']+'
    '; 35 | $("#question-"+data['question-id']).after(output); 36 | 37 | }else{ 38 | $("#question-expand-"+data['question-id']).after('no studies found'); 39 | } 40 | 41 | function renderStudyLink(study){ 42 | var output = ''+study['questionItemName']['en']+' '+study['title']['sv']+''; 43 | return output; 44 | } 45 | } -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/js/jquery.autofill.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Auto-Fill Plugin 3 | * Written by Joe Sak 4 | * Website: http://www.joesak.com/ 5 | * Article: http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/ 6 | * GitHub: http://github.com/joemsak/jQuery-AutoFill 7 | */ 8 | (function($){$.fn.autofill=function(options){var defaults={value:'First Name',prePopulate:'',defaultTextColor:"#666",activeTextColor:"#333"};var options=$.extend(defaults,options);return this.each(function(){var obj=$(this);var pfield=(obj.attr('type')=='password');var p_obj=false;if(pfield){obj.hide();obj.after('');p_obj=obj;obj=obj.next();} 9 | if(document.activeElement!=obj[0]){obj.css({color:options.defaultTextColor}).val(options.value);} 10 | obj.each(function(){$(this.form).submit(function(){if(obj.val()==options.value){obj.val(options.prePopulate);}});});obj.focus(function(){if(obj.val()==options.value){if(pfield){obj.hide();p_obj.show().focus()} 11 | obj.val(options.prePopulate).css({color:options.activeTextColor});}}).blur(function(){if(obj.val()==options.prePopulate||obj.val()==''){obj.css({color:options.defaultTextColor}).val(options.value);}});if(p_obj&&p_obj.length>0){p_obj.blur(function(){if(p_obj.val()==""){p_obj.hide();obj.show().css({color:options.defaultTextColor}).val(options.value);}});}});};})(jQuery); 12 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/js/jquery.flot.tooltip.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jquery.flot.tooltip 3 | * 4 | * description: easy-to-use tooltips for Flot charts 5 | * version: 0.6.1 6 | * author: Krzysztof Urbas @krzysu [myviews.pl] 7 | * website: https://github.com/krzysu/flot.tooltip 8 | * 9 | * build on 2013-04-12 10 | * released under MIT License, 2012 11 | */ 12 | (function(t){var o={tooltip:!1,tooltipOpts:{content:"%s | X: %x | Y: %y",xDateFormat:null,yDateFormat:null,shifts:{x:10,y:20},defaultTheme:!0,onHover:function(){}}},i=function(t){this.tipPosition={x:0,y:0},this.init(t)};i.prototype.init=function(o){var i=this;o.hooks.bindEvents.push(function(o,e){if(i.plotOptions=o.getOptions(),i.plotOptions.tooltip!==!1&&void 0!==i.plotOptions.tooltip){i.tooltipOptions=i.plotOptions.tooltipOpts;var s=i.getDomElement();t(o.getPlaceholder()).bind("plothover",function(t,o,e){if(i.updateTooltipPosition({x:o.pageX,y:o.pageY}),e){var a;a=i.stringFormat(i.tooltipOptions.content,e),s.html(a).css({left:i.tipPosition.x+i.tooltipOptions.shifts.x,top:i.tipPosition.y+i.tooltipOptions.shifts.y}).show(),"function"==typeof i.tooltipOptions.onHover&&i.tooltipOptions.onHover(e,s)}else s.hide().html("")}),e.mousemove(function(t){var o={};o.x=t.pageX,o.y=t.pageY,i.updateTooltipPosition(o)})}})},i.prototype.getDomElement=function(){var o;return t("#flotTip").length>0?o=t("#flotTip"):(o=t("
    ").attr("id","flotTip"),o.appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&o.css({background:"#fff","z-index":"100",padding:"0.4em 0.6em","border-radius":"0.5em","font-size":"0.8em",border:"1px solid #111"})),o},i.prototype.updateTooltipPosition=function(t){this.tipPosition.x=t.x,this.tipPosition.y=t.y},i.prototype.stringFormat=function(t,o){var i=/%p\.{0,1}(\d{0,})/,e=/%s/,s=/%x\.{0,1}(\d{0,})/,a=/%y\.{0,1}(\d{0,})/;return"function"==typeof t&&(t=t(o.series.data[o.dataIndex][0],o.series.data[o.dataIndex][1])),o.series.percent!==void 0&&(t=this.adjustValPrecision(i,t,o.series.percent)),o.series.label!==void 0&&(t=t.replace(e,o.series.label)),this.isTimeMode("xaxis",o)&&this.isXDateFormat(o)&&(t=t.replace(s,this.timestampToDate(o.series.data[o.dataIndex][0],this.tooltipOptions.xDateFormat))),this.isTimeMode("yaxis",o)&&this.isYDateFormat(o)&&(t=t.replace(a,this.timestampToDate(o.series.data[o.dataIndex][1],this.tooltipOptions.yDateFormat))),"number"==typeof o.series.data[o.dataIndex][0]&&(t=this.adjustValPrecision(s,t,o.series.data[o.dataIndex][0])),"number"==typeof o.series.data[o.dataIndex][1]&&(t=this.adjustValPrecision(a,t,o.series.data[o.dataIndex][1])),o.series.xaxis.tickFormatter!==void 0&&(t=t.replace(s,o.series.xaxis.tickFormatter(o.series.data[o.dataIndex][0],o.series.xaxis))),o.series.yaxis.tickFormatter!==void 0&&(t=t.replace(a,o.series.yaxis.tickFormatter(o.series.data[o.dataIndex][1],o.series.yaxis))),t},i.prototype.isTimeMode=function(t,o){return o.series[t].options.mode!==void 0&&"time"===o.series[t].options.mode},i.prototype.isXDateFormat=function(){return this.tooltipOptions.xDateFormat!==void 0&&null!==this.tooltipOptions.xDateFormat},i.prototype.isYDateFormat=function(){return this.tooltipOptions.yDateFormat!==void 0&&null!==this.tooltipOptions.yDateFormat},i.prototype.timestampToDate=function(o,i){var e=new Date(o);return t.plot.formatDate(e,i)},i.prototype.adjustValPrecision=function(t,o,i){var e;return null!==o.match(t)&&""!==RegExp.$1&&(e=RegExp.$1,i=i.toFixed(e),o=o.replace(t,i)),o};var e=function(t){new i(t)};t.plot.plugins.push({init:e,options:o,name:"tooltip",version:"0.6.1"})})(jQuery); -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/js/toc.js: -------------------------------------------------------------------------------- 1 | 2 | $(document).ready(function () { 3 | var container = $("#toc-list") 4 | // toc based on http://www.jankoatwarpspeed.com/automatically-generate-table-of-contents-using-jquery/ 5 | $("h3, h4").each(function (i) { 6 | var current = $(this); 7 | // i18n.toc 8 | if (current.html() != i18n.toc) { 9 | current.attr("id", "title" + i); 10 | if ($(this).is('h3')) { 11 | $(container).append("
    " + 13 | current.html() + "
    "); 14 | } else if ($(this).is('h4')) { 15 | $(container).append("
    " + 17 | current.html() + "
    "); 18 | } 19 | } 20 | }); 21 | }); 22 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/nbr-var-codes.xsl: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/code-scheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/code-scheme.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/concept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/concept.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/decision_palette.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/decision_palette.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/flatLayout.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/flatLayout.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/html.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/input.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/instruction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/instruction.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/note.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/note.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/pdf.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/publication.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/publication.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/question-in-study.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/question-in-study.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/question.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/question.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/sequence.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/sequence.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/statement.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/statement.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/universe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/universe.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.1/theme/default/img/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.1/theme/default/img/variable.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/dda-build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Copy style sheet files from ddi-html to ddieditor-ui: ${ddixslt.dir} 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/ddi3_2_conceptualcomponent.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 |
    27 | 28 |

    29 | 30 |

    31 |
    32 | 33 |

    34 | 35 |
    36 |
    37 |
    38 | 39 | 40 |
    41 | 42 | 43 |

    44 | 45 |

    46 |
    47 |
      48 | 49 | 50 | 51 |
    52 | 53 |
    54 |
    55 | 56 | 57 | 58 |
  • 59 | 60 |
    61 | 62 | 78 |
  • 79 |
    80 |
    81 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/ddi3_2_logicalproduct.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 29 | 30 | 31 | 32 | i18n/messages_en.properties.xml 33 | 34 | 35 | 36 |
    37 | 38 |
    39 |
    40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
    56 |
    57 |
    58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
      73 |
    • 74 | 75 |
    • 76 |
    77 |
    78 | 79 | 80 | 81 |
      82 |
    • 83 | Text (max length: ) 84 |
    • 85 |
    86 |
    87 | 88 | 89 |
    • ( )
    90 | 91 |
    92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |

    112 |
    113 | 114 |
      115 | 116 |
    117 |
    118 |
    119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 |
  • 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 |
  • 136 |
    137 | 138 |
    -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/ddi3_2_util.xsl: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | i18n/messages_en.properties.xml 20 | 21 | 22 | 23 | da 24 | 25 | en 26 | 27 | true 28 | 29 | 30 | 31 | 32 | 33 | 34 | . 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/js/config.js: -------------------------------------------------------------------------------- 1 | var backend = 'http://bull.ssd.gu.se:8080/exist/rest/db/qb/'; 2 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/js/exist-requests.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $('.questionName').click(function(e){ 3 | var qid = $(this).parent().attr("id"); 4 | qid = qid.replace('question-',''); 5 | $(this).unbind('click'); 6 | //console.log(qid); 7 | $.ajax({ 8 | url: backend+'qb-get-study-units.xql?callback=?', 9 | dataType: 'jsonp', 10 | data: { 11 | qid:qid, 12 | }, 13 | success: loadedQuestionInfo 14 | }); 15 | 16 | }); 17 | }); 18 | 19 | function loadedQuestionInfo(data){ 20 | var output = ''; 21 | if('study' in data){ 22 | if(data['study'].length > 1){ 23 | var series_id = 0; 24 | $.each(data['study'], function(i,study){ 25 | if(study['series']['series_id'] != series_id){ 26 | output +=''; 27 | series_id = study['series']['series_id']; 28 | } 29 | output += renderStudyLink(study); 30 | }); 31 | }else{ 32 | output += renderStudyLink(data.study); 33 | } 34 | output += '
    '+study['series']['name']['en']+'
    '; 35 | $("#question-"+data['question-id']).after(output); 36 | 37 | }else{ 38 | $("#question-expand-"+data['question-id']).after('no studies found'); 39 | } 40 | 41 | function renderStudyLink(study){ 42 | var output = ''+study['questionItemName']['en']+' '+study['title']['sv']+''; 43 | return output; 44 | } 45 | } -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/js/jquery.autofill.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Auto-Fill Plugin 3 | * Written by Joe Sak 4 | * Website: http://www.joesak.com/ 5 | * Article: http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/ 6 | * GitHub: http://github.com/joemsak/jQuery-AutoFill 7 | */ 8 | (function($){$.fn.autofill=function(options){var defaults={value:'First Name',prePopulate:'',defaultTextColor:"#666",activeTextColor:"#333"};var options=$.extend(defaults,options);return this.each(function(){var obj=$(this);var pfield=(obj.attr('type')=='password');var p_obj=false;if(pfield){obj.hide();obj.after('');p_obj=obj;obj=obj.next();} 9 | if(document.activeElement!=obj[0]){obj.css({color:options.defaultTextColor}).val(options.value);} 10 | obj.each(function(){$(this.form).submit(function(){if(obj.val()==options.value){obj.val(options.prePopulate);}});});obj.focus(function(){if(obj.val()==options.value){if(pfield){obj.hide();p_obj.show().focus()} 11 | obj.val(options.prePopulate).css({color:options.activeTextColor});}}).blur(function(){if(obj.val()==options.prePopulate||obj.val()==''){obj.css({color:options.defaultTextColor}).val(options.value);}});if(p_obj&&p_obj.length>0){p_obj.blur(function(){if(p_obj.val()==""){p_obj.hide();obj.show().css({color:options.defaultTextColor}).val(options.value);}});}});};})(jQuery); 12 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/js/jquery.flot.tooltip.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jquery.flot.tooltip 3 | * 4 | * description: easy-to-use tooltips for Flot charts 5 | * version: 0.6.1 6 | * author: Krzysztof Urbas @krzysu [myviews.pl] 7 | * website: https://github.com/krzysu/flot.tooltip 8 | * 9 | * build on 2013-04-12 10 | * released under MIT License, 2012 11 | */ 12 | (function(t){var o={tooltip:!1,tooltipOpts:{content:"%s | X: %x | Y: %y",xDateFormat:null,yDateFormat:null,shifts:{x:10,y:20},defaultTheme:!0,onHover:function(){}}},i=function(t){this.tipPosition={x:0,y:0},this.init(t)};i.prototype.init=function(o){var i=this;o.hooks.bindEvents.push(function(o,e){if(i.plotOptions=o.getOptions(),i.plotOptions.tooltip!==!1&&void 0!==i.plotOptions.tooltip){i.tooltipOptions=i.plotOptions.tooltipOpts;var s=i.getDomElement();t(o.getPlaceholder()).bind("plothover",function(t,o,e){if(i.updateTooltipPosition({x:o.pageX,y:o.pageY}),e){var a;a=i.stringFormat(i.tooltipOptions.content,e),s.html(a).css({left:i.tipPosition.x+i.tooltipOptions.shifts.x,top:i.tipPosition.y+i.tooltipOptions.shifts.y}).show(),"function"==typeof i.tooltipOptions.onHover&&i.tooltipOptions.onHover(e,s)}else s.hide().html("")}),e.mousemove(function(t){var o={};o.x=t.pageX,o.y=t.pageY,i.updateTooltipPosition(o)})}})},i.prototype.getDomElement=function(){var o;return t("#flotTip").length>0?o=t("#flotTip"):(o=t("
    ").attr("id","flotTip"),o.appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&o.css({background:"#fff","z-index":"100",padding:"0.4em 0.6em","border-radius":"0.5em","font-size":"0.8em",border:"1px solid #111"})),o},i.prototype.updateTooltipPosition=function(t){this.tipPosition.x=t.x,this.tipPosition.y=t.y},i.prototype.stringFormat=function(t,o){var i=/%p\.{0,1}(\d{0,})/,e=/%s/,s=/%x\.{0,1}(\d{0,})/,a=/%y\.{0,1}(\d{0,})/;return"function"==typeof t&&(t=t(o.series.data[o.dataIndex][0],o.series.data[o.dataIndex][1])),o.series.percent!==void 0&&(t=this.adjustValPrecision(i,t,o.series.percent)),o.series.label!==void 0&&(t=t.replace(e,o.series.label)),this.isTimeMode("xaxis",o)&&this.isXDateFormat(o)&&(t=t.replace(s,this.timestampToDate(o.series.data[o.dataIndex][0],this.tooltipOptions.xDateFormat))),this.isTimeMode("yaxis",o)&&this.isYDateFormat(o)&&(t=t.replace(a,this.timestampToDate(o.series.data[o.dataIndex][1],this.tooltipOptions.yDateFormat))),"number"==typeof o.series.data[o.dataIndex][0]&&(t=this.adjustValPrecision(s,t,o.series.data[o.dataIndex][0])),"number"==typeof o.series.data[o.dataIndex][1]&&(t=this.adjustValPrecision(a,t,o.series.data[o.dataIndex][1])),o.series.xaxis.tickFormatter!==void 0&&(t=t.replace(s,o.series.xaxis.tickFormatter(o.series.data[o.dataIndex][0],o.series.xaxis))),o.series.yaxis.tickFormatter!==void 0&&(t=t.replace(a,o.series.yaxis.tickFormatter(o.series.data[o.dataIndex][1],o.series.yaxis))),t},i.prototype.isTimeMode=function(t,o){return o.series[t].options.mode!==void 0&&"time"===o.series[t].options.mode},i.prototype.isXDateFormat=function(){return this.tooltipOptions.xDateFormat!==void 0&&null!==this.tooltipOptions.xDateFormat},i.prototype.isYDateFormat=function(){return this.tooltipOptions.yDateFormat!==void 0&&null!==this.tooltipOptions.yDateFormat},i.prototype.timestampToDate=function(o,i){var e=new Date(o);return t.plot.formatDate(e,i)},i.prototype.adjustValPrecision=function(t,o,i){var e;return null!==o.match(t)&&""!==RegExp.$1&&(e=RegExp.$1,i=i.toFixed(e),o=o.replace(t,i)),o};var e=function(t){new i(t)};t.plot.plugins.push({init:e,options:o,name:"tooltip",version:"0.6.1"})})(jQuery); -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/js/toc.js: -------------------------------------------------------------------------------- 1 | 2 | $(document).ready(function () { 3 | var container = $("#toc-list") 4 | // toc based on http://www.jankoatwarpspeed.com/automatically-generate-table-of-contents-using-jquery/ 5 | $("h3, h4").each(function (i) { 6 | var current = $(this); 7 | // i18n.toc 8 | if (current.html() != i18n.toc) { 9 | current.attr("id", "title" + i); 10 | if ($(this).is('h3')) { 11 | $(container).append("
    " + 13 | current.html() + "
    "); 14 | } else if ($(this).is('h4')) { 15 | $(container).append("
    " + 17 | current.html() + "
    "); 18 | } 19 | } 20 | }); 21 | }); 22 | -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/code-scheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/code-scheme.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/concept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/concept.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/decision_palette.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/decision_palette.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/flatLayout.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/flatLayout.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/html.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/input.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/instruction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/instruction.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/note.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/note.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/pdf.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/publication.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/publication.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/question-in-study.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/question-in-study.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/question.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/question.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/sequence.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/sequence.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/statement.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/statement.gif -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/universe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/universe.png -------------------------------------------------------------------------------- /transformations/html/from-ddi-3.2/theme/default/img/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetadataTransform/ddi-xslt/03f519a13ed99e16cdc578385583b9d7be41bfd3/transformations/html/from-ddi-3.2/theme/default/img/variable.png -------------------------------------------------------------------------------- /transformations/json/from-ddi-1.2.2/test/out.json: -------------------------------------------------------------------------------- 1 | {"group": "","collection": "","id": "NSD1907","kindofdata": "Survey data","title": [{"en": "International survey on health and health care, 2011, Norwegian part of ISSP"}],"creator": ["Norwegian Social Science Data Services"],"startdate": "2011","enddate": "2011","subject": [{"en": "Health"}],"keyword": [{"en": "Health"}, {"en": "Smoking"}, {"en": "Education"}, {"en": "Higher education"}, {"en": "Economics"}, {"en": "Labour and employment"}, {"en": "Working conditions"}, {"en": "Social structure"}, {"en": "Family roles"}],"abstract": [{"en": "This survey is conducted on the basis of the research work in "The International Social Survey Programme" (ISSP). ISSP is an international organization where members develop and coordinate annual surveys, mainly in the fields of political science and sociology. The topics of the surveys vary, but topics are replicated every few years so that it is possible to measure the changes in patterns of behavior and attitudes over time and differences between countries and cultures. In 1989, the Norwegian Social Science Data Services (NSD) became member of the ISSP and NSD has since been responsible for conducting the survey in Norway. In 2011, the goal was to collect data on health and health care."}],"timemethod": "Cross-sectional survey","analysisunit": "Individual","country": "Norway","modeofcollection": "Paper/pencil questionnaire and websurvey","samplingprocedure": "The sample has consisted of 3800 units. 2 | 3 | The primary sample was drawn from the Central Person Register as a simple, random sample of persons residing in Norway, in the age of 18-79 years. TNS Gallup sent out and registered the self-completion questionnaires. Respondents were also offered to answer on a web-based questionnaire developed by NSD. 489 of the respondents used the web survey. 4 | 5 | Gross sample: 3800 persons 6 | Net sample: 1834 persons 7 | Response rate: 48,26%","samplingprocedure": "Data are freely accessible for researchers and students at universities and colleges."} -------------------------------------------------------------------------------- /transformations/meta-share/from-ddi-2.5/ddi_2_5-metashare.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 15 | 16 | 17 | ddi-2.5-to-metashare 18 | DDI 2.5 to Meta-Share 19 | Convert DDI Codebook (2.5) to Meta-Share 20 | XML 21 | 22 | 23 | 24 | 25 | 26 | 27 | http://www.w3.org/2001/XMLSchema-instance 28 | http://www.w3.org/2001/XMLSchema 29 | http://www.ilsp.gr/META-XMLSchema http://metashare.ilsp.gr/META-XMLSchema/v3.0/META-SHARE-Resource.xsd 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /transformations/po/ddi3.1_QuestionText-to-po.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | sv 5 | en 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | AAAAAAAAAA 16 | 17 | 18 | msgid " 19 | 20 | 21 | 22 | " 23 | msgstr " 24 | 25 | 26 | 27 | " 28 | 29 | 30 | 31 | 32 | 33 | msgid " 34 | 35 | 36 | 37 | " 38 | msgstr " 39 | 40 | 41 | 42 | " 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | --------------------------------------------------------------------------------