/usr/share/doc/swish++/examples/oo_indexing/oocontent.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 | <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:text="http://openoffice.org/2000/text">
<!--
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="text:tab-stop">
<xsl:text>	</xsl:text> <!-- emit a Unicode tab -->
</xsl:template>
<xsl:template match="text:line-break">
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:template>
<xsl:variable name="spaces" xml:space="preserve"> </xsl:variable>
<xsl:template match="text:s">
<xsl:choose>
<xsl:when test="@text:c">
<xsl:call-template name="insert-spaces">
<xsl:with-param name="n" select="@text:c"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="text:p">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text> <!-- emit a Unicode line feed -->
</xsl:template>
<xsl:template name="insert-spaces">
<xsl:param name="n"/>
<xsl:choose>
<xsl:when test="$n <= 30">
<xsl:value-of select="substring($spaces, 1, $n)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$spaces"/>
<xsl:call-template name="insert-spaces">
<xsl:with-param name="n">
<xsl:value-of select="$n - 30"/>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
|