nixpkgs-suyu/pkgs/games/freeorion/fix-paths.xslt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
488 B
HTML
Raw Normal View History

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="no" indent="yes" />
<xsl:template match='node() | @*'>
<xsl:copy>
<xsl:apply-templates select='node() | @*'/>
</xsl:copy>
</xsl:template>
<xsl:template match='//text()[starts-with(., "@nixStore@")]'>
<xsl:value-of select='concat("@out@", substring-after(substring-after(., "@nixStore@"), "/"))'/>
</xsl:template>
</xsl:stylesheet>