| <?xml version="1.0"?> |
|
|
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tei="http://www.tei-c.org/ns/1.0" version="2.0" xmlns="http://www.tei-c.org/ns/1.0"> |
|
|
|
|
| <xsl:template match="/"> |
| <xsl:processing-instruction name="xml-stylesheet"> |
| href="custom.xsl" type="text/xsl" |
| </xsl:processing-instruction> |
| <TEI> |
| <teiHeader/> |
| <text> |
| <body> |
| <text> |
| <list> |
| <xsl:for-each-group select="//tei:persName" group-by="@key"> |
| <xsl:sort/> |
| <item><xsl:value-of select="current-grouping-key()"/> |
| <table> |
| <xsl:for-each select="current-group()"> |
| <row> |
| <cell><xsl:copy-of select="preceding::text()[position() < 10]"/></cell> |
| <cell><xsl:copy-of select=".."/></cell> |
| <cell><xsl:copy-of select="following::text()[position() < 10]"/></cell> |
| </row> |
| </xsl:for-each> |
| </table> |
| </item> |
| </xsl:for-each-group> |
| </list> |
| </text> |
| </body> |
| </text> |
| </TEI> |
| </xsl:template> |
|
|
| </xsl:stylesheet> |
|
|