summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Peters <fpe@openoffice.org>2004-08-27 07:44:18 +0000
committerFrank Peters <fpe@openoffice.org>2004-08-27 07:44:18 +0000
commitd5c3420edb06fd42b093afcba0ebaa25021cf17d (patch)
tree064e07f98ebdcaa242573e16e7fb647f1f9a8e17
parent44dc8755060592bddab0ec92e4fd4444f576bc65 (diff)
fixed main_transform
-rw-r--r--helpcontent2/source/auxiliary/main_transform.xsl20
1 files changed, 18 insertions, 2 deletions
diff --git a/helpcontent2/source/auxiliary/main_transform.xsl b/helpcontent2/source/auxiliary/main_transform.xsl
index 30727b6895..2c1c29fe6a 100644
--- a/helpcontent2/source/auxiliary/main_transform.xsl
+++ b/helpcontent2/source/auxiliary/main_transform.xsl
@@ -15,6 +15,8 @@
Changes Log
May 24 2004 Created
Aug 24 2004 Fixed for help2 CWS
+ Aug 27 2004 Added css link, fixed missing embed-mode for variable
+ Removed width/height for images
***********************************************************************//-->
<!--***********************************************************************
@@ -175,10 +177,11 @@
<!-- Create the document skeleton -->
<xsl:template match="/">
+ <xsl:variable name="csslink" select="concat($urlpre,'/',$urlpost)"/>
<html>
<head>
<title><xsl:value-of select="$title"/></title>
- <link href="{$css}" rel="Stylesheet" type="text/css" /> <!-- stylesheet link -->
+ <link href="{$csslink}" rel="Stylesheet" type="text/css" /> <!-- stylesheet link -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
</head>
<body lang="{$lang}">
@@ -345,6 +348,10 @@
<xsl:value-of select="./alt"/>
</xsl:variable>
+ <xsl:variable name="width" select="''"/>
+ <xsl:variable name="height" select="''"/>
+
+ <!--
<xsl:variable name="width">
<xsl:choose>
<xsl:when test="contains(@width,'cm')">
@@ -355,7 +362,9 @@
</xsl:when>
</xsl:choose>
</xsl:variable>
+ //-->
+ <!--
<xsl:variable name="height">
<xsl:choose>
<xsl:when test="contains(@height,'cm')">
@@ -366,6 +375,7 @@
</xsl:when>
</xsl:choose>
</xsl:variable>
+ //-->
<img src="{$src}" alt="{$alt}" title="{$alt}">
<xsl:if test="not($width='')"><xsl:attribute name="width"><xsl:value-of select="$width"/></xsl:attribute></xsl:if>
@@ -714,7 +724,7 @@
</xsl:otherwise>
</xsl:choose>
-
+
</xsl:template>
@@ -802,6 +812,12 @@
<xsl:apply-templates />
</xsl:template>
+<!-- VARIABLE -->
+<xsl:template match="variable" mode="embedded">
+ <a name="{@id}"></a>
+ <xsl:apply-templates />
+</xsl:template>
+
<xsl:template match="text()">
<xsl:call-template name="brand">
<xsl:with-param name="string"><xsl:value-of select="."/></xsl:with-param>