-
Notifications
You must be signed in to change notification settings - Fork 348
/
Copy pathTransformAppxManifest.xslt
31 lines (26 loc) · 1.11 KB
/
TransformAppxManifest.xslt
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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="http://schemas.microsoft.com/appx/manifest/foundation/windows10">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="ApplicationName" />
<xsl:template match="/">
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<xsl:for-each select="ms:Package/ms:Extensions/ms:Extension">
<file>
<xsl:attribute name="name">
<xsl:value-of select="ms:InProcessServer/ms:Path" />
</xsl:attribute>
<xsl:for-each select="ms:InProcessServer/ms:ActivatableClass">
<activatableClass xmlns="urn:schemas-microsoft-com:winrt.v1">
<xsl:attribute name="name">
<xsl:value-of select="@ActivatableClassId" />
</xsl:attribute>
<xsl:attribute name="threadingModel">
<xsl:value-of select="@ThreadingModel" />
</xsl:attribute>
</activatableClass>
</xsl:for-each>
</file>
</xsl:for-each>
</assembly>
</xsl:template>
</xsl:stylesheet>