BOOKMARK & SHARE Bookmark and Share
RSS RenderX RSS
The Future of Your Document Is Here
RenderX logo
Contact Us

Free Personal Edition!

XEP 4
Free software for
non-commercial use:
Free XEP Personal Edition!

More information...

W3C Specification Examples

This section presents an XSL stylesheet designed to transform W3C documents conformant to W3C XML Specification DTD 2.0 into XSL Formatting Objects. Documents available so far include the XML, XPath, XSL and XSL FO (XSLFO) specifications. For all of these, we present a zip of the complete package as well as PDF results from rendering them using XEP Engine.

Background

To the best of our knowledge, the style sheet developed covers the majority of elements/constructs found in the DTD, with one important exception: IDL-related markup from DOM Spec is omitted as it is left undocumented in the DTD description.

We have tried to build a style for real documents, rather than for an abstract DTD. Therefore, the style also comprises elements specific to certain documents (e.g. element syntax descriptors in XSLT Specification). Moreover, in cases where real usage of an element in documents contradicted the formatting intent as specified in the XMLSpec DTD docs, we have privileged the real-life usage (see e.g. treatment of <slist> elements, or <titleref> usage in XML Spec).

Parameters

The stylesheet has four global parameters:

title-color: Specifies the color to be used for all headers and the left sidebar.

attr-color: Specifies the color to be used for all hyperlinks.

lhs-width and rhs-width: Control the width of the left-hand and right-hand columns in BNF productions, respectively (see the description of scrap element in the XMLSpec DTD docs). These parameters are used to tweak single documents individually.

Results

The stylesheet has been tested on several W3C documents. Relative XML sources are publicly available from the W3C web site. No changes were made to the XML sources. The ZIP file includes XML source, XSL transform, resulting PDF and any included images so that you can recreate these on your own if you wish.

RenderX gives no guarantee about the integrity of the transformation and rendering results (or even legibility thereof :o) ). Therefore, all documents except for the original XML sources cannot be considered as exactly reproducing the correspondent W3C normatives. Use at your own risk.

XPath Recommendation

Source: REC-xpath-19991116.xml
PDF: REC-xpath-19991116.pdf
ZIP: xpath.zip

XML Recommendation

Source: REC-xml-20040204.xml
PDF: REC-xml-20040204.pdf
Zip: xml.zip

XSL FO Recommendation

Source: REC-xsl-20011015.xml
PDF: REC-xsl-20011015.pdf
ZIP: xsl.zip

XSLT Recommendation

Source: REC-xslt-19991116.xml
PDF: REC-xslt-19991116.pdf
ZIP: xslt.zip

More examples are available here.


 

News

July 15, 2014
XEP 4.23 released

Improved Sec. 508 accessibility:
new RenderX extensions;
relaxed input requirements; several bugfixes in SVG;
DocBench: oXygen Editor 16
More news...


August 28, 2013
VisualXSL 2.4.5 released

Cell spanning, conditional rows. Reusable/referable blocks. Conditional and Choose blocks. New property fields, improved UI.
More news...


August 8, 2013
XEP 4.22 released

External PDF injection:
entire document, specific page;
improved Sec. 508 accessibility;
bugfixes in SVG gradients;
DocBench: oXygen Editor 15
More news...


October 25, 2012
XEP 4.21 released

Extended Sec. 508 accessibility,
improvements in bidi algorithm,
XEPOUT diagnostics, bugfixes,
DocBench: oXygen Editor 14.1
More news...


July 23, 2012
XEP 4.20 released

New Java and Windows installers,
multicolumn footnote balancing,
GNU FreeFonts, bugfixes,
DocBench: oXygen XML Editor 14
More news...


RenderX RSS RSS: Subscribe

Add to Google Add to MyYahoo!