geohydra 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +23 -0
- data/.gitmodules +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +281 -0
- data/LICENSE +14 -0
- data/README.md +187 -0
- data/Rakefile +34 -0
- data/VERSION +1 -0
- data/bin/accession.rb +109 -0
- data/bin/assemble.rb +307 -0
- data/bin/assemble_data.rb +66 -0
- data/bin/assemble_placenames.rb +110 -0
- data/bin/build_stage_options.rb +27 -0
- data/bin/derive_wgs84.rb +85 -0
- data/bin/extract_thumbnail.rb +49 -0
- data/bin/geohydra +11 -0
- data/bin/ingest_arcgis.rb +77 -0
- data/bin/ingest_tufts.rb +71 -0
- data/bin/loader.rb +296 -0
- data/bin/loader_postgis.rb +259 -0
- data/bin/seed.rb +78 -0
- data/bin/solr_indexer.rb +41 -0
- data/bin/sync_geoserver_metadata.rb +168 -0
- data/bin/validate_data.rb +59 -0
- data/config/.gitignore +1 -0
- data/config/boot.rb +17 -0
- data/config/database.yml +29 -0
- data/config/environments/.gitignore +8 -0
- data/config/environments/.gitkeep +0 -0
- data/config/environments/example.rb +85 -0
- data/config/environments/example_rgeoserver.yml +16 -0
- data/config/migrate.rb +11 -0
- data/geohydra.gemspec +49 -0
- data/lib/geohydra.rb +11 -0
- data/lib/geohydra/accession.rb +291 -0
- data/lib/geohydra/arcgis_to_iso19139_fc.xsl +364 -0
- data/lib/geohydra/gazetteer.csv +36 -0
- data/lib/geohydra/gazetteer.rb +73 -0
- data/lib/geohydra/geonetwork.rb +156 -0
- data/lib/geohydra/mods2ogp.xsl +198 -0
- data/lib/geohydra/ogpcleanup.xsl +28 -0
- data/lib/geohydra/solr.rb +49 -0
- data/lib/geohydra/transform.rb +175 -0
- data/lib/geohydra/utils.rb +19 -0
- data/lib/geohydra/version.rb +3 -0
- data/scripts/correct_collections.rb +93 -0
- data/scripts/dbfdump.rb +13 -0
- data/scripts/extract.xsl +35 -0
- data/scripts/geoserver_createdb.sh +6 -0
- data/scripts/geoserver_createdb.sql +29 -0
- data/scripts/geowebcache_tops.rb +22 -0
- data/scripts/ingest_mods.rb +23 -0
- data/scripts/iso2html/displayElement.xsl +52 -0
- data/scripts/iso2html/elements-ISO.xml +665 -0
- data/scripts/iso2html/headers-ISO.xml +16 -0
- data/scripts/iso2html/printFormatted.xsl +227 -0
- data/scripts/iso2html/printtextlines.xsl +171 -0
- data/scripts/iso2html/xml-to-html-ISO.xsl +273 -0
- data/scripts/iso2html/xml-to-text-ISO.xsl +148 -0
- data/scripts/load_stage_data.rb +13 -0
- data/scripts/nextgis_iso19115.xsl +553 -0
- data/scripts/replicate_db.sh +7 -0
- data/scripts/report_stage.rb +5 -0
- data/solr/dev.html +19 -0
- data/solr/dlss-dev-drh-geo/conf/schema.xml +54 -0
- data/solr/dlss-dev-drh-geo/conf/solrconfig.xml +156 -0
- data/solr/dlss-dev-drh-geo/deploy.sh +15 -0
- data/solr/dlss-dev-drh-geo/example_doc.xml +25 -0
- data/solr/dlss-dev-drh-geo/test.sh +14 -0
- data/solr/ogp-dev/conf/admin-extra.html +24 -0
- data/solr/ogp-dev/conf/admin-extra.menu-bottom.html +25 -0
- data/solr/ogp-dev/conf/admin-extra.menu-top.html +25 -0
- data/solr/ogp-dev/conf/currency.xml +67 -0
- data/solr/ogp-dev/conf/elevate.xml +38 -0
- data/solr/ogp-dev/conf/lang/contractions_ca.txt +8 -0
- data/solr/ogp-dev/conf/lang/contractions_fr.txt +15 -0
- data/solr/ogp-dev/conf/lang/contractions_ga.txt +5 -0
- data/solr/ogp-dev/conf/lang/contractions_it.txt +23 -0
- data/solr/ogp-dev/conf/lang/hyphenations_ga.txt +5 -0
- data/solr/ogp-dev/conf/lang/stemdict_nl.txt +6 -0
- data/solr/ogp-dev/conf/lang/stoptags_ja.txt +420 -0
- data/solr/ogp-dev/conf/lang/stopwords_ar.txt +125 -0
- data/solr/ogp-dev/conf/lang/stopwords_bg.txt +193 -0
- data/solr/ogp-dev/conf/lang/stopwords_ca.txt +220 -0
- data/solr/ogp-dev/conf/lang/stopwords_cz.txt +172 -0
- data/solr/ogp-dev/conf/lang/stopwords_da.txt +108 -0
- data/solr/ogp-dev/conf/lang/stopwords_de.txt +292 -0
- data/solr/ogp-dev/conf/lang/stopwords_el.txt +78 -0
- data/solr/ogp-dev/conf/lang/stopwords_en.txt +54 -0
- data/solr/ogp-dev/conf/lang/stopwords_es.txt +354 -0
- data/solr/ogp-dev/conf/lang/stopwords_eu.txt +99 -0
- data/solr/ogp-dev/conf/lang/stopwords_fa.txt +313 -0
- data/solr/ogp-dev/conf/lang/stopwords_fi.txt +95 -0
- data/solr/ogp-dev/conf/lang/stopwords_fr.txt +184 -0
- data/solr/ogp-dev/conf/lang/stopwords_ga.txt +110 -0
- data/solr/ogp-dev/conf/lang/stopwords_gl.txt +161 -0
- data/solr/ogp-dev/conf/lang/stopwords_hi.txt +235 -0
- data/solr/ogp-dev/conf/lang/stopwords_hu.txt +209 -0
- data/solr/ogp-dev/conf/lang/stopwords_hy.txt +46 -0
- data/solr/ogp-dev/conf/lang/stopwords_id.txt +359 -0
- data/solr/ogp-dev/conf/lang/stopwords_it.txt +301 -0
- data/solr/ogp-dev/conf/lang/stopwords_ja.txt +127 -0
- data/solr/ogp-dev/conf/lang/stopwords_lv.txt +172 -0
- data/solr/ogp-dev/conf/lang/stopwords_nl.txt +117 -0
- data/solr/ogp-dev/conf/lang/stopwords_no.txt +192 -0
- data/solr/ogp-dev/conf/lang/stopwords_pt.txt +251 -0
- data/solr/ogp-dev/conf/lang/stopwords_ro.txt +233 -0
- data/solr/ogp-dev/conf/lang/stopwords_ru.txt +241 -0
- data/solr/ogp-dev/conf/lang/stopwords_sv.txt +131 -0
- data/solr/ogp-dev/conf/lang/stopwords_th.txt +119 -0
- data/solr/ogp-dev/conf/lang/stopwords_tr.txt +212 -0
- data/solr/ogp-dev/conf/lang/userdict_ja.txt +29 -0
- data/solr/ogp-dev/conf/mapping-FoldToASCII.txt +3813 -0
- data/solr/ogp-dev/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/ogp-dev/conf/protwords.txt +21 -0
- data/solr/ogp-dev/conf/schema.xml +1362 -0
- data/solr/ogp-dev/conf/scripts.conf +24 -0
- data/solr/ogp-dev/conf/solrconfig.xml +1816 -0
- data/solr/ogp-dev/conf/spellings.txt +2 -0
- data/solr/ogp-dev/conf/stopwords.txt +14 -0
- data/solr/ogp-dev/conf/synonyms.txt +29 -0
- data/solr/ogp-dev/conf/synonymsIso.txt +158 -0
- data/solr/ogp-dev/conf/synonymsLcsh.txt +120 -0
- data/solr/ogp-dev/conf/synonymsState.txt +105 -0
- data/solr/ogp-dev/conf/update-script.js +53 -0
- data/solr/ogp-dev/conf/velocity/VM_global_library.vm +170 -0
- data/solr/ogp-dev/conf/velocity/browse.vm +50 -0
- data/solr/ogp-dev/conf/velocity/cluster.vm +9 -0
- data/solr/ogp-dev/conf/velocity/clusterResults.vm +12 -0
- data/solr/ogp-dev/conf/velocity/debug.vm +17 -0
- data/solr/ogp-dev/conf/velocity/did_you_mean.vm +4 -0
- data/solr/ogp-dev/conf/velocity/facet_fields.vm +15 -0
- data/solr/ogp-dev/conf/velocity/facet_pivot.vm +3 -0
- data/solr/ogp-dev/conf/velocity/facet_queries.vm +3 -0
- data/solr/ogp-dev/conf/velocity/facet_ranges.vm +15 -0
- data/solr/ogp-dev/conf/velocity/facets.vm +5 -0
- data/solr/ogp-dev/conf/velocity/footer.vm +17 -0
- data/solr/ogp-dev/conf/velocity/head.vm +32 -0
- data/solr/ogp-dev/conf/velocity/header.vm +3 -0
- data/solr/ogp-dev/conf/velocity/hit.vm +11 -0
- data/solr/ogp-dev/conf/velocity/hitGrouped.vm +24 -0
- data/solr/ogp-dev/conf/velocity/join-doc.vm +4 -0
- data/solr/ogp-dev/conf/velocity/jquery.autocomplete.css +48 -0
- data/solr/ogp-dev/conf/velocity/jquery.autocomplete.js +763 -0
- data/solr/ogp-dev/conf/velocity/layout.vm +20 -0
- data/solr/ogp-dev/conf/velocity/main.css +208 -0
- data/solr/ogp-dev/conf/velocity/product-doc.vm +27 -0
- data/solr/ogp-dev/conf/velocity/query.vm +42 -0
- data/solr/ogp-dev/conf/velocity/queryGroup.vm +19 -0
- data/solr/ogp-dev/conf/velocity/querySpatial.vm +40 -0
- data/solr/ogp-dev/conf/velocity/richtext-doc.vm +114 -0
- data/solr/ogp-dev/conf/velocity/suggest.vm +3 -0
- data/solr/ogp-dev/conf/velocity/tabs.vm +6 -0
- data/solr/ogp-dev/conf/xslt/example.xsl +132 -0
- data/solr/ogp-dev/conf/xslt/example_atom.xsl +67 -0
- data/solr/ogp-dev/conf/xslt/example_rss.xsl +66 -0
- data/solr/ogp-dev/conf/xslt/luke.xsl +337 -0
- data/solr/ogp-dev/conf/xslt/updateXml.xsl +70 -0
- data/solr/ogp-dev/deploy.sh +15 -0
- data/solr/ogp-dev/purge.sh +9 -0
- data/solr/ogp-dev/upload.sh +17 -0
- data/solr/ogp-test/conf/admin-extra.html +24 -0
- data/solr/ogp-test/conf/admin-extra.menu-bottom.html +25 -0
- data/solr/ogp-test/conf/admin-extra.menu-top.html +25 -0
- data/solr/ogp-test/conf/currency.xml +67 -0
- data/solr/ogp-test/conf/elevate.xml +38 -0
- data/solr/ogp-test/conf/lang/contractions_ca.txt +8 -0
- data/solr/ogp-test/conf/lang/contractions_fr.txt +15 -0
- data/solr/ogp-test/conf/lang/contractions_ga.txt +5 -0
- data/solr/ogp-test/conf/lang/contractions_it.txt +23 -0
- data/solr/ogp-test/conf/lang/hyphenations_ga.txt +5 -0
- data/solr/ogp-test/conf/lang/stemdict_nl.txt +6 -0
- data/solr/ogp-test/conf/lang/stoptags_ja.txt +420 -0
- data/solr/ogp-test/conf/lang/stopwords_ar.txt +125 -0
- data/solr/ogp-test/conf/lang/stopwords_bg.txt +193 -0
- data/solr/ogp-test/conf/lang/stopwords_ca.txt +220 -0
- data/solr/ogp-test/conf/lang/stopwords_cz.txt +172 -0
- data/solr/ogp-test/conf/lang/stopwords_da.txt +108 -0
- data/solr/ogp-test/conf/lang/stopwords_de.txt +292 -0
- data/solr/ogp-test/conf/lang/stopwords_el.txt +78 -0
- data/solr/ogp-test/conf/lang/stopwords_en.txt +54 -0
- data/solr/ogp-test/conf/lang/stopwords_es.txt +354 -0
- data/solr/ogp-test/conf/lang/stopwords_eu.txt +99 -0
- data/solr/ogp-test/conf/lang/stopwords_fa.txt +313 -0
- data/solr/ogp-test/conf/lang/stopwords_fi.txt +95 -0
- data/solr/ogp-test/conf/lang/stopwords_fr.txt +184 -0
- data/solr/ogp-test/conf/lang/stopwords_ga.txt +110 -0
- data/solr/ogp-test/conf/lang/stopwords_gl.txt +161 -0
- data/solr/ogp-test/conf/lang/stopwords_hi.txt +235 -0
- data/solr/ogp-test/conf/lang/stopwords_hu.txt +209 -0
- data/solr/ogp-test/conf/lang/stopwords_hy.txt +46 -0
- data/solr/ogp-test/conf/lang/stopwords_id.txt +359 -0
- data/solr/ogp-test/conf/lang/stopwords_it.txt +301 -0
- data/solr/ogp-test/conf/lang/stopwords_ja.txt +127 -0
- data/solr/ogp-test/conf/lang/stopwords_lv.txt +172 -0
- data/solr/ogp-test/conf/lang/stopwords_nl.txt +117 -0
- data/solr/ogp-test/conf/lang/stopwords_no.txt +192 -0
- data/solr/ogp-test/conf/lang/stopwords_pt.txt +251 -0
- data/solr/ogp-test/conf/lang/stopwords_ro.txt +233 -0
- data/solr/ogp-test/conf/lang/stopwords_ru.txt +241 -0
- data/solr/ogp-test/conf/lang/stopwords_sv.txt +131 -0
- data/solr/ogp-test/conf/lang/stopwords_th.txt +119 -0
- data/solr/ogp-test/conf/lang/stopwords_tr.txt +212 -0
- data/solr/ogp-test/conf/lang/userdict_ja.txt +29 -0
- data/solr/ogp-test/conf/mapping-FoldToASCII.txt +3813 -0
- data/solr/ogp-test/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/ogp-test/conf/protwords.txt +21 -0
- data/solr/ogp-test/conf/schema.xml +1362 -0
- data/solr/ogp-test/conf/scripts.conf +24 -0
- data/solr/ogp-test/conf/solrconfig.xml +1816 -0
- data/solr/ogp-test/conf/spellings.txt +2 -0
- data/solr/ogp-test/conf/stopwords.txt +14 -0
- data/solr/ogp-test/conf/synonyms.txt +29 -0
- data/solr/ogp-test/conf/synonymsIso.txt +158 -0
- data/solr/ogp-test/conf/synonymsLcsh.txt +120 -0
- data/solr/ogp-test/conf/synonymsState.txt +105 -0
- data/solr/ogp-test/conf/update-script.js +53 -0
- data/solr/ogp-test/conf/velocity/VM_global_library.vm +170 -0
- data/solr/ogp-test/conf/velocity/browse.vm +50 -0
- data/solr/ogp-test/conf/velocity/cluster.vm +9 -0
- data/solr/ogp-test/conf/velocity/clusterResults.vm +12 -0
- data/solr/ogp-test/conf/velocity/debug.vm +17 -0
- data/solr/ogp-test/conf/velocity/did_you_mean.vm +4 -0
- data/solr/ogp-test/conf/velocity/facet_fields.vm +15 -0
- data/solr/ogp-test/conf/velocity/facet_pivot.vm +3 -0
- data/solr/ogp-test/conf/velocity/facet_queries.vm +3 -0
- data/solr/ogp-test/conf/velocity/facet_ranges.vm +15 -0
- data/solr/ogp-test/conf/velocity/facets.vm +5 -0
- data/solr/ogp-test/conf/velocity/footer.vm +17 -0
- data/solr/ogp-test/conf/velocity/head.vm +32 -0
- data/solr/ogp-test/conf/velocity/header.vm +3 -0
- data/solr/ogp-test/conf/velocity/hit.vm +11 -0
- data/solr/ogp-test/conf/velocity/hitGrouped.vm +24 -0
- data/solr/ogp-test/conf/velocity/join-doc.vm +4 -0
- data/solr/ogp-test/conf/velocity/jquery.autocomplete.css +48 -0
- data/solr/ogp-test/conf/velocity/jquery.autocomplete.js +763 -0
- data/solr/ogp-test/conf/velocity/layout.vm +20 -0
- data/solr/ogp-test/conf/velocity/main.css +208 -0
- data/solr/ogp-test/conf/velocity/product-doc.vm +27 -0
- data/solr/ogp-test/conf/velocity/query.vm +42 -0
- data/solr/ogp-test/conf/velocity/queryGroup.vm +19 -0
- data/solr/ogp-test/conf/velocity/querySpatial.vm +40 -0
- data/solr/ogp-test/conf/velocity/richtext-doc.vm +114 -0
- data/solr/ogp-test/conf/velocity/suggest.vm +3 -0
- data/solr/ogp-test/conf/velocity/tabs.vm +6 -0
- data/solr/ogp-test/conf/xslt/example.xsl +132 -0
- data/solr/ogp-test/conf/xslt/example_atom.xsl +67 -0
- data/solr/ogp-test/conf/xslt/example_rss.xsl +66 -0
- data/solr/ogp-test/conf/xslt/luke.xsl +337 -0
- data/solr/ogp-test/conf/xslt/updateXml.xsl +70 -0
- data/solr/ogp-test/deploy.sh +15 -0
- data/solr/ogp-test/purge.sh +9 -0
- data/solr/ogp-test/upload.sh +17 -0
- data/solr/ogp/conf/admin-extra.html +24 -0
- data/solr/ogp/conf/admin-extra.menu-bottom.html +25 -0
- data/solr/ogp/conf/admin-extra.menu-top.html +25 -0
- data/solr/ogp/conf/currency.xml +67 -0
- data/solr/ogp/conf/elevate.xml +38 -0
- data/solr/ogp/conf/lang/contractions_ca.txt +8 -0
- data/solr/ogp/conf/lang/contractions_fr.txt +15 -0
- data/solr/ogp/conf/lang/contractions_ga.txt +5 -0
- data/solr/ogp/conf/lang/contractions_it.txt +23 -0
- data/solr/ogp/conf/lang/hyphenations_ga.txt +5 -0
- data/solr/ogp/conf/lang/stemdict_nl.txt +6 -0
- data/solr/ogp/conf/lang/stoptags_ja.txt +420 -0
- data/solr/ogp/conf/lang/stopwords_ar.txt +125 -0
- data/solr/ogp/conf/lang/stopwords_bg.txt +193 -0
- data/solr/ogp/conf/lang/stopwords_ca.txt +220 -0
- data/solr/ogp/conf/lang/stopwords_cz.txt +172 -0
- data/solr/ogp/conf/lang/stopwords_da.txt +108 -0
- data/solr/ogp/conf/lang/stopwords_de.txt +292 -0
- data/solr/ogp/conf/lang/stopwords_el.txt +78 -0
- data/solr/ogp/conf/lang/stopwords_en.txt +54 -0
- data/solr/ogp/conf/lang/stopwords_es.txt +354 -0
- data/solr/ogp/conf/lang/stopwords_eu.txt +99 -0
- data/solr/ogp/conf/lang/stopwords_fa.txt +313 -0
- data/solr/ogp/conf/lang/stopwords_fi.txt +95 -0
- data/solr/ogp/conf/lang/stopwords_fr.txt +184 -0
- data/solr/ogp/conf/lang/stopwords_ga.txt +110 -0
- data/solr/ogp/conf/lang/stopwords_gl.txt +161 -0
- data/solr/ogp/conf/lang/stopwords_hi.txt +235 -0
- data/solr/ogp/conf/lang/stopwords_hu.txt +209 -0
- data/solr/ogp/conf/lang/stopwords_hy.txt +46 -0
- data/solr/ogp/conf/lang/stopwords_id.txt +359 -0
- data/solr/ogp/conf/lang/stopwords_it.txt +301 -0
- data/solr/ogp/conf/lang/stopwords_ja.txt +127 -0
- data/solr/ogp/conf/lang/stopwords_lv.txt +172 -0
- data/solr/ogp/conf/lang/stopwords_nl.txt +117 -0
- data/solr/ogp/conf/lang/stopwords_no.txt +192 -0
- data/solr/ogp/conf/lang/stopwords_pt.txt +251 -0
- data/solr/ogp/conf/lang/stopwords_ro.txt +233 -0
- data/solr/ogp/conf/lang/stopwords_ru.txt +241 -0
- data/solr/ogp/conf/lang/stopwords_sv.txt +131 -0
- data/solr/ogp/conf/lang/stopwords_th.txt +119 -0
- data/solr/ogp/conf/lang/stopwords_tr.txt +212 -0
- data/solr/ogp/conf/lang/userdict_ja.txt +29 -0
- data/solr/ogp/conf/mapping-FoldToASCII.txt +3813 -0
- data/solr/ogp/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/ogp/conf/protwords.txt +21 -0
- data/solr/ogp/conf/schema.xml +1362 -0
- data/solr/ogp/conf/scripts.conf +24 -0
- data/solr/ogp/conf/solrconfig.xml +1816 -0
- data/solr/ogp/conf/spellings.txt +2 -0
- data/solr/ogp/conf/stopwords.txt +14 -0
- data/solr/ogp/conf/synonyms.txt +29 -0
- data/solr/ogp/conf/synonymsIso.txt +158 -0
- data/solr/ogp/conf/synonymsLcsh.txt +120 -0
- data/solr/ogp/conf/synonymsState.txt +105 -0
- data/solr/ogp/conf/update-script.js +53 -0
- data/solr/ogp/conf/velocity/VM_global_library.vm +170 -0
- data/solr/ogp/conf/velocity/browse.vm +50 -0
- data/solr/ogp/conf/velocity/cluster.vm +9 -0
- data/solr/ogp/conf/velocity/clusterResults.vm +12 -0
- data/solr/ogp/conf/velocity/debug.vm +17 -0
- data/solr/ogp/conf/velocity/did_you_mean.vm +4 -0
- data/solr/ogp/conf/velocity/facet_fields.vm +15 -0
- data/solr/ogp/conf/velocity/facet_pivot.vm +3 -0
- data/solr/ogp/conf/velocity/facet_queries.vm +3 -0
- data/solr/ogp/conf/velocity/facet_ranges.vm +15 -0
- data/solr/ogp/conf/velocity/facets.vm +5 -0
- data/solr/ogp/conf/velocity/footer.vm +17 -0
- data/solr/ogp/conf/velocity/head.vm +32 -0
- data/solr/ogp/conf/velocity/header.vm +3 -0
- data/solr/ogp/conf/velocity/hit.vm +11 -0
- data/solr/ogp/conf/velocity/hitGrouped.vm +24 -0
- data/solr/ogp/conf/velocity/join-doc.vm +4 -0
- data/solr/ogp/conf/velocity/jquery.autocomplete.css +48 -0
- data/solr/ogp/conf/velocity/jquery.autocomplete.js +763 -0
- data/solr/ogp/conf/velocity/layout.vm +20 -0
- data/solr/ogp/conf/velocity/main.css +208 -0
- data/solr/ogp/conf/velocity/product-doc.vm +27 -0
- data/solr/ogp/conf/velocity/query.vm +42 -0
- data/solr/ogp/conf/velocity/queryGroup.vm +19 -0
- data/solr/ogp/conf/velocity/querySpatial.vm +40 -0
- data/solr/ogp/conf/velocity/richtext-doc.vm +114 -0
- data/solr/ogp/conf/velocity/suggest.vm +3 -0
- data/solr/ogp/conf/velocity/tabs.vm +6 -0
- data/solr/ogp/conf/xslt/example.xsl +132 -0
- data/solr/ogp/conf/xslt/example_atom.xsl +67 -0
- data/solr/ogp/conf/xslt/example_rss.xsl +66 -0
- data/solr/ogp/conf/xslt/luke.xsl +337 -0
- data/solr/ogp/conf/xslt/updateXml.xsl +70 -0
- data/solr/ogp/deploy.sh +15 -0
- data/solr/ogp/upload.sh +16 -0
- data/spec/fixtures/bw938nk9584/metadata/geoMetadata.xml +2438 -0
- data/spec/fixtures/bw938nk9584/temp/TRIPURA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/bw938nk9584/temp/TRIPURA-iso19139.xml +790 -0
- data/spec/fixtures/cc142xj8436/metadata/geoMetadata.xml +2029 -0
- data/spec/fixtures/cc142xj8436/temp/HARYANA-iso19139-fc.xml +1174 -0
- data/spec/fixtures/cc142xj8436/temp/HARYANA-iso19139.xml +850 -0
- data/spec/fixtures/cg716wc7949/metadata/geoMetadata.xml +1815 -0
- data/spec/fixtures/cg716wc7949/temp/metadata.iso19139-fc.xml +958 -0
- data/spec/fixtures/cg716wc7949/temp/metadata.iso19139.xml +852 -0
- data/spec/fixtures/cm007pv9601/metadata/geoMetadata.xml +1092 -0
- data/spec/fixtures/cm007pv9601/temp/MEGHALAYA-iso19139-fc.xml +379 -0
- data/spec/fixtures/cm007pv9601/temp/MEGHALAYA-iso19139.xml +708 -0
- data/spec/fixtures/cp055nb0189/metadata/geoMetadata.xml +1820 -0
- data/spec/fixtures/cp055nb0189/temp/metadata.iso19139-fc.xml +955 -0
- data/spec/fixtures/cp055nb0189/temp/metadata.iso19139.xml +860 -0
- data/spec/fixtures/cs838pw3418/metadata/geoMetadata.xml +912 -0
- data/spec/fixtures/cs838pw3418/temp/OIL_GAS_FIELDS-iso19139-fc.xml +177 -0
- data/spec/fixtures/cs838pw3418/temp/OIL_GAS_FIELDS-iso19139.xml +730 -0
- data/spec/fixtures/dd308sy5843/metadata/geoMetadata.xml +2438 -0
- data/spec/fixtures/dd308sy5843/temp/ORISSA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/dd308sy5843/temp/ORISSA-iso19139.xml +790 -0
- data/spec/fixtures/dd452vk1873/metadata/geoMetadata.xml +1168 -0
- data/spec/fixtures/dd452vk1873/temp/metadata.iso19139-fc.xml +175 -0
- data/spec/fixtures/dd452vk1873/temp/metadata.iso19139.xml +988 -0
- data/spec/fixtures/dg850pt1796/metadata/geoMetadata.xml +1411 -0
- data/spec/fixtures/dg850pt1796/temp/STATE1951-iso19139-fc.xml +519 -0
- data/spec/fixtures/dg850pt1796/temp/STATE1951-iso19139.xml +887 -0
- data/spec/fixtures/dn744tf5427/metadata/geoMetadata.xml +7403 -0
- data/spec/fixtures/dn744tf5427/temp/DISTRICT1991-iso19139-fc.xml +6539 -0
- data/spec/fixtures/dn744tf5427/temp/DISTRICT1991-iso19139.xml +859 -0
- data/spec/fixtures/dq603nz8402/metadata/geoMetadata.xml +8485 -0
- data/spec/fixtures/dq603nz8402/temp/STATE2001-iso19139-fc.xml +7595 -0
- data/spec/fixtures/dq603nz8402/temp/STATE2001-iso19139.xml +885 -0
- data/spec/fixtures/dv609zt4699/metadata/geoMetadata.xml +3865 -0
- data/spec/fixtures/dv609zt4699/temp/ASSAM-iso19139-fc.xml +3075 -0
- data/spec/fixtures/dv609zt4699/temp/ASSAM-iso19139.xml +785 -0
- data/spec/fixtures/dz222hw0585/metadata/geoMetadata.xml +2057 -0
- data/spec/fixtures/dz222hw0585/temp/PUNJAB-iso19139-fc.xml +1203 -0
- data/spec/fixtures/dz222hw0585/temp/PUNJAB-iso19139.xml +849 -0
- data/spec/fixtures/fd673qb9705/metadata/geoMetadata.xml +4059 -0
- data/spec/fixtures/fd673qb9705/temp/STATE1971-iso19139-fc.xml +3159 -0
- data/spec/fixtures/fd673qb9705/temp/STATE1971-iso19139.xml +895 -0
- data/spec/fixtures/fg451wp8917/metadata/geoMetadata.xml +2435 -0
- data/spec/fixtures/fg451wp8917/temp/SIKKIM-iso19139-fc.xml +1643 -0
- data/spec/fixtures/fg451wp8917/temp/SIKKIM-iso19139.xml +787 -0
- data/spec/fixtures/fh247yz0156/metadata/geoMetadata.xml +2437 -0
- data/spec/fixtures/fh247yz0156/temp/RAJASTHAN-iso19139-fc.xml +1643 -0
- data/spec/fixtures/fh247yz0156/temp/RAJASTHAN-iso19139.xml +789 -0
- data/spec/fixtures/fs487vd1465/metadata/geoMetadata.xml +3896 -0
- data/spec/fixtures/fs487vd1465/temp/CHHATTISGARH-iso19139-fc.xml +3075 -0
- data/spec/fixtures/fs487vd1465/temp/CHHATTISGARH-iso19139.xml +816 -0
- data/spec/fixtures/fs591bn3317/metadata/geoMetadata.xml +2435 -0
- data/spec/fixtures/fs591bn3317/temp/HIMACHAL_PRADESH-iso19139-fc.xml +1643 -0
- data/spec/fixtures/fs591bn3317/temp/HIMACHAL_PRADESH-iso19139.xml +787 -0
- data/spec/fixtures/fw920bc5473/metadata/geoMetadata.xml +1056 -0
- data/spec/fixtures/fw920bc5473/temp/PLSS_TWN-iso19139-fc.xml +327 -0
- data/spec/fixtures/fw920bc5473/temp/PLSS_TWN-iso19139.xml +724 -0
- data/spec/fixtures/gj831wj3625/metadata/geoMetadata.xml +1735 -0
- data/spec/fixtures/gj831wj3625/temp/metadata.iso19139-fc.xml +940 -0
- data/spec/fixtures/gj831wj3625/temp/metadata.iso19139.xml +790 -0
- data/spec/fixtures/gp075nv3265/metadata/geoMetadata.xml +2432 -0
- data/spec/fixtures/gp075nv3265/temp/PONDICHERRY-iso19139-fc.xml +1643 -0
- data/spec/fixtures/gp075nv3265/temp/PONDICHERRY-iso19139.xml +784 -0
- data/spec/fixtures/gv800hj8141/metadata/geoMetadata.xml +2392 -0
- data/spec/fixtures/gv800hj8141/temp/BIHAR-iso19139-fc.xml +1643 -0
- data/spec/fixtures/gv800hj8141/temp/BIHAR-iso19139.xml +744 -0
- data/spec/fixtures/gw520gz6339/metadata/geoMetadata.xml +3899 -0
- data/spec/fixtures/gw520gz6339/temp/DADRA_NAGAR_HAVELI_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/gw520gz6339/temp/DADRA_NAGAR_HAVELI_PT-iso19139.xml +819 -0
- data/spec/fixtures/gy054hz1045/metadata/geoMetadata.xml +2418 -0
- data/spec/fixtures/gy054hz1045/temp/HARYANA-iso19139-fc.xml +1633 -0
- data/spec/fixtures/gy054hz1045/temp/HARYANA-iso19139.xml +780 -0
- data/spec/fixtures/gz352mw6982/metadata/geoMetadata.xml +1772 -0
- data/spec/fixtures/gz352mw6982/temp/metadata.iso19139-fc.xml +940 -0
- data/spec/fixtures/gz352mw6982/temp/metadata.iso19139.xml +827 -0
- data/spec/fixtures/hb489vm9892/metadata/geoMetadata.xml +3663 -0
- data/spec/fixtures/hb489vm9892/temp/DISTRICT1981-iso19139-fc.xml +2799 -0
- data/spec/fixtures/hb489vm9892/temp/DISTRICT1981-iso19139.xml +859 -0
- data/spec/fixtures/hw125dq0418/metadata/geoMetadata.xml +2448 -0
- data/spec/fixtures/hw125dq0418/temp/DELHI-iso19139-fc.xml +1599 -0
- data/spec/fixtures/hw125dq0418/temp/DELHI-iso19139.xml +844 -0
- data/spec/fixtures/hw892mn4587/metadata/geoMetadata.xml +2561 -0
- data/spec/fixtures/hw892mn4587/temp/KERALA-iso19139-fc.xml +1763 -0
- data/spec/fixtures/hw892mn4587/temp/KERALA-iso19139.xml +793 -0
- data/spec/fixtures/jb371hz3868/metadata/geoMetadata.xml +3129 -0
- data/spec/fixtures/jb371hz3868/temp/INCOME-iso19139-fc.xml +2263 -0
- data/spec/fixtures/jb371hz3868/temp/INCOME-iso19139.xml +861 -0
- data/spec/fixtures/jc017yk9928/metadata/geoMetadata.xml +2433 -0
- data/spec/fixtures/jc017yk9928/temp/KARNATAKA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/jc017yk9928/temp/KARNATAKA-iso19139.xml +829 -0
- data/spec/fixtures/jf841ys4828/metadata/geoMetadata.xml +2156 -0
- data/spec/fixtures/jf841ys4828/temp/ANDHRA_PRADESH-iso19139-fc.xml +1247 -0
- data/spec/fixtures/jf841ys4828/temp/ANDHRA_PRADESH-iso19139.xml +904 -0
- data/spec/fixtures/jh802mp2160/metadata/geoMetadata.xml +3917 -0
- data/spec/fixtures/jh802mp2160/temp/DELHI_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/jh802mp2160/temp/DELHI_PT-iso19139.xml +837 -0
- data/spec/fixtures/jj806fc3801/metadata/geoMetadata.xml +1235 -0
- data/spec/fixtures/jj806fc3801/temp/metadata.iso19139-fc.xml +173 -0
- data/spec/fixtures/jj806fc3801/temp/metadata.iso19139.xml +1057 -0
- data/spec/fixtures/jq835yn7161/metadata/geoMetadata.xml +2060 -0
- data/spec/fixtures/jq835yn7161/temp/HIMACHAL_PRADESH-iso19139-fc.xml +1203 -0
- data/spec/fixtures/jq835yn7161/temp/HIMACHAL_PRADESH-iso19139.xml +852 -0
- data/spec/fixtures/jr455pt6676/metadata/geoMetadata.xml +2045 -0
- data/spec/fixtures/jr455pt6676/temp/TAMILNADU-iso19139-fc.xml +1203 -0
- data/spec/fixtures/jr455pt6676/temp/TAMILNADU-iso19139.xml +837 -0
- data/spec/fixtures/js637zp2537/metadata/geoMetadata.xml +3894 -0
- data/spec/fixtures/js637zp2537/temp/BIHAR-iso19139-fc.xml +3075 -0
- data/spec/fixtures/js637zp2537/temp/BIHAR-iso19139.xml +814 -0
- data/spec/fixtures/jv502wg9611/metadata/geoMetadata.xml +2052 -0
- data/spec/fixtures/jv502wg9611/temp/GOA-iso19139-fc.xml +1203 -0
- data/spec/fixtures/jv502wg9611/temp/GOA-iso19139.xml +844 -0
- data/spec/fixtures/jw462ck6560/metadata/geoMetadata.xml +2442 -0
- data/spec/fixtures/jw462ck6560/temp/JAMMU_KASHMIR-iso19139-fc.xml +1643 -0
- data/spec/fixtures/jw462ck6560/temp/JAMMU_KASHMIR-iso19139.xml +794 -0
- data/spec/fixtures/kj800fb6273/metadata/geoMetadata.xml +3300 -0
- data/spec/fixtures/kj800fb6273/temp/STATE2011-iso19139-fc.xml +2403 -0
- data/spec/fixtures/kj800fb6273/temp/STATE2011-iso19139.xml +892 -0
- data/spec/fixtures/km504zq3948/metadata/geoMetadata.xml +3862 -0
- data/spec/fixtures/km504zq3948/temp/HIMACHAL_PRADESH-iso19139-fc.xml +3075 -0
- data/spec/fixtures/km504zq3948/temp/HIMACHAL_PRADESH-iso19139.xml +782 -0
- data/spec/fixtures/ks297fy1411/metadata/geoMetadata.xml +1043 -0
- data/spec/fixtures/ks297fy1411/temp/OFFSH_BLOCKS-iso19139-fc.xml +350 -0
- data/spec/fixtures/ks297fy1411/temp/OFFSH_BLOCKS-iso19139.xml +688 -0
- data/spec/fixtures/md358hy5049/metadata/geoMetadata.xml +2424 -0
- data/spec/fixtures/md358hy5049/temp/MIZORAM-iso19139-fc.xml +1570 -0
- data/spec/fixtures/md358hy5049/temp/MIZORAM-iso19139.xml +849 -0
- data/spec/fixtures/mg745bq0193/metadata/geoMetadata.xml +2183 -0
- data/spec/fixtures/mg745bq0193/temp/MADHYA_PRADESH-iso19139-fc.xml +1383 -0
- data/spec/fixtures/mg745bq0193/temp/MADHYA_PRADESH-iso19139.xml +795 -0
- data/spec/fixtures/mh187yx3536/metadata/geoMetadata.xml +2447 -0
- data/spec/fixtures/mh187yx3536/temp/WEST_BENGAL-iso19139-fc.xml +1643 -0
- data/spec/fixtures/mh187yx3536/temp/WEST_BENGAL-iso19139.xml +799 -0
- data/spec/fixtures/mk488yn6694/metadata/geoMetadata.xml +2042 -0
- data/spec/fixtures/mk488yn6694/temp/GUJARAT-iso19139-fc.xml +1203 -0
- data/spec/fixtures/mk488yn6694/temp/GUJARAT-iso19139.xml +834 -0
- data/spec/fixtures/my216kp3008/metadata/geoMetadata.xml +2366 -0
- data/spec/fixtures/my216kp3008/temp/DELHI-iso19139-fc.xml +1643 -0
- data/spec/fixtures/my216kp3008/temp/DELHI-iso19139.xml +718 -0
- data/spec/fixtures/my504nz9827/metadata/geoMetadata.xml +2367 -0
- data/spec/fixtures/my504nz9827/temp/JAMMU_KASHMIR-iso19139-fc.xml +1519 -0
- data/spec/fixtures/my504nz9827/temp/JAMMU_KASHMIR-iso19139.xml +843 -0
- data/spec/fixtures/ng819jm8700/metadata/geoMetadata.xml +2496 -0
- data/spec/fixtures/ng819jm8700/temp/MANIPUR-iso19139-fc.xml +1643 -0
- data/spec/fixtures/ng819jm8700/temp/MANIPUR-iso19139.xml +848 -0
- data/spec/fixtures/np020jq2139/metadata/geoMetadata.xml +1153 -0
- data/spec/fixtures/np020jq2139/temp/metadata.iso19139-fc.xml +160 -0
- data/spec/fixtures/np020jq2139/temp/metadata.iso19139.xml +988 -0
- data/spec/fixtures/ns377mt1608/metadata/geoMetadata.xml +7125 -0
- data/spec/fixtures/ns377mt1608/temp/STATE1991-iso19139-fc.xml +6283 -0
- data/spec/fixtures/ns377mt1608/temp/STATE1991-iso19139.xml +837 -0
- data/spec/fixtures/nw926np8508/metadata/geoMetadata.xml +1143 -0
- data/spec/fixtures/nw926np8508/temp/metadata.iso19139-fc.xml +160 -0
- data/spec/fixtures/nw926np8508/temp/metadata.iso19139.xml +978 -0
- data/spec/fixtures/ny358rm8559/metadata/geoMetadata.xml +2459 -0
- data/spec/fixtures/ny358rm8559/temp/TRIPURA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/ny358rm8559/temp/TRIPURA-iso19139.xml +855 -0
- data/spec/fixtures/nz176rm8192/metadata/geoMetadata.xml +2618 -0
- data/spec/fixtures/nz176rm8192/temp/DISTRICT2011-iso19139-fc.xml +1813 -0
- data/spec/fixtures/nz176rm8192/temp/DISTRICT2011-iso19139.xml +800 -0
- data/spec/fixtures/nz252rq2252/metadata/geoMetadata.xml +2387 -0
- data/spec/fixtures/nz252rq2252/temp/UTTAR_PRADESH-iso19139-fc.xml +1599 -0
- data/spec/fixtures/nz252rq2252/temp/UTTAR_PRADESH-iso19139.xml +783 -0
- data/spec/fixtures/pd902kb3348/metadata/geoMetadata.xml +2414 -0
- data/spec/fixtures/pd902kb3348/temp/MADHYA_PRADESH-iso19139-fc.xml +1633 -0
- data/spec/fixtures/pd902kb3348/temp/MADHYA_PRADESH-iso19139.xml +776 -0
- data/spec/fixtures/pz792fz1776/metadata/geoMetadata.xml +2437 -0
- data/spec/fixtures/pz792fz1776/temp/MAHARASHTRA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/pz792fz1776/temp/MAHARASHTRA-iso19139.xml +789 -0
- data/spec/fixtures/qb767ss4042/metadata/geoMetadata.xml +2045 -0
- data/spec/fixtures/qb767ss4042/temp/UTTAR_PRADESH-iso19139-fc.xml +1200 -0
- data/spec/fixtures/qb767ss4042/temp/UTTAR_PRADESH-iso19139.xml +840 -0
- data/spec/fixtures/qc091qw0570/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/qc091qw0570/temp/GUJARAT-iso19139-fc.xml +1643 -0
- data/spec/fixtures/qc091qw0570/temp/GUJARAT-iso19139.xml +780 -0
- data/spec/fixtures/qc652vr7204/metadata/geoMetadata.xml +3877 -0
- data/spec/fixtures/qc652vr7204/temp/ANDHRA_PRADESH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/qc652vr7204/temp/ANDHRA_PRADESH_PT-iso19139.xml +797 -0
- data/spec/fixtures/qk786js7484/metadata/geoMetadata.xml +3267 -0
- data/spec/fixtures/qk786js7484/temp/DISTRICT1961-iso19139-fc.xml +2403 -0
- data/spec/fixtures/qk786js7484/temp/DISTRICT1961-iso19139.xml +859 -0
- data/spec/fixtures/qn676pg6767/metadata/geoMetadata.xml +3861 -0
- data/spec/fixtures/qn676pg6767/temp/GOA-iso19139-fc.xml +3075 -0
- data/spec/fixtures/qn676pg6767/temp/GOA-iso19139.xml +781 -0
- data/spec/fixtures/qr255jh4074/metadata/geoMetadata.xml +3226 -0
- data/spec/fixtures/qr255jh4074/temp/LOKSABHA_14-iso19139-fc.xml +2366 -0
- data/spec/fixtures/qr255jh4074/temp/LOKSABHA_14-iso19139.xml +855 -0
- data/spec/fixtures/qr374kj4827/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/qr374kj4827/temp/ASSAM-iso19139-fc.xml +1643 -0
- data/spec/fixtures/qr374kj4827/temp/ASSAM-iso19139.xml +780 -0
- data/spec/fixtures/qy162js1748/metadata/geoMetadata.xml +2440 -0
- data/spec/fixtures/qy162js1748/temp/CHHATTISGARH-iso19139-fc.xml +1643 -0
- data/spec/fixtures/qy162js1748/temp/CHHATTISGARH-iso19139.xml +792 -0
- data/spec/fixtures/rd446vf2633/metadata/geoMetadata.xml +1109 -0
- data/spec/fixtures/rd446vf2633/temp/NAGALAND-iso19139-fc.xml +379 -0
- data/spec/fixtures/rd446vf2633/temp/NAGALAND-iso19139.xml +725 -0
- data/spec/fixtures/rf389hf2983/metadata/geoMetadata.xml +3929 -0
- data/spec/fixtures/rf389hf2983/temp/CHHATTISGARH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/rf389hf2983/temp/CHHATTISGARH_PT-iso19139.xml +849 -0
- data/spec/fixtures/rf859ff4582/metadata/geoMetadata.xml +1251 -0
- data/spec/fixtures/rf859ff4582/temp/JHARKHAND-iso19139-fc.xml +459 -0
- data/spec/fixtures/rf859ff4582/temp/JHARKHAND-iso19139.xml +787 -0
- data/spec/fixtures/rh343ds8931/metadata/geoMetadata.xml +2032 -0
- data/spec/fixtures/rh343ds8931/temp/BIHAR-iso19139-fc.xml +1174 -0
- data/spec/fixtures/rh343ds8931/temp/BIHAR-iso19139.xml +853 -0
- data/spec/fixtures/rn815xk8157/metadata/geoMetadata.xml +2417 -0
- data/spec/fixtures/rn815xk8157/temp/SIKKIM-iso19139-fc.xml +1563 -0
- data/spec/fixtures/rn815xk8157/temp/SIKKIM-iso19139.xml +849 -0
- data/spec/fixtures/rq653sz4470/metadata/geoMetadata.xml +2394 -0
- data/spec/fixtures/rq653sz4470/temp/CHHATTISGARH-iso19139-fc.xml +1599 -0
- data/spec/fixtures/rq653sz4470/temp/CHHATTISGARH-iso19139.xml +790 -0
- data/spec/fixtures/rt625ws6022/metadata/geoMetadata.xml +833 -0
- data/spec/fixtures/rt625ws6022/temp/GULF_FAIRWAYS-iso19139-fc.xml +144 -0
- data/spec/fixtures/rt625ws6022/temp/GULF_FAIRWAYS-iso19139.xml +684 -0
- data/spec/fixtures/sc330vf4259/metadata/geoMetadata.xml +1836 -0
- data/spec/fixtures/sc330vf4259/temp/JHARKHAND-iso19139-fc.xml +987 -0
- data/spec/fixtures/sc330vf4259/temp/JHARKHAND-iso19139.xml +844 -0
- data/spec/fixtures/sq479mx3086/metadata/geoMetadata.xml +1043 -0
- data/spec/fixtures/sq479mx3086/temp/OFFSH_PLATF-iso19139-fc.xml +365 -0
- data/spec/fixtures/sq479mx3086/temp/OFFSH_PLATF-iso19139.xml +673 -0
- data/spec/fixtures/sr686bm4098/metadata/geoMetadata.xml +3896 -0
- data/spec/fixtures/sr686bm4098/temp/DAMAN_DIU_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/sr686bm4098/temp/DAMAN_DIU_PT-iso19139.xml +816 -0
- data/spec/fixtures/sv303sh5583/metadata/geoMetadata.xml +2395 -0
- data/spec/fixtures/sv303sh5583/temp/ARUNACHAL_PRADESH-iso19139-fc.xml +1555 -0
- data/spec/fixtures/sv303sh5583/temp/ARUNACHAL_PRADESH-iso19139.xml +835 -0
- data/spec/fixtures/sy319nh8520/metadata/geoMetadata.xml +3925 -0
- data/spec/fixtures/sy319nh8520/temp/GUJARAT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/sy319nh8520/temp/GUJARAT-iso19139.xml +845 -0
- data/spec/fixtures/td363vx2792/metadata/geoMetadata.xml +3964 -0
- data/spec/fixtures/td363vx2792/temp/HIMACHAL_PRADESH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/td363vx2792/temp/HIMACHAL_PRADESH_PT-iso19139.xml +884 -0
- data/spec/fixtures/tf374bd2484/metadata/geoMetadata.xml +1464 -0
- data/spec/fixtures/tf374bd2484/temp/DISTRICT1951-iso19139-fc.xml +599 -0
- data/spec/fixtures/tf374bd2484/temp/DISTRICT1951-iso19139.xml +860 -0
- data/spec/fixtures/tj797mj7877/metadata/geoMetadata.xml +2359 -0
- data/spec/fixtures/tj797mj7877/temp/LOKSABHA_15-iso19139-fc.xml +1511 -0
- data/spec/fixtures/tj797mj7877/temp/LOKSABHA_15-iso19139.xml +843 -0
- data/spec/fixtures/tv060wq5179/metadata/geoMetadata.xml +2046 -0
- data/spec/fixtures/tv060wq5179/temp/ASSAM-iso19139-fc.xml +1203 -0
- data/spec/fixtures/tv060wq5179/temp/ASSAM-iso19139.xml +838 -0
- data/spec/fixtures/tv536bn1915/metadata/geoMetadata.xml +2296 -0
- data/spec/fixtures/tv536bn1915/temp/ARUNACHAL_PRADESH-iso19139-fc.xml +1687 -0
- data/spec/fixtures/tv536bn1915/temp/ARUNACHAL_PRADESH-iso19139.xml +604 -0
- data/spec/fixtures/tz359cc2977/metadata/geoMetadata.xml +1842 -0
- data/spec/fixtures/tz359cc2977/temp/MANIPUR-iso19139-fc.xml +987 -0
- data/spec/fixtures/tz359cc2977/temp/MANIPUR-iso19139.xml +850 -0
- data/spec/fixtures/vb525my6511/metadata/geoMetadata.xml +2026 -0
- data/spec/fixtures/vb525my6511/temp/UTTARAKHAND-iso19139-fc.xml +1167 -0
- data/spec/fixtures/vb525my6511/temp/UTTARAKHAND-iso19139.xml +854 -0
- data/spec/fixtures/vh802fs4240/metadata/geoMetadata.xml +2189 -0
- data/spec/fixtures/vh802fs4240/temp/PONDICHERRY-iso19139-fc.xml +1343 -0
- data/spec/fixtures/vh802fs4240/temp/PONDICHERRY-iso19139.xml +841 -0
- data/spec/fixtures/vk120xn2474/metadata/geoMetadata.xml +1125 -0
- data/spec/fixtures/vk120xn2474/temp/PLSS_SEC-iso19139-fc.xml +435 -0
- data/spec/fixtures/vk120xn2474/temp/PLSS_SEC-iso19139.xml +685 -0
- data/spec/fixtures/vn439bc7316/metadata/geoMetadata.xml +1979 -0
- data/spec/fixtures/vn439bc7316/temp/KERALA-iso19139-fc.xml +1131 -0
- data/spec/fixtures/vn439bc7316/temp/KERALA-iso19139.xml +843 -0
- data/spec/fixtures/vq745jk0695/metadata/geoMetadata.xml +1787 -0
- data/spec/fixtures/vq745jk0695/temp/MEGHALAYA-iso19139-fc.xml +987 -0
- data/spec/fixtures/vq745jk0695/temp/MEGHALAYA-iso19139.xml +795 -0
- data/spec/fixtures/vr593vj7147/metadata/geoMetadata.xml +3895 -0
- data/spec/fixtures/vr593vj7147/temp/ANDHRA_PRADESH-iso19139-fc.xml +3075 -0
- data/spec/fixtures/vr593vj7147/temp/ANDHRA_PRADESH-iso19139.xml +815 -0
- data/spec/fixtures/vw911qb5271/metadata/geoMetadata.xml +8557 -0
- data/spec/fixtures/vw911qb5271/temp/DISTRICT2001-iso19139-fc.xml +7683 -0
- data/spec/fixtures/vw911qb5271/temp/DISTRICT2001-iso19139.xml +869 -0
- data/spec/fixtures/wg680pz0365/metadata/geoMetadata.xml +2475 -0
- data/spec/fixtures/wg680pz0365/temp/ANDHRA_PRADESH-iso19139-fc.xml +1599 -0
- data/spec/fixtures/wg680pz0365/temp/ANDHRA_PRADESH-iso19139.xml +871 -0
- data/spec/fixtures/wg761xn1926/metadata/geoMetadata.xml +3941 -0
- data/spec/fixtures/wg761xn1926/temp/HARYANA-iso19139-fc.xml +3075 -0
- data/spec/fixtures/wg761xn1926/temp/HARYANA-iso19139.xml +861 -0
- data/spec/fixtures/wh870qw1934/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/wh870qw1934/temp/PUNJAB-iso19139-fc.xml +1643 -0
- data/spec/fixtures/wh870qw1934/temp/PUNJAB-iso19139.xml +780 -0
- data/spec/fixtures/wk775mm4673/metadata/geoMetadata.xml +2458 -0
- data/spec/fixtures/wk775mm4673/temp/MAHARASHTRA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/wk775mm4673/temp/MAHARASHTRA-iso19139.xml +854 -0
- data/spec/fixtures/ws171yz2165/metadata/geoMetadata.xml +3868 -0
- data/spec/fixtures/ws171yz2165/temp/ARUNACHAL_PRADESH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/ws171yz2165/temp/ARUNACHAL_PRADESH_PT-iso19139.xml +788 -0
- data/spec/fixtures/wt473hz7153/metadata/geoMetadata.xml +3898 -0
- data/spec/fixtures/wt473hz7153/temp/CHANDIGARH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/wt473hz7153/temp/CHANDIGARH_PT-iso19139.xml +818 -0
- data/spec/fixtures/ww217dj0457/metadata/geoMetadata.xml +1205 -0
- data/spec/fixtures/ww217dj0457/temp/CO2_PIPE-iso19139-fc.xml +471 -0
- data/spec/fixtures/ww217dj0457/temp/CO2_PIPE-iso19139.xml +729 -0
- data/spec/fixtures/wy875pk9849/metadata/geoMetadata.xml +3173 -0
- data/spec/fixtures/wy875pk9849/temp/STATE1961-iso19139-fc.xml +2279 -0
- data/spec/fixtures/wy875pk9849/temp/STATE1961-iso19139.xml +889 -0
- data/spec/fixtures/xb018tk2042/metadata/geoMetadata.xml +2335 -0
- data/spec/fixtures/xb018tk2042/temp/STATE1981-iso19139-fc.xml +1443 -0
- data/spec/fixtures/xb018tk2042/temp/STATE1981-iso19139.xml +887 -0
- data/spec/fixtures/xg539vw8586/metadata/geoMetadata.xml +2405 -0
- data/spec/fixtures/xg539vw8586/temp/ORISSA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/xg539vw8586/temp/ORISSA-iso19139.xml +801 -0
- data/spec/fixtures/xv475kp4644/metadata/geoMetadata.xml +3871 -0
- data/spec/fixtures/xv475kp4644/temp/ASSAM_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/xv475kp4644/temp/ASSAM_PT-iso19139.xml +791 -0
- data/spec/fixtures/xy096gc2959/metadata/geoMetadata.xml +2432 -0
- data/spec/fixtures/xy096gc2959/temp/GOA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/xy096gc2959/temp/GOA-iso19139.xml +784 -0
- data/spec/fixtures/xz518gz3362/metadata/geoMetadata.xml +2434 -0
- data/spec/fixtures/xz518gz3362/temp/UTTARAKHAND-iso19139-fc.xml +1643 -0
- data/spec/fixtures/xz518gz3362/temp/UTTARAKHAND-iso19139.xml +786 -0
- data/spec/fixtures/yh986wy4737/metadata/geoMetadata.xml +1160 -0
- data/spec/fixtures/yh986wy4737/temp/NAGALAND-iso19139-fc.xml +384 -0
- data/spec/fixtures/yh986wy4737/temp/NAGALAND-iso19139.xml +771 -0
- data/spec/fixtures/yn187fq4474/metadata/geoMetadata.xml +2168 -0
- data/spec/fixtures/yn187fq4474/temp/KARNATAKA-iso19139-fc.xml +1379 -0
- data/spec/fixtures/yn187fq4474/temp/KARNATAKA-iso19139.xml +784 -0
- data/spec/fixtures/yn236mw3250/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/yn236mw3250/temp/TAMILNADU-iso19139-fc.xml +1643 -0
- data/spec/fixtures/yn236mw3250/temp/TAMILNADU-iso19139.xml +780 -0
- data/spec/fixtures/yz596nz0112/metadata/geoMetadata.xml +2012 -0
- data/spec/fixtures/yz596nz0112/temp/WEST_BENGAL-iso19139-fc.xml +1203 -0
- data/spec/fixtures/yz596nz0112/temp/WEST_BENGAL-iso19139.xml +804 -0
- data/spec/fixtures/zk596gy7380/metadata/geoMetadata.xml +4147 -0
- data/spec/fixtures/zk596gy7380/temp/DISTRICT1971-iso19139-fc.xml +3283 -0
- data/spec/fixtures/zk596gy7380/temp/DISTRICT1971-iso19139.xml +859 -0
- data/spec/fixtures/zn452hh7431/metadata/geoMetadata.xml +2337 -0
- data/spec/fixtures/zn452hh7431/temp/RAJASTHAN-iso19139-fc.xml +1505 -0
- data/spec/fixtures/zn452hh7431/temp/RAJASTHAN-iso19139.xml +827 -0
- data/spec/fixtures/zt093fw6519/metadata/geoMetadata.xml +2380 -0
- data/spec/fixtures/zt093fw6519/temp/MIZORAM-iso19139-fc.xml +1643 -0
- data/spec/fixtures/zt093fw6519/temp/MIZORAM-iso19139.xml +732 -0
- data/spec/fixtures/zv925hd6723/metadata/geoMetadata.xml +1473 -0
- data/spec/fixtures/zv925hd6723/temp/OGWELLS-iso19139-fc.xml +759 -0
- data/spec/fixtures/zv925hd6723/temp/OGWELLS-iso19139.xml +709 -0
- data/spec/fixtures/zy658cr1728/metadata/geoMetadata.xml +3814 -0
- data/spec/fixtures/zy658cr1728/temp/ANDAMAAN_NICOBAR_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/zy658cr1728/temp/ANDAMAAN_NICOBAR_PT-iso19139.xml +734 -0
- data/spec/fixtures/zz943vx1492/metadata/geoMetadata.xml +861 -0
- data/spec/fixtures/zz943vx1492/temp/BASINS-iso19139-fc.xml +164 -0
- data/spec/fixtures/zz943vx1492/temp/BASINS-iso19139.xml +692 -0
- data/spec/integration/solr_spec_notready.rb +51 -0
- data/spec/test_net_ssh_krb.rb +21 -0
- data/spec/unit/gazetteer_spec.rb +100 -0
- data/spec/unit/transform_spec.rb +40 -0
- data/spec/unit/utils_spec.rb +32 -0
- metadata +1491 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<names xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml" xmlns:srv="http://www.isotc211.org/2005/srv" xmlns:gmi="http://www.isotc211.org/2005/gmi">
|
3
|
+
<name tagname="gmd:spatialRepresentationInfo">Spatial Representation Information</name>
|
4
|
+
<name tagname="gmd:referenceSystemInfo">Reference System Information</name>
|
5
|
+
<name tagname="gmd:identificationInfo">Identification Information</name>
|
6
|
+
<name tagname="gmd:contentInfo">Content Information</name>
|
7
|
+
<name tagname="gmd:distributionInfo">Distribution Information</name>
|
8
|
+
<name tagname="gmd:dataQualityInfo">Data Quality Information</name>
|
9
|
+
<name tagname="gmd:portrayalCatalogueInfo">Portrayal Catalogue Information</name>
|
10
|
+
<name tagname="gmd:metadataConstraints">Metadata Constraint Information</name>
|
11
|
+
<name tagname="gmd:applicationSchemaInfo">Application Schema Information</name>
|
12
|
+
<name tagname="gmd:metadataMaintenance">Metadata Maintenance Information</name>
|
13
|
+
<name tagname="gmi:acquisitionInformation">Acquisition Information</name>
|
14
|
+
<name tagname="gmd:metadataExtensionInfo">Metadata Extension Information</name>
|
15
|
+
<name tagname="gfc:FC_FeatureCatalogue">Feature Catalog Information</name>
|
16
|
+
</names>
|
@@ -0,0 +1,227 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
3
|
+
<!--
|
4
|
+
Print the text of an XML element as preformatted text or wrapped paragraphs,
|
5
|
+
as appropriate. Makes the text readable on screen, and preserves the author's
|
6
|
+
intended formatting.
|
7
|
+
|
8
|
+
Created 6/20/06 Richard.Fozzard@noaa.gov
|
9
|
+
|
10
|
+
@version $Id$
|
11
|
+
|
12
|
+
The stylesheet that imports this file needs to define two callback templates:
|
13
|
+
printFormattedLine Output a line, preserving all formatting (whitespace)
|
14
|
+
printParagraphLine Output a line as a continuous paragraph (word-wrapped)
|
15
|
+
both with the param "line", the one line string to print.
|
16
|
+
|
17
|
+
Each callback template then outputs the "line" string as desired (e.g. HTML,
|
18
|
+
text, XML). These templates can have some optional params which printFormatted
|
19
|
+
will pass through as needed:
|
20
|
+
"restOfString" Useful for doing something different at the end, e.g. no <P>
|
21
|
+
"optional-param-1" Useful for passing indent values
|
22
|
+
"optional-param-2" or word wrap widths...
|
23
|
+
"optional-param-3" or whatever...
|
24
|
+
|
25
|
+
Then, whenever a string of one or more lines needs to be output, call the
|
26
|
+
printFormatted template with the params:
|
27
|
+
"elementContent" a one or more line string to print
|
28
|
+
"formattedSectionElement" Name of element to wrap a sequence of formatted lines
|
29
|
+
defaults to 'PRE', can be none, i.e. ''
|
30
|
+
plus any of the desired optional params for the callbacks
|
31
|
+
-->
|
32
|
+
<!--
|
33
|
+
g-fold-width
|
34
|
+
This parameter specifies the maximum length of a line when the
|
35
|
+
formattedSectionElement (<pre> by default) is used. The browser
|
36
|
+
may wrap PRE text at this width.
|
37
|
+
[only works in Firefox 1+]
|
38
|
+
-->
|
39
|
+
<!-- xsl:param name="g-fold-width" select="'80'"/ -->
|
40
|
+
<!-- Whitespace characters -->
|
41
|
+
<xsl:variable name="newline">
|
42
|
+
<xsl:text> </xsl:text>
|
43
|
+
</xsl:variable>
|
44
|
+
<xsl:variable name="tab">
|
45
|
+
<xsl:text>	</xsl:text>
|
46
|
+
</xsl:variable>
|
47
|
+
<xsl:template name="printFormatted">
|
48
|
+
<!-- string to print out -->
|
49
|
+
<xsl:param name="elementContent"/>
|
50
|
+
<!-- Name of element to wrap a sequence of formatted lines.
|
51
|
+
Set to empty string for no element, i.e. plain text output. -->
|
52
|
+
<xsl:param name="formattedSectionElement" select="'PRE'"/>
|
53
|
+
<!-- used internally to skip 1 or more formatted lines -->
|
54
|
+
<xsl:param name="skipFormattedLines" select="false()"/>
|
55
|
+
<!-- if needed by callback template: -->
|
56
|
+
<xsl:param name="optional-param-1"/>
|
57
|
+
<xsl:param name="optional-param-2"/>
|
58
|
+
<xsl:param name="optional-param-3"/>
|
59
|
+
<xsl:if test="$elementContent">
|
60
|
+
<!-- if not at end of string -->
|
61
|
+
<xsl:variable name="containsNewline" select="contains($elementContent,$newline)"/>
|
62
|
+
<xsl:variable name="firstLine">
|
63
|
+
<xsl:call-template name="strip-trailing-whitespace">
|
64
|
+
<xsl:with-param name="content">
|
65
|
+
<xsl:choose>
|
66
|
+
<xsl:when test="$containsNewline">
|
67
|
+
<xsl:value-of select="substring-before($elementContent,$newline)"/>
|
68
|
+
</xsl:when>
|
69
|
+
<xsl:otherwise>
|
70
|
+
<xsl:value-of select="$elementContent"/>
|
71
|
+
</xsl:otherwise>
|
72
|
+
</xsl:choose>
|
73
|
+
</xsl:with-param>
|
74
|
+
</xsl:call-template>
|
75
|
+
</xsl:variable>
|
76
|
+
<xsl:variable name="restOfString" select="substring-after($elementContent,$newline)"/>
|
77
|
+
<!-- This line is formatted if it has 3 spaces or a tab or empty line -->
|
78
|
+
<xsl:variable name="thisLineFormatted" select="$firstLine = '' or contains($firstLine,' ') or contains($firstLine,$tab)"/>
|
79
|
+
<xsl:choose>
|
80
|
+
<!-- if a formatted line -->
|
81
|
+
<xsl:when test="$thisLineFormatted = true()">
|
82
|
+
<!-- if at start of a formatted section, and it's a non-empty line before the end of the element, print it -->
|
83
|
+
<xsl:if test="not($skipFormattedLines) and (normalize-space($firstLine) or normalize-space($restOfString))">
|
84
|
+
<xsl:choose>
|
85
|
+
<!-- if specified, wrap a formatted section (1 or more lines) in an element -->
|
86
|
+
<xsl:when test="$formattedSectionElement">
|
87
|
+
<xsl:element name="{$formattedSectionElement}">
|
88
|
+
<xsl:attribute name="wrap"/>
|
89
|
+
<!-- works on Firefox 1.5+, not on IE 6/7, Safari 2 -->
|
90
|
+
<!-- xsl:attribute name="width"><xsl:value-of select="$g-fold-width"/></xsl:attribute -->
|
91
|
+
<xsl:call-template name="printFormattedSection">
|
92
|
+
<xsl:with-param name="elementContent" select="$elementContent"/>
|
93
|
+
<xsl:with-param name="optional-param-1" select="$optional-param-1"/>
|
94
|
+
<xsl:with-param name="optional-param-2" select="$optional-param-2"/>
|
95
|
+
<xsl:with-param name="optional-param-3" select="$optional-param-3"/>
|
96
|
+
</xsl:call-template>
|
97
|
+
</xsl:element>
|
98
|
+
</xsl:when>
|
99
|
+
<!-- else if no element specified,
|
100
|
+
output a formatted section (1 or more lines) directly -->
|
101
|
+
<xsl:otherwise>
|
102
|
+
<xsl:call-template name="printFormattedSection">
|
103
|
+
<xsl:with-param name="elementContent" select="$elementContent"/>
|
104
|
+
<xsl:with-param name="optional-param-1" select="$optional-param-1"/>
|
105
|
+
<xsl:with-param name="optional-param-2" select="$optional-param-2"/>
|
106
|
+
<xsl:with-param name="optional-param-3" select="$optional-param-3"/>
|
107
|
+
</xsl:call-template>
|
108
|
+
</xsl:otherwise>
|
109
|
+
</xsl:choose>
|
110
|
+
</xsl:if>
|
111
|
+
<!-- go to next line, recursively until next non-formatted line or end of string -->
|
112
|
+
<xsl:call-template name="printFormatted">
|
113
|
+
<xsl:with-param name="elementContent" select="$restOfString"/>
|
114
|
+
<xsl:with-param name="formattedSectionElement" select="$formattedSectionElement"/>
|
115
|
+
<xsl:with-param name="skipFormattedLines" select="true()"/>
|
116
|
+
<xsl:with-param name="optional-param-1" select="$optional-param-1"/>
|
117
|
+
<xsl:with-param name="optional-param-2" select="$optional-param-2"/>
|
118
|
+
<xsl:with-param name="optional-param-3" select="$optional-param-3"/>
|
119
|
+
</xsl:call-template>
|
120
|
+
</xsl:when>
|
121
|
+
<!-- else not a formatted line; treat as paragraph -->
|
122
|
+
<xsl:otherwise>
|
123
|
+
<!-- make callback to importing stylesheet to print the paragraph -->
|
124
|
+
<xsl:call-template name="printParagraphLine">
|
125
|
+
<xsl:with-param name="line" select="$firstLine"/>
|
126
|
+
<xsl:with-param name="restOfString" select="$restOfString"/>
|
127
|
+
<xsl:with-param name="optional-param-1" select="$optional-param-1"/>
|
128
|
+
<xsl:with-param name="optional-param-2" select="$optional-param-2"/>
|
129
|
+
<xsl:with-param name="optional-param-3" select="$optional-param-3"/>
|
130
|
+
</xsl:call-template>
|
131
|
+
<!-- go to next line, recursively until non-formatted line or end of string -->
|
132
|
+
<xsl:call-template name="printFormatted">
|
133
|
+
<xsl:with-param name="elementContent" select="$restOfString"/>
|
134
|
+
<xsl:with-param name="formattedSectionElement" select="$formattedSectionElement"/>
|
135
|
+
<xsl:with-param name="skipFormattedLines" select="false()"/>
|
136
|
+
<xsl:with-param name="optional-param-1" select="$optional-param-1"/>
|
137
|
+
<xsl:with-param name="optional-param-2" select="$optional-param-2"/>
|
138
|
+
<xsl:with-param name="optional-param-3" select="$optional-param-3"/>
|
139
|
+
</xsl:call-template>
|
140
|
+
</xsl:otherwise>
|
141
|
+
</xsl:choose>
|
142
|
+
</xsl:if>
|
143
|
+
</xsl:template>
|
144
|
+
<xsl:template name="printFormattedSection">
|
145
|
+
<xsl:param name="elementContent"/>
|
146
|
+
<!-- string to print out -->
|
147
|
+
<!-- if needed by callback template: -->
|
148
|
+
<xsl:param name="optional-param-1"/>
|
149
|
+
<xsl:param name="optional-param-2"/>
|
150
|
+
<xsl:param name="optional-param-3"/>
|
151
|
+
<xsl:if test="$elementContent">
|
152
|
+
<!-- if not at end of string -->
|
153
|
+
<xsl:variable name="firstLine">
|
154
|
+
<xsl:call-template name="strip-trailing-whitespace">
|
155
|
+
<xsl:with-param name="content" select="substring-before($elementContent,$newline)"/>
|
156
|
+
</xsl:call-template>
|
157
|
+
</xsl:variable>
|
158
|
+
<xsl:variable name="restOfString" select="substring-after($elementContent,$newline)"/>
|
159
|
+
<!-- This line is formatted if it has 3 spaces or a tab or empty line -->
|
160
|
+
<xsl:variable name="thisLineFormatted" select="$firstLine = '' or contains($firstLine,' ') or contains($firstLine,$tab)"/>
|
161
|
+
<xsl:if test="$thisLineFormatted = true()">
|
162
|
+
<!-- if a formatted line -->
|
163
|
+
<!-- make callback to importing stylesheet to print the formatted line -->
|
164
|
+
<xsl:call-template name="printFormattedLine">
|
165
|
+
<xsl:with-param name="line" select="$firstLine"/>
|
166
|
+
<xsl:with-param name="restOfString" select="$restOfString"/>
|
167
|
+
<xsl:with-param name="optional-param-1" select="$optional-param-1"/>
|
168
|
+
<xsl:with-param name="optional-param-2" select="$optional-param-2"/>
|
169
|
+
<xsl:with-param name="optional-param-3" select="$optional-param-3"/>
|
170
|
+
</xsl:call-template>
|
171
|
+
<!-- recursively call self until all formatted lines written -->
|
172
|
+
<xsl:call-template name="printFormattedSection">
|
173
|
+
<xsl:with-param name="elementContent" select="$restOfString"/>
|
174
|
+
<xsl:with-param name="optional-param-1" select="$optional-param-1"/>
|
175
|
+
<xsl:with-param name="optional-param-2" select="$optional-param-2"/>
|
176
|
+
<xsl:with-param name="optional-param-3" select="$optional-param-3"/>
|
177
|
+
</xsl:call-template>
|
178
|
+
</xsl:if>
|
179
|
+
<!-- do nothing and end recursion if we find a non-formatted, plain line -->
|
180
|
+
</xsl:if>
|
181
|
+
</xsl:template>
|
182
|
+
<!--
|
183
|
+
Strip the leading white space (including newlines or other characters
|
184
|
+
that get translated to white space by normalize-space) from a block
|
185
|
+
of text.
|
186
|
+
|
187
|
+
[Stolen from somewhere on the web using Google.]
|
188
|
+
-->
|
189
|
+
<xsl:template name="strip-leading-whitespace">
|
190
|
+
<xsl:param name="content"/>
|
191
|
+
<xsl:variable name="normalized-text" select="normalize-space($content)"/>
|
192
|
+
<xsl:variable name="first-char" select="substring($normalized-text,1,1)"/>
|
193
|
+
<xsl:variable name="leading-spaces" select="substring-before($content,$first-char)"/>
|
194
|
+
<xsl:choose>
|
195
|
+
<xsl:when test="string-length($leading-spaces) > 0">
|
196
|
+
<xsl:value-of select="substring-after($content,$leading-spaces)"/>
|
197
|
+
</xsl:when>
|
198
|
+
<xsl:otherwise>
|
199
|
+
<xsl:value-of select="$content"/>
|
200
|
+
</xsl:otherwise>
|
201
|
+
</xsl:choose>
|
202
|
+
</xsl:template>
|
203
|
+
<!--
|
204
|
+
Strip the trailing white space (including newlines or other characters
|
205
|
+
that get translated to white space by normalize-space) from a block
|
206
|
+
of text.
|
207
|
+
|
208
|
+
[Stolen from somewhere on the web using Google.]
|
209
|
+
-->
|
210
|
+
<xsl:template name="strip-trailing-whitespace">
|
211
|
+
<xsl:param name="content"/>
|
212
|
+
<xsl:param name="i" select="string-length($content)"/>
|
213
|
+
<xsl:choose>
|
214
|
+
<xsl:when test="translate(substring($content, $i, 1), ' 	 ', '')">
|
215
|
+
<xsl:value-of select="substring($content,1,$i)"/>
|
216
|
+
</xsl:when>
|
217
|
+
<xsl:when test="$i < 2"/>
|
218
|
+
<!-- done! -->
|
219
|
+
<xsl:otherwise>
|
220
|
+
<xsl:call-template name="strip-trailing-whitespace">
|
221
|
+
<xsl:with-param name="content" select="$content"/>
|
222
|
+
<xsl:with-param name="i" select="$i - 1"/>
|
223
|
+
</xsl:call-template>
|
224
|
+
</xsl:otherwise>
|
225
|
+
</xsl:choose>
|
226
|
+
</xsl:template>
|
227
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,171 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
3
|
+
<!--
|
4
|
+
Print an XML element as plain formatted text or wrapped paragraphs,
|
5
|
+
as appropriate. Makes the text readable on screen, and preserves the author's
|
6
|
+
intended formatting.
|
7
|
+
|
8
|
+
[The 'fold' and 'chop' templates come from original xml-to-text.xsl by Joe
|
9
|
+
Shirley.]
|
10
|
+
|
11
|
+
Created 6/20/06 Richard.Fozzard@noaa.gov
|
12
|
+
|
13
|
+
@version $Id$
|
14
|
+
|
15
|
+
This file defines two callback templates used by printFormatted.xsl:
|
16
|
+
printFormattedLine Output a line, preserving all formatting (whitespace)
|
17
|
+
printParagraphLine Output a line as a continuous paragraph (word-wrapped)
|
18
|
+
|
19
|
+
-->
|
20
|
+
<!--
|
21
|
+
g-fold-width
|
22
|
+
This parameter specifies the maximum length of a line when the
|
23
|
+
'fold' text formatting option is chosen. This parameter is ignored
|
24
|
+
for other text formatting options.
|
25
|
+
-->
|
26
|
+
<xsl:param name="g-fold-width" select="'80'"/>
|
27
|
+
<!--
|
28
|
+
g-fold-character
|
29
|
+
This parameter specifies where a line may be broken when the
|
30
|
+
'fold' text formatting option is chosen. This parameter is ignored
|
31
|
+
for other text formatting options.
|
32
|
+
-->
|
33
|
+
<xsl:param name="g-fold-character" select="' '"/>
|
34
|
+
<xsl:variable name="newline">
|
35
|
+
<xsl:text> </xsl:text>
|
36
|
+
</xsl:variable>
|
37
|
+
<xsl:variable name="tab">
|
38
|
+
<xsl:text>	</xsl:text>
|
39
|
+
</xsl:variable>
|
40
|
+
<!-- Output a single line formatted with all white space preserved. Indent each line
|
41
|
+
to the current indent level.
|
42
|
+
-->
|
43
|
+
<xsl:template name="printFormattedLine">
|
44
|
+
<xsl:param name="line"/>
|
45
|
+
<xsl:param name="restOfString"/>
|
46
|
+
<xsl:param name="optional-param-1"/>
|
47
|
+
<xsl:variable name="indent" select="$optional-param-1"/>
|
48
|
+
<!-- Print next line, unless it's a blank line after final text line. -->
|
49
|
+
<xsl:if test="(string-length($line) > 0) or (string-length(normalize-space($restOfString)) > 0)">
|
50
|
+
<xsl:value-of select="$indent"/>
|
51
|
+
<xsl:value-of select="$line"/>
|
52
|
+
<xsl:value-of select="$newline"/>
|
53
|
+
</xsl:if>
|
54
|
+
</xsl:template>
|
55
|
+
<!-- Output a single line formatted as a word-wrapped paragraph. Indent each line
|
56
|
+
to the current indent level. Use 'fold' template to do the word-wrapping.
|
57
|
+
-->
|
58
|
+
<xsl:template name="printParagraphLine">
|
59
|
+
<xsl:param name="line"/>
|
60
|
+
<xsl:param name="restOfString"/>
|
61
|
+
<xsl:param name="optional-param-1"/>
|
62
|
+
<xsl:param name="optional-param-2"/>
|
63
|
+
<xsl:variable name="indent" select="$optional-param-1"/>
|
64
|
+
<xsl:variable name="length" select="$optional-param-2"/>
|
65
|
+
<!-- Print line with 'fold', unless it's a blank line after final text line. -->
|
66
|
+
<xsl:if test="(string-length($line) > 0) or (string-length(normalize-space($restOfString)) > 0)">
|
67
|
+
<xsl:value-of select="$indent"/>
|
68
|
+
<!-- fold doesn't indent first line -->
|
69
|
+
<xsl:call-template name="fold">
|
70
|
+
<xsl:with-param name="original-string" select="normalize-space($line)"/>
|
71
|
+
<xsl:with-param name="length" select="$length"/>
|
72
|
+
<xsl:with-param name="indent" select="$indent"/>
|
73
|
+
</xsl:call-template>
|
74
|
+
</xsl:if>
|
75
|
+
</xsl:template>
|
76
|
+
<!--
|
77
|
+
Text formatting template. Create line breaks. Indent each line to
|
78
|
+
the current indent level. Return the next line each time the
|
79
|
+
template is called.
|
80
|
+
-->
|
81
|
+
<xsl:template name="fold">
|
82
|
+
<xsl:param name="original-string"/>
|
83
|
+
<xsl:param name="length"/>
|
84
|
+
<xsl:param name="indent"/>
|
85
|
+
<xsl:param name="fold-width" select="$g-fold-width"/>
|
86
|
+
<xsl:variable name="printstring">
|
87
|
+
<xsl:choose>
|
88
|
+
<xsl:when test="string-length($original-string) > number($length)">
|
89
|
+
<!-- Text is longer than max, chop it down and print next line. -->
|
90
|
+
<xsl:call-template name="chop">
|
91
|
+
<xsl:with-param name="newstring" select="''"/>
|
92
|
+
<xsl:with-param name="original-string" select="$original-string"/>
|
93
|
+
<xsl:with-param name="length" select="$length"/>
|
94
|
+
</xsl:call-template>
|
95
|
+
</xsl:when>
|
96
|
+
<xsl:otherwise>
|
97
|
+
<xsl:value-of select="$original-string"/>
|
98
|
+
</xsl:otherwise>
|
99
|
+
</xsl:choose>
|
100
|
+
</xsl:variable>
|
101
|
+
<xsl:value-of select="$printstring"/>
|
102
|
+
<xsl:value-of select="$newline"/>
|
103
|
+
<xsl:variable name="str" select="substring-after($original-string, $printstring)"/>
|
104
|
+
<xsl:if test="string-length($str)">
|
105
|
+
<!-- More text, call fold recursively. -->
|
106
|
+
<xsl:value-of select="$indent"/>
|
107
|
+
<xsl:call-template name="fold">
|
108
|
+
<xsl:with-param name="original-string" select="$str"/>
|
109
|
+
<xsl:with-param name="length" select="number($fold-width) - string-length($indent)"/>
|
110
|
+
<xsl:with-param name="indent" select="$indent"/>
|
111
|
+
</xsl:call-template>
|
112
|
+
</xsl:if>
|
113
|
+
</xsl:template>
|
114
|
+
<!--
|
115
|
+
Create line breaks. Break only at specified line break
|
116
|
+
character. If possible keep lines less than a specified maximum
|
117
|
+
length, otherwise break at first acceptable character after
|
118
|
+
maximum length. Return one line each time the template is called.
|
119
|
+
-->
|
120
|
+
<xsl:template name="chop">
|
121
|
+
<xsl:param name="newstring"/>
|
122
|
+
<xsl:param name="original-string"/>
|
123
|
+
<xsl:param name="char" select="$g-fold-character"/>
|
124
|
+
<xsl:param name="length"/>
|
125
|
+
<xsl:variable name="str1">
|
126
|
+
<!-- str1 is the part before the break. -->
|
127
|
+
<xsl:choose>
|
128
|
+
<xsl:when test="contains($original-string, $char)">
|
129
|
+
<!-- The text contains a break character, chop it off. -->
|
130
|
+
<xsl:value-of select="concat($newstring, substring-before($original-string, $char), $char)"/>
|
131
|
+
</xsl:when>
|
132
|
+
<xsl:otherwise>
|
133
|
+
<!-- The text contains no break character, use it all. -->
|
134
|
+
<xsl:value-of select="concat($newstring, $original-string)"/>
|
135
|
+
</xsl:otherwise>
|
136
|
+
</xsl:choose>
|
137
|
+
</xsl:variable>
|
138
|
+
<xsl:variable name="str2">
|
139
|
+
<!-- str2 is the part after the break. -->
|
140
|
+
<xsl:choose>
|
141
|
+
<xsl:when test="contains($original-string, $char)">
|
142
|
+
<!-- The text contains a break character, take what is after that. -->
|
143
|
+
<xsl:value-of select="substring-after($original-string, $char)"/>
|
144
|
+
</xsl:when>
|
145
|
+
<xsl:otherwise>
|
146
|
+
<!-- The text contains no break character, use an empty string. -->
|
147
|
+
<xsl:value-of select="''"/>
|
148
|
+
</xsl:otherwise>
|
149
|
+
</xsl:choose>
|
150
|
+
</xsl:variable>
|
151
|
+
<xsl:choose>
|
152
|
+
<xsl:when test="(string-length($str1) < number($length)) and $str2">
|
153
|
+
<xsl:variable name="return-value">
|
154
|
+
<xsl:call-template name="chop">
|
155
|
+
<xsl:with-param name="newstring" select="$str1"/>
|
156
|
+
<xsl:with-param name="original-string" select="$str2"/>
|
157
|
+
<xsl:with-param name="char" select="$char"/>
|
158
|
+
<xsl:with-param name="length" select="$length"/>
|
159
|
+
</xsl:call-template>
|
160
|
+
</xsl:variable>
|
161
|
+
<xsl:value-of select="$return-value"/>
|
162
|
+
</xsl:when>
|
163
|
+
<xsl:when test="$newstring">
|
164
|
+
<xsl:value-of select="$newstring"/>
|
165
|
+
</xsl:when>
|
166
|
+
<xsl:otherwise>
|
167
|
+
<xsl:value-of select="$str1"/>
|
168
|
+
</xsl:otherwise>
|
169
|
+
</xsl:choose>
|
170
|
+
</xsl:template>
|
171
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,273 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
======================================================================
|
4
|
+
ISO 19115 and 19115-2 XML to HTML Stylesheet June 2011
|
5
|
+
|
6
|
+
This is the XML Style sheet that displays metadata conforming to ISO 19115:2003(E) and ISO 19115-2:2009(E).
|
7
|
+
This stylesheet can be applied to ISO XML to generate ISO HTML that includes a Header that displays the title
|
8
|
+
of the resource as well as listing the main sections that the ISO metadata contains while linking to them.
|
9
|
+
|
10
|
+
This file was generated by Altova MapForce 2009sp1
|
11
|
+
|
12
|
+
Authors:
|
13
|
+
This is the result of a collaboration of the Metadata Transform Working Group.
|
14
|
+
For further information, please contact NOAA's National Coastal Data
|
15
|
+
Development Center (NCDDC).
|
16
|
+
National Coastal Data Development Center
|
17
|
+
Toll Free: 866.732.2382
|
18
|
+
E-mail: ncddcmetadata@noaa.gov
|
19
|
+
|
20
|
+
Distribution Liability:
|
21
|
+
NOAA makes no warranty regarding these data, expressed or implied,
|
22
|
+
nor does the fact of distribution constitute such a warranty. NOAA, NESDIS,
|
23
|
+
NODC and NCDDC cannot assume liability for any damages caused by any
|
24
|
+
errors or omissions in these data, nor as a result of the failure of these data
|
25
|
+
to function on a particular system. These files were developed for opensource uses.
|
26
|
+
|
27
|
+
Use Constraints:
|
28
|
+
The user is responsible for the results of any application of these stylsheets for other than its
|
29
|
+
intended purpose. These stylesheets cannot guarantee valid output. Please feel free to edit
|
30
|
+
stylesheet as needed for your organizations needs.
|
31
|
+
|
32
|
+
Revisions:
|
33
|
+
20111109 (JLM) Edited stylesheet to allow the title header to display for service metadata (19119)
|
34
|
+
20120329 (JLM) Updated some element names to display correctly. Aslo added combined FC view.
|
35
|
+
|
36
|
+
-->
|
37
|
+
<!-- Top level directives -->
|
38
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv" xmlns:gml="http://www.opengis.net/gml" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gmi="http://www.isotc211.org/2005/gmi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
|
39
|
+
<xsl:import href="printFormatted.xsl"/>
|
40
|
+
<xsl:import href="printTextLines.xsl"/>
|
41
|
+
<xsl:import href="displayElement.xsl"/>
|
42
|
+
<xsl:output method="html" indent="no"/>
|
43
|
+
<!-- Global parameters -->
|
44
|
+
<!--
|
45
|
+
g-tag-translation-URI
|
46
|
+
This parameter specifies the URI of the external document
|
47
|
+
containing the lookup table for the tag name translation. The
|
48
|
+
default is the name of a file in the same directory as the
|
49
|
+
stylesheet. Make sure this is a network accessible URI if
|
50
|
+
delivering to a browser for translation.
|
51
|
+
-->
|
52
|
+
<xsl:param name="g-tag-translation-URI" select="'elements-ISO.xml'"/>
|
53
|
+
<xsl:param name="g-header-translation-URI" select="'headers-ISO.xml'"/>
|
54
|
+
<!--
|
55
|
+
g-indent-increment
|
56
|
+
This parameter specifies the character string to be added before a
|
57
|
+
label for each level of indentation. I.e. if you want each level
|
58
|
+
indented by four spaces, then make this a four space character
|
59
|
+
string. Set this to the empty string to forego indenting.
|
60
|
+
-->
|
61
|
+
<xsl:param name="g-indent-increment" select="' '"/>
|
62
|
+
<!--
|
63
|
+
g-fold-width
|
64
|
+
This parameter specifies the maximum length of a line when
|
65
|
+
word-wrapping lines. It must match the value specified in
|
66
|
+
printTextLines.xsl.
|
67
|
+
-->
|
68
|
+
<xsl:param name="g-fold-width" select="'120'"/>
|
69
|
+
<!--
|
70
|
+
g-text-field-handler
|
71
|
+
This parameter specifies the handler to use for formatting text
|
72
|
+
fields. The choices are 'fold' to fold lines at a maximum length
|
73
|
+
and 'print-lines' to print lines with line breaks preserved as in
|
74
|
+
the source XML document. If unspecified, or if an invalid choice
|
75
|
+
is specified, 'print-lines' will be used.
|
76
|
+
|
77
|
+
[OBSOLETE: replaced by printFormatted template]
|
78
|
+
-->
|
79
|
+
<xsl:param name="g-text-field-handler" select="'print-lines'"/>
|
80
|
+
<!-- Global variables -->
|
81
|
+
<xsl:variable name="newline">
|
82
|
+
<xsl:text>
</xsl:text>
|
83
|
+
</xsl:variable>
|
84
|
+
<!-- Get the g-tag-translation-URI (elements.xml) node-set just once.
|
85
|
+
This should improve performance on large XML files.
|
86
|
+
This also works around a memory-leak problem using JSTL \<x:transform xsltSystemId
|
87
|
+
(the memory-leak may also be present in direct Transformer calls from Java).
|
88
|
+
/// We see this in Xalan 2.6.0; is it fixed in 2.7.0 ?
|
89
|
+
-->
|
90
|
+
<xsl:variable name="g-tag-translations" select="document($g-tag-translation-URI)"/>
|
91
|
+
<xsl:variable name="g-header-translations" select="document($g-header-translation-URI)"/>
|
92
|
+
<!-- Templates -->
|
93
|
+
<xsl:template match="/">
|
94
|
+
<html>
|
95
|
+
<body>
|
96
|
+
<font size="+3">
|
97
|
+
<xsl:element name="a">
|
98
|
+
<xsl:attribute name="name">
|
99
|
+
<xsl:value-of select="'title'" />
|
100
|
+
</xsl:attribute>
|
101
|
+
<xsl:value-of select="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString"/>
|
102
|
+
</xsl:element>
|
103
|
+
</font>
|
104
|
+
<font size="+3">
|
105
|
+
<xsl:element name="a">
|
106
|
+
<xsl:attribute name="name">
|
107
|
+
<xsl:value-of select="'title'" />
|
108
|
+
</xsl:attribute>
|
109
|
+
<xsl:value-of select="//gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString"/>
|
110
|
+
</xsl:element>
|
111
|
+
</font>
|
112
|
+
<br></br>
|
113
|
+
<br></br>
|
114
|
+
<xsl:for-each select="./*/*">
|
115
|
+
<xsl:variable name="transname" select="name()"/>
|
116
|
+
<xsl:if test="contains($transname,'gmd:spatialRepresentationInfo') or contains($transname,'gmd:referenceSystemInfo') or contains($transname,'gmd:metadataExtensionInfo') or contains($transname,'gmd:identificationInfo') or contains($transname,'gmd:contentInfo') or contains($transname,'gmd:distributionInfo') or contains($transname,'gmd:dataQualityInfo') or contains($transname,'gmd:portrayalCatalogueInfo') or contains($transname,'gmd:metadataConstraints') or contains($transname,'gmd:applicationSchemaInfo') or contains($transname,'gmd:metadataMaintenance') or contains($transname,'gmd:metadataMaintenanceInfo') or contains($transname,'gmi:acquisitionInformation') or contains($transname,'gfc:FC_FeatureCatalogue')">
|
117
|
+
<xsl:element name="a">
|
118
|
+
<xsl:attribute name="href">
|
119
|
+
<xsl:value-of select="'#'" /><xsl:value-of select="substring-after($transname,':')"/>
|
120
|
+
</xsl:attribute>
|
121
|
+
<span style="text-transform: capitalize;">
|
122
|
+
<xsl:apply-templates select="child::title" mode="outIt"/>
|
123
|
+
<xsl:value-of select="$g-header-translations/*/name[@tagname=$transname]"/>
|
124
|
+
</span>
|
125
|
+
</xsl:element>
|
126
|
+
<br></br>
|
127
|
+
</xsl:if>
|
128
|
+
</xsl:for-each>
|
129
|
+
<hr></hr>
|
130
|
+
<pre>
|
131
|
+
<xsl:apply-templates select="*"/>
|
132
|
+
<xsl:element name="a">
|
133
|
+
<xsl:attribute name="href">
|
134
|
+
<xsl:value-of select="'#title'" />
|
135
|
+
</xsl:attribute>
|
136
|
+
<div align="left">Return To Index</div>
|
137
|
+
</xsl:element>
|
138
|
+
</pre>
|
139
|
+
</body>
|
140
|
+
</html>
|
141
|
+
</xsl:template>
|
142
|
+
<!--
|
143
|
+
Apply to all elements. Determine whether it's a compound or text element
|
144
|
+
and call the appropriate template.
|
145
|
+
-->
|
146
|
+
<xsl:template match="*">
|
147
|
+
<xsl:param name="indent" select="''"/>
|
148
|
+
<xsl:param name="indent-increment" select="$g-indent-increment"/>
|
149
|
+
<xsl:variable name="tagname" select="name()"/>
|
150
|
+
<xsl:variable name="tag-longname" select="$g-tag-translations/*/name[@tagname=$tagname]"/>
|
151
|
+
<xsl:variable name="tag-translation">
|
152
|
+
<!-- Display long name if we can translate the tag, else just display the tag name itself -->
|
153
|
+
<xsl:choose>
|
154
|
+
<xsl:when test="$tag-longname">
|
155
|
+
<xsl:value-of select="$tag-longname"/>
|
156
|
+
</xsl:when>
|
157
|
+
<xsl:otherwise>
|
158
|
+
<xsl:value-of select="$tagname"/>
|
159
|
+
</xsl:otherwise>
|
160
|
+
</xsl:choose>
|
161
|
+
</xsl:variable>
|
162
|
+
<xsl:variable name="output">
|
163
|
+
<!-- do not output element names w/ gco namespaces -->
|
164
|
+
<xsl:if test="not(contains($tag-translation, 'gco'))">
|
165
|
+
<xsl:value-of select="concat($indent, $tag-translation, ': ')"/>
|
166
|
+
</xsl:if>
|
167
|
+
</xsl:variable>
|
168
|
+
<xsl:if test="string-length(normalize-space($tag-translation)) > 0">
|
169
|
+
<xsl:choose>
|
170
|
+
<xsl:when test="count(ancestor::*) = 1 ">
|
171
|
+
<xsl:choose>
|
172
|
+
<xsl:when test="contains($tagname,'gmd:spatialRepresentationInfo') or contains($tagname,'gmd:referenceSystemInfo') or contains($tagname,'gmd:metadataExtensionInfo') or contains($tagname,'gmd:identificationInfo') or contains($tagname,'gmd:contentInfo') or contains($tagname,'gmd:distributionInfo') or contains($tagname,'gmd:dataQualityInfo') or contains($tagname,'gmd:portrayalCatalogueInfo') or contains($tagname,'gmd:metadataConstraints') or contains($tagname,'gmd:applicationSchemaInfo') or contains($tagname,'gmd:metadataMaintenance') or contains($tagname,'gmd:metadataMaintenanceInfo') or contains($tagname,'gmi:acquisitionInformation') or contains($tagname,'gfc:FC_FeatureCatalogue')">
|
173
|
+
<xsl:if test="(position()>1)">
|
174
|
+
<xsl:element name="a">
|
175
|
+
<xsl:attribute name="href">
|
176
|
+
<xsl:value-of select="'#title'" />
|
177
|
+
</xsl:attribute>
|
178
|
+
<div align="left">Return To Index</div>
|
179
|
+
</xsl:element>
|
180
|
+
<hr></hr>
|
181
|
+
</xsl:if>
|
182
|
+
<b>
|
183
|
+
<xsl:element name="a">
|
184
|
+
<xsl:attribute name="name">
|
185
|
+
<xsl:value-of select="substring-after($tagname,':')"/>
|
186
|
+
</xsl:attribute>
|
187
|
+
<xsl:value-of select="$output"/>
|
188
|
+
</xsl:element>
|
189
|
+
</b>
|
190
|
+
</xsl:when>
|
191
|
+
<xsl:otherwise>
|
192
|
+
<b>
|
193
|
+
<xsl:value-of select="$output"/>
|
194
|
+
</b>
|
195
|
+
</xsl:otherwise>
|
196
|
+
</xsl:choose>
|
197
|
+
</xsl:when>
|
198
|
+
<xsl:otherwise>
|
199
|
+
<b>
|
200
|
+
<xsl:value-of select="$output"/>
|
201
|
+
</b>
|
202
|
+
</xsl:otherwise>
|
203
|
+
</xsl:choose>
|
204
|
+
</xsl:if>
|
205
|
+
<xsl:choose>
|
206
|
+
<xsl:when test="*">
|
207
|
+
<!-- This is a compound element (i.e., it has children) -->
|
208
|
+
<xsl:choose>
|
209
|
+
<xsl:when test="string-length(normalize-space($tag-translation)) > 0">
|
210
|
+
<xsl:call-template name="printAttributes"/>
|
211
|
+
<!-- There is a tag translation -->
|
212
|
+
<xsl:value-of select="$newline"/>
|
213
|
+
<xsl:apply-templates select="*">
|
214
|
+
<xsl:with-param name="indent" select="concat($indent, $indent-increment)"/>
|
215
|
+
</xsl:apply-templates>
|
216
|
+
</xsl:when>
|
217
|
+
<xsl:otherwise>
|
218
|
+
<!-- No tag translation -->
|
219
|
+
<xsl:apply-templates select="*">
|
220
|
+
<xsl:with-param name="indent" select="concat($indent, $indent-increment)"/>
|
221
|
+
</xsl:apply-templates>
|
222
|
+
</xsl:otherwise>
|
223
|
+
</xsl:choose>
|
224
|
+
</xsl:when>
|
225
|
+
<!-- else a content element: display the text -->
|
226
|
+
<xsl:otherwise>
|
227
|
+
<xsl:call-template name="printAttributes"/>
|
228
|
+
<!-- if tag name has gco namespace - do not add a new line-->
|
229
|
+
<xsl:if test="not(contains($tag-translation,'gco'))">
|
230
|
+
<xsl:value-of select="$newline"/>
|
231
|
+
</xsl:if>
|
232
|
+
<!-- Call the imported printFormatted template to print both
|
233
|
+
preformatted text and word-wrapped paragraphs.
|
234
|
+
This will parse each line, and call back to the
|
235
|
+
printFormattedLine and printParagraphLine templates
|
236
|
+
in this file. -->
|
237
|
+
<xsl:call-template name="printFormatted">
|
238
|
+
<xsl:with-param name="elementContent">
|
239
|
+
<!-- strip leading whitespace only from first line of text -->
|
240
|
+
<xsl:call-template name="strip-leading-whitespace">
|
241
|
+
<!-- display element attributes OR content (note: not all attributes are included for translation-->
|
242
|
+
<xsl:with-param name="content" select="@codeListValue|@gco:nilReason|@indeterminatePosition|node()"/>
|
243
|
+
</xsl:call-template>
|
244
|
+
</xsl:with-param>
|
245
|
+
<xsl:with-param name="startFormattedSectionString" select="''"/>
|
246
|
+
<!-- nothing needed -->
|
247
|
+
<xsl:with-param name="endFormattedSectionString" select="''"/>
|
248
|
+
<!-- nothing needed -->
|
249
|
+
<xsl:with-param name="optional-param-1" select="concat($indent, $indent-increment)"/>
|
250
|
+
<xsl:with-param name="optional-param-2" select="number($g-fold-width) - string-length($indent)"/>
|
251
|
+
</xsl:call-template>
|
252
|
+
</xsl:otherwise>
|
253
|
+
</xsl:choose>
|
254
|
+
</xsl:template>
|
255
|
+
<xsl:template name="printAttributes">
|
256
|
+
<xsl:choose>
|
257
|
+
<xsl:when test="./@*">
|
258
|
+
<xsl:if test="./@uuid"> <xsl:value-of select="concat('uuid: ', @uuid)"/></xsl:if>
|
259
|
+
<xsl:if test="./@uuidref"><xsl:value-of select="concat('uuidref: ', @uuidref)"/></xsl:if>
|
260
|
+
<xsl:if test="./@uom"><xsl:value-of select="concat('uom: ', @uom)"/></xsl:if>
|
261
|
+
<xsl:if test="./@xlink:href"> <xsl:value-of select="concat('xlink: ', @xlink:href)"/></xsl:if>
|
262
|
+
<xsl:if test="./@xlink:title"><xsl:value-of select="concat(' title: ', @xlink:title)"/> </xsl:if>
|
263
|
+
<!--<xsl:if test="./@codeListValue"> (<xsl:value-of select="concat('codeListValue: ', @codeListValue)"/>)</xsl:if>-->
|
264
|
+
<xsl:if test="./@locale"> <xsl:value-of select="concat('locale: ', @locale)"/></xsl:if>
|
265
|
+
</xsl:when>
|
266
|
+
</xsl:choose>
|
267
|
+
</xsl:template>
|
268
|
+
<!--
|
269
|
+
Text formatting template. Use existing line breaks. Indent each line
|
270
|
+
to the current indent level. Return the next line each time the template
|
271
|
+
is called.
|
272
|
+
-->
|
273
|
+
</xsl:stylesheet>
|