Project

Profile

Help

Support #6384 » substring-after.xsl

Mircea Enachescu, 2024-04-08 14:16

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tei="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="xs tei"
version="3.0">
<xsl:template match="/">
<persons>
<xsl:apply-templates/>
</persons>
</xsl:template>
<xsl:template match="//tei:sp">
<person>
<xsl:variable name="who" select="@who"/>
<xsl:attribute name="who">
<xsl:value-of select="substring-after($who, '#')"/>
</xsl:attribute>
</person>
</xsl:template>
</xsl:stylesheet>
(3-3/3)