diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-07-10 18:10:36 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:45:58 -0500 |
commit | eb87ee3d8a3c442aa14152ad481916478c4cceb8 (patch) | |
tree | a19c1cba796050602d7f08111d1cc144adb5f5c9 /docs/xslt/find-image-dependencies.xsl | |
parent | 68da78a95c91b5dc7bd92949fa993b1e5329c09b (diff) | |
download | samba-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/find-image-dependencies.xsl')
-rw-r--r-- | docs/xslt/find-image-dependencies.xsl | 20 |
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> |