File:  [Repository] / ECHO_content / analyseAndTag / wordlist.xsl
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Sep 10 11:03:07 2006 UTC (17 years, 10 months ago) by dwinter
Branches: MAIN
CVS tags: cleanup, Root_cleanup, HEAD
new version of lexical analysis hub

    1: <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str="http://exslt.org/strings" extension-element-prefixes="str"
    2:   exclude-result-prefixes="str">
    3: <xsl:template match="/" >
    4: <wtag locator="xxx"><section lang="de">
    5:   <xsl:apply-templates />
    6: </section></wtag>
    7: </xsl:template>
    8: <xsl:template match="*">
    9: <xsl:apply-templates mode="body"/>
   10: </xsl:template>
   11: 
   12: <xsl:template match="text()" mode="body">
   13: <xsl:variable name="tokenizedSample" select="str:tokenize(.,'()[].!;, ')"/>
   14:     <xsl:for-each select="$tokenizedSample">
   15:       <w><xsl:value-of select="."/></w>      
   16:     </xsl:for-each>
   17: </xsl:template>
   18: 
   19: <xsl:template match="*" mode="body">
   20: <xsl:apply-templates mode="body"/>
   21: </xsl:template>
   22: </xsl:stylesheet>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>