The most important transformation: From XML to (X)HTML
Since we are talking about eLearning and eLessons the transformation into HTML or better XHTML 1.0 is probably the most import one. As described below you can just create a plain XHTML version of your lesson but this is probably not what you want. With eLML you have different possibilities to customize your XHTML transformation:
- Create your own online templates
- Use the YAML CSS framework for your layout
- Create IMS or SCORM content packages and use them within your LMS
- Adapt the CSS file to get full control over the display of the eLML elements
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:
Transform a lesson without a layout template (the 'plain' version)
- Open your lesson or the "Introduction to Database Systems" lesson XML file in oXygen or XMLSpy.
- In oXygen click on the "Apply transformation scenario" button. Since you didn't yet define a "Transformation Scenario" you will need to do this now. It's pretty straightforward but refer to the oXygen manual if you don't know how to do it. In XMLSpy just click the "XSL" button.
- Choose the file
../../../../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). - Open the file
gitta/IntroToDBS/en/index.html
with any web browser (in XMLSpy the files are opened automatically).