Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Helman2014-11-14 11:41:41 +0000
committerSebastian Helman2014-11-17 13:28:18 +0000
commita50ce18af6552f5f7fb16f3a1593ba4d22851de0 (patch)
tree5e26cb41bc91b76a96e87098ae85767a21b909eb /org.eclipse.jubula.documentation.xsl
parentbe7125a8dab3d98fa666173f907e98507ff37cda (diff)
downloadorg.eclipse.jubula.core-a50ce18af6552f5f7fb16f3a1593ba4d22851de0.tar.gz
org.eclipse.jubula.core-a50ce18af6552f5f7fb16f3a1593ba4d22851de0.tar.xz
org.eclipse.jubula.core-a50ce18af6552f5f7fb16f3a1593ba4d22851de0.zip
Changed file structure of the user manual
Change-Id: I93554b7371d1f38b9f298859e469d2f83fc0a25d Signed-off-by: Sebastian Helman <Sebastian.Helman@bredex.de>
Diffstat (limited to 'org.eclipse.jubula.documentation.xsl')
-rw-r--r--org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl55
-rw-r--r--org.eclipse.jubula.documentation.xsl/custom/jubulatemplates_html.xsl33
2 files changed, 83 insertions, 5 deletions
diff --git a/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl b/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl
index 3d2c37c87..2f1acb016 100644
--- a/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl
+++ b/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl
@@ -1,4 +1,13 @@
<?xml version="1.0"?>
+
+<!--
+ Copyright (c) 2014 BREDEX GmbH.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:d="http://docbook.org/ns/docbook"
@@ -8,6 +17,12 @@
<xsl:import href="generatecontexts.xsl"/>
<xsl:template match="d:para[@role='warning']">
+ <xsl:variable name="href">
+ <xsl:call-template name="relative.path.link">
+ <xsl:with-param name="target.pathname" select="'images/img1.jpg'"/>
+ </xsl:call-template>
+ </xsl:variable>
+
<p>
<table>
<colgroup>
@@ -17,7 +32,11 @@
<tbody>
<tr>
<td>
- <img align="bottom" width="102" height="89" src="../images/img1.jpg"/>
+ <img align="bottom" width="102" height="89">
+ <xsl:attribute name="src">
+ <xsl:value-of select="$href"/>
+ </xsl:attribute>
+ </img>
</td>
<td class="topbotline"><span class="strong"><strong><xsl:apply-templates/></strong></span></td>
</tr>
@@ -27,6 +46,12 @@
</xsl:template>
<xsl:template match="d:para[@role='tip']">
+ <xsl:variable name="href">
+ <xsl:call-template name="relative.path.link">
+ <xsl:with-param name="target.pathname" select="'images/img2.jpg'"/>
+ </xsl:call-template>
+ </xsl:variable>
+
<p>
<table>
<colgroup>
@@ -36,7 +61,11 @@
<tbody>
<tr>
<td>
- <img align="bottom" width="100" height="91" src="../images/img2.jpg"/>
+ <img align="bottom" width="100" height="91">
+ <xsl:attribute name="src">
+ <xsl:value-of select="$href"/>
+ </xsl:attribute>
+ </img>
</td>
<td class="topbotline"><span class="strong"><strong><xsl:apply-templates/></strong></span></td>
</tr>
@@ -46,15 +75,35 @@
</xsl:template>
<xsl:template match="d:mediaobject[@role='icon']">
+ <xsl:variable name="href">
+ <xsl:call-template name="relative.path.link">
+ <xsl:with-param name="target.pathname" select="@file"/>
+ </xsl:call-template>
+ </xsl:variable>
+
<span class="inlinemediaobject">
<img>
<xsl:attribute name="src">
- <xsl:value-of select="@file"/>
+ <xsl:value-of select="$href"/>
</xsl:attribute>
</img>
</span>
</xsl:template>
+<xsl:template match="d:imagedata">
+ <xsl:variable name="href">
+ <xsl:call-template name="relative.path.link">
+ <xsl:with-param name="target.pathname" select="@fileref"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="$href"/>
+ </xsl:attribute>
+ </img>
+</xsl:template>
+
<xsl:template match="processing-instruction('linebreak')">
<br/>
</xsl:template>
diff --git a/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates_html.xsl b/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates_html.xsl
index 6af750bce..a87540b50 100644
--- a/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates_html.xsl
+++ b/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates_html.xsl
@@ -1,4 +1,13 @@
<?xml version="1.0"?>
+
+<!--
+ Copyright (c) 2014 BREDEX GmbH.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:d="http://docbook.org/ns/docbook"
@@ -8,6 +17,12 @@
<xsl:import href="../docbook-xsl_reduced/html/docbook.xsl"/>
<xsl:template match="d:para[@role='warning']">
+ <xsl:variable name="href">
+ <xsl:call-template name="relative.path.link">
+ <xsl:with-param name="target.pathname" select="'images/img1.jpg'"/>
+ </xsl:call-template>
+ </xsl:variable>
+
<p>
<table>
<colgroup>
@@ -17,7 +32,11 @@
<tbody>
<tr>
<td>
- <img align="bottom" width="102" height="89" src="../images/img1.jpg"/>
+ <img align="bottom" width="102" height="89">
+ <xsl:attribute name="src">
+ <xsl:value-of select="$href"/>
+ </xsl:attribute>
+ </img>
</td>
<td class="topbotline"><span class="strong"><strong><xsl:apply-templates/></strong></span></td>
</tr>
@@ -27,6 +46,12 @@
</xsl:template>
<xsl:template match="d:para[@role='tip']">
+ <xsl:variable name="href">
+ <xsl:call-template name="relative.path.link">
+ <xsl:with-param name="target.pathname" select="'images/img2.jpg'"/>
+ </xsl:call-template>
+ </xsl:variable>
+
<p>
<table>
<colgroup>
@@ -36,7 +61,11 @@
<tbody>
<tr>
<td>
- <img align="bottom" width="100" height="91" src="../images/img2.jpg"/>
+ <img align="bottom" width="100" height="91">
+ <xsl:attribute name="src">
+ <xsl:value-of select="$href"/>
+ </xsl:attribute>
+ </img>
</td>
<td class="topbotline"><span class="strong"><strong><xsl:apply-templates/></strong></span></td>
</tr>

Back to the top