/ .. / / -> download
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>
  
  <xsl:template match="responsiblePartnerCompany|originator">
    <xsl:variable name="enterpriseCode" select="@enterpriseCode"/>
    <xsl:variable name="enterpriseIdent" select="(//enterpriseIdent[@manufacturerCodeValue = $enterpriseCode])[1]"/>
    <xsl:variable name="enterpriseSpec" select="$enterpriseIdent/parent::enterpriseSpec"/>
    <xsl:copy>
      <xsl:choose>
        <xsl:when test="$enterpriseSpec">
          <xsl:apply-templates select="@*"/>
          <xsl:apply-templates select="$enterpriseSpec/enterpriseName"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:copy>
  </xsl:template>

</xsl:stylesheet>


/ gopher://khzae.net/0/s1kd/s1kd-tools/src/tools/s1kd-instance/cirxsl/enterpriseRepository.xsl
Styles: Light Dark Classic