On 6/12/2016 5:45 PM, Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de wrote:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="TEI/text/body">
<html>
<head/>
<body>
<xsl:for-each select="//term[@xml:lang='zh'] ">
<xsl:sort select="term[@xml:lang='zh']"/>
Inside of the for-each you you would need
<xsl:sort select="."/>
<p><xsl:apply-templates/><xsl:text> </xsl:text></p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Otherwise it looks fine (as far as I can tell without knowing the input
format), you will need to explain what "no success" really means, if you
get an error, no output at all, the wrong sort order.
Sorry for not explaining. I was getting an html file with a header, no
content in the body. I'm going to try your suggestion now.
Chuck
You might want to show a small snippet of input with any namespaces
declarations included, the output you want and then one you get if you
still have problems.
--
---------------------------
A. Charles Muller
Graduate School of Humanities and Sociology
Faculty of Letters
University of Tokyo
7-3-1 Hongō, Bunkyō-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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--