pcjs/modules/shared/templates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2016-10-17 15:19:01 -07:00
..
.gitignore my_modules is simply modules now 2014-11-11 08:19:48 -08:00
common.css Added text-align:justify for blockquotes in the main div 2016-08-09 10:51:20 -07:00
common.html Updated website link 2016-09-06 10:55:49 -07:00
common.xsl Updated website link 2016-09-06 10:55:49 -07:00
components.css Picked up the fixes from the Jekyll smoke test 2016-10-15 18:19:23 -07:00
components.xsl Lots of tweaks in advance of PDPjs support for loading tape files 2016-10-17 15:19:01 -07: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 Updated disk information 2015-12-13 15:29:09 -08:00
entities.dtd my_modules is simply modules now 2014-11-11 08:19:48 -08:00
machine.xsl Updated disk information 2015-12-13 15:29:09 -08:00
manifest.xsl And more PCjs/PCx86 disambiguation 2016-05-18 00:03:07 -07:00
outline.xsl Updated disk information 2015-12-13 15:29:09 -08:00
pdf.html Ported PDF viewer to Jekyll layout 2015-12-09 17:54:06 -08:00
README.md Starting work on disambiguating PCjs the emulator from PCjs the project/website; the emulator will become PCx86 2016-05-16 20:55:32 -07: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.

components.xsl transforms all the elements of a machine XML file into an HTML fragment that includes a series of DIV tags with corresponding id and data-value attributes that allow our JavaScript components to bind themselves to visual elements (eg, virtual screen, virtual keyboard, control panel) on a web page.

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, pcx86.js or pcx86-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.