chore: format and slightly fix xml/xslt
This commit is contained in:
parent
46a6d30f70
commit
472afff0a2
3 changed files with 28 additions and 28 deletions
14
.vscode/about.xml.xslt
vendored
14
.vscode/about.xml.xslt
vendored
|
@ -1,14 +1,15 @@
|
||||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
<xsl:stylesheet version="1.0"
|
||||||
<xsl:output method="xml" encoding="utf-8" indent="yes"/>
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
|
<xsl:output method="xml"
|
||||||
|
encoding="utf-8"
|
||||||
|
indent="yes" />
|
||||||
<xsl:strip-space elements="*" />
|
<xsl:strip-space elements="*" />
|
||||||
|
|
||||||
<!-- Match ModMetaData and its descendants, modify modVersion element -->
|
<!-- Match ModMetaData and its descendants, modify modVersion element -->
|
||||||
<xsl:template match="/Project/PropertyGroup/ModMetaData|ModMetaData/@*[not(name()='Id')]|ModMetaData//node()">
|
<xsl:template match="/Project/PropertyGroup/ModMetaData|ModMetaData/@*|ModMetaData//node()">
|
||||||
<xsl:copy>
|
<xsl:copy>
|
||||||
<xsl:apply-templates select="@*[not(name()='Id')]|node()"/>
|
<xsl:apply-templates select="@*|node()" />
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Modify modVersion element using the value of VersionPrefix -->
|
<!-- Modify modVersion element using the value of VersionPrefix -->
|
||||||
<xsl:template match="ModMetaData/modVersion">
|
<xsl:template match="ModMetaData/modVersion">
|
||||||
<modVersion>
|
<modVersion>
|
||||||
|
@ -16,7 +17,6 @@
|
||||||
<xsl:value-of select="/Project/PropertyGroup/VersionPrefix" />
|
<xsl:value-of select="/Project/PropertyGroup/VersionPrefix" />
|
||||||
</modVersion>
|
</modVersion>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Remove other elements and attributes -->
|
<!-- Remove other elements and attributes -->
|
||||||
<xsl:template match="@*|node()">
|
<xsl:template match="@*|node()">
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
|
|
3
.vscode/mod.csproj
vendored
3
.vscode/mod.csproj
vendored
|
@ -25,8 +25,9 @@
|
||||||
<supportedVersions>
|
<supportedVersions>
|
||||||
<li>1.4</li>
|
<li>1.4</li>
|
||||||
</supportedVersions>
|
</supportedVersions>
|
||||||
|
<modVersion IgnoreIfNoMatchingField="True">
|
||||||
<!-- Gets automatically populated with VersionPrefix (see above) -->
|
<!-- Gets automatically populated with VersionPrefix (see above) -->
|
||||||
<modVersion IgnoreIfNoMatchingField="True" />
|
</modVersion>
|
||||||
<url />
|
<url />
|
||||||
<modDependencies />
|
<modDependencies />
|
||||||
<modDependenciesByVersion>
|
<modDependenciesByVersion>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<ModMetaData>
|
<ModMetaData>
|
||||||
<packageId>dev.tobot.mod-template</packageId>
|
<packageId>dev.tobot.mod-template</packageId>
|
||||||
<name>Mod Template</name>
|
<name>Mod Template</name>
|
||||||
|
@ -9,7 +9,6 @@
|
||||||
<supportedVersions>
|
<supportedVersions>
|
||||||
<li>1.4</li>
|
<li>1.4</li>
|
||||||
</supportedVersions>
|
</supportedVersions>
|
||||||
<!-- Gets automatically populated with VersionPrefix (see above) -->
|
|
||||||
<modVersion IgnoreIfNoMatchingField="True">0.1.0.0</modVersion>
|
<modVersion IgnoreIfNoMatchingField="True">0.1.0.0</modVersion>
|
||||||
<url/>
|
<url/>
|
||||||
<modDependencies/>
|
<modDependencies/>
|
||||||
|
|
Loading…
Reference in a new issue