<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:lom="http://ltsc.ieee.org/xsd/LOM"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"
		xmlns:str="http://exslt.org/strings"
                extension-element-prefixes="str">

  <xsl:output method="xml" indent="yes" encoding="utf-8" />

  <xsl:template match="@*|node()">

    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>

  </xsl:template>

  <xsl:template match="//lom:technical/lom:location[starts-with(normalize-space(.),'https://www.unit.eu/')]">
    <lom:location>http://www.unit.eu/<xsl:value-of select="substring-after(normalize-space(.),'https://www.unit.eu/')"/></lom:location>
  </xsl:template>




</xsl:stylesheet>
