/usr/share/yelp-tools/xslt/media.xsl is in yelp-tools 3.18.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:mal="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/ui/1.0/"
xmlns:uix="http://projectmallard.org/experimental/ui/"
xmlns:e="http://projectmallard.org/experimental/"
xmlns:db="http://docbook.org/ns/docbook"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="/*[namespace-uri(.) = ''] | /db:*">
<xsl:for-each select="
//audiodata | //imagedata | //videodata |
//db:audiodata | //db:imagedata | //db:videodata">
<xsl:variable name="src">
<xsl:choose>
<xsl:when test="@fileref">
<xsl:value-of select="@fileref"/>
</xsl:when>
<xsl:when test="@entityref">
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$src"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
<xsl:template match="/mal:page">
<xsl:variable name="id" select="@id"/>
<xsl:for-each select="//mal:media[@src] | //uix:thumb | //ui:thumb | //e:mouseover">
<xsl:value-of select="@src"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|