summaryrefslogtreecommitdiff
path: root/docs/xslt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-07-10 18:10:36 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:45:58 -0500
commiteb87ee3d8a3c442aa14152ad481916478c4cceb8 (patch)
treea19c1cba796050602d7f08111d1cc144adb5f5c9 /docs/xslt
parent68da78a95c91b5dc7bd92949fa993b1e5329c09b (diff)
downloadsamba-eb87ee3d8a3c442aa14152ad481916478c4cceb8.tar.gz
samba-eb87ee3d8a3c442aa14152ad481916478c4cceb8.tar.bz2
samba-eb87ee3d8a3c442aa14152ad481916478c4cceb8.zip
Fix image support. If images are missing, this will now also cause the
docs build to break. Only images that are actually used are copied. (This used to be commit 9b7099c94588916af6b3c4ebb7883e36d9bf2e6b)
Diffstat (limited to 'docs/xslt')
-rw-r--r--docs/xslt/expand-sambadoc.xsl2
-rw-r--r--docs/xslt/find-image-dependencies.xsl20
2 files changed, 21 insertions, 1 deletions
diff --git a/docs/xslt/expand-sambadoc.xsl b/docs/xslt/expand-sambadoc.xsl
index 8d132a9935..cd91bff8a1 100644
--- a/docs/xslt/expand-sambadoc.xsl
+++ b/docs/xslt/expand-sambadoc.xsl
@@ -239,7 +239,7 @@
<xsl:attribute name="role"><xsl:text>latex</xsl:text></xsl:attribute>
<xsl:element name="imagedata">
<xsl:attribute name="fileref">
- <xsl:value-of select="$imagedir"/><xsl:value-of select="imagefile"/></xsl:attribute>
+ <xsl:value-of select="$latex.imagebasedir"/><xsl:text>images/</xsl:text><xsl:value-of select="imagefile"/></xsl:attribute>
<xsl:attribute name="scale">
<xsl:choose>
<xsl:when test="@scale != ''">
diff --git a/docs/xslt/find-image-dependencies.xsl b/docs/xslt/find-image-dependencies.xsl
new file mode 100644
index 0000000000..f658369145
--- /dev/null
+++ b/docs/xslt/find-image-dependencies.xsl
@@ -0,0 +1,20 @@
+<?xml version='1.0'?>
+<!--
+ Find the image dependencies of a certain XML file
+ (C) Jelmer Vernooij 2004
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">
+ <xsl:output method="text"/>
+
+ <xsl:template match="mediaobject/imageobject[@role=$role]">
+ <xsl:value-of select="$prepend"/>
+ <xsl:value-of select="imagedata/@fileref"/>
+ <xsl:value-of select="$append"/>
+ <xsl:text> </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="text()"/>
+ <xsl:template match="*">
+ <xsl:apply-templates/>
+ </xsl:template>
+</xsl:stylesheet>