XSLT, DTD

Name: Sohini Chattopadhyay

Date and Time:

2017.April.5, 4:00pm

Location: Studio@Butler
Subject: Classnotes

Attributes and Content Model of DTD documentation. * suggests 0 or more presence of that element.
open Oxygen - open entry-to-html.xsl and a folio xml file.
presentation by Terry on XSTL - transformation of XML into HTML, Other XML, other text and data format like csv, json, etc.
Its is a W3C recommendation. They maintain standards for different file formats. Recommendations are the highest level of standard maintained by W3C. They do not use the word standard.
It takes as input an XML document, and it will not change the origin file but just change the output. therefore the file must be directed to an output. He explains the stylesheet, which is the file <entry-to-html.xsl> in the Github repository. It's not really a stylesheet but rather transform.
It is itself an xml document and as a result has certain rules about the element and their placement like xml document trees. teh beginning of the stylesheet has some root elements that are standard declarations. Example: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:xs="http://www.w3.org/2001/XMLSchema"

exclude-result-prefixes="xs"

version="2.0">
xsl:output - encoding: UTF-8 is standard, method: depending on which output we want, it has the options of XML, text, csv, HTML etc.
Unlike most programming languages, it is not operating line by line, but as a tree.

tree-view.xsl - go to a folio (example: <p140_2>), use wrench icon on Oxygen, name: tree-view. Specify XSL stylesheet (select tree-view.xsl). transformer: xslt 2, decide where the output goes. Click open in browser. Press "play" button to see if it has been applied to the folio.
XPath expressions - "/" indicates steps in the hierarchy, elements - use names of the elements. Attributes - name preceded by @ sign.

XPath expressions return a sequence of items. The sequences may be filtered by predicates.
Exercise: Open a folio file on Oxygen, put "/entry/block[1]" on XPath dialog box. The first block will be selected.

Name: Sohini Chattopadhyay

Date and Time:

2017.April.7, 3:00pm

Location: Studio@Butler
Subject: Classnotes

XPath - distinct-values(//material)

define schema to handle complex 'materials'. have a controlled vocabulary, identify all the variant terms and bring that to a spreadsheet - normalize them : eg: wax - generic lable for candle wax, wax. but since they are also subclasses we can have a larger term - vocab management.
how to get rid of white space - works on atomic values, or individual items in sequences.
use of the category 'product' - how to deal with contents that have multiple properties? example p170r_1
block, margin-block, related-block : should these be different elements or attributes or ...
sub-recipe and entry-groups ... is referencing (ref) a solution?
ref as a separate element? to connect two separate components in different xml files, like annotations for example.
in class, validated xml folder contents with schema - find dtd file, validate with that - successfully done.