<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:a="http://www.textgrid.info/namespace/digibib/authors"
    xmlns:fn="http://www.w3.org/2005/xpath-functions"
    xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
    xmlns:tei="http://www.tei-c.org/ns/1.0"
    xmlns:tgl="http://textgrid.info/namespaces/metadata/language/2010"
    xmlns:tgr="http://textgrid.info/namespaces/metadata/agent/2010"
    xmlns:tgs="http://textgrid.info/namespaces/metadata/script/2010"
    xmlns:tns="http://textgrid.info/namespaces/metadata/core/2010"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    exclude-result-prefixes="a fn jxb tgl tgr tgs tns xi xs xsi xsl"
    
    version="3.0">
    
    <xsl:template match="/">
        <xsl:element name="test">
            <xsl:copy-of
                select="doc('https://textgridlab.org/1.0/tgcrud-public/rest/textgrid:10002.0/data')//*:idno/text() => string-join('; ')"/>
        </xsl:element>
    </xsl:template>
    
    
</xsl:stylesheet>