pcjs/modules/shared/templates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2015-03-25 14:12:48 -07:00
..
.gitignore my_modules is simply modules now 2014-11-11 08:19:48 -08:00
common.css Improved keyboard compatibility with apps that hook the keyboard interrupt (eg, BASICA) 2015-03-25 14:12:48 -07:00
common.html Update to READMEs 2015-02-08 14:04:58 -08:00
common.xsl v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
dictionary.txt my_modules is simply modules now 2014-11-11 08:19:48 -08:00
document.css my_modules is simply modules now 2014-11-11 08:19:48 -08:00
document.xsl my_modules is simply modules now 2014-11-11 08:19:48 -08:00
entities.dtd my_modules is simply modules now 2014-11-11 08:19:48 -08:00
machine.xsl my_modules is simply modules now 2014-11-11 08:19:48 -08:00
manifest.xsl my_modules is simply modules now 2014-11-11 08:19:48 -08:00
outline.xsl my_modules is simply modules now 2014-11-11 08:19:48 -08:00
pdf.html Another static URL fix 2015-02-08 15:32:19 -08:00
README.md my_modules is simply modules now 2014-11-11 08:19:48 -08:00

Shared Templates

Template folders contain a variety of XML and HTML templates and supporting files, including:

  • DTD files (Document Type Definitions)
  • XSD files (XML schemas -- eventually)
  • XSL files (XML stylesheets)
  • CSS files (stylesheets that the XSL files rely upon)
  • HTML files (HTML fragments used to generate part or all of a web page)

common.html is the HTML template file used by the HTMLOut module to generate a default HTML file ("index.html") for any folder that only has a "README.md", or a "machine.xml", or none of the above.

common.xsl is a collection of XSL templates used by machine.xsl (and deprecated outline.xsl) files.

machine.xsl is an XML stylesheet that takes things a step further and transforms a machine XML into a stand-alone HTML document, which also includes all necessary compiled scripts (eg, c1p.js, c1p-dbg.js, pc.js or pc-dbg.js). Most machine XML files explicitly link to this stylesheet, so that simply loading the XML file in your web browser creates a working virtual machine.

manifest.xsl is an XML stylesheet that renders a software manifest XML file into a standalone document; it may even contain a reference to a machine XML file.

document.xsl is a collection of XSL templates used exclusively by outline.xsl, which is a more grandiose version of machine.xsl, designed to support XML-based documentation that could also contain embedded machine XML files. However, I've since moved away from that approach, in favor of simple README.md files that are more flexible and work nicely with GitHub. Also, by rendering them with our own minimalistic Markdown converter, MarkOut, it's also very easy to embed virtual machines in a README.md document.

Since the XML document syntax that outline.xsl supports was never very well documented, I'm tempted to deprecate it and port any XML documents that still rely on it (mostly the older IAS Electronic Computer Project documents) to Markdown files.