-
Notifications
You must be signed in to change notification settings - Fork 5
/
UserUI.xslt
executable file
·27 lines (27 loc) · 1.09 KB
/
UserUI.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
<?xml version="1.0"?>
<!--
Copyright (c) 2014 Sanich.
Originally made available on https://cdrpro.ru
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:frmwrk="Corel Framework Data" exclude-result-prefixes="frmwrk">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<frmwrk:uiconfig>
<frmwrk:compositeNode xPath="/uiConfig/commandBars/commandBarData[@guid='3eaa9bbe-28fd-4672-9128-02974ee96332']"/>
<frmwrk:compositeNode xPath="/uiConfig/frame"/>
</frmwrk:uiconfig>
<!-- Copy everything -->
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<!-- Puts the new command at the end of the 'dockers' menu -->
<xsl:template match="commandBarData[@guid='3eaa9bbe-28fd-4672-9128-02974ee96332']/menu">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
<xsl:if test="not(./item[@guidRef='66d260f1-ef25-437a-a58d-dad6cea56e34'])">
<item guidRef="66d260f1-ef25-437a-a58d-dad6cea56e34"/>
</xsl:if>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>