[Home] [By Thread] [By Date] [Recent Entries]
OK, I have succeeded in generating the list of terms with this code
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xpath-default-namespace="http://www.tei-c.org/ns/1.0" version="2.0"> <xsl:template match="TEI"> <html> <head/> <body> <xsl:for-each select="//term[@xml:lang='zh'] "> <xsl:sort select="term[@xml:lang='zh']"/> <p><xsl:apply-templates/><xsl:text> </xsl:text></p> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet> Which produces this kind of output: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>d:ig>) </p>
<p>e
h= </p>
<p>ef </p>
<p>f1:f </p>
<p>g,,d8 </p>
<p>d:i </p>
<p>g)f1i </p>
<p>fi </p>
<p>f g%i </p>
<p>f:i </p>
<p>ff </p>
<p>g)f1g"
</p>
<p>e
h </p>
<p>h2*g </p>
<p>g)e </p>
<p>g>h! </p>
<p>d:h:+e? </p>But there is no sorting applied here. Chuck -- --------------------------- A. Charles Muller Graduate School of Humanities and Sociology Faculty of Letters University of Tokyo 7-3-1 HongE , BunkyE -ku Tokyo 113-8654, Japan Office Phone: 03-5841-3735 Web Site: Resources for East Asian Language and Thought http://www.acmuller.net Twitter: @H_Buddhism
|

Cart



