/[sdx]/demos/quran/conf/indexer.xsl
ViewVC logotype

Contents of /demos/quran/conf/indexer.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Sep 28 13:40:16 2003 UTC (20 years, 7 months ago) by brihaye
Branch: MAIN
CVS Tags: HEAD
File MIME type: application/xml
Initial import

1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3 Copyright (C) 2003, Pierrick Brihaye
4 pierrick.brihaye@wanadoo.fr
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 See the GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the
18 Free Software Foundation, Inc.
19 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 or connect to:
21 http://www.fsf.org/copyleft/gpl.html
22 -->
23 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx">
24 <xsl:template match="/sura">
25 <xsl:variable name="suraId" select="@id"/>
26 <sdx:document id="{$suraId}">
27 <sdx:field name="sura">
28 <xsl:value-of select="$suraId"/>
29 </sdx:field>
30 <sdx:field name="name">
31 <xsl:value-of select="@name"/>
32 </sdx:field>
33 <xsl:for-each select="aya">
34 <sdx:document id="{concat($suraId,'-',@id)}">
35 <sdx:field name="sura">
36 <xsl:value-of select="$suraId"/>
37 </sdx:field>
38 <sdx:field name="verse">
39 <xsl:value-of select="@id"/>
40 </sdx:field>
41 <sdx:field name="content">
42 <xsl:value-of select="searchtext"/>
43 </sdx:field>
44 <xsl:copy-of select="qurantext"/>
45 </sdx:document>
46 </xsl:for-each>
47 </sdx:document>
48 </xsl:template>
49 </xsl:stylesheet>

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26