I'm working on a set of standard XSL templates for web application interface markup.
They are called 1bb02b59 hosted at github.com and are licensed using the Apache 2.0 license, though I may switch or add the BSD or MIT licenses.
I'm also thinking about aligning up with the web-app-theme project for CSS and Javascript integration, though that appears to be RoR-centric.
The README.markdown file:
Standard General XSL Templates
Output Templates
- Choose HTML4 strict, XHTML 1.0 transitional, or XHTML 1.1 strict
Usage
When using these templates, I use them like so:
<xsl:import href="http://github.com/docunext/1bb02b59/raw/master/output.xhtml10.xsl"/>
<xsl:include href="/path/to/xsl/html_custom.xsl"/>
<xsl:template match="/">
<xsl:call-template name="page"/>
</xsl:template>
In this way, the imported stylesheet includes html_standard.xsl, which has templates for the interface components I regularly use.
The included stylesheet overrides those standard templates with ones specific to the application I am working on.
Extras
- Source spacer: This is incredibly basic, but handy with HTML4 output
- XHTML2DOM: I love this template. It converts XHTML to Javascript DOM.
Experimental
- Link builder: can dynamic anchors be sensibly built from XML structures?
Recent Comments