Skip to content

manage_04_html_templates

cspayne edited this page Jul 11, 2023 · 7 revisions

Human-Readable Resource Templates

Human-readable resource templates are generated during 001_output_publish_load.py using 004_01_prop_set_to_html.xsl.

004_01_prop_set_to_html.xsl pulls resource template ids from sinopia_maps.xml and processes data from map_storage prop_set files, RDF/XML RT files, and RDA Registry XML files to compile all of the property templates for each resource template and produce human-readable html resource templates that are published at sinopia_maps.

Templates

004_01_storage_to_html.xsl uses multiple templates to process and output information about each resource template.

Resource Template Details

Located in 004_02_rt_info.xsl, the rt_details template produces a table with metadata on the resource template.

Property Template List

Located in 004_03_pt_list.xsl, pt_list produces a list of property templates that appear within the resource template. Each label links to further details available further down the html page. For property templates that include a drop-down list, the property template list also lists each sub-property, generated with the carat_list template, which accesses the RDA Registry XML file associated with the resource template's type to find the property template's subproperties.

Property Template Details

Located in 004_04_pt_details.xsl, pt_details includes all of the requirements and constraints of each property template along with links to the RDA Registry and RDA Toolkit pages about the property template. If a property template has guidance included in the prop_set file, this guidance also appears under property template details and is generated using the pt_guidance template, located in 004_05_pt_guidance.xsl.

Formatting

Templates for basic formatting of resource template titles are located in 004_06_format_string.xsl