Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / filter-out-sp.xsl @ 187

History | View | Annotate | Download (1.8 kB)

1
<?xml version="1.0"?>
2
<xsl:stylesheet
3
  xmlns:xd="http://www.pnp-software.com/XSLTdoc"
4
  xmlns:edate="http://exslt.org/dates-and-times"
5
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tei="http://www.tei-c.org/ns/1.0"
6
  exclude-result-prefixes="tei edate xd" version="2.0">
7
  
8
  <xd:doc type="stylesheet">
9
    <xd:short>
10
      Feuille de style de suppression de certains éléments XML à utiliser comme
11
      prétraitement de l'import XML/w+CSV. 
12
    </xd:short>
13
    <xd:detail>
14
      This stylesheet is free software; you can redistribute it and/or
15
      modify it under the terms of the GNU Lesser General Public
16
      License as published by the Free Software Foundation; either
17
      version 3 of the License, or (at your option) any later version.
18
      
19
      This stylesheet is distributed in the hope that it will be useful,
20
      but WITHOUT ANY WARRANTY; without even the implied warranty of
21
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22
      Lesser General Public License for more details.
23
      
24
      You should have received a copy of GNU Lesser Public License with
25
      this stylesheet. If not, see http://www.gnu.org/licenses/lgpl.html
26
    </xd:detail>
27
    <xd:author>Serge Heiden slh@ens-lyon.fr</xd:author>
28
    <xd:copyright>2013, CNRS / ICAR (ICAR3 LinCoBaTO)</xd:copyright>
29
  </xd:doc>
30
  
31

    
32
  <xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes"/>
33

    
34
  <xsl:template match="@*|node()">
35
    <xsl:copy>
36
      <xsl:apply-templates select="@*|node()" />
37
    </xsl:copy>
38
  </xsl:template>
39
  
40
  <!-- On supprime tous les <sp> dont l'attribut @who vaut 'enqueteur' -->
41
  
42
  <xsl:template match="//sp[@who='enqueteur']">    
43
      <!--<xsl:copy-of select="."/>-->    
44
  </xsl:template>
45
	
46
</xsl:stylesheet>