7. “A family of transformation languages which allows one to describe how files encoded in the XML standard are to be formatted or transformed” (Wikipedia).
15. XPATH Examples (1) XPATH is used by XSLT to retrieve information from an XML document Variable values Test conditions Template matches Example (from commons.xsl line 160): From a node that is the current node’s ancestor This expression will be true if the condition inside of the parentheses is false [if no nodes match this description] Get any node Whose class attribute contains the text ‘ topic/topic ‘
23. Contains the whole document, including the Page Layout and Document Data sections
24.
25. XSL-FO:Document Components Document Data References a master-reference which is defined in the Page Layout section Uses flows to define which part of the page should be used Legal values: xsl-region-body, xsl-region-before, xsl-region-after, xsl-region-start, xsl-region-end Contains the content of the page which is formatted using blocks and inline objects.
26.
27.
28. XSL-FO Attributes Each element in XSL-FO has a corresponding set of attributes These include: Widow and orphans: keep-with-next, keep-with-previous, keep-together, widows, orphans Colors: background-color, color Font size and style: font-family, font-weight, font-style, font-size Borders: border-after-color, border-after-style, border-after-width… Spacing: padding-after, padding-left, padding-right, margin-left, margin-right, margin-bottom, margin-top
34. XSLT (Extensible Stylesheet Language Transformations) XSLT style sheets- contain the formatting and logic of the document. The same style sheets can be reused with any content. Original XML document - contains the content. Style sheets can be applied to the content via: An XSLT compliant browser such as IE6+ Software such as Cooktop http://www.xmlcooktop.com/ XSL files end with .xsl (or .xslt) extensions Much of the internal workings of the Toolkit and the Plug-in as well as Toolkit and Plug-in customizations are implemented using XSLT.
35. XSLT ElementsAttribute Sets, Templates The main units of code that the FO Plug-in uses to process DITA are attribute sets and templates. Attribute Set - a unit of code that primarily stores information about how to formata DITA element. Example: an attribute set which relates to a <p> element may store information about which font, font size, and font weight should be used to display text surrounded by <p> tags. Template – a unit of code that primarily contains instructions about how to process the DITA. Example: a template which relates to a <p> element may contain instructions about when and where to display auto-generated text and what that text should be.
36.
37.
38. Puts the content of those elements inside of an XSL:FO <inline> tag