blob: 046b56c1feeeca79c1a5520098f3dd3f5dfcf285 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2021 Ulrich Müller -->
<!-- Distributed under the terms of the MIT license -->
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="text"/>
<xsl:variable name="newline" select="' '"/>
<!-- suppress implicit whitespace -->
<xsl:template match="text()"/>
<xsl:template match="user">
<xsl:value-of select="concat(@username, ' = ', realname/@fullname,
' <', @username, '@gentoo.org>', $newline)"/>
<xsl:for-each select="alias">
<xsl:value-of select="concat(., ' = ', ../realname/@fullname,
' <', ., '@gentoo.org>', $newline)"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|