Provided you can guarantee that the content of Name and Adress are
perfectly aligned (same number of tokens, always delimited by
semicolons) then this will work:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="XML">
<XML>
<xsl:apply-templates/>
</XML>
</xsl:template>
<xsl:template match="Name">
<xsl:variable name="addresses"
select="tokenize(following-sibling::Adress,';')"/>
<xsl:for-each select="tokenize(.,';')">
<xsl:variable name="loc" select="position()"/>
<LINE>
<Name>
<xsl:value-of select="."/>
</Name>
<Address>
<xsl:value-of select="$addresses[$loc]"/>
</Address>
</LINE>
</xsl:for-each>
</xsl:template>
<xsl:template match="Adress"/>
</xsl:stylesheet>
///Peter
--
XML FAQ:
http://xml.silmaril.ie/