Skip to content

Generate impress.js presentations with predesigned transitions from a XML file

License

Notifications You must be signed in to change notification settings

rggarcia/XMLimpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XMLimpress.js

Generates impress.js presentations with predesigned transitions from an XML file

You can see two online demos here:

Usage

The XML file can be viewed directly in a browser by including the XSL stylesheet in it:

HTML file can be generated with the command:

xsltproc impress.xsl file.xml > file.html

XHTML file can be generated executing the same command after changing the output method to xml in the fifth line of impress.xsl.

To avoid malfunctions is better to save the xml or html file, impress.xsl and impress.js in the same directory.

Structure of XML file

The structure of the XML file must be like in the following example:

<?xml version="1.0" encoding="UTF-8"?>

<impress numbered="yes|no">

<increment x="1000" y="1000" angle="45" length="4" />
<!--
Where:
'x' is the horizontal distance between slides
'y' is the vertical distance between slides
'angle' is the angle between two slides
'lenth' is the loop length
-->

<title>
<!--The title of the document-->
</title>

<style>
<!--Specify style options as in CSS-->
 .step {
	width: 1000px;
}
<!--at least slide width must be specified-->
</style>

<step>
<!--xhtml code for the first slide-->
</step>

<step>
<!--xhtml code for the second slide-->
</step>

<step>
<!--xhtml code for the third slide-->
</step>

...

</impress>

About

Generate impress.js presentations with predesigned transitions from a XML file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages