summaryrefslogtreecommitdiff
path: root/finalmodsheet.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'finalmodsheet.xsl')
-rw-r--r--finalmodsheet.xsl97
1 files changed, 69 insertions, 28 deletions
diff --git a/finalmodsheet.xsl b/finalmodsheet.xsl
index c64dc05..56e95b3 100644
--- a/finalmodsheet.xsl
+++ b/finalmodsheet.xsl
@@ -7,6 +7,7 @@ Authors: Maverick & Karma
<!--
NOTES:
Look for TAG:Break1!!!
+ TAG:Break2!!!
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no" />
@@ -150,6 +151,19 @@ Look for TAG:Break1!!!
</xsl:otherwise>
</xsl:choose>
</xsl:when>
+ <xsl:when test="@name">
+ <xsl:choose>
+ <xsl:when test="@name='ExplicitLink'">
+ <xsl:call-template name="ExplicitLink" />
+ </xsl:when>
+ <xsl:when test="@name='ImplicitLink'">
+ <xsl:call-template name="ImplicitLink" />
+ </xsl:when>
+ <xsl:when test="@name='CommandControlLink'">
+ <xsl:call-template name="CommandControlLink" />
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
<xsl:otherwise>
<!-- Style not present -->
<xsl:copy-of select="." />
@@ -170,17 +184,23 @@ Look for TAG:Break1!!!
<xsl:value-of select="@scilabClass" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@varName">
+ <!-- <xsl:if test="@varName">
<xsl:attribute name="varName">
<xsl:value-of select="@varName" />
</xsl:attribute>
- </xsl:if>
+ </xsl:if> -->
<xsl:apply-templates />
</xsl:element>
</xsl:template>
+
+ <!-- Maverick -->
+ <!-- TAG:Break2
+ The template handles the 'as' attribute rather loosely and demands
+ proper handling.
+ -->
<xsl:template name="Array" match="Array">
<xsl:element name="Array">
- <xsl:if test="name(..)='BasicBlock'">
+ <xsl:if test="name(..)='BasicBlock' or @as='context'">
<xsl:if test="@as">
<xsl:attribute name="as">
<xsl:value-of select="@as" />
@@ -388,9 +408,19 @@ Look for TAG:Break1!!!
<xsl:value-of select="@id" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@style">
- <xsl:attribute name="style">
- <xsl:value-of select="@style" />
+ <xsl:if test="@parent">
+ <xsl:attribute name="parent">
+ <xsl:value-of select="@parent" />
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@source">
+ <xsl:attribute name="source">
+ <xsl:value-of select="@source" />
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@target">
+ <xsl:attribute name="target">
+ <xsl:value-of select="@target" />
</xsl:attribute>
</xsl:if>
<xsl:apply-templates />
@@ -638,14 +668,19 @@ Look for TAG:Break1!!!
<xsl:value-of select="@id" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@style">
- <xsl:attribute name="style">
- <xsl:value-of select="@style" />
+ <xsl:if test="@parent">
+ <xsl:attribute name="parent">
+ <xsl:value-of select="@parent" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@value">
- <xsl:attribute name="value">
- <xsl:value-of select="@value" />
+ <xsl:if test="@source">
+ <xsl:attribute name="source">
+ <xsl:value-of select="@source" />
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@target">
+ <xsl:attribute name="target">
+ <xsl:value-of select="@target" />
</xsl:attribute>
</xsl:if>
<xsl:apply-templates />
@@ -878,14 +913,19 @@ Look for TAG:Break1!!!
<xsl:value-of select="@id" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@style">
- <xsl:attribute name="style">
- <xsl:value-of select="@style" />
+ <xsl:if test="@parent">
+ <xsl:attribute name="parent">
+ <xsl:value-of select="@parent" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@value">
- <xsl:attribute name="value">
- <xsl:value-of select="@value" />
+ <xsl:if test="@source">
+ <xsl:attribute name="source">
+ <xsl:value-of select="@source" />
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@target">
+ <xsl:attribute name="target">
+ <xsl:value-of select="@target" />
</xsl:attribute>
</xsl:if>
<xsl:apply-templates />
@@ -1652,11 +1692,12 @@ Look for TAG:Break1!!!
<xsl:value-of select="@style" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@value">
+ <!-- <xsl:if test="@value">
<xsl:attribute name="value">
<xsl:value-of select="@value" />
</xsl:attribute>
- </xsl:if>
+ </xsl:if> -->
+
<xsl:if test="@visbile">
<xsl:attribute name="visbile">
<xsl:value-of select="@visbile" />
@@ -1759,11 +1800,11 @@ Look for TAG:Break1!!!
<xsl:value-of select="@style" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@value">
+ <!-- <xsl:if test="@value">
<xsl:attribute name="value">
<xsl:value-of select="@value" />
</xsl:attribute>
- </xsl:if>
+ </xsl:if> -->
<xsl:if test="@visible">
<xsl:attribute name="visible">
<xsl:value-of select="@visible" />
@@ -1831,11 +1872,11 @@ Look for TAG:Break1!!!
<xsl:value-of select="@style" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@value">
+ <!-- <xsl:if test="@value">
<xsl:attribute name="value">
<xsl:value-of select="@value" />
</xsl:attribute>
- </xsl:if>
+ </xsl:if> -->
<xsl:if test="@visible">
<xsl:attribute name="visible">
<xsl:value-of select="@visible" />
@@ -1903,11 +1944,11 @@ Look for TAG:Break1!!!
<xsl:value-of select="@style" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@value">
+ <!-- <xsl:if test="@value">
<xsl:attribute name="value">
<xsl:value-of select="@value" />
</xsl:attribute>
- </xsl:if>
+ </xsl:if> -->
<xsl:if test="@visible">
<xsl:attribute name="visible">
<xsl:value-of select="@visible" />
@@ -1975,11 +2016,11 @@ Look for TAG:Break1!!!
<xsl:value-of select="@style" />
</xsl:attribute>
</xsl:if>
- <xsl:if test="@value">
+ <!-- <xsl:if test="@value">
<xsl:attribute name="value">
<xsl:value-of select="@value" />
</xsl:attribute>
- </xsl:if>
+ </xsl:if> -->
<xsl:if test="@visible">
<xsl:attribute name="visible">
<xsl:value-of select="@visible" />