/usr/share/doc/swish++/examples/oo_indexing/oometa.xsl is in swish++ 6.1.5-2.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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:office="http://openoffice.org/2000/office"
xmlns:meta="http://openoffice.org/2000/meta"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<!--
Copyright (C) 2004 Bastian Kleineidam <calvin@debian.org>
The contents of this file are released in the Public Domain
-->
<xsl:output
method="text"
encoding="latin1"
/>
<xsl:template match="office:meta">
<xsl:apply-templates select="dc:title"/>
<xsl:apply-templates select="dc:subject"/>
<xsl:apply-templates select="dc:description"/>
<xsl:apply-templates select="dc:language"/>
<xsl:apply-templates select="meta:keywords"/>
<xsl:apply-templates select="meta:user-defined"/>
</xsl:template>
<xsl:template match="dc:title">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:template>
<xsl:template match="dc:subject">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:template>
<xsl:template match="dc:description">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:template>
<xsl:template match="dc:language">
<xsl:text>Lang: </xsl:text>
<xsl:value-of select="."/>
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:template>
<xsl:template match="meta:keywords">
<xsl:for-each select="meta:keyword">
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
</xsl:for-each>
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:template>
<xsl:template match="meta:user-defined">
<xsl:if test="text()">
<xsl:value-of select="@meta:name"/>
<xsl:text>: </xsl:text>
<xsl:value-of select="."/>
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:if>
</xsl:template>
</xsl:stylesheet>
|