1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/games/freeorion/fix-paths.xslt
2016-04-18 16:20:46 -03:00

14 lines
488 B
HTML

<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>