XMLmind has developed a robust, self-contained, W3C XML Schema for XHTML 5 which is as faithful to W3C Candidate Recommendation 17 December 2012 as an W3C XML Schema can be.
XMLmind has also developed XSLT 2 stylesheets allowing —with the help of the appropriate XSL-FO processor— to convert XHTML 1.0, 1.1 and 5.0 documents to PostScript, PDF, RTF, WordprocessingML, Office Open XML (.docx) and OpenOffice (.odt).
These XSLT 2 stylesheets
xsl:attribute-set
s.The W3C XML Schema for XHTML 5 and the XSLT 2 stylesheets for XHTML 1.0, 1.1 and 5.0 developed by XMLmind are open source software licensed under the terms of the MIT license. This means that you may freely use these resources outside XMLmind products.
Example: validate this document (which is valid XHTML 5) using Xerces2 Java Parser 2.11:
$ java -cp "$XERCES_HOME/xercesSamples.jar:$XERCES_HOME/xercesImpl.jar:$XERCES_HOME/resolver.jar" \ jaxp.SourceValidator \ -a xsd/xhtml5.xsd -i xhtml5_resources.README.html
The XSLT stylesheets require Saxon 9.3+ in order to work.
Example: convert this document (which is valid XHTML 5) to PDF using Apache FOP:
$ java -jar "$SAXON9_HOME/saxon9he.jar" -xsl:xsl/fo.xsl \ -s:xhtml5_resources.README.html \ -o:tmp.fo \ foProcessor=FOP $ fop tmp.fo xhtml5_resources.README.pdf
Note that the XSLT
stylesheets must be passed a foProcessor
parameter specifying
which XSL-FO processor is being used. This allows to take advantage of
extensions which are specific to the processor or or the contrary to
workaround limitations which are specific to the
processor.
Please send bug reports to xmleditor-support@xmlmind.com a public, moderated, mailing list. (You don't need to be a list member to post a message.) More information in http://www.xmlmind.com/xmleditor/support.html.
-f
option of
jaxp.SourceValidator
; see above)set-outline-level
. When
XMLmind XSL-FO
Converter is used to convert the intermediate XSL-FO file to
RTF, .odt
, .docx
, etc, and the
value of this parameter is 'yes'
(the default
value), consider the h1
, h2
, ...,
h6
elements as being headings participating in the outline
of the MS-Word or OpenOffice/LibreOffice document. More information in
the
set-outline-level
XSLT stylesheet parameter.text-align
and vertical-align
when these
styles were specified on thead
, tfoot
,
tbody
or tr
.Updated xhtml5.xsd to reflect the specifications contained in W3C Working Draft 25 October 2012.
Bug fix: the XSL stylesheets now add attribute
xml:lang
to element fo:root
when attribute
lang
or xml:lang
is set on the html
root element of the source document. Previously, these stylesheets added a
language
attribute to element fo:page-sequence
but
this language
attribute possibly contained a combination of a
language code and a country code (e.g. "en-US
"), which is
incorrect.
Updated xhtml5.xsd to reflect the specifications contained in W3C Working Draft 29 March 2012.
Bug fix: table attribute rules="all"
was
not correctly processed.
Bug fix: the align
attribute specified on
thead
, tfoot
, tbody
or
tr
was not inherited by td
.
First release. Xhtml5.xsd, the W3C XML Schema for XHTML 5 developed by XMLmind corresponds to W3C Working Draft 25 May 2011.