summaryrefslogtreecommitdiff
path: root/docs/xslt/find-image-dependencies.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'docs/xslt/find-image-dependencies.xsl')
-rw-r--r--docs/xslt/find-image-dependencies.xsl20
1 files changed, 20 insertions, 0 deletions
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>