media @ VU
[]
readme
course
preface
I
1
2
II
3
4
III
5
6
7
IV
8
9
10
V
11
12
afterthoughts
appendix
references
examples
resources
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<!-- Xstep2step
Author: Zhisheng Huang 2002
Version: 0.20
-->
<xsl:template match="/step">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="head">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="library">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="action">
script(<xsl:value-of select="@name"/>,Action):-
Action =<xsl:apply-templates/>
!.
</xsl:template>
<xsl:template match="start">
start_action(<xsl:value-of select="@action"/>).
</xsl:template>
<xsl:template match="world">
worldURL(<xsl:value-of select="@url"/>).
</xsl:template>
<xsl:template match="meta_language">
meta_language(<xsl:value-of select="@value"/>).
</xsl:template>
<xsl:template match="seq">
seq([<xsl:apply-templates/>
]),</xsl:template>
<xsl:template match="par">
par([<xsl:apply-templates/>
]),</xsl:template>
<xsl:template match="choice">
choice([<xsl:apply-templates/>
]),</xsl:template>
<xsl:template match="dir"></xsl:template>
<xsl:template match="speed"></xsl:template>
<xsl:template match="increment">increment(,,)</xsl:template>
<xsl:template match="position">position(,,)</xsl:template>
<xsl:template match="rotation">rotation(,,,)</xsl:template>
<xsl:template match="time">time(,)</xsl:template>
<xsl:template match="turn">
turn(<xsl:value-of select="@actor"/>, ,,),</xsl:if></xsl:template>
<xsl:template match="move">
move(<xsl:value-of select="@actor"/>, , , ),</xsl:if></xsl:template>
<xsl:template match="move_body">
move_body(<xsl:value-of select="@actor"/>,,),</xsl:if></xsl:template>
<xsl:template match="script_action">
script_action(<xsl:value-of select="@name"/>),</xsl:if></xsl:template>
<xsl:template match="if_then_else">
if_then_else(<xsl:value-of select="@condition"/>, , ),</xsl:if></xsl:template>
<xsl:template match="do">
do(<xsl:value-of select="@state"/>),</xsl:if></xsl:template>
<xsl:template match="repeat">
repeat(<xsl:value-of select="@action"/>, ),</xsl:if></xsl:template>
<!-- ignore all not matched -->
<!-- xsl:template match="*" priority="-1"/ -->
</xsl:stylesheet>
[]
readme
course
preface
I
1
2
II
3
4
III
5
6
7
IV
8
9
10
V
11
12
afterthoughts
appendix
references
examples
resources
(C) A. Eliëns
9/8/2006
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.