Since we are talking about eLearning and eLessons the transformation into HTML is probably the most import one. In eLML you can choose to create the latest HTML5, strict XHTML 1.1 or the older XHTML 1.0 transitional code (default). Described below is how you choose your HTML version and how you create a plain HTML transformation of your lesson. But you most probably want more than just plain white XHTML pages so when you have read this page continue with the following chapter about custom layouts!
So usually you will work with one or more of the options below when creating your final online version of a lesson or a whole course. If you still just would like to create a simple XHTML version (e.g. to check your content) here's how:
../../../../core/presentation/online/elml.xsl
file as input XSLT file (in oXygen you also have to define an output folder: enter e.g. tmp/output.txt
but it doesn't really matter since the exact paths for storing files are part of the XSLT 2.0 files anyway).gitta/IntroToDBS/en/index.html
with any web browser (in XMLSpy the files are opened automatically).Since eLML 6 you can choose if you want to either generate the older XHTML 1.0 Transitional or the newer and more advanced XHTML 1.1 Stric version when generating HTML code. Please note that there are no differences between the strict versions of XHTML 1.0 and 1.1 that are affecting eLML. All the differences described here have to do either with the change from transitional to strict XHTML code or with the choice made by the eLML authors to create "better" XHTML code. Keep that in mind when you are reading the list below.
By default eLML generates XHTML 1.0 Transitional HTML code. If you want to change that open your configuration file and set the $html_version parameter to 1.1. Please refert to the configuration chapter if you want to know more about how to configure eLML transformations.
The differences are listed below. As mentioned above those changes have nothing to do with XHTML 1.0 or 1.1 but mainly with the fact that you are switching from transitional to strict XHTMl code. Plus the eLML authors have added some other changes in the XHTML 1.1 version in order to create better HTML code. Refer to the eLML manual if you don't know what the elements listed below are used for. Here is an overview:
<span>
with CSS style attribute instead of using HTML attributes width/heightbody
, form
or blockquote
can only contain block elements. Other elements like span
or img
have do be descendents of a block element.<citation>
: In the XHTML 1.1 version eLML generates a purely semantic approach using the HTML elements <cite>
, <blockquote>
and <q>
plus the according attributes. See here how this looks in your browser! In the older XHTML 1.0 version eLML uses the span- and i-element plus CSS code to display citations.<term>
: Creates <dfn>
HTML element<link>
element's "target" attribute is ignored. This does of course not apply to "targetLabel" or "targetLesson" attributes!<formatted style="bold">
: Creates <strong>
instead using <b>
element<formatted style="italic">
: Creates <em>
instead using <i>
element<formatted style="crossedOut">
: Creates <del>
instead using <span>
with CSS style attribute<br clear="all" />
is not allowed, only <br />
. Be aware of this when generating XHTML 1.1 and using the YAML framwork (can cause layout problems although only in certain rare cases)Since eLML 7 you can choose if you want to generate XHTML 1.0 Transitional, XHTML 1.1 Stric or HTML5 when generating HTML code. Please note that HTML5 includes all the changes listed above for XHTML 1.1 with one exception: The "target" attribute of the "link" element is allowed again in HTML5.
By default eLML generates XHTML 1.0 Transitional HTML code. If you want to change that open your configuration file and set the $html_version parameter to 5. Please refert to the configuration chapter if you want to know more about how to configure eLML transformations.
HTML 5 code is more modern and works better on modern browsers. It contains all the changes of XHTML 1.1 plus some additional ones listed here: