This directory contains some notes on "literate programming" for S
using XML and the associated examples, both XML inputs and XSL
stylesheets, that illustrate the ideas.
- literateS.xsl
-
The XSL rules for converting this file to HTML.
- literateS.xml
-
The XML file from which the HTML is generated.
- literateS.html
-
The result of applying literateS.xsl to literateS.xml.
- fragment.xsl
-
XSL rules for extracting code containing fragment references.
- fragment.xml
-
XML file containing code with fragment references.
- Sfunction.xsl
-
Initial version of an XSL file for displaying S objects
as written in XML format by
writeXML() .
- Sfunction.xml
-
An XML file containing the output of an R function object
marked up with XML tags for the different language elements.
- croutine.xsl
-
XSL file for extracting C code elements from an XML file so they can be
put in a source file and compiled.
- limit.xml
-
Contains the description and code for some C code
- limit.c
-
The C file created by processing the limit.xml file.
- GNUmakefile
-
The makefile for creating the different files.
One has to edit it to specify the correct settings for the testXSLT
- literateS.tar.gz
-
A collection of these files for those who want to
experiment with them.
This files is created by filtering the literateS.xml file with a special XSL sheet
which extracts the appendix containing the description list of the
files. As with all derived files, we benefit from having to update a
single source and have these changes be reflected in the derived
files. Also, it saves time in creating the documents and in many cases
makes a difference between creating it or not, due to time constraints.