diff options
Diffstat (limited to 'docs/xslt')
-rw-r--r-- | docs/xslt/expand-sambadoc.xsl | 2 | ||||
-rw-r--r-- | docs/xslt/find-image-dependencies.xsl | 20 |
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> |