Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / odds2 / extract-schemaSpec-ident.xsl @ 187

History | View | Annotate | Download (1.7 kB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- ********************************************************************** -->
3
<!--                                                                        -->
4
<!-- Routine to return the value of the ident= attributes of any            -->
5
<!-- <schemaSpec> elements in a TEI document.                               -->
6
<!--                                                                        -->
7
<!-- Input: an XML file, presumably an ODD file, i.e., one that's in the    -->
8
<!--        tei namespace and that uses the tagset for tagset documentation -->
9
<!--                                                                        -->
10
<!-- Output: a newline-separated list of the values of the ident=           -->
11
<!--         attribute of each <schemaSpec> element found.                  -->
12
<!--                                                                        -->
13
<!-- Used by the Roma shell script to ascertain the schema name             -->
14
<!--                                                                        -->
15
<!-- Written 2005-01-18 by Syd Bauman                                       -->
16
<!--                                                                        -->
17
<!-- ********************************************************************** -->
18
<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0"
19
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20
                version="2.0">
21

    
22
  <xsl:output encoding="utf8" method="text"/>
23
  <xsl:template match="/">
24
      <xsl:for-each select=".//tei:schemaSpec">
25
         <xsl:value-of select="@ident"/>
26
         <xsl:text>&#x0A;</xsl:text>
27
      </xsl:for-each>
28
  </xsl:template>
29

    
30
</xsl:stylesheet>