The IPTC delivers a small set of XSLT files with the SchemeBrowser. This set may be extended by any XSLT that is built to needs of a specific user.
The XSLT files are saved in the directory {user.home}/schemebrowser/xslt - the path to {user.home} depends on your operating system. Any additional XSLT files should be saved to this directory as the ellipse button to the right of the default "G2xml2Html.xslt" opens a file browser for this directory.
Currently these XSLT files are delivered with the SchemeBrowser:
• G2xml2Html_1.xslt = transforms any G2 item - including the G2 Knowledge Item - into a structured display of its content as HTML page. (The G2xml2Html-resources-web.xslt file is a helper file to the main XSLT, do not call it directly.)
• IPTC-G2KI-to-treeCSV.xslt = transforms the G2 Knowledge Item into a CSV (Comma Separated Values) file with a tree-like structure. IPTC-G2KI-to-treeCSV-Semicolon.xslt separates the values not by a comma but a semicolon which is the default character for some localized versions of Microsoft software, including Excel.
• IPTC-G2KI-to-RDFxml+SKOS.xslt = transforms the G2 Knowledge Item to an RDF/XML document using SKOS.
• IPTC-G2KI-to-RDFturtle+SKOS.xslt = transforms the G2 Knowledge Item to an RDF/Turtle document using SKOS.
The framework for building individual XSLTs is:
• the source is always the G2 Knowledge Item of a scheme. You can get it by using the XML export option.
• the G2 Knowledge Item complies with the version of the G2 specifications which can be found in @standard and @standarversion attributes of the <knowledgeItem> root element, e.g. standard="NewsML-G2" standardversion="2.7"
• How the concept structures of a Knowledge Item are populated depends on the provider of the scheme. The minimal basics are: a conceptId with a qcode attribute and at least one name element are mandatory. Anything else is optional.