-
Notifications
You must be signed in to change notification settings - Fork 1
/
fleetitems.xsl
32 lines (30 loc) · 1.16 KB
/
fleetitems.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="xml" omit-xml-declaration="no" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Items">
<ItemBonusStats>
<xsl:for-each select=".//Item">
<xsl:value-of select="./@BonusEnhancementType"/>
<xsl:if test="position() != last()" >,</xsl:if>
</xsl:for-each>
</ItemBonusStats>
<ItemBonusVals>
<xsl:for-each select=".//Item">
<xsl:value-of select="./@BonusEnhancementValue"/>
<xsl:if test="position() != last()" >,</xsl:if>
</xsl:for-each>
</ItemBonusVals>
<ItemDesignIDs>
<xsl:for-each select=".//Item">
<xsl:value-of select="./@ItemDesignId"/>
<xsl:if test="position() != last()" >,</xsl:if>
</xsl:for-each>
</ItemDesignIDs>
</xsl:template>
</xsl:stylesheet>