On 12.06.2016 14:20, Charles Muller
acmuller(_at_)l(_dot_)u-tokyo(_dot_)ac(_dot_)jp wrote:
The top of the document, from the top of the header, down to the first
part of the <body>, looks like this:
<?oxygen
RNGSchema="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng"
type="xml"?>
<?xml-stylesheet type="text/xsl" href="xsl/term-zh.xsl"?>
<?xml-stylesheet type="text/css" href="../../../xml/css/tei_oxygen.css"?>
<TEI xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns="http://www.tei-c.org/ns/1.0">
With a default namespace declaration like
xmlns="http://www.tei-c.org/ns/1.0"
in place in the input XML with an XSLT 1.0 processor you need
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="tei">
<xsl:template match="tei:TEI/tei:text/tei:body">
<html>
<head/>
<body>
<xsl:for-each select="//tei:term[@xml:lang='zh'] ">
<xsl:sort select="."/>
<p><xsl:apply-templates/><xsl:text> </xsl:text></p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
--~----------------------------------------------------------------
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
--~--